Hi Jeff,
Thank you very much for your response.
I am Jim Xu, one developer primarily working on the ServiceMix/JBOSS
integration process here at Tier1.
Our goal is to run ServiceMix inside JBOSS and we can deploy ServiceMix
Components (such as Drools, File, JMS, and BPEL) into the JBOSS, and
picked up by ServiceMix/JBIContainer and run there.
I work on PC (XP OS), and with maven 1.0, java JDK 1.5 and JBoss 4.0.2.
I download the latest source code from CVS:
cvs -d
:pserver:[EMAIL PROTECTED]:/home/projects/servicemix
/scm login.
Here are some problems if I could get some helps.
1.) Eclipse Plugin
a.)cd C:\eclipse\workspace\servicemix\tooling\eclipseplugin-plugin
maven plugin:install
this part works.
b.)
cd ../../base
maven eclipseplugin:generate
I got the build errors like:
.....
.....
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.472
sec
[junit] [ERROR] TEST
org.servicemix.jbi.management.ManagementAttributesTest
FAILED
[junit] Running org.servicemix.jbi.management.ManagementContextTest
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.272
sec
[junit] [ERROR] TEST
org.servicemix.jbi.management.ManagementContextTest FAI
LED
[junit] Running
org.servicemix.jbi.management.task.InstallComponentTaskTest
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.392
sec
[junit] [ERROR] TEST
org.servicemix.jbi.management.task.InstallComponentTask
Test FAILED
[junit] Running org.servicemix.jbi.management.task.JbiTaskTest
[junit] Tests run: 3, Failures: 0, Errors: 3, Time elapsed: 1.442
sec
[junit] [ERROR] TEST org.servicemix.jbi.management.task.JbiTaskTest
FAILED
[junit] Running org.servicemix.jbi.nmr.flow.jms.JMSFlowTest
[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 51.004
sec
[junit] [ERROR] TEST org.servicemix.jbi.nmr.flow.jms.JMSFlowTest
FAILED
[junit] Running org.servicemix.jbi.nmr.flow.seda.SedaFlowTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 2.003
sec
[junit] Running org.servicemix.jbi.nmr.flow.st.STFlowTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 2.023
sec
[junit] Running org.servicemix.remoting.RemoteServiceMixClientTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 20.289
sec
BUILD FAILED
File...... C:\Documents and
Settings\Tier1\.maven\cache\maven-test-plugin-1.6.2\
plugin.jelly
Element... fail
Line...... 181
Column.... 54
There were test failures.
Total time: 7 minutes 33 seconds
Finished at: Thu Sep 22 10:56:01 GMT-07:00 2005
So I just skip the unit test by doing:
C:\eclipse\workspace\servicemix\base>maven -Dmaven.test.skip=true
eclipseplugin:generate
And now it builds successfully and puts "eclipseplugin-plugin-0.1.jar"
into my maven 1.0/plugins dir.
2.) JBoss Deployer
a.)
cd "C:\eclipse\workspace\servicemix\tooling\maven-sar-plugin"
maven plugin:install
this part works, it puts "maven-sar-plugin-0.1.jar" into maven
1.0/plugins dir.
b.)
cd "C:\eclipse\workspace\servicemix\tooling\jboss-deployer"
maven sar:install
this part does work.
I got first error:
C:\eclipse\workspace\servicemix\tooling\jboss-deployer>maven
sar:install
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0
BUILD FAILED
File......
C:\eclipse\workspace\servicemix\tooling\jboss-deployer\maven.xml
Element... attainGoal
Line...... 4
Column.... 42
No goal [xdoclet:jmxdoclet]
Total time: 4 seconds
Finished at: Thu Sep 22 11:09:29 GMT-07:00 2005
So I comment out: <!-- <preGoal name="java:compile">
<attainGoal name="xdoclet:jmxdoclet" />
</preGoal>
-->
In the maven.xml build file, and rebuild it, I got the class not found
error:
java:compile:
[echo] Compiling to
C:\eclipse\workspace\servicemix\tooling\jboss-deployer/t
arget/classes
[javac] Compiling 2 source files to
C:\eclipse\workspace\servicemix\tooling\
jboss-deployer\target\classes
C:\eclipse\workspace\servicemix\tooling\jboss-deployer\src\main\java\org
\service
mix\jboss\deployment\JBIDeployer.java:39: cannot find symbol
symbol: class JBIDeployerMBean
JBIDeployerMBean {
^
C:\eclipse\workspace\servicemix\tooling\jboss-deployer\src\main\java\org
\service
mix\jboss\deployment\JBIService.java:40: cannot find symbol
symbol: class JBIServiceMBean
public class JBIService extends ServiceMBeanSupport implements
JBIServiceMBean {
^
2 errors
BUILD FAILED
File...... C:\Documents and
Settings\Tier1\.maven\cache\maven-java-plugin-1.4\pl
ugin.jelly
Element... ant:javac
Line...... 53
Column.... 48
Compile failed; see the compiler error output for details.
Total time: 5 seconds
Finished at: Thu Sep 22 11:11:32 GMT-07:00 2005
So I give up to build it myself and download the file
"jboss-deployer-1.0-SNAPSHOT.sar" and put it into the jboss deploy area
"C:\jboss-4.0.2\server\default\deploy".
Start Jboss, it can start the servivemix and I can see the message like:
11:22:28,859 INFO [JBIContainer] ServiceMix JBI Container
(http://servicemix.org/) name: defaultJBI running version: null
And also I can review "org.servicemix" info from
http://localhost:8080/jmx-console/.
c.)now I try to deploy one service component like example "vfs-sm.xml"
into "C:\jboss-4.0.2\server\default\deploy".
Before doing it, I copied all the library files from servicemix lib and
lib/optional into the C:\jboss-4.0.2\server\default\deploy\lib.
Now I get the message like:
.....
11:22:42,379 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
11:22:42,399 INFO [JkMain] Jk running ID=0 time=0/60 config=null
11:22:42,429 INFO [Server] JBoss (MX MicroKernel) [4.0.2 (build:
CVSTag=JBoss_4
_0_2 date=200505022023)] Started in 29s:603ms
11:23:12,051 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- Packages waiting for a deployer ---
[EMAIL PROTECTED] {
url=file:/C:/jboss-4.0.2/server/d
efault/deploy/vfs_sm.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.2/server/default/deploy/vfs_sm.xml
altDD: null
lastDeployed: 1127413392051
lastModified: 1127413392051
mbeans:
--- Incompletely deployed packages ---
[EMAIL PROTECTED] {
url=file:/C:/jboss-4.0.2/server/default/deploy/vfs_sm.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.2/server/default/deploy/vfs_sm.xml
altDD: null
lastDeployed: 1127413392051
lastModified: 1127413392051
mbeans:
it looks servicemix does not pick up.
3.)WAR Deployment
a.)
cd tooling/servicemix-web
maven run
this part works and I can go to http://localhost:8080/ to see the
management console.
b.) "maven war" will generate the "servicemix-web.war".
c.) if I put this war file into jboss deploy area, I will get error:
--- MBeans waiting for other MBeans ---
ObjectName: jboss.web.deployment:war=servicemix-web.war,id=-542944475
State: FAILED
Reason: org.jboss.deployment.DeploymentException: URL
file:/C:/jboss-4.0.2/ser
ver/default/tmp/deploy/tmp42257servicemix-web-exp.war/ deployment failed
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.web.deployment:war=servicemix-web.war,id=-542944475
State: FAILED
Reason: org.jboss.deployment.DeploymentException: URL
file:/C:/jboss-4.0.2/ser
ver/default/tmp/deploy/tmp42257servicemix-web-exp.war/ deployment failed
11:37:15,845 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on
http-0.0.0.0-808
0
11:37:16,045 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
11:37:16,065 INFO [JkMain] Jk running ID=0 time=0/80 config=null
11:37:16,075 INFO [Server] JBoss (MX MicroKernel) [4.0.2 (build:
CVSTag=JBoss_4
_0_2 date=200505022023)] Started in 44s:734ms
11:37:24,016 INFO [WebappClassLoader] Illegal access: this web
application inst
ance has been stopped already. Could not load
META-INF/services/org.apache.xerc
es.xni.parser.XMLParserConfiguration. The eventual following stack
trace is cau
sed by an error thrown for debugging purposes as well as to attempt to
terminate
the thread which caused the illegal access, and has no functional
impact.
11:37:24,016 INFO [WebappClassLoader] Illegal access: this web
application inst
ance has been stopped already. Could not load
org.apache.xerces.parsers.XML11Co
nfiguration. The eventual following stack trace is caused by an error
thrown fo
r debugging purposes as well as to attempt to terminate the thread which
caused
the illegal access, and has no functional impact.
4.)JConsole
I can use JConsole to access servicemix jmx information through pure
servicemix launch but not from JBoss/Servicemix launch (I have no
information on the connection URL, always get "connect failed" error).
Sorry to dump you so much. If you could help us to resolve problem 2.)
part c.), that will be really great so we can continue our effort.
Any examples or suggestions could be helpful to us.
Thank you again for your time and helps.
Regards,
Jim Xu
-----Original Message-----
From: Jeff Genender [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 22, 2005 10:13 AM
To: [email protected]
Subject: Re: [servicemix-dev] Deploying ServiceMix inside of JBoss
Always happy to help a fellow Coloradoan ;-)
Please explain the issue you are having...what are you doing, when does
it
happen, and do you have a stack trace?
Thanks,
Jeff Genender
> Hello,
>
>
>
> We are an integration company that is evaluating the use of ServiceMix
> as a primary
>
> toolset in our SOA/ESB strategy.
>
>
>
> We are attempting to connect to ServiceMix running inside of JBoss
v4.2
> and we
>
> experience a connection failure. We also have looked at using Spring
to
> configure
>
> components of the JBI container. We have researched these issues on
the
> WIKI as well
>
> as the newsgroups. Understanding that this is early adoption time,
we'd
> like to use ServiceMix to
>
> evangelize the open source SOA strategy. Can anyone take a few minutes
> and help us get on the right
>
> path?
>
>
>
> Thanks in advance,
>
>
>
> Dan Burcher
>
> Dir / Enterprise Integration
>
> Tier1 Innovation
>
> 303.909.9336
>
>
>
>