You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Cedric Picard <C....@kainos.com> on 2003/07/28 19:48:27 UTC

[HELP] Cocoon2 in BES 5.1

Hi again,

I have previously set up cocoon 2.0.3 using Borland Enterprise Server
5.1 successfully, using a cocoon managed datasource. This works fine,
however, in order to reduce the number of database connections, I would
like to use a JNDI datasource instead, which is declared in a separate
jar deployed in the same partition.

I have successfully implemented this solution in Jboss 3.0.6, thanks to
David Kavanagh's how-to:
http://wiki.cocoondev.org/Wiki.jsp?page=JNDIDatasourceWithJBoss3.0.6

Using the same kind of logic, I created a web-borland.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Borland Software Corporation//DTD Web
Application 2.3//EN"
 
"http://www.borland.com/devsupport/appserver/dtds/web-app_2_3-borland.dt
d">
<web-app>
  <context-root>CaseManagement</context-root>
  <resource-ref>
    <res-ref-name>jdbc/CoreDataSource</res-ref-name>
    <jndi-name>/jdbc/CoreDataSource</jndi-name>
  </resource-ref>
</web-app>

And associated the resource reference name with its type
(javax.sql.DataSource) and authority (Container-managed).

The cocoon log files do not show any error occuring, however, the
borland enterprise server logs show the following error:
[Mon Jul 28 18:41:16 BST 2003] stdout:
StandardContext[/CaseManagement]: Servlet /CaseManagement threw load()
exception: javax.servlet.ServletException: Servlet.init() for servlet
Cocoon2 threw exception
[Mon Jul 28 18:41:16 BST 2003] stdout:  javax.servlet.ServletException:
Servlet.init() for servlet Cocoon2 threw exception
[Mon Jul 28 18:41:16 BST 2003] stdout:  	at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:1025)
[Mon Jul 28 18:41:16 BST 2003] stdout:  	at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:898)
[Mon Jul 28 18:41:16 BST 2003] stdout:  	at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3333)
[Mon Jul 28 18:41:16 BST 2003] stdout:  	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3504
)
[Mon Jul 28 18:41:16 BST 2003] stdout:  	at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
[Mon Jul 28 18:41:16 BST 2003] stdout:  	at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:464)
[Mon Jul 28 18:41:16 BST 2003] stdout:  	at
org.apache.catalina.core.StandardHost.install(StandardHost.java:678)
[Mon Jul 28 18:41:16 BST 2003] stdout:  	at
org.apache.catalina.startup.Catalina.deploy(Catalina.java:335)
[Mon Jul 28 18:41:16 BST 2003] stdout:  	at
org.apache.catalina.startup.Catalina.load(Catalina.java:239)
[Mon Jul 28 18:41:16 BST 2003] stdout:  	at
com.borland.enterprise.server.services.tomcat4.TomcatService.load(Tomcat
Service.java:362)
[Mon Jul 28 18:41:16 BST 2003] stdout:  	at
com.sun.server.ServiceManager.loadModule(ServiceManager.java:1944)
[Mon Jul 28 18:41:16 BST 2003] stdout:  	at
com.borland.enterprise.server.PartitionModules.loadAll(PartitionModules.
java:119)
[Mon Jul 28 18:41:16 BST 2003] stdout:  	at
com.sun.server.ServiceManager.loadAllModules(ServiceManager.java:1815)
[Mon Jul 28 18:41:16 BST 2003] stdout:  	at
com.sun.server.ServiceManager.autoStartServices(ServiceManager.java:860)
[Mon Jul 28 18:41:16 BST 2003] stdout:  	at
com.sun.server.ServiceManager.startPartitionServices(ServiceManager.java
:706)
[Mon Jul 28 18:41:16 BST 2003] stdout:  	at
com.borland.enterprise.server.services.partition.PartitionServer.run(Par
titionServer.java:321)
[Mon Jul 28 18:41:16 BST 2003] stdout:  	at
java.lang.reflect.Method.invoke(Native Method)
[Mon Jul 28 18:41:16 BST 2003] stdout:  	at
com.borland.enterprise.server.services.partition.Partition.main(Partitio
n.java:174)

Any help or documentation references that I might have missed would be
much appreciated,
Cedric Picard



--

This e-mail is confidential and is intended for the named recipient only. If
you receive it in error please destroy the message and all copies. Kainos
Software Ltd. does not accept liability for damage sustained as a result of
malicious software (e.g. viruses). Kainos does not accept liability for, or
permit, the creation of contracts on its behalf by e-mail, the publication of
any defamatory statement by its employees by e-mail, or changes subsequently
made to the original message. The Company's registered office is located at
4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100.