Hi Mike,

Seems a little strange, looks like the TransactionManager isn't bound at java:/TransactionManager.  The JBoss deployer assumes this location I haven't tried it on 4.0.3 though I can give that a go now.

You can always override the JNDI location of the TransactionManager by unzipping the SAR file and deploying it exploded, as in creating a directory under deploy called jboss-deployer-1.0.sar with the contents of the SAR inside.  You should find in there META-INF/jboss-service.xml,  you should be able to add the transaction manager as an attribute:

<?xml version="1.0" encoding="UTF-8"?>

<!-- The J2EE application client deployer service
-->
<server>
    <mbean code="org.servicemix.jboss.deployment.JBIDeployer"
        name="org.servicemix:service=Deployer">
        <depends optional-attribute-name="JBIContainer">
            org.servicemix:service=JBIService
        </depends>
    </mbean>

    <mbean code="org.servicemix.jboss.deployment.JBIService"
        name="org.servicemix:service=JBIService">
        <attribute name="TransactionManager">java:/TransactionManager</attribute>      
    </mbean>
</server>

Cheers

Philip

On 9/29/05, Mike Alen <[EMAIL PROTECTED]> wrote:
Hi!

I'm trying to deploy servicemix in JBoss.

I've done the following:
- Downloaded jboss-deployer-1.0-SNAPSHOT.sar from
http://www.servicemix.org/JBoss+Deployer
to jboss-4.0.3RC2\server\default\deploy directory.
- Renamed my servicemix.xml file to file-sm.xml and placed it in the
jboss-4.0.3RC2\server\default\deploy directory.
- Changed property value to "false" for createMBeanServer in file-sm.xml.
- Started JBoss. On http://localhost:8080/jmx-console/ I see the following
when having filter *servicemix*:
org.servicemix
service=Deployer
service=JBIService

Problems:
- I have a NameNotFoundException and file-sm.xml is in
INIT_WAITING_DEPLOYER:
--------------------
18:50:23,749 WARN  [ServiceController] Problem starting service
org.servicemix:service=JBIService
javax.naming.NameNotFoundException: TransactionManager not bound
        at org.jnp.server.NamingServer.getBinding(NamingServer.java:491)
        at org.jnp.server.NamingServer.getBinding(NamingServer.java:499)
        at org.jnp.server.NamingServer.getObject(NamingServer.java:505)
        at org.jnp.server.NamingServer.lookup(NamingServer.java:278)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
        at javax.naming.InitialContext.lookup(InitialContext.java:351)
        at
org.servicemix.jboss.deployment.JBIService.startService (JBIService.java:181)
        at
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:287)
        at
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java :236)

        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)

cut

18:51:13,827 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- Packages waiting for a deployer ---
[EMAIL PROTECTED] {
url="">eploy/file-sm.xml }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/C:/Programs/jboss- 4.0.3RC2/server/default/deploy/file-sm.xml
  altDD: null
  lastDeployed: 1128012673811
  lastModified: 1128012673796
  mbeans:

cut
----------------------
I copied jar files from servicemix containing TransactionManager to
jboss-4.0.3RC2\server\default\lib.


Questions:
Has anyone else used the "jboss-deployer-1.0-SNAPSHOT.sar" downloadable from
http://www.servicemix.org/JBoss+Deployer ?
Or should I build a new one from the code in CVS?

What needs to be done to deploy servicemix in JBoss?

Versions:
JBoss: jboss-4.0.3RC2
servicemix: servicemix-1.0.1

Thanks in advance!

/Mike Alen

_________________________________________________________________
Auktioner: Tjäna en hacka på gamla prylar http://tradera.msn.se


Reply via email to