Calling Actions from the Flow with Javascript

2003-06-09 Thread Bobby Mitchell
I have been able to call an action that has been declared in the root 
sitemap, but not from my sub-sitemap. Has this problem, 
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=105171947003418&w=2, 
been looked at further?

Bobby M



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


Error using "Protected Area" in samples

2003-05-29 Thread Bobby Mitchell
Using Version: 2.1m3-dev, RedHat 9.0, Tomcat 4.1.24.

I tried to access "Protected Area" in samples and get the following error:
  

org.apache.cocoon.ProcessingException: Unable to get transformer handler 
for stylesheets/simple-page2html.xsl: 
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in 
creating Transform Handler

cause: org.apache.excalibur.xml.xslt.XSLTProcessorException: Unable to 
create templates for stylesheet: 
file:/var/tomcat4/webapps/cocoon/samples/protected/stylesheets/simple-page2html.xsl

Anybody see this and figure it out?

--
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638


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


Cocoon-2.1-dev build fails

2003-03-25 Thread Bobby Mitchell
I'm trying to build Cocoon-2.1-dev from cvs  today, 3/24/03 on RedHat 
8.0, Tomcat-4.1.21.

The build fails with this error:
root/java/cocoon-2.1/tools/src/check-jars.xsl:89:36: Warning!
 File lib/optional/mail.jar is declared in lib/jars.xml, but doesn't 
appear in the lib/ directory.

mail.jar is in the lib/optional directory.

What can I do to make it work?

--
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638


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


Re: ServletException in JSPReader.generate()

2003-03-25 Thread Bobby Mitchell
I found my problem in the ownership in the /var/tomcat4 directory. The 
catalina.out log file showed java.io.FileNotFoundException: 
/var/tomcat4/files-495187227 (Permission denied). I changed all files & 
directories in /var/tomcat4 to tomcat4:tomcat4 and it works now. The 
file permissions/ownership were originally set when I installed from the 
RPM.

Bobby Mitchell wrote:

Hi,
   I'm using RedHat 8.0, Cocoon-2.0.4 from cvs 3/25/03, Tomcat 4.1.21, 
Sun  j2sdk1.4.1_02.

   I tried to access "cocoon/samples/jsp/welcome.htm" and get errors. 
At first the error is "file not found," but I saw in the logs where 
the path for error2html.xsl in the file "cocoon/samples/sitemap.xmap" 
is "common/style/xsl/html/error2html.xsl." I changed this to 
"samples/common/style/xsl/html/error2html.xsl" and I now get the error 
"ServletException in JSPReader.generate()."

   The following is from the sitemap.log:

 4473 DEBUG   (2003-03-25) 10:37.35:955   [sitemap.reader.jsp] 
(/cocoon/samples/jsp/welcome.htm) Thread-8/JSPReader: JSPReader 
executing JSP:/samples/jsp/welcome.jsp
  4474 DEBUG   (2003-03-25) 10:37.36:546   [sitemap.reader.jsp] 
(/cocoon/samples/jsp/welcome.htm) Thread-8/JSPReader: ServletException 
in JSPReader.generate()
  4475 org.apache.jasper.JasperException: Unable to compile class for JSP
  4476
  4477 An error occurred at line: -1 in the jsp file: null
  4478
  4479 Generated servlet error:
  4480 [javac] Since fork is true, ignoring compiler setting.
  4481 [javac] Compiling 1 source file
  4482 [javac] Since fork is true, ignoring compiler setting.
  4483

 4559 DEBUG   (2003-03-25) 10:37.36:552   [sitemap.reader.jsp] 
(/cocoon/samples/jsp/welcome.htm) Thread-8/JSPReader: Embedded 
ServletException JSPReader.generate()
  4560 INFO(2003-03-25) 10:37.36:553   [sitemap] 
(/cocoon/samples/jsp/welcome.htm) Thread-8/PipelineNode: Error while 
processing pipeline at 
file:/var/tomcat4/webapps/cocoon/samples/jsp/sitemap.xmap:27:19
  4561 org.apache.cocoon.ProcessingException: ServletException in 
JSPReader.generate()

 4625 DEBUG   (2003-03-25) 10:37.36:559   [sitemap] 
(/cocoon/samples/jsp/welcome.htm) Thread-8/ResourceLimitingPool: Put a 
org.apache.cocoon.reading.JSPReader back into the pool.
  4626 INFO(2003-03-25) 10:37.36:562   [sitemap] 
(/cocoon/samples/jsp/welcome.htm) Thread-8/PipelineNode: Error while 
processing pipeline at 
file:/var/tomcat4/webapps/cocoon/samples/sitemap.xmap:44:17
  4627 org.apache.cocoon.ProcessingException: ServletException in 
JSPReader.generate()

Any ideas on how I can get my jsp samples to work?

Thanks

--
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638




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


ServletException in JSPReader.generate()

2003-03-25 Thread Bobby Mitchell
Hi,
   I'm using RedHat 8.0, Cocoon-2.0.4 from cvs 3/25/03, Tomcat 4.1.21, 
Sun  j2sdk1.4.1_02.

   I tried to access "cocoon/samples/jsp/welcome.htm" and get errors. 
At first the error is "file not found," but I saw in the logs where the 
path for error2html.xsl in the file "cocoon/samples/sitemap.xmap" is 
"common/style/xsl/html/error2html.xsl." I changed this to 
"samples/common/style/xsl/html/error2html.xsl" and I now get the error 
"ServletException in JSPReader.generate()."

   The following is from the sitemap.log:

 4473 DEBUG   (2003-03-25) 10:37.35:955   [sitemap.reader.jsp] 
(/cocoon/samples/jsp/welcome.htm) Thread-8/JSPReader: JSPReader 
executing JSP:/samples/jsp/welcome.jsp
  4474 DEBUG   (2003-03-25) 10:37.36:546   [sitemap.reader.jsp] 
(/cocoon/samples/jsp/welcome.htm) Thread-8/JSPReader: ServletException 
in JSPReader.generate()
  4475 org.apache.jasper.JasperException: Unable to compile class for JSP
  4476
  4477 An error occurred at line: -1 in the jsp file: null
  4478
  4479 Generated servlet error:
  4480 [javac] Since fork is true, ignoring compiler setting.
  4481 [javac] Compiling 1 source file
  4482 [javac] Since fork is true, ignoring compiler setting.
  4483

 4559 DEBUG   (2003-03-25) 10:37.36:552   [sitemap.reader.jsp] 
(/cocoon/samples/jsp/welcome.htm) Thread-8/JSPReader: Embedded 
ServletException JSPReader.generate()
  4560 INFO(2003-03-25) 10:37.36:553   [sitemap] 
(/cocoon/samples/jsp/welcome.htm) Thread-8/PipelineNode: Error while 
processing pipeline at 
file:/var/tomcat4/webapps/cocoon/samples/jsp/sitemap.xmap:27:19
  4561 org.apache.cocoon.ProcessingException: ServletException in 
JSPReader.generate()

 4625 DEBUG   (2003-03-25) 10:37.36:559   [sitemap] 
(/cocoon/samples/jsp/welcome.htm) Thread-8/ResourceLimitingPool: Put a 
org.apache.cocoon.reading.JSPReader back into the pool.
  4626 INFO(2003-03-25) 10:37.36:562   [sitemap] 
(/cocoon/samples/jsp/welcome.htm) Thread-8/PipelineNode: Error while 
processing pipeline at 
file:/var/tomcat4/webapps/cocoon/samples/sitemap.xmap:44:17
  4627 org.apache.cocoon.ProcessingException: ServletException in 
JSPReader.generate()

Any ideas on how I can get my jsp samples to work?

Thanks

--
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638


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


Re: bad class file exception

2002-11-13 Thread Bobby Mitchell
McNeil, Shane wrote:


Hi,

I am attempting to call a custom Java API from an XSP document as 
follows (simplified)...


http://apache.org/xsp";>

SIM.Zapi.*

 Should this line be

   SIM.ZApi.*

   instead? It looks like a naming conflict of some kind 
based on the error message below.




public String getSimDoc()
{
ZAssociation za  = new ZAssociation("localhost:7810");
return "OK";
}


getSimDoc()




Can anyone tell me why I am getting the following error...

Language Exception
   
More precisely:
   
org.apache.cocoon.ProcessingException: Language Exception: 
org.apache.cocoon.components.language.LanguageException: Error 
compiling getsimdoc_xsp:

Line 66, column 4: cannot access class ZAssociation; bad class 
file (java.lang.RuntimeException: class file: SIM.Zapi.ZAssociation 
contains wrong class: SIM.ZApi.ZAssociation)

Line 66, column 27: constructor ZAssociation(java.lang.String) not 
found in class SIM.Zapi.ZAssociation
Line 0, column 0:
2 errors


I can call the API from a standard Java application successfully.

Regards,

Shane McNeil

Analyst Programmer
Corporate Document Technologies
STANDARDS AUSTRALIA



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: null pointer exception in servlet

2002-11-12 Thread Bobby Mitchell
Jenny Brown wrote:


I had indeed missed that step.  I've done it now, but don't seem to be
having any better results... same error.  I'm not sure how to test that
the /jre/lib/ changes actually took effect though.  I did restart tomcat
just in case.
 


Also, make sure to delete the contents of the tomcat work directory 
before you restart tomcat.



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



Re: Accessing the output of a modular input module in xsp

2002-10-30 Thread Bobby Mitchell
Hugo Burm wrote:


How can I access the output of an input module in an XSP page?
 




xmlns:xsp="http://apache.org/xsp";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:xsp-session="http://apache.org/xsp/session/2.0";
>








--
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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: Adding a violation in xmlforms

2002-10-21 Thread Bobby Mitchell
I did this by using session-propagator action and then adding an if-else 
statement in the WizardAction class.

   212   
   213 
   214 
   215 
   216   
   217 
   218 
   219   

   188 //At this point violation is going to act as an error holder
   189   if ( ( getSession( false ).getAttribute( "violation" ) != 
null ) &&
   190 ( getSession( false ).getAttribute( "violation" 
).toString().length() > 0 ) )
   191   {
   192
   193 getLogger().debug( "ListAction Error: violation: " + 
getSession( false ).getAttribute( "violation" ).toString() );
   194
   195 Violation v = new Violation();
   196 v.setPath( "Test" );
   197 v.setMessage( getSession( false ).getAttribute( 
"violation" ).toString() );
   198 Violation[] va = { v };
   199 getForm().addViolations( Arrays.asList( (Object[])va ) );
   200   }

  

Rob Johnston wrote:

Is it possible to do some validation on input (outside the scope of
schematron) in the WizardAction class, and if this validation fails, add
a new violation so that the xmlform transformer will properly add in
xf:violation tags and flow will halt until the violation is cleared up?

thanks,
rob

-
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]>
 


--
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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: Cocoon Resource Not Found Depending On Database Query

2002-10-21 Thread Bobby Mitchell
JD Daniels wrote:


Hi All,

I have the following Datasource in my xconf file:

	
		
		jdbc:mysql://host/database_one/
		user
		pass
	

And This xsp:


	database_one
	
		SELECT * FROM thetable LIMIT 1
		
		
			

	
		
	

			
		
	



The weirdness is:

If thetable does not exist in database one, the xsp executes correctly and
gives me the MySQL Error Saying the table does not exist. But when I create
a query that should work (ie a table that really does exist), I get Cocoon 2
error:

The requested URI "/cocoon/mount/test/test.xsp" was not found


Does the file listed above exist in that directory?



Why would Cocoon not map it correctly ?? I am confused :(

Sitemap entry:

			


			


I am using Tomcat 4 + RedHat

JD Daniels


-
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]>
 


--
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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: mod-db example not working.

2002-10-16 Thread Bobby Mitchell

>
>
>Could you be a bit more specific, what values you are referring to?
>  
>
I had the most trouble figuring out the descriptor file.
   
 
   
   




   








I know that a lot of info is included in the database.xml file in the 
sample, but I think it would be helpful to slow people like me to have 
it in the documentation, also.

Bobby

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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: mod-db example not working.

2002-10-16 Thread Bobby Mitchell

Antonio Gallardo Rivera wrote:

>Bobby:
>
>Are you using the lastes CVS too?
>
Yes, from about 2 weeks ago.

>
>Antonio Gallardo
>
>El Miércoles, 16 de Octubre de 2002 08:53, Bobby Mitchell escribió:
>  
>
>>Bobby Mitchell wrote:
>>
>>
>>>Antonio Gallardo Rivera wrote:
>>>  
>>>
>>>>I am trying to start the example of mod-db using PostgreSQL.
>>>>
>>>>Currently, I have the autoincr, working, but the problem now is
>>>>inserting a new row in the table "groups" - the easier one ;).
>>>>
>>>>In the database.xml there is defined as:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>Also
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>In the userlist.xsp there is a form that handle the new-group action:
>>>>
>>>>
>>>> 
>>>>   
>>>> 
>>>> 
>>>>  
>>>>
>>>>
>>>>
>>>>But when I try to Add a new group, It cannot get the groups.gname
>>>>parameter. It store a null. In the sitemap.log I found the following:
>>>>
>>>>Current Sitemap Parameters:
>>>>LEVEL 2
>>>>PARAM: 'add-group' VALUE: 'new group'
>>>>PARAM: 'groups.gname' VALUE: 'wsqa'
>>>>LEVEL 1
>>>>PARAM: '../0' VALUE: 'user-list'
>>>>PARAM: '../1' VALUE: 'user-list'
>>>>
>>>>Thread-9/DefaultComponentFactory: ComponentFactory creating new
>>>>instance of org.apache.cocoon.acting.modular.DatabaseAddAction.
>>>>Thread-9/DefaultComponentFactory: no logger attribute available,
>>>>using standard logger
>>>>
>>>>Thread-9/AbstractComplementaryConfigurableAction: (Re)Loading
>>>>database.xml
>>>>Thread-9/DatabaseAction: modeTypes : {1=others, 2=attribute, 0=autoincr}
>>>>Thread-9/DatabaseAction: i=0
>>>>Thread-9/DatabaseAction: requested mode was "autoincr" returning
>>>>"autoincr"
>>>>Thread-9/DatabaseAction: i=1
>>>>Thread-9/DatabaseAction: requested mode was "others" returning "others"
>>>>Thread-9/DatabaseAction: query: INSERT INTO groups (gname) VALUES (?)
>>>>Thread-9/DatabaseAction: Trying to set column groups.gname from
>>>>request using getAttribute method
>>>>Thread-9/DatabaseAction: Setting column groups.gname [0] null
>>>>Thread-9/DatabaseAction: > row no. 0
>>>>Thread-9/DatabaseAddAction: Automatically setting key
>>>>Thread-9/DatabaseAction: Setting column groups.gname[0] to null
>>>>Thread-9/DatabaseAction: Could not select output mode attribute:null
>>>>Thread-9/DatabaseAction: Setting column groups.gid[0] to 10
>>>>Thread-9/DatabaseAction: Could not select output mode attribute:null
>>>>Thread-9/DatabaseAction: Could not select output mode attribute:null
>>>>Thread-9/DefaultComponentFactory: ComponentFactory decommissioning
>>>>instance of  org.apache.cocoon.acting.modular.DatabaseAddAction.
>>>>
>>>>Also, the sitemap is:
>>>>
>>>> 
>>>> 
>>>>
>>>>
>>>>  
>>>>
>>>> 
>>>>
>>>>
>>>>Please help,
>>>>
>>>>
>>>Check the documentation at User Documentation/Actions/Database. Read
>>>closely the sections "How to obtain Values" and "How to store Values
>>>e.g. in your Session".
>>>
>>>It's not completely clear, but it helps. Here are some examples from
>>>what I have done so far. I hope they are right.
>>>
>>>1. Declaration of the modular action in the sitemap:
>>> >>   src="org.apache.cocoon.acting.modular.DatabaseAddAction">
>>>   
>>>   
>>>   session-attribute
>>>   
>>> 
>>>2. Define  in the sitemap:
>>>  
>>>   
>>>   >>value"/>
>>>   
>>> 
>>>
>>>Hope 

Re: Cocoon Connection Pooling and Database Shutdown

2002-10-16 Thread Bobby Mitchell

Hunsberger, Peter wrote:

>>>Why should I use carriage returns in my messages, Berin?
>>>  
>>>
>>So that we don't have to scroll on forever in one direction, and it makes
>>
>>
>it
>  
>
>>alot easier to interpose comments throughout your message--adding context
>>
>>
>to
>  
>
>>other people's response.
>>
>>
>
>Berin, what mail client are you using?  Most have a configurable setting to
>tell them when to wrap long lines.  I for one only put in CR/LF when
>starting new paragraphs; I've been using e-mail for some 20 years now
>(showing my age! ;-) and never had anyone complain...
>
I'm trying to forget about age, but I'm forgetting parts of everything. 
I've even forgotten how old I am at times.

>
>
>-
>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]>
>  
>


-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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: mod-db example not working.

2002-10-16 Thread Bobby Mitchell

Bobby Mitchell wrote:

> Antonio Gallardo Rivera wrote:
>
>> I am trying to start the example of mod-db using PostgreSQL.
>>
>> Currently, I have the autoincr, working, but the problem now is 
>> inserting a new row in the table "groups" - the easier one ;).
>>
>> In the database.xml there is defined as:
>>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> Also
>>
>> 
>> 
>> 
>>
>> In the userlist.xsp there is a form that handle the new-group action:
>>
>> 
>>  
>>
>>  
>>  
>>   
>> 
>> 
>>
>> But when I try to Add a new group, It cannot get the groups.gname 
>> parameter. It store a null. In the sitemap.log I found the following:
>>
>> Current Sitemap Parameters:
>> LEVEL 2
>> PARAM: 'add-group' VALUE: 'new group'
>> PARAM: 'groups.gname' VALUE: 'wsqa'
>> LEVEL 1
>> PARAM: '../0' VALUE: 'user-list'
>> PARAM: '../1' VALUE: 'user-list'
>>
>> Thread-9/DefaultComponentFactory: ComponentFactory creating new 
>> instance of org.apache.cocoon.acting.modular.DatabaseAddAction.
>> Thread-9/DefaultComponentFactory: no logger attribute available, 
>> using standard logger
>>
>> Thread-9/AbstractComplementaryConfigurableAction: (Re)Loading 
>> database.xml
>> Thread-9/DatabaseAction: modeTypes : {1=others, 2=attribute, 0=autoincr}
>> Thread-9/DatabaseAction: i=0
>> Thread-9/DatabaseAction: requested mode was "autoincr" returning 
>> "autoincr"
>> Thread-9/DatabaseAction: i=1
>> Thread-9/DatabaseAction: requested mode was "others" returning "others"
>> Thread-9/DatabaseAction: query: INSERT INTO groups (gname) VALUES (?)
>> Thread-9/DatabaseAction: Trying to set column groups.gname from 
>> request using getAttribute method
>> Thread-9/DatabaseAction: Setting column groups.gname [0] null
>> Thread-9/DatabaseAction: > row no. 0
>> Thread-9/DatabaseAddAction: Automatically setting key
>> Thread-9/DatabaseAction: Setting column groups.gname[0] to null
>> Thread-9/DatabaseAction: Could not select output mode attribute:null
>> Thread-9/DatabaseAction: Setting column groups.gid[0] to 10
>> Thread-9/DatabaseAction: Could not select output mode attribute:null
>> Thread-9/DatabaseAction: Could not select output mode attribute:null
>> Thread-9/DefaultComponentFactory: ComponentFactory decommissioning 
>> instance of  org.apache.cocoon.acting.modular.DatabaseAddAction.
>>
>> Also, the sitemap is:
>>
>>  
>>  
>> 
>> 
>>   
>> 
>>  
>>
>>
>> Please help,
>>  
>>
>
> Check the documentation at User Documentation/Actions/Database. Read 
> closely the sections "How to obtain Values" and "How to store Values 
> e.g. in your Session".
>
> It's not completely clear, but it helps. Here are some examples from 
> what I have done so far. I hope they are right.
>
> 1. Declaration of the modular action in the sitemap:
>  src="org.apache.cocoon.acting.modular.DatabaseAddAction">
>
>
>session-attribute
>
>  
> 2. Define  in the sitemap:
>   
>
> value"/>
>
>  
>
> Hope this helps.

Forgot a couple of things.
In the descriptor file:













Here others-mode request is saying "get the values from however I 
defined type=request in the mode name".
Other values are: attrib - get values from attributes; session if 
 is session, request if  is request. others -- I'm not 
sure.
I could be absolutely wrong on this one, but it seems to work.

It would be really nice if we could list all combinations of values with 
a short description(not too short) about what each setting accomplishes 
and put it in the docs for the mod-db actions.

Bobby

>
>
>
>> Regards,
>>
>> Antonio Gallardo.
>>
>> -
>> 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]>
>>  
>>
>
>


-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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: mod-db example not working.

2002-10-16 Thread Bobby Mitchell

Antonio Gallardo Rivera wrote:

>I am trying to start the example of mod-db using PostgreSQL.
>
>Currently, I have the autoincr, working, but the problem now is inserting a 
>new row in the table "groups" - the easier one ;).
>
>In the database.xml there is defined as:
>
>
>   
>   
>   
>   
>   
>   
>   
>   
>
>
>Also
>
>
>   
>
>
>In the userlist.xsp there is a form that handle the new-group action:
>
>
>  
>
>  
>  
>   
> 
>
>
>But when I try to Add a new group, It cannot get the groups.gname parameter. 
>It store a null. In the sitemap.log I found the following:
>
>Current Sitemap Parameters:
>LEVEL 2
>PARAM: 'add-group' VALUE: 'new group'
>PARAM: 'groups.gname' VALUE: 'wsqa'
>LEVEL 1
>PARAM: '../0' VALUE: 'user-list'
>PARAM: '../1' VALUE: 'user-list'
>
>Thread-9/DefaultComponentFactory: ComponentFactory creating new instance of 
>org.apache.cocoon.acting.modular.DatabaseAddAction.
>Thread-9/DefaultComponentFactory: no logger attribute available, using 
>standard logger
>
>Thread-9/AbstractComplementaryConfigurableAction: (Re)Loading database.xml
>Thread-9/DatabaseAction: modeTypes : {1=others, 2=attribute, 0=autoincr}
>Thread-9/DatabaseAction: i=0
>Thread-9/DatabaseAction: requested mode was "autoincr" returning "autoincr"
>Thread-9/DatabaseAction: i=1
>Thread-9/DatabaseAction: requested mode was "others" returning "others"
>Thread-9/DatabaseAction: query: INSERT INTO groups (gname) VALUES (?)
>Thread-9/DatabaseAction: Trying to set column groups.gname from request using 
>getAttribute method
>Thread-9/DatabaseAction: Setting column groups.gname [0] null
>Thread-9/DatabaseAction: > row no. 0
>Thread-9/DatabaseAddAction: Automatically setting key
>Thread-9/DatabaseAction: Setting column groups.gname[0] to null
>Thread-9/DatabaseAction: Could not select output mode attribute:null
>Thread-9/DatabaseAction: Setting column groups.gid[0] to 10
>Thread-9/DatabaseAction: Could not select output mode attribute:null
>Thread-9/DatabaseAction: Could not select output mode attribute:null
>Thread-9/DefaultComponentFactory: ComponentFactory decommissioning instance of  
>org.apache.cocoon.acting.modular.DatabaseAddAction.
>
>Also, the sitemap is:
>
>  
>  
> 
> 
>   
> 
>  
>
>
>Please help,
>  
>

Check the documentation at User Documentation/Actions/Database. Read 
closely the sections "How to obtain Values" and "How to store Values 
e.g. in your Session".

It's not completely clear, but it helps. Here are some examples from 
what I have done so far. I hope they are right.

1. Declaration of the modular action in the sitemap:
  


session-attribute

  
2. Define  in the sitemap:
   



  

Hope this helps.



>Regards,
>
>Antonio Gallardo.
>
>-
>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]>
>  
>


-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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: PosgreSQL and Modular DB Actions.

2002-10-16 Thread Bobby Mitchell

Sure, I can work on that.

Christian Haul wrote:

>On 15.Oct.2002 -- 07:26 PM, Bobby Mitchell wrote:
>
>>Antonio Gallardo Rivera wrote:
>>
>>>Hi, I am trying to run the Modular Dabatase Example from the Cocoon site, 
>>>but with PostgreSQL 7.2.
>>>
>>>I am using Cocoon 2.1 (lastest CVS), Java 1.4.1, Tomcat 4.1.12 on Red Hat 
>>>Linux 7.3.
>>>
>>>Someone make it work?
>>>
>>>I am having problems with:
>>>
>>>
>>>
>>>
>>>  
>>>
>>I got it to work with Sybase. Above, the mode name="auto", by default is 
>>configured in /WEB_INF/cocoon.xconf as 
>>org.apache.cocoon.components.modules.database.HsqlIdentityAutoIncrementModule. 
>>I had to add a description for the ManualAutoIncrementModule.
>>
>
>Bobby, could you spare the time and try to come up with an
>AutoIncrementModule for Sybase? It should be fairly easy to adopt one
>of the other ones to Sybase. That would be really great!
>
>Coincidently, I have just received such a module for PostgreSQL :-)
>
>   Chris.
>

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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: PosgreSQL and Modular DB Actions.

2002-10-15 Thread Bobby Mitchell

Antonio Gallardo Rivera wrote:

>Hi, I am trying to run the Modular Dabatase Example from the Cocoon site, but 
>with PostgreSQL 7.2.
>
>I am using Cocoon 2.1 (lastest CVS), Java 1.4.1, Tomcat 4.1.12 on Red Hat 
>Linux 7.3.
>
>Someone make it work?
>
>I am having problems with:
>
>
>  
>  
>
>
I got it to work with Sybase. Above, the mode name="auto", by default is 
configured in /WEB_INF/cocoon.xconf as 
org.apache.cocoon.components.modules.database.HsqlIdentityAutoIncrementModule. 
I had to add a description for the ManualAutoIncrementModule.

>
> 
>  
>  
> 
> 
>
>
>The problem is that always it trought me a exception that tell:
>
>java.sql.SQLException: ERROR:  ExecAppend: Fail to add null value in not null 
>attribute gname
>
>What I am doing wrong?
>
>Antonio Gallardo
>
>-
>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]>
>

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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: How do I match cocoon-action-*

2002-10-15 Thread Bobby Mitchell

>
>
>Someone else just asked me this last week, so I wrote one (see
>attachment). It's tested with C2.03. You'll need to compile this and put
>it an jar and put that in WEB-INF/lib (let me know if you need more help
>on this).
>
>It is of course possible that there are multiple request parameter names
>that match, but this matcher will take the first one that it encounters.
>  
>

IMHO this should be a part of the Cocoon project.

Thanks.

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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: How do I match cocoon-action-*

2002-10-14 Thread Bobby Mitchell

>
>
>
>However, there is a RequestParameterExistsAction that could be used if
>you knew all possible values for "*"
>
>   Chris.
>  
>
Here is what I have tried:
 
   
   
 

This particular instance matched cocoon-action-prev. I can see that I 
can use 'cocoon-action-prev' and obtain the value 'Prev', but I want the 
value 'prev', the last part of cocoon-action-*. Is this possible with 
this action?


-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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: How do I match cocoon-action-*

2002-10-14 Thread Bobby Mitchell

Antonio Gallardo Rivera wrote:

>Try using this:
>
>
>
>
This example will match a request parameter with the name of 
 cocoon-action-*, with the * as a literal character. I have tried all 
sorts of different matchers and haven't found one that works.

Anybody else got any tips?

>  
>
-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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]>




How do I match cocoon-action-*

2002-10-14 Thread Bobby Mitchell

I want to be able to match cocoon-action-* and use the value {1}. Is 
this possible? Which matcher?

Thanks

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638




-
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: I feel stupid. COCOON + TOMCAT

2002-10-01 Thread Bobby Mitchell

>
>
>
>This is not the case.  I believe the documentation to be out of date for
>this but for as long as I have been using cocoon (a few months now)
>there has been a downloadable binary for the latest release that is
>compiled for and works with the 1.4 JVM.  It is accessible alongside
>the normal cocoon binaries.
>
Are you using database connections, too?

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638




-
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: How to test a parameter in the sitemap ?

2002-10-01 Thread Bobby Mitchell

Ganael LAPLANCHE wrote:

>Hi all,
>
>How would you test an URL parameter (e.g.
>http://foo.com:8080/myfile.xml?bar=hello) in the
>sitemap ? How can I retreive 'hello' from the URL ?
>
>  
>
I'm not sure about retreiving 'hello', but you can do this:


  






   


Look through all of the matchers and selectors available in the apidocs.

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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: JDK 1.3.1 is driving me MAD!

2002-09-27 Thread Bobby Mitchell

Roger Ting wrote:

>
> Have anyone got the prolem of using ESQL when using cocoon 2.0.3 and
> Tomcat 4.0.4 and jdk 1.3.1 on unix solaris? i follow all the correct 
> instruction and cocoon just keep throwing me no suitable driver error.
>
> I have put in the j connector jar file into WEB-INF/lib directory.
> configure cocoon.xconf and web.xml.
>
> The weird thing is i did the same thing on my pc except my jdk is jdk 
> 1.4 . It works perfectly okay. When i do it on a unix machine with jdk 
> 1.3.1 it throws no suitable driver error. I can't use jdk 1.4 on the 
> unix server because it keep throwing java.lang.OutOfMemoryError error 
> when i fire up tomcat. As it is a share machine each user have limited 
> memory. I asked about this before Apparently, Tomcat is memory starved.
>
> Is it a know issue that the setup of Solaris , jdk 1.3.1 or lower 
> ,mysql, cocoon 2.0.3 and Tomcat 4.0.4 doesn't work for ESQL? all the 
> xsp is fine as long we don't need to connect to mysql database.
>
> Anyone? 

According to http://xml.apache.org/cocoon/installing/index.html

Due to changes in JDBC between JDK 1.3 and JDK 1.4, it is not possible 
to use Cocoon build on JDK 1.3 with JDK 1.4 when it comes to database 
connections.


>
>
>
> _
> Join the world’s largest e-mail service with MSN Hotmail. 
> http://www.hotmail.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]>



-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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: Need help with XMLForm

2002-09-26 Thread Bobby Mitchell

Bobby Mitchell wrote:

> I'm trying to use the logger with my version of WizardAction.java.
>
> I tried to get info by putting the statement: 
> getLogger().debug("TESTING: "); in perform(), but I don't get any 
> messages in the log files.
>
> How can I use the logger in WizardAction.java?
>
Another stupid mistake. I made changes to the wrong file. Sweet.

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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]>




Need help with XMLForm

2002-09-26 Thread Bobby Mitchell

I'm trying to use the logger with my version of WizardAction.java.

I tried to get info by putting the statement: 
getLogger().debug("TESTING: "); in perform(), but I don't get any 
messages in the log files.

How can I use the logger in WizardAction.java?

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638




-
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: Help: multiple descriptor files for mod-db

2002-09-25 Thread Bobby Mitchell

Christian Haul wrote:

> Bobby Mitchell wrote:
>
>> I'm trying to use multiple descriptor files for mod-db actions. 
>
>
> Any other messages above this one? Like "could not find table set" or 
> something? 

None. I found the problem in the database.xml files. I did not close 
 when I added another key to the file.

>
> Sounds fair enough. Personally, I use 1.3.1_04 and tomcat 4.1.7. There 
> were some issues with 4.0.x at some point but I think they were resolved.

Now I'm using Tomcat 4.1.7 and will go to 4.1.12 soon.

Thanks for your reply.

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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]>




Need help with XMLForm

2002-09-25 Thread Bobby Mitchell

Can I use xsp to add Violations to an instance of XMLForm? If so, can 
you provide a short code snippet?

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638




-
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]>




Help: multiple descriptor files for mod-db

2002-09-24 Thread Bobby Mitchell

I'm trying to use multiple descriptor files for mod-db actions.  

My actions are defined in the sitemap as:
 66   
 68 db3.xml
 69 false
 70   
 71
 72   
 74 db1.xml
 75 true
 76 false
 77 session
 78   
 79
 80   
 82 db2.xml
 83 true
 84 false
 85 session
 86   

The error message:
_org.apache.cocoon.ProcessingException: Could not add record: 
org.apache.avalon.framework.configuration.ConfigurationException: Error 
trying to load configurations for resource: 
file:/var/tomcat4/webapps/cocoon/list/db1.xml_

All of these files have file permissions of  664 and are owned by tomcat4.

I am using Cocoon 2.1-dev from cvs around Aug 15, Tomcat 4.0.2, and JDK 
1.4.1 from Sun.

I have also tried using , but I get the same results.

Are there any limitations on file name, such as excluded characters, 
length, etc?

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638




-
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: building from CVS

2002-09-13 Thread Bobby Mitchell



Barbara Post wrote:

>  [javadoc]
>E:\BP\cvs\cocoon21\xml-cocoon2\build\cocoon\src\org\apache\cocoon\co
>mponents\pipeline\AbstractProcessingPipeline.java:76: Class
>sun.tools.tree.ThisE
>xpression not found in import.
>  [javadoc] import sun.tools.tree.ThisExpression;
>  [javadoc]^
>  [javadoc] javadoc: warning - Import not found:
>sun.tools.tree.ThisExpression -
> ignoring!
>
>Built it 10 minutes ago. jdk 1.3.1.
>
>Also got :
>
> [echo] *  Classes of the optional package Activation are not
> [echo] *  available. Apache Cocoon builds without them.
> [echo] *
> [echo] *  The SUN Activation package is required for the AxisRPCReader
>clas
>s
> [echo] *
> [echo] *  Recovery:
> [echo] *  Get the SUN Activation package and place the jar in the
>lib/local
> dir
>
>Which "activation" package ?
>
Could it be the JavaBeans Activation Framework?
http://java.sun.com/products/javabeans/glasgow/jaf.html

>
>
>And also this message at the beginning :
>
>[available] DEPRECATED -  used to override an existing property.
>[available]   Build file should not reuse the same property name for
>different v
>alues.
>
>What does this exactly mean ?
>
>Babs
>
>
>-
>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]>
>

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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: Need help with XMLForm and Mod-db (Please disregard my earlierposts)

2002-09-12 Thread Bobby Mitchell

My solution is to change the code in DatabaseAction.java to remove the 
table_name. from the variable names. I made this change to test it and 
it works. I suppose I need to change the code in such a way to allow a 
user to supply a configuration directive such as 
false. Is there any reason I 
should not do this or is there a better way?

I'm cross-posting this to the dev list.

Bobby Mitchell wrote:

> To start with, I apologize for posting so many different posts lately. 
> I'm stuck and I'm not sure which way to go, but I have been working to 
> find a solution. Please disregard the several earlier posts.
> I'm trying to use XMLForms and Mod-db actions together. My problem 
> stems from the fact that mod-db uses request parameters from a key 
> column to set the ?'s in the query and when setting the request 
> parameters to the column values retrieved it sets them by appending 
> table_name. to the column/req-param name. My request parameters and 
> column names are the same.
>
> Assume my query is select ID, EMAIL from NIAC_MAILLIST where EMAIL=?  
> Mod-db is now looking for a request parameter called 
> NIAC_MAILLIST.EMAIL and if found it successfully grabs the data from 
> the database. Otherwise it exits. If I append 
> &NIAC_MAILLIST.EMAIL="b@n" to the query string mod-db works and 
> creates the variables for the data, but XMLForm generates an "Invalid 
> data format" error. I created a session attribute called 
> NIAC_MAILLIST.EMAIL and am setting it to EMAIL. If mod-db would set  
> the ? from the session attributes instead of request parameters I 
> could set it that way. Otherwise I need to find a way to get mod-db to 
> not append the table name to the front of the column.
> Any ideas?
>
> database.xml
> 
>   niac_db
>
>  
> 
>
>
>
>  
>   
>   
>  
>   
> 
>
> sitemap snippet where I declare the select action
> 
>  database.xml
>  true
> 
>
> pipeline where I'm trying to use it.   
>
>
>
>
>  
>  
>
>
>  
> value="cocoon-xmlform-view"/>
>
> 
>  
>
>
>   value="{EMAIL}"/>
>
>
>  
>
>  
>
>  
>
>
>
>
>  
>   value="http://www.ascc.net/xml/schematron"/>
>   value="schematron/wizard-xmlform-sch-report.xml"/>
>  
>  
>  
>
>  
>  
>  
>  
>   src="context://samples/stylesheets/xmlform/xmlform2html.xsl"/>
>  
>
>  
>
>
>


-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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: How to use Request-parameter Selector with the submit button

2002-09-12 Thread Bobby Mitchell

Antonio Gallardo Rivera wrote:

>Hi all!
>
>I tried to resolve a problem about nested  in C2.1. To try to 
>work with a database actions and formvalidator.
>
>Given 2 submit buttons in a form: one for update and the second for delete:
>
>The name of the parameters will be:
>
>cocoon-action-Update
>cocoon-action-Delete
>
>How I can know in the sitemap what button was pressed?
>

Couple of ways:
1:
 

 
 

 

2:
cocoon-action=Update or cocoon-action=Delete

  
   
 
 

 
 

 
   
 

>
>Regards,
>
>Antonio Gallardo
>
>
>
>
>-
>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]>
>  
>


-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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: putting a request param in session and using it in the sitemap

2002-09-12 Thread Bobby Mitchell

Yvan Peter wrote:

>
>Hello,
>
>Here is the behavior i would like to achieve in the sitemap :
>
>A first access will be with an URL of that pattern :
>  http://localhost/login?device={Voice, WAP or Web}
>
>Then the device parameter is not given anymore and of course, i need
> to remember it to choose the appropriate XSL...
>
>I did not find how to put a request parameter in a session and get 
> it back latter from that session for use in the sitemap.
>
>Here is the "best" solution i could achieve after a whole day
> trying to fill in the blanks without success...
>
>   
> 
>   
>   
> 
> 
> 
>   
> 
>   
>
>   
> 
> 
>   
>   
> 
>   
>   
>   
>   
>   
> 
>   
> 
> 
>   
>
>   I used a redirection because i could not even imagine doing this in 
> one pipeline...
>
>Any help in that matter would be greatly appreciated :-)
>
>Yvan
>
    
    


   
 
 
   
 
   


-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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]>




Need help with mod-db and XMLForm (Please disregard my earlier posts)

2002-09-11 Thread Bobby Mitchell

  To start with, I apologize for posting so many different posts lately. 
I'm stuck and I'm not sure which way to go, but I have been working to 
find a solution. Please disregard the several earlier posts.
I'm trying to use XMLForms and Mod-db actions together. My problem stems 
from the fact that mod-db uses request parameters from a key column to 
set the ?'s in the query and when setting the request parameters to the 
column values retrieved it sets them by appending table_name. to the 
column/req-param name. My request parameters and column names are the same.

Assume my query is select ID, EMAIL from NIAC_MAILLIST where EMAIL=?  
Mod-db is now looking for a request parameter called NIAC_MAILLIST.EMAIL 
and if found it successfully grabs the data from the database. Otherwise 
it exits. If I append &NIAC_MAILLIST.EMAIL="b@n" to the query string 
mod-db works and creates the variables for the data, but XMLForm 
generates an "Invalid data format" error. I created a session attribute 
called NIAC_MAILLIST.EMAIL and am setting it to EMAIL. If mod-db would 
set  the ? from the session attributes instead of request parameters I 
could set it that way. Otherwise I need to find a way to get mod-db to 
not append the table name to the front of the column.
Any ideas?

database.xml

  niac_db
   
 

   
   
   
 
  
  
 
  


sitemap snippet where I declare the select action

 database.xml
 true


pipeline where I'm trying to use it.   
   

   

 
 

   
 
   
   

 
   
   
 
   
   
 
   
 
   
 
   

   

 
 http://www.ascc.net/xml/schematron"; />
 
 
 
 

 
 
 
 
     
     
   
 
   


-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638




-
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]>




Mod-DB question

2002-09-11 Thread Bobby Mitchell

Can mod-db actions set ?'s using session attributes?  If yes, How?

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638




-
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]>




Sitemap Question

2002-09-11 Thread Bobby Mitchell

Is there any way to rewrite the request parameters in the sitemap and 
then send them to the next page?

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638




-
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]>




Using XMLForm with Mod-DB actions

2002-09-10 Thread Bobby Mitchell

I am trying to use XMLForm and the Mod-DB actions together. Mod-DB can 
take the request-parameter from XMLForm and perform an action, in this 
case, a select using a unique email address. In my XMLForm Bean the 
variable for this email address is EMAIL, so the request parameter is 
also EMAIL. Mod-DB tries to do a select ... where EMAIL=?, where ?= the 
request parameter TABLE_NAME.EMAIL.

I tried using


 



This adds a PARAM = TABLE_NAME.EMAIL to the sitemap, but mod-db doesn't 
use this. The  ? = null in this case.

I added [EMAIL PROTECTED] to the end of the URL as 
request parameters and mod-db got the correct data from the db, but 
XMLForm generates an error because TABLE_NAME.EMAIL is not in the bean 
as a variable.

Basically, I want to know how I can match these things up.  
Can anybody help?

TIA

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638




-
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: Need help with DatabaseSelectAction

2002-09-10 Thread Bobby Mitchell

That would be the modular db action.

Bobby Mitchell wrote:

> Is there any way that I can override the defaults and have the action 
> try to set just the column and not the table_name.column?
>   2168 DEBUG   (2002-09-10) 12:40.53:609   [sitemap] 
> (/cocoon/list/wizard) HttpProcessor[8180][1]/DatabaseAction: Trying to 
> set column table_name.column from request using getAttribute method
>
>

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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]>




Need help with DatabaseSelectAction

2002-09-10 Thread Bobby Mitchell

Is there any way that I can override the defaults and have the action try to set just 
the column and not the table_name.column? 

   2168 DEBUG   (2002-09-10) 12:40.53:609   [sitemap] (/cocoon/list/wizard) 
HttpProcessor[8180][1]/DatabaseAction: Trying to 
set column table_name.column from request using getAttribute method


-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638




-
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: XMLForm Wizard and Data Access

2002-09-03 Thread Bobby Mitchell

I have been working with Mod-DB and XMLForm and found that when you use 
the DatabaseSelectAction the values selected from the DB are stored in 
the request header. If you use  it will 
give you an attribute name like 
org.apache.cocoon.components.modules.output.OutputModule:users.name[0] 
where names[0] is an array of names based on your select statement, ie. 
"select id, names from sometable where id = 1". If only one row is 
retrieved then there is only one value in the array. This can be used to 
populate the form.



[EMAIL PROTECTED] wrote:

>Is there a way to add more items to the map that a FormWizardAction returns 
>(i.e. more than just the page parameter)?
>
>On Monday 02 September 2002 12:25 pm, [EMAIL PROTECTED] wrote:
>
>>I am trying to create a web application with the XMLForm wizard.
>>I have one major problem though.
>>
>>-- I am having trouble loading data into the jbean from a database
>>(imagine a screen to ident a user and then a screen to modify account
>>data).  As far as I can tell I would have to do the data access in the
>>Action.  I would really like to be able to use other cocoon data
>>functionality to do this.
>>
>>-- Is there any chance that there will be an example using the personnel
>>tables in the near future?  This would be extremely helpful
>>
>>
>>
>>-
>>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]>
>>
>
>
>-
>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]>
>

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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 compiling WizardAction.java for XMLForms

2002-08-29 Thread Bobby Mitchell

Yes, but I changed the directory to niac/list and it compiled OK.

Ivelin Ivanov wrote:

>You have a class in the
>org/apache/cocoon/niac/list/WizardAction.java
>directory. Did you make sure that the package declared within the class is
>org.apache.cocoon.niac.list
>?
>
>- Original Message -
>From: "Bobby Mitchell" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, August 29, 2002 3:14 PM
>Subject: Problem compiling WizardAction.java for XMLForms
>
>
>>I'm trying to compile my version of WizardAction.java and get a version
>>error. Can anybody help me figure this one out?
>>
>>Cocoon 2-1.dev on Linux, Tomcat 4.0.2
>>
>>[root@orion classes]# javac -classpath
>>
>/var/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.1-dev.jar:/var/tomcat4/weba
>pps/cocoon/WEB-INF/lib/excalibur-sourceresolve-20020820.jar
>
>>org/apache/cocoon/niac/list/WizardAction.java
>>org/apache/cocoon/niac/list/WizardAction.java:73: cannot access
>>org.apache.cocoon.acting.AbstractXMLFormAction
>>bad class file:
>>
>/var/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.1-dev.jar(org/apache/cocoon
>/acting/AbstractXMLFormAction.class)
>
>>class file has wrong version 48.0, should be 47.0
>>Please remove or make sure it appears in the correct subdirectory of the
>>classpath.
>>import org.apache.cocoon.acting.AbstractXMLFormAction;
>>
>>TIA
>>
>>--
>>Robert J. (Bobby) Mitchell
>>Systems Administrator
>>NASA Institute for Advanced Concepts
>>555A 14th St Atlanta, Ga. 30318
>>Phone: (404)347-9633 Fax: (404)347-9638
>>
>>
>>
>>
>>-
>>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]>
>>
>
>
>-----
>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]>
>

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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]>




(SUMMARY)Re: Problem compiling WizardAction.java for XMLForms

2002-08-29 Thread Bobby Mitchell

Doh. I was using the wrong javac.

Bobby Mitchell wrote:

> I'm trying to compile my version of WizardAction.java and get a 
> version error. Can anybody help me figure this one out?
>
> Cocoon 2-1.dev on Linux, Tomcat 4.0.2
>
> [root@orion classes]# javac -classpath 
> 
>/var/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.1-dev.jar:/var/tomcat4/webapps/cocoon/WEB-INF/lib/excalibur-sourceresolve-20020820.jar
> 
> org/apache/cocoon/niac/list/WizardAction.java
> org/apache/cocoon/niac/list/WizardAction.java:73: cannot access 
> org.apache.cocoon.acting.AbstractXMLFormAction
> bad class file: 
> 
>/var/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.1-dev.jar(org/apache/cocoon/acting/AbstractXMLFormAction.class)
> 
>
> class file has wrong version 48.0, should be 47.0
> Please remove or make sure it appears in the correct subdirectory of 
> the classpath.
> import org.apache.cocoon.acting.AbstractXMLFormAction;
>
> TIA
>

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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]>




Problem compiling WizardAction.java for XMLForms

2002-08-29 Thread Bobby Mitchell

I'm trying to compile my version of WizardAction.java and get a version 
error. Can anybody help me figure this one out?

Cocoon 2-1.dev on Linux, Tomcat 4.0.2

[root@orion classes]# javac -classpath 
/var/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.1-dev.jar:/var/tomcat4/webapps/cocoon/WEB-INF/lib/excalibur-sourceresolve-20020820.jar
 
org/apache/cocoon/niac/list/WizardAction.java
org/apache/cocoon/niac/list/WizardAction.java:73: cannot access 
org.apache.cocoon.acting.AbstractXMLFormAction
bad class file: 
/var/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.1-dev.jar(org/apache/cocoon/acting/AbstractXMLFormAction.class)
class file has wrong version 48.0, should be 47.0
Please remove or make sure it appears in the correct subdirectory of the 
classpath.
import org.apache.cocoon.acting.AbstractXMLFormAction;

TIA

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638




-
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: XMLForm & mod-db

2002-08-26 Thread Bobby Mitchell

Christian Haul wrote:

>On 24.Aug.2002 -- 09:01 AM, Ivelin Ivanov wrote:
>  
>
>>I am not very familiar with the modular db actions,
>>but from what I understand, you would be able to specify the name
>>of the session attribute where the modular db actions would read/write. You
>>can point the XMLForm model to the same bean.
>>
>>
>>
>>>I want to use XMLForm and the Modular Database actions together. I have
>>>looked for information and can't find out if this can be done or not.
>>>
>>>Can it be done?
>>>
>>>If so, how would I go about populating the java bean with information
>>>from the database?
>>>  
>>>
>
>Unfortunately, I haven't gotten up to speed with XMLForm, so I
>cannot give full advice. Anyway, the point with the mod-db actions
>is, that you can read / write data from / to arbitrary sources, as
>long as you have a class that does it and conforms to the InputModule
>/ OutputModule interfaces.
>
>So, if you know how to locate your bean instance, it would be trivial
>to write such a class. Supplied are currently only classes that write
>to session attributes or request attributes.
>
>Data can be read from a lot more sources, even complicated setups
>like reding an entry of a java.util.Map stored in a request attribute
>together with a default value are possible. You can chain those 
>InputModules that carry the "meta" part in their name for a great
>flexibility.
>
>I assume that this is going to be requested more frequently, so it
>would be nice if you could keep us updated. 
>
>   Chris.
>  
>
I would like to use mod-db to retrieve info from a database, but the 
mod-db example uses esql. Can I use DatabaseQueryAction to do this, and 
if so, how?

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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: Authentication Problem

2002-08-13 Thread Bobby Mitchell

Thanks. It works for me, too.

Carsten Ziegeler wrote:

>Hi again,
>
>I checked-in a fix and it should work now. Could you please
>verify this?
>
>Thanks
>Carsten 
>
>Carsten Ziegeler Chief Architect Open Source Group, S&N AG
>--
> Cocoon Consulting, Training and Projects
>--
>mailto:[EMAIL PROTECTED]  http://www.s-und-n.de
>http://ziegeler.bei.t-online.de
>
>
>>-Original Message-
>>From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, August 13, 2002 11:38 AM
>>To: [EMAIL PROTECTED]
>>Subject: RE: Authentication Problem
>>
>>
>>Hi, I think this error has the same reason as the one described
>>here:
>>
>>http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11405
>>
>>Could someone please test if changing the AbstractTextSerializer
>>fixes all these problems?
>>
>>Carsten
>>
>>>-Original Message-
>>>From: Bobby Mitchell [mailto:[EMAIL PROTECTED]]
>>>Sent: Monday, August 12, 2002 8:01 PM
>>>To: [EMAIL PROTECTED]
>>>Subject: Re: Authentication Problem
>>>
>>>
>>>I suppose I should be more specific:
>>>I tried to access the page
>>>http://www.niac.usra.edu:8180/cocoon/samples/authentication/login and
>>>get an error. It is included in the previous email. I am using 2-1-dev
>>>from CVS today, 12 Aug 2002, using build command './build.sh
>>>-Dinclude.webapp.libs=yes webapp'. I used my name for login, which has
>>>been inserted in HSQLDB, not that it should matter. I  am using Tomcat
>>>4.0.2 on RH 7.3.
>>>
>>>Bobby Mitchell wrote:
>>>
>>>>I'm having trouble getting the authentication samples to work in
>>>>2.1-dev, on Tomcat 4.0.2.
>>>>
>>>>I get the following error:
>>>>java.lang.IllegalStateException
>>>>at
>>>>
>>>org.apache.catalina.connector.HttpResponseFacade.sendRedirect(Http
>>>ResponseFacade.java:173)
>>>
>>>>at
>>>>
>>>org.apache.cocoon.environment.http.HttpResponse.sendRedirect(HttpR
>>>esponse.java:132)
>>>
>>>>at
>>>>
>>>org.apache.cocoon.environment.http.HttpEnvironment.redirect(HttpEn
>>>vironment.java:198)
>>>
>>>>at
>>>>
>>>org.apache.cocoon.environment.ForwardRedirector.redirect(ForwardRe
>>>director.java:115)
>>>
>>>>at
>>>>
>>>org.apache.cocoon.components.treeprocessor.sitemap.RedirectToURINo
>>>de.invoke(RedirectToURINode.java:91)
>>>
>>>>at
>>>>
>>>org.apache.cocoon.components.treeprocessor.AbstractParentProcessin
>>>gNode.invokeNodes(AbstractParentProcessingNode.java:83)
>>>
>>>>at
>>>>
>>>org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatch
>>>Node.invoke(PreparableMatchNode.java:163)
>>>
>>>>at
>>>>
>>>org.apache.cocoon.components.treeprocessor.AbstractParentProcessin
>>>gNode.invokeNodes(AbstractParentProcessingNode.java:107)
>>>
>>>>at
>>>>
>>>org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.in
>>>voke(PipelineNode.java:157)
>>>
>>>>at
>>>>
>>>org.apache.cocoon.components.treeprocessor.AbstractParentProcessin
>>>gNode.invokeNodes(AbstractParentProcessingNode.java:107)
>>>
>>>>at
>>>>
>>>org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.i
>>>nvoke(PipelinesNode.java:155)
>>>
>>>>at
>>>>
>>>org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T
>>>reeProcessor.java:327)
>>>
>>>>at
>>>>
>>>org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T
>>>reeProcessor.java:309)
>>>
>>>>at
>>>>
>>>org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invok
>>>e(MountNode.java:131)
>>>
>>>>at
>>>>
>>>org.apache.cocoon.components.treeprocessor.AbstractParentProcessin
>>>gNode.invokeNodes(AbstractParentProcessingNode.java:83)
>>>
>>>>at
>>>>
>>>org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatch
>&

Re: Usage of & in URLs

2002-08-12 Thread Bobby Mitchell

Themba Mbatha wrote:

>Hi all;
>
>Perhaps this has been asked. I need to show a url as in
>http://www.foo.com/some-path?arg1=value1&arg2=value2 into the
>
use &

http://www.foo.com/some-path?arg1=value1&arg2=value2



>
>transformed XML. I am getting errors with Cocoon (the generator, in
>particular) each time it encounters an & character. I am told this is an
>XML problem but I was wondering if anyone has had to deal with this type
>of problem.
>
>Thanx.
>
>
>
>
>-
>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]>
>

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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: Authentication Problem

2002-08-12 Thread Bobby Mitchell

I suppose I should be more specific:
I tried to access the page 
http://www.niac.usra.edu:8180/cocoon/samples/authentication/login and 
get an error. It is included in the previous email. I am using 2-1-dev 
from CVS today, 12 Aug 2002, using build command './build.sh  
-Dinclude.webapp.libs=yes webapp'. I used my name for login, which has 
been inserted in HSQLDB, not that it should matter. I  am using Tomcat 
4.0.2 on RH 7.3.

Bobby Mitchell wrote:

> I'm having trouble getting the authentication samples to work in 
> 2.1-dev, on Tomcat 4.0.2.
>
> I get the following error:
> java.lang.IllegalStateException
> at 
> 
>org.apache.catalina.connector.HttpResponseFacade.sendRedirect(HttpResponseFacade.java:173)
> 
>
> at 
> org.apache.cocoon.environment.http.HttpResponse.sendRedirect(HttpResponse.java:132) 
>
> at 
> 
>org.apache.cocoon.environment.http.HttpEnvironment.redirect(HttpEnvironment.java:198) 
>
> at 
> org.apache.cocoon.environment.ForwardRedirector.redirect(ForwardRedirector.java:115) 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.sitemap.RedirectToURINode.invoke(RedirectToURINode.java:91)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:163)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:157)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:155)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:327)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:309)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:131)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:163)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:157)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:155)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:327)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:309)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:131)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:163)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:157)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:155)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:327)
> 
>
> at 
> 
>org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:309)
> 
>
> at org.apache.cocoon.Cocoon.process(Cocoon.java:585)
> at 
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> at 
> 
>org.apache.catalina.core.ApplicationFilterChain.inter

Authentication Problem

2002-08-12 Thread Bobby Mitchell
0)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:536)

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638




-
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]>




XML Elements

2002-07-25 Thread Bobby Mitchell

Where can I find a list of XML elements? Also, I want to create some 
custom XML elements. How can I do this?

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638




-
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]>




Erros using

2002-07-25 Thread Bobby Mitchell

I have had problems with  so I changed the file 
cocoon/documentation/xdocs/index.xml from:

* 

  If you are looking for a past generation of Cocoon (no longer 
supported but still available),
  go to the http://xml.apache.org/cocoon1/"; >Cocoon 1.x 
area.
* 

to:
* 

  If you are looking for a past generation of Cocoon (no longer 
supported but still available),
  go to the http://xml.apache.org/cocoon1/?test=a"; >Cocoon 
1.x area.
* 


This doesn't seem to cause any problems, but when I change it to this:
* 

  If you are looking for a past generation of Cocoon (no longer 
supported but still available),
  go to the http://xml.apache.org/cocoon1/?test=a&test1=b"; 
 >Cocoon 1.x area.
* 

I get errors. There are two different variations:

   1. Sometimes I get the correct html output, but does not contain the 
link at all or anything after the link in the content section.
   2. Sometimes I get no output at all for the content.

When #1 happens the error.log/sitemap.log contains the following:
* 

error.log <http://www.niac.usra.edu/files/1.error.out>
sitemap.log <http://www.niac.usra.edu/files/1.sitemap.out>
* 

When #2 happens the error.log/sitemap.log contains the following:
* 

error.log <http://www.niac.usra.edu/files/2.error.out>
sitemap.log <http://www.niac.usra.edu/files/2.sitemap.out>
* 


How can I use  when there is a query_string with at least 2 
parameters?


-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638




-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638




-
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]>




XMLForms & Cocoon-2.0.3

2002-07-16 Thread Bobby Mitchell

Can XMLForms be used with Cocoon-2.0.3? If not, how can I download the 
Cocoon-2.1 branch from cvs.

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638



-
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: SUMMARY: Re: Problems with Database Tutorial

2002-07-09 Thread Bobby Mitchell

Bad patch file

Bobby Mitchell wrote:

> 
> 
> Christian Haul wrote:
> 
>> On 02.Jul.2002 -- 11:36 AM, Bobby Mitchell wrote:
>>
>>>>> While using Sybase I had to remove the  begin and 
>>>>> end tags in order to actually edit the entry, otherwise I get an 
>>>>> sql error stating that "SELECT name, department_id FROM employee 
>>>>> WHERE id = ? " is an error. The id is being passed as a ? so it 
>>>>> causes an error. When using Hsqldb I made no changes to the code.
>>>>>
>>>>>
>>> This behaviour is the same as before. Here is the error message:
>>>
>>>
>>> org.apache.cocoon.ProcessingException: Exception in 
>>> ServerPagesGenerator.generate(): java.lang.RuntimeException: Error 
>>> executing statement: SELECT name, department_id FROM employee WHERE 
>>> id = ? : com.sybase.jdbc2.jdbc.SybSQLException: Implicit conversion 
>>> from datatype 'CHAR' to 'INT' is not allowed. Use the CONVERT 
>>> function to run this query.
>>>
>>
>> Yep, error message says it all. The example is attempting to use a
>> String to set an int column. It looks like HSQLDB is more forgiving in
>> this. Change it to
>>
>> 
>>   SELECT name, department_id FROM employee
>>   WHERE id = > type="int">Integer.parseInt(> name="id" default="0"/>)
>> 
>>
>> and convert the string explicitly to an integer. I've set a default of
>> "0" in case the parameter is non-existent to prevent a NPE or
>> NumberFormatException.
>> It would be great if you could go through the tutorial and look for
>> other, similar changes, that would be required to run it e.g. on
>> sybase and file a bug in bugzilla with patches.
>>
>> Chris.
> 
> 
> 
> I applied the changes and everything works fine. I am including a patch 
> file and I will also file a report on bugzilla. Thanks for the help.
> 
> patch file for the directory cocoon/tutorial/docs:
> **
> diff -Naur tutorial/docs/edit-dept.xsp tutorial/docs.sybase/edit-dept.xsp
> --- tutorial/docs/edit-dept.xsp  Tue Jul  9 09:50:57 2002
> +++ tutorial/docs.sybase/edit-dept.xsp Tue Jul  9 09:47:56 2002
> @@ -24,7 +24,7 @@
>  
>
>  SELECT name FROM department
> -WHERE id =  name="id"/>
> +   WHERE id =  type="int">Integer.parseInt( name="id" default="0"/>)
>
>
>  
> diff -Naur tutorial/docs/edit-empl.xsp tutorial/docs.sybase/edit-empl.xsp
> --- tutorial/docs/edit-empl.xsp  Tue Jul  9 09:50:57 2002
> +++ tutorial/docs.sybase/edit-empl.xsp Tue Jul  9 09:54:39 2002
> @@ -23,7 +23,7 @@
>
>  
>SELECT name, department_id FROM employee
> -  WHERE id =  name="id"/>
> + WHERE id =  type="int">Integer.parseInt( name="id" default="0"/>)
>  
>  
>
> ***

Here's another:
Cut and paste the following patch into a file.
cd to the directory cocoon/tutorial and execute
patch -p0 < patchfile
***
diff -Naur docs/edit-dept.xsp docs.sybase/edit-dept.xsp
--- docs/edit-dept.xsp  Tue Jul  9 19:53:18 2002
+++ docs.sybase/edit-dept.xsp Tue Jul  9 19:50:37 2002
@@ -24,7 +24,7 @@
  

  SELECT name FROM department
-WHERE id = 
+   WHERE id = Integer.parseInt()


  
diff -Naur docs/edit-empl.xsp docs.sybase/edit-empl.xsp
--- docs/edit-empl.xsp  Tue Jul  9 19:53:18 2002
+++ docs.sybase/edit-empl.xsp Tue Jul  9 19:50:19 2002
@@ -23,7 +23,7 @@

  
SELECT name, department_id FROM employee
-  WHERE id = 
+ WHERE id = Integer.parseInt()
  
  

***







> 
> 
>>
>> Please follow up summarizing your problem and which suggested solution
>> / information worked for you when you consider your problem
>> solved. Add "SUMMARY: " to the subject line. This will make FAQ
>> generation and searching the list easier. In addition, it makes
>> helping you more fun. Thank you.
>>
>>
> 
> 


-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638



-
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]>




SUMMARY: Re: Problems with Database Tutorial

2002-07-09 Thread Bobby Mitchell



Christian Haul wrote:

> On 02.Jul.2002 -- 11:36 AM, Bobby Mitchell wrote:
> 
>>>>While using Sybase I had to remove the  begin and end 
>>>>tags in order to actually edit the entry, otherwise I get an sql error 
>>>>stating that "SELECT name, department_id FROM employee WHERE id = ? " is 
>>>>an error. The id is being passed as a ? so it causes an error. When 
>>>>using Hsqldb I made no changes to the code.
>>>>
>>>>
>>This behaviour is the same as before. Here is the error message:
>>
>>
>>org.apache.cocoon.ProcessingException: Exception in 
>>ServerPagesGenerator.generate(): java.lang.RuntimeException: Error 
>>executing statement: SELECT name, department_id FROM employee WHERE id = 
>>? : com.sybase.jdbc2.jdbc.SybSQLException: Implicit conversion from 
>>datatype 'CHAR' to 'INT' is not allowed. Use the CONVERT function to run 
>>this query.
>>
> 
> Yep, error message says it all. The example is attempting to use a
> String to set an int column. It looks like HSQLDB is more forgiving in
> this. Change it to
> 
> 
>   SELECT name, department_id FROM employee
>   WHERE id = type="int">Integer.parseInt(default="0"/>)
> 
> 
> and convert the string explicitly to an integer. I've set a default of
> "0" in case the parameter is non-existent to prevent a NPE or
> NumberFormatException. 
> 
> It would be great if you could go through the tutorial and look for
> other, similar changes, that would be required to run it e.g. on
> sybase and file a bug in bugzilla with patches.
> 
>   Chris.


I applied the changes and everything works fine. I am including a patch 
file and I will also file a report on bugzilla. Thanks for the help.

patch file for the directory cocoon/tutorial/docs:
**
diff -Naur tutorial/docs/edit-dept.xsp tutorial/docs.sybase/edit-dept.xsp
--- tutorial/docs/edit-dept.xsp  Tue Jul  9 09:50:57 2002
+++ tutorial/docs.sybase/edit-dept.xsp Tue Jul  9 09:47:56 2002
@@ -24,7 +24,7 @@
  

  SELECT name FROM department
-WHERE id = 
+   WHERE id = Integer.parseInt()


  
diff -Naur tutorial/docs/edit-empl.xsp tutorial/docs.sybase/edit-empl.xsp
--- tutorial/docs/edit-empl.xsp  Tue Jul  9 09:50:57 2002
+++ tutorial/docs.sybase/edit-empl.xsp Tue Jul  9 09:54:39 2002
@@ -23,7 +23,7 @@

  
SELECT name, department_id FROM employee
-  WHERE id = 
+ WHERE id = Integer.parseInt()
  
  

***


> 
> Please follow up summarizing your problem and which suggested solution
> / information worked for you when you consider your problem
> solved. Add "SUMMARY: " to the subject line. This will make FAQ
> generation and searching the list easier. In addition, it makes
> helping you more fun. Thank you.
> 
> 


-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638



-
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: Problems with Database Tutorial

2002-07-03 Thread Bobby Mitchell

Christian Haul wrote:

>On 28.Jun.2002 -- 09:19 AM, Bobby Mitchell wrote:
>
>>I'm using Cocoon 2.1-dev, IBM JDK 1.3, running on RedHat 7.2, and using 
>>Sybase 11.9.2.
>>
Now I'm using Cocoon 2.0.3-dev, Sun J2SDK 1.4.0, Tomcat 4.0.2.

>>
>>
>>I can't add or update users in the DB. I can only delete them. I tried 
>>this with both Sybase and Hsqldb and the results are the same.
>>
>
>AFAIK there's a pending bug that the treeprocssor (which interpretes
>the sitemap for 2.1-dev per default) does not allow to nest actions in
>an action-set. Hence using db-add inside form-val does not work with
>that release and the tutorial is broken.
>
>With 2.0.2 and 2.0.3 (not released, yet, available from CVS, branch
>cocoon_2_0_3_branch) it should work.
>

I cownloaded 2.0.3 from cvs using the installation documentation. I had 
to make the following changes (unix):

   1. Enter "cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic -z3
  checkout -r HEAD xml-cocoon2". This will create a directory called
  "xml-cocoon2" where the Cocoon2 source will be stored.


  to

   1. Enter "cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic -z3
  checkout -r cocoon_2_0_3_branch xml-cocoon2". This will create a
  directory called "xml-cocoon2" where the Cocoon2 source will be
  stored.


All of the database functions work properly, but ...

>
>>While using Sybase I had to remove the  begin and end 
>>tags in order to actually edit the entry, otherwise I get an sql error 
>>stating that "SELECT name, department_id FROM employee WHERE id = ? " is 
>>an error. The id is being passed as a ? so it causes an error. When 
>>using Hsqldb I made no changes to the code.
>>
This behaviour is the same as before. Here is the error message:


org.apache.cocoon.ProcessingException: Exception in 
ServerPagesGenerator.generate(): java.lang.RuntimeException: Error 
executing statement: SELECT name, department_id FROM employee WHERE id = 
? : com.sybase.jdbc2.jdbc.SybSQLException: Implicit conversion from 
datatype 'CHAR' to 'INT' is not allowed. Use the CONVERT function to run 
this query.

Original exception : java.lang.RuntimeException: Error executing 
statement: SELECT name, department_id FROM employee WHERE id = ? : 
com.sybase.jdbc2.jdbc.SybSQLException: Implicit conversion from datatype 
'CHAR' to 'INT' is not allowed. Use the CONVERT function to run this 
query. at 
org.apache.cocoon.www.tutorial.docs.edit_empl_xsp.generate(/var/tomcat4/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/tutorial/docs/edit_empl_xsp.java:991)
 
at 
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenerator.java:258)
 
at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)
 
at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)
 
at 
org.apache.cocoon.www.tutorial.sitemap_xmap.matchN100BC(/var/tomcat4/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/tutorial/sitemap_xmap.java:1271)
 
at 
org.apache.cocoon.www.tutorial.sitemap_xmap.process(/var/tomcat4/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/tutorial/sitemap_xmap.java:757)
 
at 
org.apache.cocoon.www.tutorial.sitemap_xmap.process(/var/tomcat4/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/tutorial/sitemap_xmap.java:684)
 
at org.apache.cocoon.sitemap.Handler.process(Handler.java:224) at 
org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at 
org.apache.cocoon.www.sitemap_xmap.matchN102F1(/var/tomcat4/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3411)
 
at 
org.apache.cocoon.www.sitemap_xmap.process(/var/tomcat4/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:2640)
 
at 
org.apache.cocoon.www.sitemap_xmap.process(/var/tomcat4/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:2538)
 
at org.apache.cocoon.sitemap.Handler.process(Handler.java:224) at 
org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at 
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) 
at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) 
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.

Problems with Database Tutorial

2002-07-01 Thread Bobby Mitchell

I'm using Cocoon 2.1-dev, IBM JDK 1.3, running on RedHat 7.2, and using 
Sybase 11.9.2.

I can't add or update users in the DB. I can only delete them. I tried 
this with both Sybase and Hsqldb and the results are the same.

While using Sybase I had to remove the  begin and end 
tags in order to actually edit the entry, otherwise I get an sql error 
stating that "SELECT name, department_id FROM employee WHERE id = ? " is 
an error. The id is being passed as a ? so it causes an error. When 
using Hsqldb I made no changes to the code.


Has anyone ever seen this before? Where do I look in the log files for 
debug info, such as tracking what is taking place behind the scenes? Are 
there debug parameters that I can pass to Cocoon and receive more debug 
info.

I'm new to Cocoon, but from what I see so far I like it. I have been 
somewhat at a loss when reading through the docs and I certainly 
understand the comments on the list regarding documentation.

My wish list:
A debug feature that outlines each move Cocoon makes, so I can trace 
what my code is producing and more importantly where it fails.

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638




-
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]>