on 07-31-2008 2:05 PM
Dear Experts,
I am doing the J2EE application migration from JBoss to Web AS 7.1. I am using NWDS for CE to build and to deploy this application. I have done this with non-dc type J2ee projects and I was able to deploy the application. But when I converted these into DC type projects, I have encountered a problem.
Here I created the DC type EJB module and I copied the bean classes from the non-dc project into EJB dc under ejbmodule, after build I was able to see all the packages which contains the classes are packed into ejb_client.jar entity under client public part, but when I copied the contents into the ejb-jar.xml file, build was successful but some of the packages were missed. If I leave the ejb-jar.xml without any entities, all the class files are packaged into the client.jar.
I added this EJB DCs public parts as dependencies in the Web Module DC. So it is throwing errors because of missing class files.
What could be the problem? Kindly suggest me to resolve this issue.
Thanks and Regards,
Karthik
Hi Karthik,
Question is, which classes are "missing" in the client jar? Are these bean classes or bean interfaces or some additional (helper) classes?
I'd assume that bean classes are left out of the client public part as they should not be needed by referring modules.
Regards,
\-- Vladimir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vladimir,
Yes. I have done that way, I kept the sources in a java dc project and generated a public part using them. Then I added this as depedency to the web module, now it is accepting the class file references. I am able to make the deployment.
but the deployment finished with a warning, the warning is :
Initialization of servlet StartupServlet failed. Check init() method of servlet. Error is: javax.servlet.ServletException: Error initializing.
what could be the reason for this?
Regards,
Karthik
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.