-
1. Where should I place the external jars for an ejb application in JBoss AS 6
jaikiran Feb 7, 2011 8:40 AM (in response to arkhalil)Abdur Rahman wrote:
Hi,
I have an ejb application that uses some external libraries(jars).
You mean jars that you don't want to package in your application?
Abdur Rahman wrote:
Hi,
I have placed these under jboss-6.0.0.Final/server/all/lib. But I was unable to add my ejb application to the server
What do you mean by add the ejb application to the server? Are you talking about some IDE?
-
2. Where should I place the external jars for an ejb application in JBoss AS 6
arkhalil Feb 7, 2011 8:51 AM (in response to jaikiran)Yh, I have jars that I don't want to package withing my ejb.
When I try to deploy my ejb application from the admin-console it cann't find the those external jars.
-
3. Where should I place the external jars for an ejb application in JBoss AS 6
jaikiran Feb 7, 2011 8:56 AM (in response to arkhalil)Abdur Rahman wrote:
When I try to deploy my ejb application from the admin-console it cann't find the those external jars.
You'll have to manually place those extra jars in the JBOSS_HOME/server/<servername>/lib folder. You can't do it through admin-console.
-
4. Re: Where should I place the external jars for an ejb application in JBoss AS 6
arkhalil Feb 7, 2011 9:03 AM (in response to jaikiran)Yh, You are right. I have placed those jars manually in JBOSS_HOME/server/<servername>/lib folder through scp command. And I verified their existence there. But why these server dosn't find those libs? Is anything further needed on the application side? Thanks you.
-
5. Re: Where should I place the external jars for an ejb application in JBoss AS 6
welle Feb 7, 2011 9:11 AM (in response to arkhalil)Can it be that you didn't restart JBoss after adding the jar files to the lib directory? It's only the deploy directories that supports hot deploy.
-
6. Where should I place the external jars for an ejb application in JBoss AS 6
arkhalil Feb 7, 2011 9:19 AM (in response to welle)But I have restarted the JBoss AS 6 after copying the jars to JBOSS_HOME/server/all/lib.
-
7. Where should I place the external jars for an ejb application in JBoss AS 6
jaikiran Feb 7, 2011 9:20 AM (in response to arkhalil)Abdur Rahman wrote:
But why these server dosn't find those libs?
Can you elaborate on what that means? Are you seeing any exceptions or errors? If yes, please post the entire exception stacktrace.
-
8. Where should I place the external jars for an ejb application in JBoss AS 6
welle Feb 7, 2011 9:21 AM (in response to arkhalil)In that case I do not have a clue, sorry!
-
9. Where should I place the external jars for an ejb application in JBoss AS 6
arkhalil Feb 7, 2011 9:25 AM (in response to welle)It is ok. Thanks to all.
The following are exception shown on the admin-console:
Failed to create Resource marketingejb.jar - cause:java.lang.Exception:Failed to start deployment[vfs:///usr/local/jboss-6.0.0.Final/server/all/deploy/marketingejb.jar]during deployment of 'marketingejb.jar' - cause:java.lang.RuntimeException:org.jboss.deployers.client.spi.IncompleteDeploymentException:Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):*** DEPLOYMENTS IN ERROR: Name -> Errorvfs:///usr/local/jboss-6.0.0.Final/server/all/deploy/marketingejb.jar-> org.jboss.deployers.spi.DeploymentException: Error deployingmarketingejb.jar: com/sanmar/exception/ApplicationExceptionDEPLOYMENTS IN ERROR: Deployment"vfs:///usr/local/jboss-6.0.0.Final/server/all/deploy/marketingejb.jar"is in error due to the following reason(s):java.lang.ClassNotFoundException:com.sanmar.exception.ApplicationException fromBaseClassLoader@3413e584{vfs:///usr/local/jboss-6.0.0.Final/server/all/deploy/marketingejb.jar}->org.jboss.deployers.client.spi.IncompleteDeploymentException:Summary ofincomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):*** DEPLOYMENTS IN ERROR: Name -> Errorvfs:///usr/local/jboss-6.0.0.Final/server/all/deploy/marketingejb.jar-> org.jboss.deployers.spi.DeploymentException: Error deployingmarketingejb.jar: com/sanmar/exception/ApplicationExceptionDEPLOYMENTS IN ERROR: Deployment"vfs:///usr/local/jboss-6.0.0.Final/server/all/deploy/marketingejb.jar"is in error due to the following reason(s):java.lang.ClassNotFoundException:com.sanmar.exception.ApplicationException fromBaseClassLoader@3413e584{vfs:///usr/local/jboss-6.0.0.Final/server/all/deploy/marketingejb.jar}
-
10. Where should I place the external jars for an ejb application in JBoss AS 6
welle Feb 7, 2011 9:28 AM (in response to arkhalil)Can you verify that the class "com.sanmar.exception.ApplicationException" is present in any of the jar files that are put in the lib directory?
-
11. Where should I place the external jars for an ejb application in JBoss AS 6
arkhalil Feb 7, 2011 9:31 AM (in response to welle)I have verified that. It is present inside sanmar.com.jar
-
12. Where should I place the external jars for an ejb application in JBoss AS 6
nickarls Feb 8, 2011 3:51 AM (in response to arkhalil)Any classpath entries in the ejb manifest shouldn't be able to interfere, right?
-
13. Where should I place the external jars for an ejb application in JBoss AS 6
arkhalil Feb 8, 2011 7:19 AM (in response to nickarls)There are no classpath entries for jars in the MANIFEST.MF file!
-
14. Where should I place the external jars for an ejb application in JBoss AS 6
wolfgangknauf Feb 8, 2011 8:05 AM (in response to arkhalil)Hi,
as you used "scp", I assume that the JBoss is running on a remote linux server? Did you check file permissions? E.g. do they have the same owner as the JBoss jars?
Best regards
Wolfgang