2 Replies Latest reply on Mar 22, 2007 12:48 PM by Darren Jones

    JBoss 4.2.0.CR1 problem installing into directory containing

    Darren Jones Newbie

      JDK: 1.6.0
      OS: Windows XP

      If I unzip the JBoss 4.2.0.CR1 zip into a directory with a space character in it, e.g. C:\Program Files, and execute bin/run.bat right away, the server fails to start up reporting an exception ultimately caused by:

      java.net.URISyntaxException: Illegal character in path at index 16: file:/C:/Program Files/jboss-4.2.0.CR1/server/default/deploy/jbossws.sar/jaxb-api.jar

      If I unzip into "C:\Code" JBoss starts up perfectly.

      The same issue seems to have been reported against version 5.0.0.Beta:

      http://jira.jboss.com/jira/browse/JBAS-3866

      Please advise on confirming this issue and the procedure for getting this fix merged into 4.2.0?

      Thanks.

      Here's the start of the JBoss trace with the full exception in it:

      C:\Program Files\jboss-4.2.0.CR1\bin>run
      ===============================================================================

      JBoss Bootstrap Environment

      JBOSS_HOME: C:\Program Files\jboss-4.2.0.CR1

      JAVA: C:\Program Files\Java\jdk1.6.0\bin\java

      JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.ser
      ver.gcInterval=3600000

      CLASSPATH: C:\Program Files\Java\jdk1.6.0\lib\tools.jar;C:\Program Files\jboss-4.2.0.CR1\bin\run.jar

      ===============================================================================

      08:53:57,191 INFO [Server] Starting JBoss (MX MicroKernel)...
      08:53:57,191 INFO [Server] Release ID: JBoss [Trinity] 4.2.0.CR1 (build: SVNTag=JBoss_4_2_0_CR1 date=200703051212)
      08:53:57,191 INFO [Server] Home Dir: C:\Program Files\jboss-4.2.0.CR1
      08:53:57,191 INFO [Server] Home URL: file:/C:/Program Files/jboss-4.2.0.CR1/
      08:53:57,191 INFO [Server] Patch URL: null
      08:53:57,191 INFO [Server] Server Name: default
      08:53:57,191 INFO [Server] Server Home Dir: C:\Program Files\jboss-4.2.0.CR1\server\default
      08:53:57,191 INFO [Server] Server Home URL: file:/C:/Program Files/jboss-4.2.0.CR1/server/default/
      08:53:57,191 INFO [Server] Server Log Dir: C:\Program Files\jboss-4.2.0.CR1\server\default\log
      08:53:57,191 INFO [Server] Server Temp Dir: C:\Program Files\jboss-4.2.0.CR1\server\default\tmp
      08:53:57,191 INFO [Server] Root Deployment Filename: jboss-service.xml
      08:53:57,426 INFO [ServerInfo] Java version: 1.6.0,Sun Microsystems Inc.
      08:53:57,426 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.6.0-b105,Sun Microsystems Inc.
      08:53:57,426 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
      08:53:57,754 INFO [Server] Core system initialized
      08:53:59,441 INFO [WebService] Using RMI server codebase: http://localhost:8083/
      08:53:59,441 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
      08:53:59,785 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
      08:53:59,785 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
      08:53:59,925 INFO [TransactionManagerService] Starting recovery manager
      08:53:59,988 INFO [TransactionManagerService] Recovery manager started
      08:53:59,988 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
      08:54:02,050 INFO [EJB3Deployer] Starting java:comp multiplexer
      08:54:02,425 ERROR [MainDeployer] Could not initialise deployment: file:/C:/Program Files/jboss-4.2.0.CR1/server/default
      /deploy/jbossws.sar/
      org.jboss.deployment.DeploymentException: exception in init of file:/C:/Program Files/jboss-4.2.0.CR1/server/default/dep
      loy/jbossws.sar/jaxb-api.jar; - nested throwable: (java.lang.RuntimeException: Not a valid URL: file:/C:/Program Files/j
      boss-4.2.0.CR1/server/default/deploy/jbossws.sar/jaxb-api.jar)
      at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:901)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:895)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy9.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:26
      3)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      at org.jboss.Main.boot(Main.java:200)
      at org.jboss.Main$1.run(Main.java:499)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.RuntimeException: Not a valid URL: file:/C:/Program Files/jboss-4.2.0.CR1/server/default/deploy/jbo
      ssws.sar/jaxb-api.jar
      at org.jboss.util.file.FileProtocolArchiveBrowserFactory.create(FileProtocolArchiveBrowserFactory.java:48)
      at org.jboss.util.file.ArchiveBrowser.getBrowser(ArchiveBrowser.java:57)
      at org.jboss.ejb3.EJB3Deployer.hasEjbAnnotation(EJB3Deployer.java:203)
      at org.jboss.ejb3.EJB3Deployer.accepts(EJB3Deployer.java:265)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy34.accepts(Unknown Source)
      at org.jboss.deployment.MainDeployer.findDeployer(MainDeployer.java:1078)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:857)
      ... 68 more
      Caused by: java.net.URISyntaxException: Illegal character in path at index 16: file:/C:/Program Files/jboss-4.2.0.CR1/se
      rver/default/deploy/jbossws.sar/jaxb-api.jar
      at java.net.URI$Parser.fail(URI.java:2809)
      at java.net.URI$Parser.checkChars(URI.java:2982)
      at java.net.URI$Parser.parseHierarchical(URI.java:3066)
      at java.net.URI$Parser.parse(URI.java:3014)
      at java.net.URI.(URI.java:578)
      at org.jboss.util.file.FileProtocolArchiveBrowserFactory.create(FileProtocolArchiveBrowserFactory.java:44)
      ... 88 more
      08:54:03,112 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0\bin;.;C:\WINDOWS\Sun\Java\bin;C:\W
      INDOWS\system32;C:\WINDOWS;C:\oracle\product\10.2.0\client_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
      ;C:\Program Files\ATI Technologies\ATI.ACE\
      08:54:03,190 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
      08:54:03,190 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
      08:54:03,190 INFO [Catalina] Initialization processed in 187 ms
      08:54:03,190 INFO [StandardService] Starting service jboss.web
      08:54:03,190 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.0.CR1
      08:54:03,237 INFO [Catalina] Server startup in 47 ms