• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

JBoss Deployment Error

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

While deploying my ejb in the JBOSS 4.3.0GA, I am getting the following error. It�s perfectly running in JBOSS-4.0.4GA.

10:30:55,962 INFO [Server] Starting JBoss (MX MicroKernel)...
10:30:55,962 INFO [Server] Release ID: JBoss [EAP] 4.3.0.GA (build: SVNTag=JBPAPP_4_3_0_GA date=200801031548)
10:30:55,977 INFO [Server] Home Dir: C:\dev\tools\main\jboss4.3-billing-center
10:30:55,977 INFO [Server] Home URL: file:/C:/dev/tools/main/jboss4.3-billing-center/


10:31:19,915 INFO [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=jdbc/ShortTermDb' to JNDI name 'java:jdbc/ShortTermDb'
10:31:19,993 INFO [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
10:31:21,962 INFO [org.jboss.deployment.EARDeployer] Init J2EE application: file:/C:/dev/tools/main/jboss4.3-billing-center/server/default/deploy/billing-center.ear
10:31:34,947 INFO [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/billingcenter, warUrl=file:/C:/tmp/jboss/deploy/tmp46630billing-center.ear-contents/billing-center-exp.war/
10:31:34,962 WARN [org.jboss.ejb.EjbUtil] Can't locate deploymentInfo for target: file:/C:/tmp/jboss/deploy/tmp46630billing-center.ear-contents/BillingEJB.jar
10:31:34,978 WARN [org.jboss.system.ServiceController] Problem starting service jboss.web.deployment:war=billing-center.war,id=-633968196
org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: ejb-local-ref: 'ejb/BillingLocal', with web.xml ejb-link: 'BillingEJB.jar#Billing' failed to resolve to an ejb with a LocalHome)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:384)
at org.jboss.web.WebModule.startModule(WebModule.java:83)
at org.jboss.web.WebModule.startService(WebModule.java:61)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy27.start(Unknown Source)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
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:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy28.start(Unknown Source)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
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:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy8.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
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:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
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:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.naming.NamingException: ejb-local-ref: 'ejb/BillingLocal', with web.xml ejb-link: 'BillingEJB.jar#Billing' failed to resolve to an ejb with a LocalHome
at org.jboss.web.AbstractWebDeployer.linkEjbLocalRefs(AbstractWebDeployer.java:740)
at org.jboss.web.AbstractWebDeployer.parseWebAppDescriptors(AbstractWebDeployer.java:520)
at org.jboss.web.AbstractWebDeployer$DescriptorParser.parseWebAppDescriptors(AbstractWebDeployer.java:878)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:159)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
... 111 more


--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo@349af8a { url=file:/C:/tmp/jboss/deploy/tmp46630billing-center.ear-contents/BillingEJB.jar }
deployer: null
status: Starting
state: START_SUBDEPLOYMENTS
watch: file:/C:/tmp/jboss/deploy/tmp46630billing-center.ear-contents/BillingEJB.jar
altDD: null
lastDeployed: 1223389892197
lastModified: 1223389882525
mbeans:

--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@17923794 { url=file:/C:/dev/tools/main/jboss4.3-billing-center/server/default/deploy/billing-center.ear }
deployer: org.jboss.deployment.EARDeployer@52f73e
status: Deployment FAILED reason: Error during deploy; - nested throwable: (javax.naming.NamingException: ejb-local-ref: 'ejb/BillingLocal', with web.xml ejb-link: 'BillingEJB.jar#Billing' failed to resolve to an ejb with a LocalHome)
state: FAILED
watch: file:/C:/dev/tools/main/jboss4.3-billing-center/server/default/deploy/billing-center.ear
altDD: null
lastDeployed: 1223389894931
lastModified: 1223389881368
mbeans:

--- MBeans waiting for other MBeans ---
ObjectName: jboss.web.deployment:war=billing-center.war,id=-633968196
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: ejb-local-ref: 'ejb/BillingLocal', with web.xml ejb-link: 'BillingEJB.jar#Billing' failed to resolve to an ejb with a LocalHome)

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.web.deployment:war=billing-center.war,id=-633968196
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: ejb-local-ref: 'ejb/BillingLocal', with web.xml ejb-link: 'BillingEJB.jar#Billing' failed to resolve to an ejb with a LocalHome)


EJB-JAR.xml:

<session id="Session_Billing">
�.
�.
<display-name>BillingBean</display-name>

<ejb-name>Billing</ejb-name>


�.
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>

</session>


JBoss.xml

<session>
<ejb-name>Billing</ejb-name>
<jndi-name>ejb/Billing</jndi-name>
<local-jndi-name>ejb/BillingLocal</local-jndi-name>

</session>

Web.xml


<ejb-local-ref>
<ejb-ref-name>ejb/BillingLocal</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>...service.billing.session.BillingLocalHome</local-home>
<local>....service.billing.session.BillingLocal</local>
<ejb-link>BillingEJB.jar#Billing</ejb-link>
</ejb-local-ref>


can anyone tell what is the problem???
[ October 07, 2008: Message edited by: Ram Darbha ]
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there a package name for the Billing class?

Please post the Billing class and a list of the contents of BillingEJB.jar (use "jar -tf BillingEJB.jar")

When posting source code, please use the 'code' UBBCode tag to format the text properly - without it source code is difficult to read.
 
Ram Darbha
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Package name: com/company/underwriting/service/billing/session/

BillingEJB Contents:
C:\dev\service\main\billing-center\dist\ejb>jar -tf BillingEJB.jar
META-INF/
META-INF/MANIFEST.MF
com/
com/company/
com/company/underwriting/
com/company/underwriting/service/
com/company/underwriting/service/billing/
com/company/underwriting/service/billing/session/
META-INF/ejb-jar.xml
META-INF/jaws.xml
META-INF/jboss.xml
com/company/underwriting/service/billing/session/Billing.class
com/company/underwriting/service/billing/session/BillingHome.class
com/company/underwriting/service/billing/session/BillingLocal.class
com/company/underwriting/service/billing/session/BillingLocalHome.class
com/company/underwriting/service/billing/session/BillingSession.class
com/company/underwriting/service/billing/session/BillingBean.class


Billing Class:

 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like Billing is for the remote interface not the local interface. The local interface extends javax.ejb.EJBLocalObject.
 
Ram Darbha
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Local Interface class is BillingLocal.Java and it extends from javax.ejb.EJBLocalObject. Any changes are needed?


[ October 08, 2008: Message edited by: Ram Darbha ]
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Based on the error message:

ejb-local-ref: 'ejb/BillingLocal', with web.xml ejb-link: 'BillingEJB.jar#Billing' failed to resolve to an ejb with a LocalHome

I would change the ejb-link in web.xml to "BillingEJB.jar#BillingBean" (a guess on my part, it's been a while since I dealt with EJB 2.x).
 
Ram Darbha
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just tried your suggestion above, and it's giving this error:


12:46:04,172 WARN [org.jboss.system.ServiceController] Problem starting service jboss.web.deployment:war=billing-center.war,id=1724941060
org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: ejb-local-ref: 'ejb/BillingLocal', with web.xml ejb-link: 'BillingEJB.jar#BillingBean' failed to resolve to an ejb with a LocalHome)
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What happens if you set the ejb-link to simply "Billing" or "BillingBean" (drop the "BillingEJB.jar#")?

If that doesn't work, hopefully someone with more EJB2.x experience than what I have can chime in, because I am out of ideas.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic