You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by je...@bull.net on 2004/11/24 16:23:35 UTC

JdbcConnectionDescriptor problem

Hi,

I try to migrate jetzspeed2 for Jonas 4.1.4.
I have a JNDI problem when OJB try to look up the datasource..
I modified the ojb class in order to debug the problem.

here is the error during the jetspeed2 deployement

- Jetspeed Starting Initialization...
- JetspeedServlet identifying web application root...
- JetspeedServlet identifed web application root as
/home/jabouijc/JONAS_4_1_4/work/webapps/jonas/jetspeed/
- JetspeedServlet attempting to create the  portlet engine...
- Jetspeed environment attempting to initialize portal Engine...
JNDI System Property flag null
INITIAL_CONTEXT_FACTORY
org.objectweb.carol.jndi.spi.MultiOrbInitialContextFactory
PROVIDER_URL null
URL_PKG_PREFIXES org.objectweb.jonas.naming
JCD
REPRESENTATIONorg.apache.ojb.broker.metadata.JdbcConnectionDescriptor@1ca7841[
  jcd-alias=jetspeed
  default-connection=true
  dbms=Hsqldb
  jdbc-level=2.0
  driver=<null>
  protocol=<null>
  sub-protocol=<null>
  db-alias=<null>
  user=<null>
  password=*****
  eager-release=false
  ConnectionPoolDescriptor={whenExhaustedAction=0, maxIdle=-1,
maxActive=21, maxWait=5000, removeAbandoned=false,
numTestsPerEvictionRun=10, testWhileIdle=false,
minEvictableIdleTimeMillis=600000, testOnReturn=false, logAbandoned=false,
removeAbandonedTimeout=300, timeBetweenEvictionRunsMillis=-1,
testOnBorrow=true}
  batchMode=false
  useAutoCommit=AUTO_COMMIT_SET_TRUE_AND_TEMPORARY_FALSE
  ignoreAutoCommitExceptions=false

sequenceDescriptor=org.apache.ojb.broker.metadata.SequenceDescriptor@7e05c4[
     sequenceManagerClass=class
org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl
     Properties={autoNaming=true, globalSequenceId=false,
globalSequenceStart=10000, grabSize=20}
]
]
[org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl] ERROR:
Naming Exception while looking up DataSource (java:comp/env/jdbc/jetspeed)
ContextWrapper.ContextWrapper() failed: java.util.NoSuchElementException
javax.naming.NamingException: ContextWrapper.ContextWrapper() failed:
java.util.NoSuchElementException
        at
org.objectweb.carol.jndi.spi.ContextWrapper.<init>(ContextWrapper.java:102)



My question is : where is create(in jetspeed) the JdbcConnectionDescriptor
which is using for the looking up of the database in OJB ?



thanks for your answer...



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Re: JdbcConnectionDescriptor problem

Posted by David Jencks <dj...@gluecode.com>.
I don't remember the details, but when I was integrating jetspeed into  
geronimo I had this problem and it was caused by the component jndi  
context (java:comp/env...) not being set up properly before a servlets  
init method was called.  After fixing this geronimo bug and setting up  
an appropriate resource-ref I was able to get Jetspeed to work.

david jencks

On Nov 24, 2004, at 7:23 AM, jean-charles.jabouille@bull.net wrote:

> Hi,
>
> I try to migrate jetzspeed2 for Jonas 4.1.4.
> I have a JNDI problem when OJB try to look up the datasource..
> I modified the ojb class in order to debug the problem.
>
> here is the error during the jetspeed2 deployement
>
> - Jetspeed Starting Initialization...
> - JetspeedServlet identifying web application root...
> - JetspeedServlet identifed web application root as
> /home/jabouijc/JONAS_4_1_4/work/webapps/jonas/jetspeed/
> - JetspeedServlet attempting to create the  portlet engine...
> - Jetspeed environment attempting to initialize portal Engine...
> JNDI System Property flag null
> INITIAL_CONTEXT_FACTORY
> org.objectweb.carol.jndi.spi.MultiOrbInitialContextFactory
> PROVIDER_URL null
> URL_PKG_PREFIXES org.objectweb.jonas.naming
> JCD
> REPRESENTATIONorg.apache.ojb.broker.metadata.JdbcConnectionDescriptor@1 
> ca7841[
>   jcd-alias=jetspeed
>   default-connection=true
>   dbms=Hsqldb
>   jdbc-level=2.0
>   driver=<null>
>   protocol=<null>
>   sub-protocol=<null>
>   db-alias=<null>
>   user=<null>
>   password=*****
>   eager-release=false
>   ConnectionPoolDescriptor={whenExhaustedAction=0, maxIdle=-1,
> maxActive=21, maxWait=5000, removeAbandoned=false,
> numTestsPerEvictionRun=10, testWhileIdle=false,
> minEvictableIdleTimeMillis=600000, testOnReturn=false,  
> logAbandoned=false,
> removeAbandonedTimeout=300, timeBetweenEvictionRunsMillis=-1,
> testOnBorrow=true}
>   batchMode=false
>   useAutoCommit=AUTO_COMMIT_SET_TRUE_AND_TEMPORARY_FALSE
>   ignoreAutoCommitExceptions=false
>
> sequenceDescriptor=org.apache.ojb.broker.metadata.SequenceDescriptor@7e 
> 05c4[
>      sequenceManagerClass=class
> org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl
>      Properties={autoNaming=true, globalSequenceId=false,
> globalSequenceStart=10000, grabSize=20}
> ]
> ]
> [org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl]  
> ERROR:
> Naming Exception while looking up DataSource  
> (java:comp/env/jdbc/jetspeed)
> ContextWrapper.ContextWrapper() failed:  
> java.util.NoSuchElementException
> javax.naming.NamingException: ContextWrapper.ContextWrapper() failed:
> java.util.NoSuchElementException
>         at
> org.objectweb.carol.jndi.spi.ContextWrapper.<init>(ContextWrapper.java: 
> 102)
>
>
>
> My question is : where is create(in jetspeed) the  
> JdbcConnectionDescriptor
> which is using for the looking up of the database in OJB ?
>
>
>
> thanks for your answer...
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org