0 Replies Latest reply on Jun 15, 2005 11:26 AM by Vince Chen

    Use the debug mode of JBuilder X with JBoss 4.02 and JDK 5.0

    Vince Chen Newbie

      I want to use the debug mode of JBuilder X with JBoss 4.02 and J2SE 5.0
      .
      When I Start the JBoss 4.02 in JBuilder X, It display me the following erroe messages :

      "C:\Program Files\Java\jdk1.5.0_03\bin\javaw" -classic -classpath "C:\jboss-4.0.2\bin\run.jar;C:\JBuilderX\jdk1.4\lib\tools.jar" -Djava.io.tmpdir=C:/jboss-4.0.2/server/default/tmp/deploy/server/default/deploy/work -Dprogram.name=run.bat -Xms128m -Xmx512m -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=STI-3542-Grant:2548,suspend=y org.jboss.Main -c default
      23:25:14,883 INFO [Server] Starting JBoss (MX MicroKernel)...
      
      23:25:14,883 INFO [Server] Release ID: JBoss [Zion] 4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)
      
      23:25:14,893 INFO [Server] Home Dir: C:\jboss-4.0.2
      
      23:25:14,893 INFO [Server] Home URL: file:/C:/jboss-4.0.2/
      
      23:25:14,893 INFO [Server] Library URL: file:/C:/jboss-4.0.2/lib/
      
      23:25:14,893 INFO [Server] Patch URL: null
      
      23:25:14,893 INFO [Server] Server Name: default
      
      23:25:14,893 INFO [Server] Server Home Dir: C:\jboss-4.0.2\server\default
      
      23:25:14,913 INFO [Server] Server Home URL: file:/C:/jboss-4.0.2/server/default/
      
      23:25:14,913 INFO [Server] Server Data Dir: C:\jboss-4.0.2\server\default\data
      
      23:25:14,913 INFO [Server] Server Temp Dir: C:\jboss-4.0.2\server\default\tmp
      
      23:25:14,913 INFO [Server] Server Config URL: file:/C:/jboss-4.0.2/server/default/conf/
      
      23:25:14,913 INFO [Server] Server Library URL: file:/C:/jboss-4.0.2/server/default/lib/
      
      23:25:14,913 INFO [Server] Root Deployment Filename: jboss-service.xml
      
      23:25:14,923 INFO [Server] Starting General Purpose Architecture (GPA)...
      
      23:25:15,714 INFO [ServerInfo] Java version: 1.5.0_03,Sun Microsystems Inc.
      
      23:25:15,714 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_03-b07,Sun Microsystems Inc.
      
      23:25:15,714 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
      
      23:25:16,375 INFO [Server] Core system initialized
      
      23:25:16,405 ERROR [MainDeployer] Could not initialise deployment: file:/C:/jboss-4.0.2/server/default/conf/jboss-service.xml
      
      javax.xml.parsers.FactoryConfigurationError: Provider org.apache.crimson.jaxp.DocumentBuilderFactoryImpl could not be instantiated: java.lang.NullPointerException
      
       at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:104)
      
       at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:537)
      
       at org.jboss.deployment.SARDeployer.init(SARDeployer.java:152)
      
       at org.jboss.deployment.MainDeployer.init(MainDeployer.java:828)
      
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:765)
      
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
      
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
      
       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:585)
      
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
      
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      
       at $Proxy5.deploy(Unknown Source)
      
       at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:434)
      
       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:315)
      
       at org.jboss.Main.boot(Main.java:195)
      
       at org.jboss.Main$1.run(Main.java:463)
      
       at java.lang.Thread.run(Thread.java:595)
      
      Failed to boot JBoss:
      
      org.jboss.deployment.DeploymentException: Could not initialise deployment: file:/C:/jboss-4.0.2/server/default/conf/jboss-service.xml; - nested throwable: (javax.xml.parsers.FactoryConfigurationError: Provider org.apache.crimson.jaxp.DocumentBuilderFactoryImpl could not be instantiated: java.lang.NullPointerException)
      
       at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:39)
      
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:770)
      
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
      
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
      
       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:585)
      
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
      
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      
       at $Proxy5.deploy(Unknown Source)
      
       at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:434)
      
       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:315)
      
       at org.jboss.Main.boot(Main.java:195)
      
       at org.jboss.Main$1.run(Main.java:463)
      
       at java.lang.Thread.run(Thread.java:595)
      
      Caused by: javax.xml.parsers.FactoryConfigurationError: Provider org.apache.crimson.jaxp.DocumentBuilderFactoryImpl could not be instantiated: java.lang.NullPointerException
      
       at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:104)
      
       at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:537)
      
       at org.jboss.deployment.SARDeployer.init(SARDeployer.java:152)
      
       at org.jboss.deployment.MainDeployer.init(MainDeployer.java:828)
      
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:765)
      
       ... 21 more
      
      23:25:16,475 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
      
      Shutting down
      
      23:25:16,495 INFO [Server] Shutdown complete
      
      Shutdown complete
      
      Halting VM
      
      Warning: classic VM not supported; client VM will be used
      


      However, it will work well without any error messages, if I directly excute the run.bat command in JBoss/bin.

      If I use the debug mode of JBuilder X with JBoss 3.2.7 and JDK 1.4.2, it still works well without any error messages. It will show me the same error messages if I use JBoss 3.2.7 and J2SE 5.0.

      Could someone tells me how I can use both JBoss 4.02 and J2SE 5.0 in debug mode of JBuilder X.