[JBoss-dev] JBoss 3.0.0 Alpha - Exception while loading...
I get following exceptions. What's wrong? D:\jboss-3.0.0alpha\binrun.batJBOSS_CLASSPATH=;run.jar[GPA] Microkernel ClassLoaders and Libraries initializedLibraries adding URLClassLoader -1003117907 key URL file:/D:/jboss-3.0.0alpha//conf/default/Libraries adding URLClassLoader 912512067 key URL file:/D:/jboss-3.0.0alpha//lib/ext/log4j.jarLibraries adding URLClassLoader 634821366 key URL file:/D:/jboss-3.0.0alpha//lib/ext/jboss-spine.jar[19:19:52,960,root] Started Log4jService, config=file:/D:/jboss-3.0.0alpha//conf/default/log4j.properties[19:19:52,980,GPA] General Purpose Architecture [GPA][19:19:52,980,GPA] Java version: 1.3.1_01,Sun Microsystems Inc.[19:19:52,990,GPA] Java VM: Java HotSpot(TM) Client VM 1.3.1_01,Sun Microsystems Inc.[19:19:52,990,GPA] OS-System: Windows 2000 5.0,x86[19:19:52,990,GPA] JBoss Version : 3.0.0alpha(200111202304)[19:19:53,000,GPA] JBoss start time : Wed Nov 21 19:19:51 EST 2001[19:19:53,000,GPA] localDir : D:\jboss-3.0.0alpha[19:19:53,000,GPA] installationURL : file:/D:/jboss-3.0.0alpha/\[19:19:53,010,GPA] configuration : file:/D:/jboss-3.0.0alpha/\conf\default\[19:19:53,010,GPA] libraries : file:/D:/jboss-3.0.0alpha/\lib\ext\[19:19:53,010,GPA] local patch directory:[19:19:53,010,GPA] Oh, and remember we love you[19:19:53,090,Shutdown] Shutdown hook added[19:19:53,210,ServiceController] Controller MBean online[19:19:53,380,ServiceDeployer] Starting[19:19:53,410,ServiceDeployer] Temporary deploy directory is D:\jboss-3.0.0alpha\tmp\deploy\ServiceDeployer[19:19:53,420,ServiceDeployer] Started[19:19:53,471,ServiceDeployer] deploy failedjavax.xml.parsers.FactoryConfigurationError: org.apache.crimson.jaxp.DocumentBuilderFactoryImpl at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:154) at org.jboss.deployment.ServiceDeployer.getDocument(ServiceDeployer.java:633) at org.jboss.deployment.ServiceDeployer.deployLocalClasses(ServiceDeployer.java:281) at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:178) at org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport.java:107) at java.lang.reflect.Method.invoke(Native Method) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at org.jboss.Main.init(Main.java:199) at org.jboss.Main$1.run(Main.java:411) at java.security.AccessController.doPrivileged(Native Method) at org.jboss.Main.main(Main.java:406)[19:19:53,511,Default] javax.xml.parsers.FactoryConfigurationError: org.apache.crimson.jaxp.DocumentBuilderFactoryImpl[19:19:53,511,Default] at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:154)[19:19:53,511,Default] at org.jboss.deployment.ServiceDeployer.getDocument(ServiceDeployer.java:633)[19:19:53,511,Default] at org.jboss.deployment.ServiceDeployer.deployLocalClasses(ServiceDeployer.java:281)[19:19:53,521,Default] at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:178)[19:19:53,521,Default] at org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport.java:107)[19:19:53,521,Default] at java.lang.reflect.Method.invoke(Native Method)[19:19:53,531,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)[19:19:53,531,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)[19:19:53,531,Default] at org.jboss.Main.init(Main.java:199)[19:19:53,531,Default] at org.jboss.Main$1.run(Main.java:411)[19:19:53,541,Default] at java.security.AccessController.doPrivileged(Native Method)[19:19:53,541,Default] at org.jboss.Main.main(Main.java:406)[19:19:53,541,Default] JBoss 3.0.0alpha(200111202304) [RABBIT-HOLE] Started in 0m:1s:633ms[19:19:53,551,Shutdown] Shutting down all services[19:19:53,551,Default] Shutting down[19:19:53,561,ServiceController] Stopping 1 services[19:19:53,561,ServiceController] Stopped 0 services[19:19:53,561,Shutdown] Shutdown complete[19:19:53,571,Default] Shutdown complete Yong T. Kim (kimion.com)Software Developer[EMAIL PROTECTED]http://www.kimion.com
Re: [JBoss-dev] JBoss 3.0.0 Alpha - Exception while loading...
Don't worry about it... I had some jar files such as xerces.jar and soap.jar files in the JDK's ext directory... Yong T. Kim - Original Message - From: Yong T. Kim To: [EMAIL PROTECTED] Sent: Wednesday, November 21, 2001 7:24 PM Subject: [JBoss-dev] JBoss 3.0.0 Alpha - Exception while loading... I get following exceptions. What's wrong? D:\jboss-3.0.0alpha\binrun.batJBOSS_CLASSPATH=;run.jar[GPA] Microkernel ClassLoaders and Libraries initializedLibraries adding URLClassLoader -1003117907 key URL file:/D:/jboss-3.0.0alpha//conf/default/Libraries adding URLClassLoader 912512067 key URL file:/D:/jboss-3.0.0alpha//lib/ext/log4j.jarLibraries adding URLClassLoader 634821366 key URL file:/D:/jboss-3.0.0alpha//lib/ext/jboss-spine.jar[19:19:52,960,root] Started Log4jService, config=file:/D:/jboss-3.0.0alpha//conf/default/log4j.properties[19:19:52,980,GPA] General Purpose Architecture [GPA][19:19:52,980,GPA] Java version: 1.3.1_01,Sun Microsystems Inc.[19:19:52,990,GPA] Java VM: Java HotSpot(TM) Client VM 1.3.1_01,Sun Microsystems Inc.[19:19:52,990,GPA] OS-System: Windows 2000 5.0,x86[19:19:52,990,GPA] JBoss Version : 3.0.0alpha(200111202304)[19:19:53,000,GPA] JBoss start time : Wed Nov 21 19:19:51 EST 2001[19:19:53,000,GPA] localDir : D:\jboss-3.0.0alpha[19:19:53,000,GPA] installationURL : file:/D:/jboss-3.0.0alpha/\[19:19:53,010,GPA] configuration : file:/D:/jboss-3.0.0alpha/\conf\default\[19:19:53,010,GPA] libraries : file:/D:/jboss-3.0.0alpha/\lib\ext\[19:19:53,010,GPA] local patch directory:[19:19:53,010,GPA] Oh, and remember we love you[19:19:53,090,Shutdown] Shutdown hook added[19:19:53,210,ServiceController] Controller MBean online[19:19:53,380,ServiceDeployer] Starting[19:19:53,410,ServiceDeployer] Temporary deploy directory is D:\jboss-3.0.0alpha\tmp\deploy\ServiceDeployer[19:19:53,420,ServiceDeployer] Started[19:19:53,471,ServiceDeployer] deploy failedjavax.xml.parsers.FactoryConfigurationError: org.apache.crimson.jaxp.DocumentBuilderFactoryImpl at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:154) at org.jboss.deployment.ServiceDeployer.getDocument(ServiceDeployer.java:633) at org.jboss.deployment.ServiceDeployer.deployLocalClasses(ServiceDeployer.java:281) at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:178) at org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport.java:107) at java.lang.reflect.Method.invoke(Native Method) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at org.jboss.Main.init(Main.java:199) at org.jboss.Main$1.run(Main.java:411) at java.security.AccessController.doPrivileged(Native Method) at org.jboss.Main.main(Main.java:406)[19:19:53,511,Default] javax.xml.parsers.FactoryConfigurationError: org.apache.crimson.jaxp.DocumentBuilderFactoryImpl[19:19:53,511,Default] at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:154)[19:19:53,511,Default] at org.jboss.deployment.ServiceDeployer.getDocument(ServiceDeployer.java:633)[19:19:53,511,Default] at org.jboss.deployment.ServiceDeployer.deployLocalClasses(ServiceDeployer.java:281)[19:19:53,521,Default] at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:178)[19:19:53,521,Default] at org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport.java:107)[19:19:53,521,Default] at java.lang.reflect.Method.invoke(Native Method)[19:19:53,531,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)[19:19:53,531,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)[19:19:53,531,Default] at org.jboss.Main.init(Main.java:199)[19:19:53,531,Default] at org.jboss.Main$1.run(Main.java:411)[19:19:53,541,Default] at java.security.AccessController.doPrivileged(Native Method)[19:19:53,541,Default] at org.jboss.Main.main(Main.java:406)[19:19:53,541,Default] JBoss 3.0.0alpha(200111202304) [RABBIT-HOLE] Started in 0m:1s:633ms[19:19:53,551,Shutdown] Shutting down all services[19:19:53,551,Default] Shutting down[19:19:53,561,ServiceController] Stopping 1 services[19:19:53,561,ServiceController] Stopped 0 services[19:19:53,561,Shutdown] Shutdown complete[19:19:53,571,Default] Shutdown complete Yong T. Kim (kimion.com)Software Developer[EMAIL PROTECTED]http://www.kimion.com
Re: [JBoss-dev] JBoss MS SQL Server 2000
Okay, I understand now... It was very clear answer. Thanx. ;-) - kimion - - Original Message - From: David Maplesden To: '[EMAIL PROTECTED]' Sent: Monday, September 10, 2001 9:35 PM Subject: RE: [JBoss-dev] JBoss MS SQL Server 2000 I think you are getting this because you are attempting to accessthe DataSource from outside of JBoss. DataSources can only be accessed from code running in the same JVM as the DataSource i.e. from within ejb's or mbean's deployed by JBoss. Separately running clients cannot access the DataSource's. So the code you have below (using "java:/SQLServerPool") should work from within JBoss not from another JVM. Does this help? Cheers, David -Original Message-From: Yong T. Kim [mailto:[EMAIL PROTECTED]]Sent: Tuesday, September 11, 2001 1:28 PMTo: [EMAIL PROTECTED]Subject: [JBoss-dev] JBoss MS SQL Server 2000 I think I have successfully created a connection pool for MS SQL 2000... but I can't connect to it from my test client code... When JBoss starts up, I get output like below... [XADataSourceLoader] Starting [SQLServerPool] XA Connection pool SQLServerPool bound to java:/SQLServerPool [XADataSourceLoader] Started It seems like JBoss was able to create the connection pool successfully... However, when I run my client code below, I get an error message saying, "javax.naming.NameNotFoundException: SQLServerPool not bound at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source) at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source) at sun.rmi.server.UnicastRef.invoke(Unknown Source) at org.jnp.server.NamingServer_Stub.lookup(Unknown Source) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333) at javax.naming.InitialContext.lookup(Unknown Source) at DataSourceTest.main(DataSourceTest.java:37)" What am I doing wrong? Here is the sample code... env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); env.put(Context.PROVIDER_URL, "localhost:1099"); javax.naming.Context ctx = new InitialContext(env); DataSource ds = (DataSource) ctx.lookup("SQLServerPool"); // I tried with java:/SQLServerPool, still didn't work Connection con = ds.getConnection(); Can someone help? Thanks, in advance... Yong T. Kim (kimion.com)Software Developer[EMAIL PROTECTED]http://www.kimion.com:8080