RE: Cocoon, sockets and not a web browser.

2002-10-09 Thread JohnsBrn

I think I may be doing something similar to what you want to do. I am calling cocoon 
from an axis provider, and also directly from within an ejb. There are several things 
you need to do to accomplish this: The first thing you should look at is the 
commandline context under org.apache.cocoon.environment. That will give you some clues 
on where to start with creating a non-servlet based cocoon application. I am also 
using cocoon from within a servlet context, so I took the easy way out and created a 
remote wrapper for cocoon to place in the JNDI naming context, but it still required 
me to write a custom Environment, Request, Response, etc... for my application 
context. You should be able to use the standard serializers and generators from 
cocoon. The output from cocoon will be captured in the output stream in your 
Environment class. The other option you have is to use the pipeline classes directly, 
but then you lose the ability to configure the pipeline using the cocoon/avalon 
framework. Hope that helps.


Mauro Daniel Ardolino [EMAIL PROTECTED] wrote:

Hello!
I need to know if cocoon can be used to apply transformations to
xml files that comes from a socket or from a soap communication.
Also I need to know if I can serialize the results to a java class
to parse them for example with sax.

So what I mean is that I want to use cocoon to make only the 
transformations.  I need to make transformations (using xpath)
and I think that cocoon (and XSL) can help me, but the results will
not go to a web-browser.  They have to go to a class.

My program can be a stand alone program with Swing or SWT gui interface,
or can be a batch program.

Am I clear?  If not, please let me know.

Thanks in advance, reggards,

-- Mauro


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]



__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/



RE: post data in XML format

2002-09-30 Thread JohnsBrn

I haven't worked with 2.1, but in 2.03, you can use the stream generator to capture 
form data and use it in a cocoon pipeline. The form-name parameter specifies the form 
input tag that contains your xml data.
b

Cocoon User [EMAIL PROTECTED] wrote:


think about how POST work. with POST we can send data (single values) from
a form to server over HTTP

is it possible to send data from a client (IE) using a form(or anything
else) in XML format

and how can cocoon recieve this xml stuctured data and handle them (create
the .xml file local or parse this file in memory)


any suggestion about the technologies i have to look ?




thank
i dont know if this is the right list

kounis stavros





-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]



__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




RE: XMLHTTP and cocoon

2002-09-30 Thread JohnsBrn

I'm not that familiar with XMLHTTP, but you can echo back the input of any cocoon 
stream by placing an xml serializer after the generator. If, for instance, you were 
using the 2.0.3 StreamGenerator to post the data, your pipeline would look like this:

map:match pattern=test
 map:generate type=stream/
 map:serialize type=xml/
/map:match


Cocoon User [EMAIL PROTECTED] wrote:

hi folks

i have make an html form than post an XML file (object with javascript)
using XMLHTTP

is there any way in cocoon to receive this post an simple echo this XML
object in browser?

(if not cocoon a tomcat webapp)

i want to find a very simple example to test if i can transport an XML
object from a client (IE6) to the server where a cocoon and tomcat are
installed


thnx

Kounis Stavros






-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]



__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




RE: ESQL Query

2002-09-30 Thread JohnsBrn

You can do this with a standard xsl stylesheet and xsl:call-template. Something like 
this

xsl:template match=member
TABLE
xsl:apply-templates/
/TABLE
/xsl:template

xsl:template match=profilHairColor
TRTDHair Color/TDTD!-- xsl:call-template goes here with . as arg --/TD/TR
/xsl:template

You could also put the values in an external xml file and use the document() function.

xsl:template match=profilHairColor
xsl:variable name=id select=./
TDTDHair Color/TDTDxsl:value-of 
select=document('lookup.xml')/Lookup/HairColor[@id=$id]//TD/TR
/xsl:template

where lookup.xml is something like this

Lookup
 HairColor id=4Brown/HairColor
 HairColor id=5etc...
/Lookup

I'm sure there are plenty of other ways to do this as wel, but both of these methods 
will work.

John Lambert [EMAIL PROTECTED] wrote:


Hello,

After an ESQL query, I obtain the resulats in a file XML, with amongst other things 
syntax below:  

 member  
 profilHairColor4/profilHairColor  
 profilEyesColor2/profilEyesColor  
 profilOccupation8/profilOccupation  
/member 


I wish to make correspond in the final result (HTML) the values of the various fields 
with their interpretation (for profilHairColor, 4 = brown hair)

What is the best solution to do this ? 

- do I Have to use a logisheet especially for this operation ?

- do I have to create another xml file with all values interpretation, and then to 
merge them ?


Thanks for your help.

JL

 



-
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!


__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: problem with database connection

2002-09-27 Thread JohnsBrn

Did you cut and paste the cocoon.xconf? It can't find the url, and the url tag is durl 
instead of dburl. I think you said this worked in a previous version of cocoon, and I 
don't know if the cocoon.roles has changed since then. Let me know if it's just a 
simple typeo before I try to load your config. Thanks.
b

Olivier GUCKERT [EMAIL PROTECTED] wrote:



[EMAIL PROTECTED] a écrit :
 
 What component are you using? SQLTransformer? Database Action? Can you post the 
relevant portions of cocoon.xconf/sitemap.xmap?

here is my configuration : 

In web.xml : 
init-param
  param-nameload-class/param-name
  param-value

!-- pour mysql --
org.gjt.mm.mysql.Driver 


in access.log :
DEBUG   (2002-09-27) 10:40.03:837   [access] (Unknown-URI)
Unknown-thread/CocoonServlet: Trying to load class:
org.gjt.mm.mysql.Driver

so i think the dirver is OK...

in cocoon.xconf : 
  datasources

jdbc name=mysql_pool
  pool-controler min=5 max=10/
  auto-committrue/auto-commit
  durljdbc:mysql://aube.loria.fr/guckdb/durl
  usermylogin/user
  passwordmypassword/password
/jdbc

in sitemap.xmap : 
map:match pattern=donnees.xml
map:generate src=documents/donnees.xsp type=serverpages/
map:transform type=xslt src=stylesheets/donnees_xml.xsl/
map:serialize type=xml/
/map:match

in donnees.xsp : 
?xml version=1.0?
xsp:page language=java 
  xmlns:xsp=http://apache.org/xsp; 
  xmlns:esql=http://apache.org/cocoon/SQL/v2; 
  xmlns:xsp-request=http://apache.org/xsp/request/2.0;
lignes
esql:connection
esql:poolmysql_pool/esql:pool
esql:execute-query
esql:querySELECT * FROM 
xsp-request:get-parameter name=table/
/esql:query
esql:results
table
xsp-request:get-parameter name=table/
/table
esql:row-results
ligne
esql:get-columns/
/ligne
/esql:row-results
/esql:results
esql:no-results/
esql:error-results/
/esql:execute-query
/esql:connection
/lignes
/xsp:page

I work on Mandrake Linux release 8.1.
jakarta-tomcat-4.1.10
jdk1.3.1_01
cocoon-2.0.3

So, if y ask : 
http://greau.loria.fr:8080/cocoon/referentiels/donnees/donnees.xml?table=Assistante_Structure

i become the folowing message :
org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not
get the datasource java.sql.SQLException: The url cannot be null

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]



__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




RE: problem with database connection

2002-09-25 Thread JohnsBrn

What component are you using? SQLTransformer? Database Action? Can you post the 
relevant portions of cocoon.xconf/sitemap.xmap?

Olivier GUCKERT [EMAIL PROTECTED] wrote:

hi all

I have a problem with my connection to my sql.

when i try cto connect i get the folowing message : 

Could not get the datasource java.sql.SQLException: The url cannot be
null

I work on linux with cocoon 2.0.3

I have the same parameters than with cocoon 2.0.2 on windows and this
one work fine...

What's the touble ?



olivier...

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]



__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




RE: The DataSourceComponent which returning OtherConnection

2002-09-25 Thread JohnsBrn

There are 2 files you need to modify to add a component: cocoon.xconf and user.roles. 
Checkout cocoon.roles in the org.apache.cocoon source directory to see the format to 
use for the user.roles files (goes in WEB-INF directory), as I think it doesn't exist 
by default. 


Hiloliddin Karimov [EMAIL PROTECTED] wrote:

Hi All,
 
I try to write Component that returning MyConnection.
So I have:
 
package test.datasource;
 
public interface DataSourceComponent extends Component, Configurable,
ThreadSafe { 
  String ROLE = test.datasource.DataSourceComponent;
  MyConnection getConnection() throws Exception;
} 
 
 
 
public class MyDataSource extends AbstractLogEnabled
implements DataSourceComponent, Configurable, ThreadSafe, Disposable {
 
public MyDataSource() {}
 
public void configure( final Configuration configuration ) throws
ConfigurationException {
  // configure
}
 
public MyConnection getConnection() throws Exception {
  return myconnection;
}
 
public void dispose() {
  // dispose
}
}
 
 
package test.acting;
 
public class DatabaseSelectAction extends AbstractDatabaseAction implements
ThreadSafe {
private static final Map selectStatements = new HashMap();
 
public Map act(Redirector redirector, SourceResolver resolver, Map
objectModel, String source, Parameters param) throws Exception {
DataSourceComponent datasource = null;
 
boolean reloadable = Constants.DESCRIPTOR_RELOADABLE_DEFAULT;
if (this.settings.containsKey(reloadable))
reloadable = Boolean.getBoolean((String)
this.settings.get(reloadable));
try {
Configuration conf =
this.getConfiguration(param.getParameter(descriptor,
(String) this.settings.get(descriptor)),
  resolver,
 
param.getParameterAsBoolean(reloadable,reloadable));
 
  datasource = this.getDataSource(conf);
 
  System.out.println(   Connection:  + datasource.getConnection()
);
 
  return EMPTY_MAP;
 
} catch (Exception e) {
throw new ProcessingException( e );
}
}
}
 
 
 
public abstract class AbstractDatabaseAction extends
AbstractComplementaryConfigurableAction implements Configurable, Disposable
{
protected ComponentSelector dbselector;
 
public void compose(ComponentManager manager) { //throws
ComponentException {
  try {
this.dbselector = (ComponentSelector)
manager.lookup(DataSourceComponent.ROLE + Selector);
super.compose(manager);
  } catch (ComponentException e) { System.out.println(ERR:  + e);}
}
 
protected final DataSourceComponent getDataSource(Configuration conf)
throws ComponentException {
Configuration dsn = conf.getChild(connection);
return (DataSourceComponent)
this.dbselector.select(dsn.getValue());
}
 
...
 
When I test it, get error:
 
WARN(2002-09-24) 14:23.59:343   [sitemap] (/cocoon/test/)
HttpProcessor[80][7]/ExcaliburComponentManager: ComponentLocator exception
from parent CM during lookup.
org.apache.avalon.framework.component.ComponentException: Could not find
component
at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(Excal
iburComponentManager.java:246)
at
org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentMa
nager.java:236)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManag
erProxy.lookup(DefaultComponentFactory.java:387)
at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(Excal
iburComponentManager.java:178)
at
org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentMa
nager.java:236)
at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(Excal
iburComponentManager.java:178)
at
org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentMa
nager.java:236)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManag
erProxy.lookup(DefaultComponentFactory.java:387)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManag
erProxy.lookup(DefaultComponentFactory.java:387)
...
 
How I understood, I should add my Component to manager, how can I do it?
 
 
Any ideas, tips, or help would be greatly appreciated,
 
Hill


__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL 

Re: pipeline or sql transformer problem

2002-09-25 Thread JohnsBrn

I had a similar namespace problem with SQLTransformer. I switched from Xalan to Saxon 
6.5.2 (because of multi-thread issues with database XA transactions) for xslt 
transformations and the problem seems to be gone.

Michael Maluck [EMAIL PROTECTED] wrote:

Now I tried it with esql and a logicsheet. Same problem.
If I use the logicsheet I get an xmlns:xmlns:sql namespace.
Any ideas?

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]



__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




RE: Using J2EE datasources

2002-09-23 Thread JohnsBrn

By default org.apache.avalon.excalibur.datasource.J2eeDataSource looks for your J2EE 
datasource in the java:/comp/env/jdbc context. You can change this using the 
lookup-name parameter:
j2ee logger=core.datasources.j2ee.firebird name=FirebirdDS
lookup-namejava:/FirebirdDS/lookup-name
/j2ee
I'm not that familiar with Tomcat or it's config files, but you need to store your 
J2EE datasource in JNDI to access it from this component.

Ugo Cei [EMAIL PROTECTED] wrote:

I am trying to use a J2EE datasource, but am having troubles.

Environment:

Cocoon 2.0.3
Jakarta Tomcat 4.1.9
Sun JDK 1.3.1
Solaris 8

I have defined a datasource in Tomcat via the Administrator interface. 
It has put the following in server.xml, under the appropriate Context:

   Resource name=resl scope=Shareable 
type=javax.sql.DataSource/
   ResourceParams name=resl
 parameter
   namevalidationQuery/name
   valueselect 1 from dual/value
 /parameter
 parameter
   nameuser/name
   valueresl/value
 /parameter
 parameter
   nameurl/name
   valuejdbc:oracle:thin:@ias:1521:ORCL/value
 /parameter
 parameter
   namepassword/name
   valuexxx/value
 /parameter
 parameter
   namemaxActive/name
   value4/value
 /parameter
 parameter
   namemaxWait/name
   value5000/value
 /parameter
 parameter
   namedriverClassName/name
   valueoracl.jdbc.driver.OracleDriver/value
 /parameter
 parameter
   namemaxIdle/name
   value2/value
 /parameter
   /ResourceParams

These are the parameters I used with the jdbc datasource and they worked 
well.

I have added the following datasource definition in cocoon.xconf:

 j2ee name=resl
   dbnameresl/dbname
 /j2ee

but when I try to use the datasource in XSP, I get the following error:

org.apache.avalon.framework.component.ComponentException: Could not find 
component

Browsing through error.log, I think I found the origin of the problem here:

ERROR   (2002-09-23) 18:10.42:478   [core.manager] (Unknown-URI) 
Unknown-thread/J2eeDataSource: Problem with JNDI lookup of datasource
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
 at org.apache.naming.NamingContext.lookup(NamingContext.java:811)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
 at 
org.apache.naming.SelectorContext.lookup(SelectorContext.java:183)
 at javax.naming.InitialContext.lookup(InitialContext.java:350)
 at 
org.apache.avalon.excalibur.datasource.J2eeDataSource.configure(J2eeDataSource.java:95)
...

I am afraid I am doing something wrong, but the docs, either the Cocoon 
or the Tomcat ones don't help much.

Ugo


-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]



__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: Using J2EE datasources

2002-09-23 Thread JohnsBrn

Are you sure you have a valid datasource in Tomcat? Looks like it's having trouble 
creating a connection. I noticed 
valueoracl.jdbc.driver.OracleDriver/value 
contains a type-o. Shouldn't it be oracle.jdbc.driver.OracleDriver instead of oracl 
with no e?


Ugo Cei [EMAIL PROTECTED] wrote:

Ugo Cei wrote:
 I am trying to use a J2EE datasource, but am having troubles.

Update: I have deduced that the datasource name in Tomcat must be 
prefixed by jdbc/. Somehow I thought this was implicit. I have thus 
made progress, but now I get this:

Original exception : org.apache.commons.dbcp.DbcpException: 
java.sql.SQLException: invalid arguments in call
at 
org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:85)
at 
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:184)
at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(Unknown 
Source)
at 
org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:117)
at 
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:110)
at 
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:312)
at 
org.apache.avalon.excalibur.datasource.J2eeDataSource.getConnection(J2eeDataSource.java:124)

What call is it talking about?

Ugo

-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]



__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: Using J2EE datasources

2002-09-23 Thread JohnsBrn

This looks like a Tomcat issue to me at this point. After looking around at some 
Tomcat docs, the only two suggestions I have are that you do not have an AuthType 
specified in your Resource tag (auth=Container). I don't know if this is required. 
Also, did you check to make sure you updated the name in your ResourceParams entry to 
add jdbc/. Everything seems to be working OK on the Cocoon side I think.

Ugo Cei [EMAIL PROTECTED] wrote:

[EMAIL PROTECTED] wrote:
 Are you sure you have a valid datasource in Tomcat? Looks like it's having trouble 
creating a connection. I noticed 
 valueoracl.jdbc.driver.OracleDriver/value 
 contains a type-o. Shouldn't it be oracle.jdbc.driver.OracleDriver instead of oracl 
with no e?

The error is just a typo due to cutpaste. The name of the class is 
correct in the server.xml file. But yes, it looks like Tomcat has 
troubles creating a connection, even though all it reports in his logs 
is the following:

DBCP DataSource configured without a 'username'

which I can't figure out because I sure have a username in the 
datasource configuration.

Ugo

-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]



__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: Using J2EE datasources

2002-09-23 Thread JohnsBrn

Also, I'd check out the commons source to see what exactly it's choking on.

[EMAIL PROTECTED] wrote:

This looks like a Tomcat issue to me at this point. After looking around at some 
Tomcat docs, the only two suggestions I have are that you do not have an AuthType 
specified in your Resource tag (auth=Container). I don't know if this is required. 
Also, did you check to make sure you updated the name in your ResourceParams entry to 
add jdbc/. Everything seems to be working OK on the Cocoon side I think.

Ugo Cei [EMAIL PROTECTED] wrote:

[EMAIL PROTECTED] wrote:
 Are you sure you have a valid datasource in Tomcat? Looks like it's having trouble 
creating a connection. I noticed 
 valueoracl.jdbc.driver.OracleDriver/value 
 contains a type-o. Shouldn't it be oracle.jdbc.driver.OracleDriver instead of 
oracl with no e?

The error is just a typo due to cutpaste. The name of the class is 
correct in the server.xml file. But yes, it looks like Tomcat has 
troubles creating a connection, even though all it reports in his logs 
is the following:

DBCP DataSource configured without a 'username'

which I can't figure out because I sure have a username in the 
datasource configuration.

Ugo

-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]



__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at 
http://webmail.netscape.com/

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]



__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]