Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
WTP 1.0.1 + Geronimo 1.0 plugin + Geronimo 1.0 server
Starting Eclipse with IBM JRE 1.4.2 "J2RE 1.4.2 IBM Windows 32 build cn142-20050609"
Description
I had an EAR that's deployed to a Geronimo server. After I changed a Java file and re-publish to the server using server tooling popup menu on the server, I got the "Publish Failed" error. Here's the application console log:
!SUBENTRY 1 org.apache.geronimo.devtools.eclipse.core 4 0 2006-03-07 13:08:59.630
!MESSAGE Connection to deployment manager failed. See .log for details.
!STACK 0
javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException: javax.naming.NoInitialCon
textException: Cannot instantiate class: org.apache.naming.java.javaURLContextFactory [Root exceptio
n is java.lang.ClassNotFoundException: org.apache.naming.java.javaURLContextFactory]
at org.apache.geronimo.deployment.plugin.factories.DeploymentFactoryImpl.getDeploymentManage
r(DeploymentFactoryImpl.java:132)
at javax.enterprise.deploy.shared.factories.DeploymentFactoryManager.getDeploymentManager(De
ploymentFactoryManager.java:109)
at org.apache.geronimo.core.GeronimoConnectionFactory.getDeploymentManager(GeronimoConnectio
nFactory.java:54)
at org.apache.geronimo.core.commands.DeploymentCommandFactory.getDeploymentManager(Deploymen
tCommandFactory.java:111)
at org.apache.geronimo.core.commands.DeploymentCommandFactory.createRedeployCommand(Deployme
ntCommandFactory.java:87)
at org.apache.geronimo.core.internal.GeronimoServerBehaviour.reDeploy(GeronimoServerBehaviou
r.java:361)
at org.apache.geronimo.core.internal.GeronimoServerBehaviour.doRedeploy(GeronimoServerBehavi
our.java:282)
at org.apache.geronimo.core.internal.GeronimoServerBehaviour.invokeCommand(GeronimoServerBeh
aviour.java:234)
at org.apache.geronimo.core.internal.GeronimoServerBehaviour.publishModule(GeronimoServerBeh
aviour.java:217)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDe
legate.java:672)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourD
elegate.java:752)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate
.java:610)
at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:800)
at org.eclipse.wst.server.core.internal.Server.publish(Server.java:788)
at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:145)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
Caused by: java.io.IOException: javax.naming.NoInitialContextException: Cannot instantiate class: or
g.apache.naming.java.javaURLContextFactory [Root exception is java.lang.ClassNotFoundException: org.
apache.naming.java.javaURLContextFactory]
at mx4j.remote.resolver.rmi.Resolver.lookupStubInJNDI(Resolver.java:100)
at mx4j.remote.resolver.rmi.Resolver.lookupRMIServerStub(Resolver.java:72)
at mx4j.remote.resolver.rmi.Resolver.lookupClient(Resolver.java:52)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:119)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:38)
at org.apache.geronimo.deployment.plugin.factories.DeploymentFactoryImpl.getDeploymentManage
r(DeploymentFactoryImpl.java:125)
at javax.enterprise.deploy.shared.factories.DeploymentFactoryManager.getDeploymentManager(De
ploymentFactoryManager.java:109)
at org.apache.geronimo.core.GeronimoConnectionFactory.getDeploymentManager(GeronimoConnectio
nFactory.java:54)
at org.apache.geronimo.core.commands.DeploymentCommandFactory.getDeploymentManager(Deploymen
tCommandFactory.java:111)
at org.apache.geronimo.core.commands.DeploymentCommandFactory.createRedeployCommand(Deployme
ntCommandFactory.java:87)
at org.apache.geronimo.core.internal.GeronimoServerBehaviour.reDeploy(GeronimoServerBehaviou
r.java:361)
at org.apache.geronimo.core.internal.GeronimoServerBehaviour.doRedeploy(GeronimoServerBehavi
our.java:282)
at org.apache.geronimo.core.internal.GeronimoServerBehaviour.invokeCommand(GeronimoServerBeh
aviour.java:234)
at org.apache.geronimo.core.internal.GeronimoServerBehaviour.publishModule(GeronimoServerBeh
aviour.java:217)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDe
legate.java:672)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourD
elegate.java:752)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate
.java:610)
at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:800)
at org.eclipse.wst.server.core.internal.Server.publish(Server.java:788)
at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:145)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)