JBoss 3.0.4.
When I start JBoss with my ear in /deploy, it deploys everything fine.
When I start JBoss with empty /farm directory and copy my ear there after start done, everything deploys fine to all nodes in the cluster.
When I start JBoss with ear in /farm, it does not deploy my ear because of "ejb-local-ref: ejb/taxgard/TransTableExplorerLocal, target not found"
The same failure happens when I start new node in the cluster with ear already deployed onto another nodes. I have to undeploy it, and deploy again (causing application restart for all nodes, which is terrible).
Happens on both Win2000 and Redhat7.3.
======================================================================================
Here is farm-service.xml:
<?xml version="1.0" encoding="UTF-8"?>
<server>
  <classpath codebase="lib" archives="jbossha.jar"/>
  <mbean code="org.jboss.ha.framework.server.FarmMemberService" name="jboss:service=FarmMember,partition=DefaultPartition">
    <depends>jboss:service=DefaultPartition</depends>
    <attribute name="PartitionName">DefaultPartition</attribute>
    <attribute name="FarmDeployDirectory">./farm</attribute>
    <attribute name="ScannerName">jboss.deployment:type=DeploymentScanner,flavor=URL</attribute>
    <attribute name="Deployer">jboss.system:service=MainDeployer</attribute>
  </mbean>
</server>

=====================================================================================
Here is relevant part of jboss.xml:
<jboss>
  <enterprise-beans>
    <session>
      <ejb-name>TransTableExplorer</ejb-name>
      <jndi-name>ejb/taxgard/TransTableExplorer</jndi-name>
      <local-jndi-name>ejb/taxgard/TransTableExplorerLocal</local-jndi-name>
      <clustered>True</clustered>
	    <cluster-config>
	      <partition-name>DefaultPartition</partition-name>
	    </cluster-config>
    </session>
  </enterprise-beans>
<skip>
=====================================================================================
Here is relevant part of web.xml:
  <ejb-local-ref>
    <ejb-ref-name>ejb/taxgard/TransTableExplorerLocal</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <local-home>com.wsc.taxgard.ejb.tte.TransTableExplorerLocalHome</local-home>
    <local>com.wsc.taxgard.ejb.tte.TransTableExplorerLocal</local>
    <ejb-link>TransTableExplorer</ejb-link>
  </ejb-local-ref>
=====================================================================================
Here is relevant part of jboss-web.xml:
  <ejb-ref>
    <ejb-ref-name>ejb/taxgard/TransTableExplorer</ejb-ref-name>
    <jndi-name>ejb/taxgard/TransTableExplorer</jndi-name>
  </ejb-ref>
=====================================================================================
Here is startup log for failed deployment from /farm during startup:
<skip>
12:51:53,991 INFO  [FarmMemberService] Starting
12:51:53,991 INFO  [MainDeployer] Starting deployment of package: file:/C:/users/kosulin/jboss/server/taxgard/farm/taxgard.ear
12:51:54,011 INFO  [AbstractDeploymentScanner$ScannerThread] Running
12:51:54,291 INFO  [EARDeployer] Init J2EE application: file:/C:/users/kosulin/jboss/server/taxgard/farm/taxgard.ear
12:51:54,742 INFO  [MainDeployer] deployment waiting for deployer: file:/C:/users/kosulin/jboss/server/taxgard/tmp/deploy/server/taxgard/farm/taxgard.ear/59.taxgard.ear-contents/process1099-ejb.jar
12:51:54,822 INFO  [MainDeployer] deployment waiting for deployer: file:/C:/users/kosulin/jboss/server/taxgard/tmp/deploy/server/taxgard/farm/taxgard.ear/59.taxgard.ear-contents/tte-ejb.jar
12:51:54,832 INFO  [MainDeployer] deployment waiting for deployer: file:/C:/users/kosulin/jboss/server/taxgard/tmp/deploy/server/taxgard/farm/taxgard.ear/59.taxgard.ear-contents/sme-ejb.jar
12:51:54,842 INFO  [MainDeployer] deployment waiting for deployer: file:/C:/users/kosulin/jboss/server/taxgard/tmp/deploy/server/taxgard/farm/taxgard.ear/59.taxgard.ear-contents/ahe-ejb.jar
12:51:55,723 INFO  [MainDeployer] Starting deployment of package: file:/C:/users/kosulin/jboss/server/taxgard/tmp/deploy/server/taxgard/farm/taxgard.ear/59.taxgard.ear-contents/taxgard-commons.jar
12:51:55,743 INFO  [MainDeployer] Deployed package: file:/C:/users/kosulin/jboss/server/taxgard/tmp/deploy/server/taxgard/farm/taxgard.ear/59.taxgard.ear-contents/taxgard-commons.jar
12:51:55,813 INFO  [MainDeployer] Package: file:/C:/users/kosulin/jboss/server/taxgard/tmp/deploy/server/taxgard/farm/taxgard.ear/59.taxgard.ear-contents/taxgard-commons.jar is already deployed
12:51:56,745 INFO  [jbossweb] Registered jboss.web:Jetty=0,JBossWebApplicationContext=2,context=/taxgard
12:51:56,915 INFO  [jbossweb] Extract jar:file:/C:/users/kosulin/jboss/server/taxgard/tmp/deploy/server/taxgard/farm/taxgard.ear/59.taxgard.ear-contents/gui.war!/ to C:\DOCUME~1\kosulin\LOCALS~1\Temp\Jetty_0_0_0_0_8443__taxgard\webapp
12:51:59,188 INFO  [JBossWebApplicationContext#/taxgard] using Distributable HttpSession Manager: org.mortbay.j2ee.session.Manager@cd927d
12:51:59,829 INFO  [jbossweb] Stopped WebApplicationContext[/taxgard,Table Explorer]
12:51:59,839 INFO  [jbossweb] Deregister jboss.web:Jetty=0,JBossWebApplicationContext=2,context=/taxgard
12:51:59,839 INFO  [jbossweb] Successfully undeployed file:/C:/users/kosulin/jboss/server/taxgard/tmp/deploy/server/taxgard/farm/taxgard.ear/59.taxgard.ear-contents/gui.war
12:51:59,950 ERROR [FarmMemberService] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@6ed1a399{ url=file:/C:/users/kosulin/jboss/server/taxgard/farm/taxgard.ear, deployedLastModified=0 }
org.jboss.deployment.DeploymentException: ejb-local-ref: ejb/taxgard/TransTableExplorerLocal, target not found, add valid ejb-link; - nested throwable: (javax.naming.NamingException: ejb-local-ref: ejb/taxgard/TransTableExplorerLocal, target not found, add valid ejb-link)
	at org.jboss.jetty.Jetty.deploy(Jetty.java:436)
	at org.jboss.jetty.JettyService.performDeploy(JettyService.java:243)
	at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
	at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
	at org.jboss.deployment.MainDeployer.start(MainDeployer.java:799)
	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621)
	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585)
	at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
	at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
	at $Proxy11.deploy(Unknown Source)
	at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
	at org.jboss.ha.framework.server.FarmMemberService.deploy(FarmMemberService.java:345)
	at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:656)
	at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
	at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:212)
	at org.jboss.ha.framework.server.FarmMemberService.startService(FarmMemberService.java:125)
	at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
	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 org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
	at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
	at $Proxy5.start(Unknown Source)
	at org.jboss.system.ServiceController.start(ServiceController.java:398)
	at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
	at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
	at $Proxy3.start(Unknown Source)
	at org.jboss.deployment.SARDeployer.start(SARDeployer.java:249)
	at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621)
	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585)
	at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
	at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
	at $Proxy4.deploy(Unknown Source)
	at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
	at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:656)
	at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
	at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:261)
	at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
	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 org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
	at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
	at $Proxy0.start(Unknown Source)
	at org.jboss.system.ServiceController.start(ServiceController.java:398)
	at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
	at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
	at $Proxy3.start(Unknown Source)
	at org.jboss.deployment.SARDeployer.start(SARDeployer.java:249)
	at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621)
	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585)
	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:569)
	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 org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
	at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:324)
	at org.jboss.system.server.ServerImpl.start(ServerImpl.java:221)
	at org.jboss.Main.boot(Main.java:148)
	at org.jboss.Main$1.run(Main.java:381)
	at java.lang.Thread.run(Thread.java:536)
Caused by: javax.naming.NamingException: ejb-local-ref: ejb/taxgard/TransTableExplorerLocal, target not found, add valid ejb-link
	at org.jboss.web.AbstractWebContainer.linkEjbLocalRefs(AbstractWebContainer.java:652)
	at org.jboss.web.AbstractWebContainer.parseWebAppDescriptors(AbstractWebContainer.java:462)
	at org.jboss.web.AbstractWebContainer$DescriptorParser.parseWebAppDescriptors(AbstractWebContainer.java:954)
	at org.jboss.jetty.JBossWebApplicationContext.setUpENC(JBossWebApplicationContext.java:310)
	at org.jboss.jetty.JBossWebApplicationContext.startHandlers(JBossWebApplicationContext.java:272)
	at org.mortbay.http.HttpContext.start(HttpContext.java:1763)
	at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:471)
	at org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.java:85)
	at org.jboss.jetty.Jetty.deploy(Jetty.java:414)
	... 84 more

<skip>

12:52:21,061 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
  <none>
Incompletely deployed packages:
[org.jboss.deployment.DeploymentInfo@6ed1a399 { url=file:/C:/users/kosulin/jboss/server/taxgard/farm/taxgard.ear }
  deployer: org.jboss.deployment.EARDeployer@61f533
  status: Deployment FAILED reason: ejb-local-ref: ejb/taxgard/TransTableExplorerLocal, target not found, add valid ejb-link; - nested throwable: (javax.naming.NamingException: ejb-local-ref: ejb/taxgard/TransTableExplorerLocal, target not found, add valid ejb-link)
  state: FAILED
  watch: file:/C:/users/kosulin/jboss/server/taxgard/farm/taxgard.ear
  lastDeployed: 1042048315823
  lastModified: 1042048314161
  mbeans:
]MBeans waiting for classes:
  <none>
MBeans waiting for other MBeans:
  <none>

<skip>



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to