In my current project, I use HSQLDB 2.0 and JBoss5.1 .
Currently I am starting the HSQLDB server from command prompt as :
java -cp ../lib/hsqldb.jar org.hsqldb.server.Server --database.0 file:hmc
and connect to HSQLDB from datasource defined in deploy folder of jBoss.
But now I do not want to start HSQLDB externally but would like to start it when jBoss starts.
Is it possible to perform such action, and how?
I simply added HSQLDB startup script to the jBoss startup script.
Related
I am trying to start Tomcat 9.0 server from Eclipse and Spring Tool Suite. But is always ending with the error "Can't start in 45 seconds". I increased the time, still the same error.
I have given the installed Tomcat directory and a new tomcat zip extract directory to check whether it is an issue with the tomcat installation.
But the tomcat server is running from the terminal if I use the command
/Library/Tomcat/bin/startup.sh
And stopping with the command
/Library/Tomcat/bin/shutdown.sh
How can I make the server running from Eclipse and STS? Any help is appreciated
Note: I am using Mac Catalina as my OS
I am using eclipse to build a web app to be deployed on weblogic 10.3.6.Performing a export as war and depolying the war on weblogic fails at a point where I am performing a file move opertation using java.nio.file.Files.move method.
The error I receive is following :-
java.nio.file.NoSuchFileException: /export/home/tppp3/asdsslon/infiles/Wert_Frameon_20160514.csv
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixCopyFile.move(UnixCopyFile.java:403)
However this is not reported when I perform a deployment to weblogic using eclipse available option Run as-> Run on Server .
I am noticing Using above method, generates a _wl_cls_gen.jar with source code files compiled and package as class.
Any help will be appreciated.
I am looking for option to either generate _wl_cls_gen.jar for war export or find a option to make the move operation work. The same war works flawlessly on Tomcat.
Thanks
I run the Jboss 7.1 as a service, but when I deploy the war through console it got deployed in data folder inside standalone folder.
To run Jboss 7.1 as service I refered to this link
It seems that Jboss getting started in standalone mode when I run it as a service.
Just an assumption, but have you tried replacing the run.bat properly with domain.bat rather than standalone.bat (the latter is shown in the post you followed)?
I try run spring MVC application via tomcat. I attached to preferences_> server tomcat. But when i start Run On Server next i press finish button. And i see couldn't load tomcat server configuration at /Servers/Tomcat v6.0 server at localhost-config. The configuration may by corrupt or incomplete. Project have to good because it is sample project generated via Spring Tools from template. How fix it?
I would like to use a custom version of the HSQL DB in an application that I am deploying in JBoss. However, JBoss already contains an HSQLDB.jar. The JBoss jar is being resolved by my application instead of the custom jar in my ear.
How can I use a different version of HSQL in my web application from the one that JBoss uses internally?
Can I remove the HSQLDB.jar included with JBoss without negatively impacting the Application Server?
The custom version it's just a newer version? If it's that the case than you can simply replace the jar in the Jboss lib folder. Jboss uses HSQLDB as far as I know for queue persistence.