Hi,

I'm trying to get the OpenSymphony osworkflow example to work on
JBoss...

It has instructions to get it to work on Tomcat, and since I've got
JBoss with Tomcat integrated, I thought it should work as well...
http://www.opensymphony.com/osworkflow/README-Tomcat.txt

Now when I start the application, I get to the first page no problem,
but when I click "create account" I get this in the JBoss log:


17:24:42,754 FATAL [BaseJDBCProvider] Could not look up DataSource using
JNDI location: java:comp/env/jdbc/DefaultDS
javax.naming.NamingException: Could not dereference object.  Root
exception is 
java.lang.NullPointerException
        at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:553)
        at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:592)
        at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:443)
        at javax.naming.InitialContext.lookup(InitialContext.java:347)
        at
com.opensymphony.module.user.provider.jdbc.BaseJDBCProvider.init(BaseJDBCProvider.java:39)
        at
com.opensymphony.module.user.util.ConfigLoader.addProvider(ConfigLoader.java:133)
        at
com.opensymphony.module.user.util.ConfigLoader.access$100(ConfigLoader.java:79)
        at
com.opensymphony.module.user.util.ConfigLoader$ConfigHandler.endElement(ConfigLoader.java:200)

................



There are other exceptions after that, but I guess I should face the
first exception first...
My first thought is that, when deploying an app in JBoss, the Tomcat
server.xml file is ignored? Because this is put in server.xml:

<!-- OSWorkflow Example Context -->
        <Context path="/osworkflow_example" docBase="osworkflow_example"
debug="0"
                 reloadable="true" crossContext="true">
  <Resource name="jdbc/DefaultDS" auth="Container"
            type="javax.sql.DataSource"/>
  <ResourceParams name="jdbc/DefaultDS">


So that should make it accessible, right?
Another possibility might be that, when deploying in JBoss, the
application isn't found under the same context path, although when
deploying I get:
17:24:18,681 INFO  [EmbeddedCatalinaService41] deploy,
ctxPath=/osworkflow_example,
warUrl=file:/usr/local/jboss-3.0.4_tomcat-4.1.12/server/default/tmp/deploy/server/default/deploy/osworkflow_example.war/101.osworkflow_example.war

So that seems to be ok as well...

Does anyone have an idea of what might be wrong here?

Thanks

Hans



-- 
In a world without walls and fences, who needs windows and gates?

Hans Schippers
1LIC INF
UIA 2002-2003

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to