We're updating the issue view to help you get more done. 

Incorrect Home URL passed to JBoss 3.x

Description

Jboss refuses to start, throwing a MalformedURLException. I think the problem arises because Cargo passes an incorrect jboss.server.home.url property to Jboss. The property passed to Jboss is D:\work\infrared2\infrared2\maven-ired\acceptance-agent\target\myJboss\config, which is an invalid URL.

--------------------------------------- My container properties file:
--------------------------------------- cargo.container.myJboss.containerId = jboss3x
cargo.container.myJboss.homeDir = D:/software/jboss-3.2.7
cargo.container.myJboss.config.type = standalone
cargo.container.myJboss.config.dir = ${maven.build.dir}/myJboss/config
cargo.container.myJboss.config.standalone.servlet.port = 8380
cargo.container.myJboss.config.standalone.logging = high
cargo.container.myJboss.start.output = ${maven.build.dir}/myJboss/logs/jboss-start.log
cargo.container.myJboss.start.log = ${maven.build.dir}/myJboss/logs/cargo-start.log
cargo.container.myJboss.stop.output = ${maven.build.dir}/myJboss/logs/jboss-stop.log
cargo.container.myJboss.stop.log = ${maven.build.dir}/myJboss/logs/cargo-stop.log

------------------------ Jboss log file:
------------------------ 21:22:02,446 INFO [Server] Starting JBoss (MX MicroKernel)...
21:22:02,446 INFO [Server] Release ID: JBoss [WonderLand] 3.2.7 (build: CVSTag=JBoss_3_2_7 date=200501280217)
21:22:02,446 INFO [Server] Home Dir: D:\software\jboss-3.2.7
21:22:02,446 INFO [Server] Home URL: file:/D:/software/jboss-3.2.7/
21:22:02,46Failed to boot JBoss:2 INFO [Server] Library URL: file:/D:/software/jboss-3.2.7/lib/
21:22:02,462 INFO [Server] Patch URL: null
21:22:02,462 INFO
org.jboss.util.NestedRuntimeException: unknown protocol: d; - nested throwable: (java.net.MalformedURLException: unknown proto [Server] Server Name: jboss3x
21:22:02,462 INFO [Server] Server Home Dir: D:\work\infrared2\infrared2\maven-ired\acceptance-col: d)
at org.jboss.system.server.ServerConfigImpl.getServerHomeURL(ServerConfigImpl.java:333)
at org.jboss.system.server.Sagent\target\myJboss\config
erverImpl.doInit(ServerImpl.java:187)
at org.jboss.system.server.ServerImpl.init(ServerImpl.java:127)
at org.jboss.Main.boot(Main.java:186)
at org.jboss.Main$1.run(Main.java:480)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.net.MalformedURLException: unknown protocol: d
at java.net.URL.<init>(URL.java:544)
at java.net.URL.<init>(URL.java:434)
at java.net.URL.<init>(URL.java:383)
at org.jboss.system.server.ServerConfigImpl.getURL(ServerConfigImpl.java:572)
at org.jboss.system.server.ServerConfigImpl.getServerHomeURL(ServerConfigImpl.java:324)
... 5 more
------------------------ Cargo log file:
------------------------ [21:22:02.087][info][Boss3xLocalContainer] Parsed JBoss version = [3.2.7]
[21:22:02.087][info][Boss3xLocalContainer] JBoss 3.2.7 starting...
[21:22:02.149][dbug][Boss3xLocalContainer] Executing 'C:\j2sdk1.4.2_02\jre\bin\java.exe' with arguments:
'-Xms128m'
'-Xmx512m'
'-Djava.endorsed.dirs=D:\software\jboss-3.2.7\lib\endorsed'
'-Djboss.home.dir=D:\software\jboss-3.2.7'
'-Djboss.server.home.dir=D:\work\infrared2\infrared2\maven-ired\acceptance-agent\target\myJboss\config'
'-Djboss.server.home.url=D:\work\infrared2\infrared2\maven-ired\acceptance-agent\target\myJboss\config'
'-Djboss.server.name=jboss3x'
'-Djboss.server.lib.url=file:/D:/software/jboss-3.2.7/server/default/lib/'
'-classpath'
'D:\software\jboss-3.2.7\bin\run.jar;C:\j2sdk1.4.2_02\lib\tools.jar'
'org.jboss.Main'
'--configuration=jboss3x'

The ' characters around the executable and arguments are
not part of the command.

[21:22:02.149][dbug][Boss3xLocalContainer] Project base dir set to: D:\work\infrared2\infrared2\maven-ired\acceptance-agent
[21:22:02.149][dbug][Boss3xLocalContainer] Execute:Java13CommandLauncher: Executing 'C:\j2sdk1.4.2_02\jre\bin\java.exe' with arguments:
'-Xms128m'
'-Xmx512m'
'-Djava.endorsed.dirs=D:\software\jboss-3.2.7\lib\endorsed'
'-Djboss.home.dir=D:\software\jboss-3.2.7'
'-Djboss.server.home.dir=D:\work\infrared2\infrared2\maven-ired\acceptance-agent\target\myJboss\config'
'-Djboss.server.home.url=D:\work\infrared2\infrared2\maven-ired\acceptance-agent\target\myJboss\config'
'-Djboss.server.name=jboss3x'
'-Djboss.server.lib.url=file:/D:/software/jboss-3.2.7/server/default/lib/'
'-classpath'
'D:\software\jboss-3.2.7\bin\run.jar;C:\j2sdk1.4.2_02\lib\tools.jar'
'org.jboss.Main'
'--configuration=jboss3x'

The ' characters around the executable and arguments are
not part of the command.

Status

Assignee

I Nyoman Winardi

Reporter

Binil Thomas

Components

Fix versions

Affects versions

0.7

Priority

Major