-
1. Re: How to add additional jar files path into jboss classpat
peterj Apr 9, 2009 10:58 AM (in response to leechaolan)The best place to put these JAR files is into your applications package. For example if your application is packaged as a WAR file, place them in WEB-INF/lib within your WAR. If your package is an EAR, place them in the base directory of the EAR and reference them in your META-INF/application.xml file.
Another alternative is to add them to the server/xxx/lib directory. -
2. Re: How to add additional jar files path into jboss classpat
leechaolan Apr 9, 2009 12:12 PM (in response to leechaolan)The best place to put these JAR files is into your applications package. For example if your application is packaged as a WAR file, place them in WEB-INF/lib within your WAR. If your package is an EAR, place them in the base directory of the EAR and reference them in your META-INF/application.xml file.
Yeap.. This is what i'm doing. I put them into the WEB-INF/lib directory. But its is not working due to the open office nature.
I google and have read at the open office wiki. It seems that for java web applications to open and read the open office applications, it need to reference to the installation path of the open office jar files in my machine instead of the lib files in WEB-INF/lib.
Therefore to read the openoffice, during the boot time, i need to add in the jar paths of the open office when i start the server.
Any advice on how to add the path in the run.sh file?
Thanks -
3. Re: How to add additional jar files path into jboss classpat
peterj Apr 9, 2009 3:00 PM (in response to leechaolan)Try this. Before running run.sh, do this:
export JBOSS_CLASSPATH=/opt/openoffice.org/ure/share/java/java_uno.jar:...:/opt/openoffice.org/ure/share/java/unoloader.jar
I didn't include all of the JARs, but that should give you and idea.
If that works, look for the first use of JBOSS_CLASSPATH in run.sh and add the above line (without the 'export') just before it. -
4. Re: How to add additional jar files path into jboss classpat
leechaolan Apr 11, 2009 2:48 AM (in response to leechaolan)Hi peter, thanks for the help... :)
-
5. Re: How to add additional jar files path into jboss classpat
itsme Apr 14, 2009 3:43 AM (in response to leechaolan)Another way would be using the bootstrapconnector. Search the web for bootstrapconnector.jar.