-
1. Re: Use external .jar into a seam Project
mars1412 Mar 12, 2008 4:34 AM (in response to jrochat)I am also quite new to java and eclipse, but I think this might help:
You have to take care of the following fact:
when you are compiling the source-code in eclipse, then eclipse will use the classpath that you have specified in eclipse (I guess, that's stored in your workspaces .classpath file)
when you deploy your project to an applicationserver, the applicationserver does of course not know anything about your eclipse classpath.
so you have following options (AFAIK):- tell eclipse to bundle your external jar into your .ear (or .war)
- let the applicationserver know your external .jar
- tell eclipse to bundle your external jar into your .ear (or .war)
-
2. Re: Use external .jar into a seam Project
jrochat Mar 12, 2008 6:06 AM (in response to jrochat)I trie to make a smaller jar with just a simple Class. I copy the .jar into WebContent/WEB-INF/myJar.jar and it works !
But when I do the same with a complicated jar it doesn't work... -
3. Re: Use external .jar into a seam Project
mars1412 Mar 12, 2008 6:26 AM (in response to jrochat)another wild guess:
are you sure, that the application server uses the same (or an higher) java version, as your application/your complicated jar has been compiled with? -
4. Re: Use external .jar into a seam Project
jrochat Mar 12, 2008 7:22 AM (in response to jrochat)Yes I do it in the same machine ! But it's working now, I juste delete and recreate the Jboss Server withe Eclipse...
Strange...
Thank you for your help !