WASCE 2.1 Configuration Issue in Eclipse 3.3
This is the issue which I faced while configuring WASCE2.1 in eclipse europa. Just want to share what's the issue I faced.
WASCE2.1 causes NullpointerException during deployement.
I installed Websphere community Edition 2.1 (WASCE2.1) and tried to deploy a small dynamic web project using eclipse. First I tried thro' the eclipse latest version GENEYMEDE. But I couldn't deploy successfully. After that I came to know that WASCE Eclipse plug-in doesn't supports Eclipse Ganymede platform.
So I tried to deploy thro' Eclipse Europa. Still I couldn't deploy successfully.The server starts up fine. But am getting NullpointerException while publishing.
Solution
Community Edition uses a Geronimo specific deployment plan(geronimo-web.xml) But the installed plugin didn´t generate the geronimo-web.xml file when defining a Dynamic Web Project with WASCE as its runtime.
so, I tried to place geronimo deployment descriptor file in /WebContent/web-Inf/ folder. Still it doesn't work.
Below is the error which I got while publishing the WASCE server.
!ENTRY org.eclipse.wst.server.core 4 0 2008-09-05 23:01:50.285
!MESSAGE Could not publish to the server.
!STACK 0
java.lang.NullPointerException
at org.apache.geronimo.st.core.internal.DependencyHelper.getEnvironment(DependencyHelper.java:353)
at org.apache.geronimo.st.core.internal.DependencyHelper.reorderModules(DependencyHelper.java:97)
at org.apache.geronimo.st.core.GeronimoServerBehaviourDelegate.publishModules(GeronimoServerBehaviourDelegate.java:216)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:669)
at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:887)
at org.eclipse.wst.server.core.internal.Server.publish(Server.java:874)
at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:72)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
what was happened is my eclipse is configured to Java.version=1.6.0_07. Under this configuration eclipse is not generating the geronimo deployment descriptor. After configuring eclipse to Java version 1.5, eclipse generated the geronimo-web.xml and the deployment went successfully.
2 comments:
Post the question on WAS CE forum:
http://www.ibm.com/developerworks/forums/forum.jspa?forumID=541
This forum is very responsive.
The link to forum:
IBM WebSphere Application Server Community Edition and Apache Geronimo
Post a Comment