Martin Malina created JBIDE-13135:
-------------------------------------
Summary: Remote System Deployment doesn't work for EAP 5.1 from Windows
to Linux
Key: JBIDE-13135
URL:
https://issues.jboss.org/browse/JBIDE-13135
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: JBossAS/Servers
Affects Versions: 4.0.0.CR1
Environment: Windows XP 32 bit
JBoss EAP 5.1.1
JBDS 6.0.0.CR1 B111
Reporter: Martin Malina
Assignee: Rob Stryker
Fix For: 4.0.0.CR1
While verifying JBIDE-11681 I also tried to set up a remote EAP 5.1 from Windows to Linux.
Server start fails.
The problem is that '\' is used in many places of the start command.
This is what ps displays:
{code}
16628 pts/1 Sl 0:00 \_ java -Dprogram.name=JBossTools: jboss-eap-5.1.1
Runtime -server -Xms256m -Xmx768m -XX:MaxPermSize=256m
-Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
-Djava.endorsed.dirs=\home\rasp\jbossqa\runtimes\jboss-eap-5.1.1\jboss-as\lib\endorsed
-Djava.library.path=\home\rasp\jbossqa\runtimes\jboss-eap-5.1.1\jboss-as\bin\native
-classpath /home/rasp/jbossqa/runtimes/jboss-eap-5.1.1/jboss-as/bin/run.jar org.jboss.Main
--configuration=default -b
MARVIN.BRQ.REDHAT.COM
-Djboss.server.base.url=file:homeraspjbossqaruntimesjboss-eap-5.1.1jboss-asserver
{code}
When I tried to run this command manually, this is what I got:
{code}
15:22:05,089 INFO [ServerImpl] Starting JBoss (Microcontainer)...
15:22:05,090 INFO [ServerImpl] Release ID: JBoss [EAP] 5.1.1 (build: SVNTag=JBPAPP_5_1_1
date=201105171607)
15:22:05,091 INFO [ServerImpl] Bootstrap URL: null
15:22:05,091 INFO [ServerImpl] Home Dir:
/home/rasp/jbossqa/runtimes/jboss-eap-5.1.1/jboss-as
15:22:05,091 INFO [ServerImpl] Home URL:
file:/home/rasp/jbossqa/runtimes/jboss-eap-5.1.1/jboss-as/
15:22:05,091 INFO [ServerImpl] Library URL:
file:/home/rasp/jbossqa/runtimes/jboss-eap-5.1.1/jboss-as/lib/
15:22:05,092 INFO [ServerImpl] Patch URL: null
15:22:05,092 INFO [ServerImpl] Common Base URL:
file:/home/rasp/jbossqa/runtimes/jboss-eap-5.1.1/jboss-as/common/
15:22:05,102 INFO [ServerImpl] Common Library URL:
file:/home/rasp/jbossqa/runtimes/jboss-eap-5.1.1/jboss-as/common/lib/
15:22:05,102 INFO [ServerImpl] Server Name: default
15:22:05,102 INFO [ServerImpl] Server Base Dir:
/home/rasp/jbossqa/runtimes/jboss-eap-5.1.1/jboss-as/server
15:22:05,103 INFO [ServerImpl] Server Base URL:
file:homeraspjbossqaruntimesjboss-eap-5.1.1jboss-asserver/
15:22:05,103 INFO [ServerImpl] Server Config URL:
file:homeraspjbossqaruntimesjboss-eap-5.1.1jboss-asserver/default/conf/
15:22:05,103 INFO [ServerImpl] Server Home Dir:
/home/rasp/jbossqa/runtimes/jboss-eap-5.1.1/jboss-as/server/default
15:22:05,103 INFO [ServerImpl] Server Home URL:
file:homeraspjbossqaruntimesjboss-eap-5.1.1jboss-asserver/default/
15:22:05,103 INFO [ServerImpl] Server Data Dir:
/home/rasp/jbossqa/runtimes/jboss-eap-5.1.1/jboss-as/server/default/data
15:22:05,103 INFO [ServerImpl] Server Library URL:
file:homeraspjbossqaruntimesjboss-eap-5.1.1jboss-asserver/default/lib/
15:22:05,103 INFO [ServerImpl] Server Log Dir:
/home/rasp/jbossqa/runtimes/jboss-eap-5.1.1/jboss-as/server/default/log
15:22:05,104 INFO [ServerImpl] Server Native Dir:
/home/rasp/jbossqa/runtimes/jboss-eap-5.1.1/jboss-as/server/default/tmp/native
15:22:05,104 INFO [ServerImpl] Server Temp Dir:
/home/rasp/jbossqa/runtimes/jboss-eap-5.1.1/jboss-as/server/default/tmp
15:22:05,104 INFO [ServerImpl] Server Temp Deploy Dir:
/home/rasp/jbossqa/runtimes/jboss-eap-5.1.1/jboss-as/server/default/tmp/deploy
15:22:08,410 INFO [ServerImpl] Starting Microcontainer,
bootstrapURL=file:homeraspjbossqaruntimesjboss-eap-5.1.1jboss-asserver/default/conf/bootstrap.xml
Failed to boot JBoss:
java.lang.RuntimeException: Error unmarshalling
file:homeraspjbossqaruntimesjboss-eap-5.1.1jboss-asserver/default/conf/bootstrap.xml
at org.jboss.bootstrap.xml.BootstrapParser.parse(BootstrapParser.java:60)
at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:123)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:679)
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source:
file:homeraspjbossqaruntimesjboss-eap-5.1.1jboss-asserver/default/conf/bootstrap.xml
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:177)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:119)
at org.jboss.bootstrap.xml.BootstrapParser.parse(BootstrapParser.java:53)
... 5 more
Caused by: java.io.FileNotFoundException:
homeraspjbossqaruntimesjboss-eap-5.1.1jboss-asserver/default/conf/bootstrap.xml
at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:105)
at
org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:112)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:173)
... 7 more
15:22:09,540 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
15:22:09,619 INFO [ServerImpl] Shutdown complete
Shutdown complete
Halting VM
{code}
As you can see the backslashes get removed and so the paths are wrong.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira