[jboss-jira] [JBoss JIRA] Created: (JBAS-4300) StackOverflowError in JBossNS during lookup

Martin Kirst (JIRA) jira-events at lists.jboss.org
Wed Apr 4 17:41:58 EDT 2007


StackOverflowError in JBossNS during lookup
-------------------------------------------

                 Key: JBAS-4300
                 URL: http://jira.jboss.com/jira/browse/JBAS-4300
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Naming
    Affects Versions: JBossAS-4.0.5.GA
         Environment: [ServerInfo] Java version: 1.6.0_01,Sun Microsystems Inc.
[ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.6.0_01-b06,Sun Microsystems Inc.
[ServerInfo] OS-System: Windows XP 5.1,x86
            Reporter: Martin Kirst
         Assigned To: Scott M Stark


Using "jboss-portal-2.4.2-bundled.zip" and deploying my own JSR168-PortletAppl.
For this PortletAppl. I need a jdbc DataSource. So I added the following two files.
Any ideas because of the problem?

=== PW2-Portal-App-ds.xml =====================================================
<datasources>
  <local-tx-datasource>
    <jndi-name>PortowebPool</jndi-name>
    <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}portoweb${/}portoweb</connection-url>
    <driver-class>org.hsqldb.jdbcDriver</driver-class>
    <user-name>sa</user-name>
    <password><![CDATA[]]></password>
  </local-tx-datasource>
</datasources>
-----------------------------
I've pre instanziated the portoweb hsqldb files with the hsqldbManager tool. (build schemas and so on).

=== warfile:WEB-INF/jboss-web.xml ==========================
<?xml version="1.0" encoding="UTF-8" ?>
<jboss-web>
   <resource-ref>
      <res-ref-name>jdbc/PortowebPool</res-ref-name>
      <jndi-name>java:comp/env/jdbc/PortowebPool</jndi-name>
   </resource-ref>
</jboss-web>

=== But I got this StackOverFlow, when I start the server  ==================================

2007-03-31 23:48:10,031 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/PW2-Portal-App]] Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/PortowebApp.xml]: Invocation of init method failed; nested exception is java.lang.StackOverflowError
Caused by: 
java.lang.StackOverflowError
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.naming.internal.VersionHelper12.getJndiProperties(VersionHelper12.java:89)
	at com.sun.naming.internal.ResourceManager.getInitialEnvironment(ResourceManager.java:138)
	at javax.naming.InitialContext.init(InitialContext.java:219)
	at javax.naming.InitialContext.<init>(InitialContext.java:197)
	at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1061)
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:700)
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:716)
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
	at javax.naming.InitialContext.lookup(InitialContext.java:392)
	at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1061)
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:700)
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:716)
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
	at javax.naming.InitialContext.lookup(InitialContext.java:392)
	at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1061)
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:700)
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:716)
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
	at javax.naming.InitialContext.lookup(InitialContext.java:392)
	at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1061)
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:700)
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:716)
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
	at javax.naming.InitialContext.lookup(InitialContext.java:392)
... and so on and so on
2007-03-31 23:48:10,562 ERROR [org.apache.catalina.core.StandardContext] Error listenerStart
2007-03-31 23:48:10,562 ERROR [org.apache.catalina.core.StandardContext] Context [/PW2-Portal-App] startup failed due to previous errors
2007-03-31 23:48:10,562 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/PW2-Portal-App]] Closing Spring root WebApplicationContext


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list