Teiid Instance in JBoss DV 6.0 cannot connect in JBDS - jboss

I am working on Teiid Designer in JBoss Developer Studio, and to perform "Execute VDB" it says that an instance of teiid must be running, so I start JBoss DV 6.0 Server, and test the connection on Teiid Instance view of the server, the tests "Test Administration Connection" and "Test JDBC Connection" says "OK", but when I try to run "Execute VDB" or any form to stablish a connection to teiid instance from the IDE, it says the same thing as is the server is not running.
You people have an idea what is causing this?

What version of Designer are you using? There is a known issue [1] with the latest version (9.0.2), you have to click the Refresh button in the Servers view after starting/connecting to the server.
Also, do you have the correct server set as the Default Server? You can set this in the bottom part of the Model Explorer view [2] or via the Guides view.
[1] https://issues.jboss.org/browse/TEIIDDES-2536
[2] http://docs.jboss.org/teiid/designer/9.0/user-guide/en-US/html/dive-right-in-chapter.html#server-version-status-panel

Related

Netbeans Entity classes from database wizard fails

My setup:
Netbeans 16 on windows 11
Mysql server 8
mysql-connector-java-8.0.30.jar
OpenJDK 64-Bit Server VM Microsoft-40354 (build 17.0.4.1+1-LTS, mixed mode, sharing)
Payara server 5.2 configured in Netbeans.
I have a legacy web application which uses Jdbc resources and connection pools defined in domain.xml inside Payara.
When I deploy the application it works correctly and can access the data in Mysql.
I need to add some new entities and I launch Entity classes from database wizard but it fails.
I had weird problems with that wizard in the past months but since then I changed computer reinstalling everything from scratch and the wizard doesn't work any more.
At step 2 I select a datasource which comes from Payara's domain.xml and an error is immediately reported:
Unable to find driver com.mysql.cj.jdbc.MysqlDataSource. Register this driver in databases tab
I think it refers to Tab Services, Databases tree node, drivers. Unfortunately I cannot add class MysqlDataSource there because it only accepts driver classes.
What can I do ?
I found two possible workarounds.
Temporarily remove the Payara server from Netbeans.
Now the Datasource select box is not populated from domain.xml
so you can finally choose a database connection already defined inside Netbeans or create a new one with "New datasource..."
Open domain.xml, search for the Jdbc connection pool you are going to use and add valid URL and driverClass properties

could not reach CMS from JBOSS

I have ran into something interesting. We are upgrading our SAP BO from 4.2 SP2 to 4.2 SP5. So we have a java application which runs on JBoss connects to the BO reports.
So as part of upgrade I have updated all my SAP jars and tried connecting to the new CMS. To test out initially i used the below code and ran it using main method I was able to connect to the CMS and get the Session.
ITrustedPrincipal trustedPrincipal = sessionMgr.createTrustedPrincipal("user1", "myCMS:6400");
session = sessionMgr.logon(trustedPrincipal);
But when I run the same code on JBoss, I get
Could not reach CMS 'myCMS:6400'. Specify the correct host and port
and check for network issues
Can some one please suggest what I am doing wrong?

Wildfly server configuration in eclipse(STS) for hot deployment

I am configuring Wildfly server in eclipse(STS). While configuring, I noticed the following option:
Server is externally managed. Assume server is started.
What does this option do ?
Does it impact capability of hot deployment of jsps etc.
Can someone also point to a location where all these options are described in detail for Wildfly server configuration in eclipse?
"The Server is externally managed. Assume server is started" field is used when the user wants to deploy the server but does not want the IDE to stop or start the server for them. Depending on the requirements, select this check box or leave it unchecked, as is default.
http://tools.jboss.org/documentation/howto/configure_remote_server.html

Setup for PHP with FileMaker Server on Windows 7 and Apache Server

I'm trying to get PHP Web Publishing working with FMS 11.0.2.217 on Windows 7 and apache server. I've clicked the link on Filemaker Server Admin Console for PHP. The Filemaker PHP Site Assistant launches, I select Create New Site and enter Test as name and enter server ip and click connect. I receive the following error:
"Publishing engine is not running on the specified server"
Also in the FileMaker Server Admin Console >General Settings it does not hold the "Automatically start web publishing engine" check box after I click it and save. It does accept and hold "Automatically start Database Server"
What am I doing wrong?
Go to this URL in a browser like FireFox that supports XML rendering:
http://yourServerAddress/fmi/xml/FMPXMLRESULT.xml?-dbnames
You should get an XML listing of all of the databases on your server. If you get something else, then your Web Publishing Engine is not installed correctly, or is not running. In that case, I would recommend uninstalling and re-installing the Web Publishing Engine, or call FileMaker tech support.
Also be well aware that FMS does NOT support Apache on Windows.
Just a word of warning with FileMaker server / PHP -- ensure that your web application isn't high concurrent volume or you're going to have problems.
FileMaker Server has a very limited number of concurrent connections and the timeout value on requests makes using FileMaker Server problematic if you have a large number of concurrent sessions.

Eclipse and GlassFish: remote deployment and debugging

I am currently using Eclipse to develop a fairly straight-forward Java EE dynamic web application. I have just been using Eclipse to deploy the web app to a GlassFish 3.1 server locally running on my dev machine for development and debugging purposes.
So far, so good. But now, I am looking into deploying the app to a remote GF server for further testing.
In Eclipse, I open the "Servers" tab and select the "New->Server" context menu. I enter the IP address of the remote server running GlassFish, but the "New Server" dialog won't let me proceed. Instead, it gives me the error message:
Remote Server is not secured: It
cannot be used remotely...
Some initial research suggests that remote deployment/debugging is currently not supported by Eclipse. Is that what Eclipse is trying to tell me with this weird error message? Surely "Remote deployment/debugging not supported" would be more apt. Am I overlooking something fundamental here?
Read http://blogs.oracle.com/quinn/entry/securing_adminstration_in_glassfish_server1
Access to remote servers can only be done if the server has been secured...
You want to make sure you have enabled secure administration. Generally you should do the following:
using ./asadmin change-admin-password command to set a password on the 'admin' user. By default there is none (so when it asks for your current admin password just hit Enter assuming you've never set one)
using ./asadmin start-domain to startup the default 'domain1'
using ./asadmin --host localhost --port 4848 enable-secure-admin will enable remote administration access (which you want) and tell Glassfish to start on the localhost at the default admin port 4848
finally use ./asadmin restart-domain to restart and apply those changes.
You should be able to now access the remote server and manage it via your Eclipse install. This works for Eclipse Luna and Glassfish4 open-source edition. Also note that you need to have a glassfish install on your Local development machine and point to that when it asks for the path to the Glassfish installation when setting up the server in Eclipse Wizard...despite the fact that you are connecting to a remote Glassfish instance. (See my SO post for more details/screenshots).
I am adding this because the current accepted answer only points to a link which is typically frowned upon here on SO since links have a tendency to go dead unexpectedly.