Bugs item #580594, was opened at 2002-07-12 07:12
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=580594&group_id=22866
Category: JBossServer
Group: v3.0 Rabbit Hole
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Scott M Stark (starksm)
Assigned to: Scott M Stark (starksm)
Summary: Encoded URLs are not handled correctly
Initial Comment:
Run with JDK 1.4 in a directory with spaces and the
resulting encoded URLs cause the startup to fail.
bin 635>run.bat
==========================================
=====================================
.
JBoss Bootstrap Environment
.
JBOSS_HOME: g:\JBossReleases\Space
Here\jboss-3.0.0\bin\..
.
JAVA: D:/usr/local/Java/j2sdk1.4.0\bin\java
.
JAVA_OPTS: -Dprogram.name=run.bat
.
CLASSPATH: ;D:/usr/local/Java/j2sdk1.4.0
\lib\tools.jar;g:\JBossReleases\Space
Here\jboss-3.0.0\bin\run.jar
.
==========================================
=====================================
.
07:23:06,781 INFO [Server] JBoss Release: JBoss-
3.0.0 CVSTag=JBoss_3_0_0
07:23:06,828 INFO [Server] Home Dir:
G:\JBossReleases\Space%20Here\jboss-3.0.0
07:23:06,828 INFO [Server] Home URL:
file:/G:/JBossReleases/Space%20Here/jboss-
3.0.0/
07:23:06,828 INFO [Server] Library URL:
file:/G:/JBossReleases/Space%20Here/jbo
ss-3.0.0/lib/
07:23:06,828 INFO [Server] Patch URL: null
07:23:06,828 INFO [Server] Server Name: default
07:23:06,828 INFO [Server] Server Home Dir:
G:\JBossReleases\Space%20Here\jboss
-3.0.0\server\default
07:23:06,828 INFO [Server] Server Home URL:
file:/G:/JBossReleases/Space%20Here
/jboss-3.0.0/server/default/
07:23:06,843 INFO [Server] Server Data Dir:
G:\JBossReleases\Space%20Here\jboss
-3.0.0\server\default\db
07:23:06,843 INFO [Server] Server Temp Dir:
G:\JBossReleases\Space%20Here\jboss
-3.0.0\server\default\tmp
07:23:06,843 INFO [Server] Server Config URL:
file:/G:/JBossReleases/Space%20He
re/jboss-3.0.0/server/default/conf/
07:23:06,843 INFO [Server] Server Library URL:
file:/G:/JBossReleases/Space%20H
ere/jboss-3.0.0/server/default/lib/
07:23:06,859 INFO [Server] Root Deployemnt
Filename: jboss-service.xml
07:23:06,859 INFO [Server] Starting General Purpose
Architecture (GPA)...
07:23:07,406 INFO [ServerInfo] Java version:
1.4.0,Sun Microsystems Inc.
07:23:07,406 INFO [ServerInfo] Java VM: Java
HotSpot(TM) Client VM 1.4.0-b92,Su
n Microsystems Inc.
07:23:07,406 INFO [ServerInfo] OS-System: Windows
2000 5.0,x86
07:23:07,500 INFO [ServiceController] Controller
MBean online
07:23:07,687 INFO [MainDeployer] Creating
07:23:07,750 INFO [MainDeployer] Created
07:23:07,750 INFO [MainDeployer] Starting
07:23:07,750 INFO [MainDeployer] Started
07:23:07,781 INFO [JARDeployer] Creating
07:23:07,796 INFO [JARDeployer] Created
07:23:07,796 INFO [JARDeployer] Starting
07:23:07,796 INFO [MainDeployer] Adding deployer:
org.jboss.deployment.JARDeplo
yer@fec107
07:23:07,796 INFO [JARDeployer] Started
07:23:07,828 INFO [SARDeployer] Creating
07:23:07,828 INFO [SARDeployer] Created
07:23:07,828 INFO [SARDeployer] Starting
07:23:07,828 INFO [MainDeployer] Adding deployer:
org.jboss.deployment.SARDeplo
yer@64f6cd
07:23:07,921 INFO [SARDeployer] Started
07:23:07,921 INFO [Server] Core system initialized
07:23:07,937 ERROR [Server] start failed
org.jboss.deployment.DeploymentException: url
file:/G:/JBossReleases/Space%20Her
e/jboss-3.0.0/server/default/conf/jboss-service.xml
could not be opened, does it
exist?
at org.jboss.deployment.DeploymentInfo.<init>
(DeploymentInfo.java:172)
at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:480)
at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:465)
at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke
(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.inv
oke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:491)
at org.jboss.system.server.ServerImpl.doStart
(ServerImpl.java:314)
at org.jboss.system.server.ServerImpl.start
(ServerImpl.java:216)
at org.jboss.Main.boot(Main.java:142)
at org.jboss.Main$1.run(Main.java:375)
at java.lang.Thread.run(Thread.java:536)
org.jboss.deployment.DeploymentException: url
file:/G:/JBossReleases/Space%20Her
e/jboss-3.0.0/server/default/conf/jboss-service.xml
could not be opened, does it
exist?
at org.jboss.deployment.DeploymentInfo.<init>
(DeploymentInfo.java:172)
at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:480)
at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:465)
at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke
(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.inv
oke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:491)
at org.jboss.system.server.ServerImpl.doStart
(ServerImpl.java:314)
at org.jboss.system.server.ServerImpl.start
(ServerImpl.java:216)
at org.jboss.Main.boot(Main.java:142)
at org.jboss.Main$1.run(Main.java:375)
at java.lang.Thread.run(Thread.java:536)
07:23:08,031 INFO [Server] undeploying all packages
07:23:08,031 INFO [MainDeployer] Undeployed 0
deployed packages
07:23:08,031 INFO [Server] Shutting down all services
Shutting down
07:23:08,031 INFO [ServiceController] Stopping 3
services
07:23:08,031 INFO [SARDeployer] Stopping
07:23:08,031 INFO [MainDeployer] Removing
deployer: org.jboss.deployment.SARDep
loyer@64f6cd
07:23:08,046 INFO [SARDeployer] Stopped
07:23:08,046 INFO [JARDeployer] Stopping
07:23:08,046 INFO [JARDeployer] Stopped
07:23:08,046 INFO [MainDeployer] Stopping
07:23:08,046 INFO [MainDeployer] Stopped
07:23:08,046 INFO [ServiceController] Stopped 3
services
07:23:08,062 INFO [Server] Shutdown complete
Shutdown complete
----------------------------------------------------------------------
>Comment By: Scott M Stark (starksm)
Date: 2002-09-28 22:10
Message:
Logged In: YES
user_id=175228
The workaround has been added for the 3.0.3 release.
----------------------------------------------------------------------
Comment By: Archimedes Trajano (trajano)
Date: 2002-09-24 23:07
Message:
Logged In: YES
user_id=55322
URLDecode works here too - keeps the code compatible with
JRE1.3 and JRE1.4
>From the bug note
----------------------------------------------------------------------
Comment By: Archimedes Trajano (trajano)
Date: 2002-09-24 23:03
Message:
Logged In: YES
user_id=55322
This seems to be the workaround
No, there is a workaround. Instead of doing this:
FileInputStream fis = new FileInputStream(url.getFile());
you can force any %-escaped characters to be decoded by
first converting the URL to a URI, and then using the path
component of the URI as the filename:
URI uri = new URI(url.toString());
FileInputStream fis = new FileInputStream(uri.getPath());
Kinda kludgy just wondering if it is implemented in JBoss 3.2
beta.
----------------------------------------------------------------------
Comment By: Archimedes Trajano (trajano)
Date: 2002-09-24 22:48
Message:
Logged In: YES
user_id=55322
Found it, -Djboss.home.dir=C:\Program Files\JBoss-3.0.2,
but it still does not work.
I also tried adding
-Djboss.home.url=file:/C:/Progra~1/JBoss-3.0.2
-Djboss.lib.url=file:/C:/Progra~1/JBoss-3.0.2/lib
No luck still.
----------------------------------------------------------------------
Comment By: Archimedes Trajano (trajano)
Date: 2002-09-24 22:15
Message:
Logged In: YES
user_id=55322
Is there any way to change the Home Dir by using a -
Ddir.home=C:\Progra~1\Jboss-3.0.2 directive?
----------------------------------------------------------------------
Comment By: Scott M Stark (starksm)
Date: 2002-07-12 08:59
Message:
Logged In: YES
user_id=175228
This is caused by a JDK 1.4 bug(or feature) documented
here
http://developer.java.sun.com/developer/bugParade/bugs/44
66485.html
The issue is that URL.getFile() now return a URL encoded
string and this is not valid input to a File constructor when the
encoded format includes escaped characters.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=580594&group_id=22866
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development