-
1. Re: web services in axis.war can't find classes in .ear JBos
jaikiran Dec 11, 2008 2:14 AM (in response to jbossdeploy)Which version of JBoss AS do you use? And where exactly in the EAR, are the jars placed?
-
2. Re: web services in axis.war can't find classes in .ear JBos
jbossdeploy Dec 11, 2008 3:48 AM (in response to jbossdeploy)Hi Jaikiran,
The Jboss version is 4.0.5GA . Under deploy folder of our server, we have our .ear and axis.war . In .ear file the .jars are located not under any sub-folder. The structure is like this
sle.ear--|
sle.jar
sle-client.jar
(and many more)
The Web Services classes under axis.war\WEB-INF\classes is not able to access classes from sle.jar and sle-clent.jar.
Thanks and Regards
Partha -
3. Re: web services in axis.war can't find classes in .ear JBos
jaikiran Dec 11, 2008 8:06 AM (in response to jbossdeploy)The jar files in the EAR are not added to classpath by default. For JBoss-4.2.x you can create a lib folder at the root of the EAR and add the jars to that lib folder so that they get added by default to the classpath. However, i don't remember much about whether this is supported in JBoss-4.0.5GA. The alternate approach is to add all those jars as a java module in the application.xml:
<module> <java>sle.jar</java> </module> <module> <java>sle-client.jar</java> </module>
-
4. Re: web services in axis.war can't find classes in .ear JBos
jbossdeploy Dec 11, 2008 8:52 AM (in response to jbossdeploy)Hi Jaikiran,
Thanks a lot for your prompt reply.
The jars are already included as modules in application.xml . The only thing which is outside of the .ear is axis.war. I have tried to put that too inside the .ear but it did not work. Please let me know if there is any other way.
Thanks and Regards
Partha -
5. Re: web services in axis.war can't find classes in .ear JBos
jaikiran Dec 11, 2008 8:58 AM (in response to jbossdeploy)"JBossDeploy" wrote:
The only thing which is outside of the .ear is axis.war.
I missed the point that the war was outside the EAR."JBossDeploy" wrote:
I have tried to put that too inside the .ear but it did not work.
This should have worked. Please post the entire exception stacktrace. Also let us know which exact jar file contains the class that is being shown in the exception. -
6. Re: web services in axis.war can't find classes in .ear JBos
jbossdeploy Dec 13, 2008 2:37 AM (in response to jbossdeploy)Hi Jaikiran,
Got delayed in posting, we had a build submission yesterday. The matter of fact is we are not getting Exception/Error being logged in the server log so we do not have any stack trace . We use Eclipse as our development environment and while debugging we saw that Linkage Error being thrown in debug perspective. What we are trying to do is to call existing delegates from web services classes those are under WEB_INF/classes to call EJBs, that is WS calling delegates calling EJBs. Web Services are the new ones we are trying to plugin. The delegates and the EJBs are in the earlier mentioned sle.jar and sle-client.jar and Web Services are in the axis.war outside the .ear .
Please let me know if you need any more info.
Thanks again.
Regards Partha -
7. Re: web services in axis.war can't find classes in .ear JBos
jbossdeploy Dec 16, 2008 4:03 AM (in response to jbossdeploy)Hi ,
Please let me know if you have got any solution
Regards
Partha -
8. Re: web services in axis.war can't find classes in .ear JBos
jaikiran Dec 16, 2008 5:40 AM (in response to jbossdeploy)"JBossDeploy" wrote:
The matter of fact is we are not getting Exception/Error being logged in the server log so we do not have any stack trace . We use Eclipse as our development environment and while debugging we saw that Linkage Error being thrown in debug perspective.
If there are no errors on the server side, then this looks like some issue on the client (the eclipse environment). I don't have much experience about how things are handled in Eclipse IDE, maybe someone else will be able to help. -
9. Re: web services in axis.war can't find classes in .ear JBos
jbossdeploy Dec 16, 2008 6:25 AM (in response to jbossdeploy)Hi Jaikiran,
Would you please give me your mail-id or IM id .
My official mail id is partha.pal@rebaca.com and personal is partha_net@yahoo.com
Thanks a lot for your replies.
Regards
Partha -
10. Re: web services in axis.war can't find classes in .ear JBos
jaikiran Dec 16, 2008 8:06 AM (in response to jbossdeploy)The forums are the best place to discuss these questions, because even others will be able to help :-)
And never post your email ids or be ready for spam :-) -
11. Re: web services in axis.war can't find classes in .ear JBos
jbossdeploy Dec 16, 2008 8:20 AM (in response to jbossdeploy)Ok :-) Thanks !
BTW we have got a workaround using reflection. The objects which are returned from the web services , we are using reflection in the delegates to instantiate and invoke methods. This is working. What we have understood that the problem lies with the different classloaders being used to load , thats why the Linkage error.
We will keep on trying if you could provide us any lead toward a solution that would be very helpful.
Regards
Partha