File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes JNDI Problem... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "JNDI Problem..." Watch "JNDI Problem..." New topic
Author

JNDI Problem...

JPraveen Kumar
Ranch Hand

Joined: Aug 31, 2004
Posts: 80
Hi,

I have been breaking my head no this for quite some time now. Im trying to develop an EJB session bean using the foll.

IDE : Eclipse
J2EE Framework : Webtools
App Server : Sun Application Server.
App Connector : Glassfish

My session bean only has a foo method as follows

public String foo(String param) {
return "ASD"+param;
}

When I try to publish this to the server after add or remove projects it says

BUILD FAILED
C:\Eclipse\temp\.metadata\.plugins\org.eclipse.jst.server.generic.core\serverdef\sunappsrv-ant.xml:54: Deployment failure. See the server log file (C:/645/Sun/AppServer/domains/domain1/autodeploy/../logs/server.log) for an explanation.

The log file says

[#|2006-02-12T23:46:03.014-0500|SEVERE|sun-appserver-pe8.1|javax.enterprise.system.tools.deployment|_ThreadID=11;|Exception occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: Error while running ejbc -- Fatal Error from EJB Compiler -- Invalid jndi name [] found in application [ttt]; module [C:\645\Sun\AppServer\domains\domain1\applications\j2ee-modules\ttt]; ejb [My]; aborting deployment. Please populate the jndi element and try again.
at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:701)
at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:563)
at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployModule(EJBCompiler.java:427)
at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:213)
at com.sun.enterprise.deployment.backend.ModuleDeployer.runEJBC(ModuleDeployer.java:967)
at com.sun.enterprise.deployment.backend.EjbModuleDeployer.deploy(EjbModuleDeployer.java:176)
at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:140)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:146)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:633)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:185)
at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:519)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:302)
at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:357)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
at $Proxy1.invoke(Unknown Source)
at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:272)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:471)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployEjbModule(AutoDeployer.java:433)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployEjbModule(AutoDeployer.java:411)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:201)
at com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeployTask.run(AutoDeployControllerImpl.java:342)
at java.util.TimerThread.mainLoop(Timer.java:432)
at java.util.TimerThread.run(Timer.java:382)
|#]

[#|2006-02-12T23:46:03.030-0500|SEVERE|sun-appserver-pe8.1|javax.enterprise.system.tools.admin|_ThreadID=11;|enterprise.deployment.backend.autoDeploymentFailure|#]

[#|2006-02-12T23:46:03.217-0500|INFO|sun-appserver-pe8.1|javax.enterprise.system.tools.admin|_ThreadID=11;|[AutoDeploy] Autodeploy failed : C:\645\Sun\AppServer\domains\domain1\autodeploy\ttt.jar.|#]



The jndi tag is correct in the XDoclet tags so I don't know what is wrong.

Please help me out.

Tx Praveen.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNDI Problem...