You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Fabio Duo <fa...@swissonline.ch> on 2004/06/17 17:05:24 UTC

The url cannot be null

Hello,

I know that it is a newby question. But i didn't found a solution on the
Internet.

I want to establish a connection to a MySQL DB. But i recive the following
Error in the Brower Window: The url cannot be null.

I modyfied the DB example from the samples "shipped" with cocoon.

I tried a couple of possibilities without a solution or a idea what the
problem is.
I use jetty to run cocoon. 

Please excuse my poor english and i hope somebody has a hint for me.

Thank you
Fabio

Entry in web.xml(Newest Driver from the Mysql Homepage):

org.gij.mm.mysql.Driver

Enrty in cocoon.xconf in the datasources:


		<jdbc name="DA">
		<pool-controller min="5" max="10"/>
		<dburl>jdbc:mysql://localhost/DA</dburl>
		<User>root</User>
		<password>alta</password>			
		</jdbc>


Sitemap:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- CVS $Id: sitemap.xmap,v 1.13 2003/11/18 07:12:10 tony Exp $ -->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
	
	<map:components>
	<map:transformer name="sql" logger="sitemap.transformer.sql"
src="org.apache.cocoon.transformation.SQLTransformer"/>
	</map:components>
	
	
	<!-- =========================== Views
=================================== -->
	<map:views>
		<map:view from-label="content" name="content">
			<map:serialize type="xml"/>
		</map:view>
		<map:view from-label="content" name="pretty-content">
			<map:transform
src="context://stylesheets/system/xml2html.xslt"/>
			<map:serialize type="html"/>
		</map:view>
		<map:view from-position="last" name="links">
			<map:serialize type="links"/>
		</map:view>
	</map:views>
	<!-- =========================== Pipelines
================================= -->
	<map:pipelines>
		<map:pipeline>
		<map:match pattern="test">
	<map:generate src="sql-page.xml"/>
	<map:transform type="sql">
		<map:prameter name="use_connection" value="DA"/>
	</map:transform>
	<map:transform src="sql2html.xsl" />
	<map:serialize/>
	</map:match>
	</map:pipeline>
	</map:pipelines>
</map:sitemap>


RE: The url cannot be null

Posted by Fabio Duo <fa...@swissonline.ch>.
Thanks. 
I was too stupid, sorry about this question.

Regards and Thanks 

-----Original Message-----
From: Scott Warren [mailto:scottwarren@ocom.com.au] On Behalf Of
scottwarren@froggy.com.au
Sent: Freitag, 18. Juni 2004 07:38
To: users@cocoon.apache.org; fabio.duo@swissonline.ch
Subject: RE: The url cannot be null

Check your spelling 
       <map:prameter name="use_connection" value="DA"/> It should be
       <map:parameter name=“use_connection" value="DA"/>


Regards


Scott Warren
Ocom Software
... Exceeding Quality.....
web | ocom.com.au

-----Original Message-----
From: Fabio Duo [mailto:fabio.duo@swissonline.ch]
Sent: Friday, 18 June 2004 1:05 AM
To: users@cocoon.apache.org
Subject: The url cannot be null

Hello,
I know that it is a newby question. But i didn't found a solution on the
Internet. 
I want to establish a connection to a MySQL DB. But i recive the following
Error in the Brower Window: The url cannot be null.
I modyfied the DB example from the samples "shipped" with cocoon. 
I tried a couple of possibilities without a solution or a idea what the
problem is. 
I use jetty to run cocoon. 
Please excuse my poor english and i hope somebody has a hint for me. 
Thank you
Fabio
Entry in web.xml(Newest Driver from the Mysql Homepage): 
org.gij.mm.mysql.Driver
Enrty in cocoon.xconf in the datasources: 

                <jdbc name="DA">
                <pool-controller min="5" max="10"/>
                <dburl>jdbc:mysql://localhost/DA</dburl>
                <User>root</User>
                <password>alta</password>
                </jdbc> 

Sitemap: 
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- CVS $Id: sitemap.xmap,v 1.13 2003/11/18 07:12:10 tony Exp $ -->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"> 
        
        <map:components>
        <map:transformer name="sql" logger="sitemap.transformer.sql"
src="org.apache.cocoon.transformation.SQLTransformer"/>
        </map:components> 
        
        
        <!-- =========================== Views
=================================== -->
        <map:views>
                <map:view from-label="content" name="content">
                        <map:serialize type="xml"/>
                </map:view>
                <map:view from-label="content" name="pretty-content">
                        <map:transform
src="context://stylesheets/system/xml2html.xslt"/>
                        <map:serialize type="html"/>
                </map:view>
                <map:view from-position="last" name="links">
                        <map:serialize type="links"/>
                </map:view>
        </map:views>
        <!-- =========================== Pipelines
================================= -->
        <map:pipelines>
                <map:pipeline>
                <map:match pattern="test">
        <map:generate src="sql-page.xml"/>
        <map:transform type="sql">
                <map:prameter name="use_connection" value="DA"/>
        </map:transform>
        <map:transform src="sql2html.xsl" />
        <map:serialize/>
        </map:match>
        </map:pipeline>
        </map:pipelines>
</map:sitemap> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


RE: The url cannot be null

Posted by sc...@froggy.com.au.
Check your spelling 
       <map:prameter name="use_connection" value="DA"/>
It should be
       <map:parameter name=“use_connection" value="DA"/>


Regards


Scott Warren
Ocom Software
... Exceeding Quality.....
web | ocom.com.au

-----Original Message-----
From: Fabio Duo [mailto:fabio.duo@swissonline.ch] 
Sent: Friday, 18 June 2004 1:05 AM
To: users@cocoon.apache.org
Subject: The url cannot be null

Hello, 
I know that it is a newby question. But i didn't found a solution on the
Internet. 
I want to establish a connection to a MySQL DB. But i recive the following
Error in the Brower Window: The url cannot be null.
I modyfied the DB example from the samples "shipped" with cocoon. 
I tried a couple of possibilities without a solution or a idea what the
problem is. 
I use jetty to run cocoon. 
Please excuse my poor english and i hope somebody has a hint for me. 
Thank you 
Fabio 
Entry in web.xml(Newest Driver from the Mysql Homepage): 
org.gij.mm.mysql.Driver 
Enrty in cocoon.xconf in the datasources: 

                <jdbc name="DA"> 
                <pool-controller min="5" max="10"/> 
                <dburl>jdbc:mysql://localhost/DA</dburl> 
                <User>root</User> 
                <password>alta</password>                       
                </jdbc> 

Sitemap: 
<?xml version="1.0" encoding="ISO-8859-1"?> 
<!-- CVS $Id: sitemap.xmap,v 1.13 2003/11/18 07:12:10 tony Exp $ --> 
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"> 
        
        <map:components> 
        <map:transformer name="sql" logger="sitemap.transformer.sql"
src="org.apache.cocoon.transformation.SQLTransformer"/>
        </map:components> 
        
        
        <!-- =========================== Views
=================================== --> 
        <map:views> 
                <map:view from-label="content" name="content"> 
                        <map:serialize type="xml"/> 
                </map:view> 
                <map:view from-label="content" name="pretty-content"> 
                        <map:transform
src="context://stylesheets/system/xml2html.xslt"/> 
                        <map:serialize type="html"/> 
                </map:view> 
                <map:view from-position="last" name="links"> 
                        <map:serialize type="links"/> 
                </map:view> 
        </map:views> 
        <!-- =========================== Pipelines
================================= --> 
        <map:pipelines> 
                <map:pipeline> 
                <map:match pattern="test"> 
        <map:generate src="sql-page.xml"/> 
        <map:transform type="sql"> 
                <map:prameter name="use_connection" value="DA"/> 
        </map:transform> 
        <map:transform src="sql2html.xsl" /> 
        <map:serialize/> 
        </map:match> 
        </map:pipeline> 
        </map:pipelines> 
</map:sitemap> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org