Hello
I have just installed the JBOSS-3.2.2RC4. It
compiles OK. However, the FAQ and quick install guides say, it should not have errors on startup :
This is what I get :
I have snipped some of them to just include one warning -- There are a
lot of them for ant.jar, tomcat-util.jar, tomcat-jk2.jar etc.
2003-10-17 17:08:33,598 WARN [org.jboss.deployment.MainDeployer] The manifest entry in file:/mnt/X11/work/jboss-3.2.2RC4-src/build/output/jboss-3.2.2RC4/server/default/deploy/jbossweb-tomcat41.sar/commons-logging.jar references URL file:/mnt/X11/work/jboss-3.2.2RC4-src/build/output/jboss-3.2.2RC4/server/default/deploy/jbossweb-tomcat41.sar/log4j.jar
However, I can access the JMX console and can deploy a session bean
based application.
My problem is, whenever the Bean tries to create an initialContext,
I get an error -- I do not understand why this is happening.
The relevant piece of code is :
public void setSessionContext(SessionContext sessionContext)
throws RemoteException
{
this.sessionContext = sessionContext;
if (dataSource == null)
{
// Finds DataSource from JNDI
try
{
initialContext = new InitialContext();
dataSource =
(DataSource)initialContext.lookup("java:comp/env/jdbc/rubis");
}
catch (Exception e)
{
throw new RemoteException("Cannot get JNDI InitialContext");
}
}
}
And all the beans fail thus.
The relevant output for the JNDI namespace from JMX-Console is :
java:comp
SB_BrowseCategories
UserTransaction
javax.transaction.UserTransaction
env
org.jnp.interfaces.NamingContext
jdbc
org.jnp.interfaces.NamingContext
rubis
java:/rubis
javax.naming.LinkRef
java:
SecurityProxyFactory
org.jboss.security.SubjectSecurityProxyFactory
DefaultJMSProvider
org.jboss.jms.jndi.JBossMQProvider
MySqlDS
org.jboss.resource.adapter.jdbc.WrapperDataSource
comp
javax.naming.Context
It would be a big help if someone could
suggest where do I go from here - Debugging wise
or configuration wise.
I can post the logs and config files
on request.
Thanks
With regards
Aniruddha