Re: Cocoon2 with Tomcat 4.0.1 (in JBuilder 6 Enterprise)

2002-04-26 Thread Konstantin Piroumian

> Hi Konstantin,
>
> Well, I took out Cocoon (after war deployment) and removed unnecessary
> things, then used the remaining to create my own webapp (indeed created
thru
> JB6), into e:\myproject. I take care of checking that my web.xml is not
> overwritten...
>
> I then choose web run.
>
> Maybe my sitemap is wrong ? in web.xml the welcome-file is index.html
> although it does not exist, and my first pipelines are the following, this
> should handle the URL correctly, shouldn't it ?

Didn't try to setup a welcome-file with Tomcat, but WebLogic does not
process your request if you don't have a real file (index.html) in your
directory It checks if a real resource exists then calls its handler, which
can be a servlet. We overcome this by placing an empty index.html in the
root directory.

With Cocoon you don't need to setup a welcome-file in web.xml, using a
default pipeline would be enough. See also my comments below:

>
> Besides, I even can't run examples that are defined in JB's Tomcat's
> server.xml, they're not found !! Have to check this first, however Tomcat
is
> running.
>
> Thank you anyway, this helps.
>
> Babs
> ---
>
> 
>   
>
> 

It's better to use internal redirects when possible. In this case:


Btw, did you try to run this application without JB? Never knew that nested
actions are allowed.

--
Konstantin

>
>   
>   
> 
>
> 
>   value="context://descriptors/authenticationformdesc.xml"/>
>  
>  
>   
>   
>   



>  
>  
>   



>  
> 
>     



>    
> ......
> - Original Message -
> From: Konstantin Piroumian <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, April 26, 2002 2:49 PM
> Subject: Re: Cocoon2 with Tomcat 4.0.1 (in JBuilder 6 Enterprise)
>
>
> >
> > I suspect that you have created a WebApp element in JB6 and you are
trying
> > to start it from there. Look at the WEB-INF/web.xml and you'll notice
that
> > JB has replaced it with its own. This brings up the errors you get.
> >
> > Here is the sequence I use to run Cocoon from JB:
> > - copy cocoon.war to /webapps
> > - run Tomcat from /bin/startup.bar once, so it deploy the
> > application
> > - try that it works accessing the http://localhost:8080/cocoon/
> > - shutdown Tomcat
> >
> > Then in JB
> > - clear the checkbox in Webapp properties telling to build the WAR
> > - select a start page (say, /samples/i18n/simple.xml)
> > - then choose Web Run from its context menu
> >
> > This way it works for me.
> >
> > --
> >   Konstantin
> >
>
>
>
>

__
> ifrance.com, l'email gratuit le plus complet de l'Internet !
> vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
> http://www.ifrance.com/_reloc/email.emailif
>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.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/faqs.html>

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




Re: Cocoon2 with Tomcat 4.0.1 (in JBuilder 6 Enterprise)

2002-04-26 Thread Barbara Post

Hi Konstantin,

Well, I took out Cocoon (after war deployment) and removed unnecessary
things, then used the remaining to create my own webapp (indeed created thru
JB6), into e:\myproject. I take care of checking that my web.xml is not
overwritten...

I then choose web run.

Maybe my sitemap is wrong ? in web.xml the welcome-file is index.html
although it does not exist, and my first pipelines are the following, this
should handle the URL correctly, shouldn't it ?

Besides, I even can't run examples that are defined in JB's Tomcat's
server.xml, they're not found !! Have to check this first, however Tomcat is
running.

Thank you anyway, this helps.

Babs
---


  
   

   
  
  

   

 
 
 
  
  
  
 
 
  
 


   
..
- Original Message -
From: Konstantin Piroumian <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 26, 2002 2:49 PM
Subject: Re: Cocoon2 with Tomcat 4.0.1 (in JBuilder 6 Enterprise)


>
> I suspect that you have created a WebApp element in JB6 and you are trying
> to start it from there. Look at the WEB-INF/web.xml and you'll notice that
> JB has replaced it with its own. This brings up the errors you get.
>
> Here is the sequence I use to run Cocoon from JB:
> - copy cocoon.war to /webapps
> - run Tomcat from /bin/startup.bar once, so it deploy the
> application
> - try that it works accessing the http://localhost:8080/cocoon/
> - shutdown Tomcat
>
> Then in JB
> - clear the checkbox in Webapp properties telling to build the WAR
> - select a start page (say, /samples/i18n/simple.xml)
> - then choose Web Run from its context menu
>
> This way it works for me.
>
> --
>   Konstantin
>


 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif



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

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




Re: Cocoon2 with Tomcat 4.0.1 (in JBuilder 6 Enterprise)

2002-04-26 Thread Konstantin Piroumian

> Hello, I get the following when I try to lauch my webapp (Tomcat 4.0.1;
> embedded into JB6). What does this mean regarding Cocoon ? What is wrong
in
> my Tomcat config.? Thank you very much.

I suspect that you have created a WebApp element in JB6 and you are trying
to start it from there. Look at the WEB-INF/web.xml and you'll notice that
JB has replaced it with its own. This brings up the errors you get.

Here is the sequence I use to run Cocoon from JB:
- copy cocoon.war to /webapps
- run Tomcat from /bin/startup.bar once, so it deploy the
application
- try that it works accessing the http://localhost:8080/cocoon/
- shutdown Tomcat

Then in JB
- clear the checkbox in Webapp properties telling to build the WAR
- select a start page (say, /samples/i18n/simple.xml)
- then choose Web Run from its context menu

This way it works for me.

--
  Konstantin

>
> Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
>
> type Exception
>
> reportmessage Internal Server Error
>
> description The server encountered an internal error (Internal Server
Error)
> that prevented it from fulfilling this request.
>
> exception javax.servlet.ServletException: Servlet.init() for servlet
Cocoon2
> threw exception
>  at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)
>  at
>
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
>  at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:214)
>  at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
>  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.StandardContextValve.invoke(StandardContextValve.ja
> va:201)
>  
>
> root cause java.lang.NoSuchMethodError
>  at
>
org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.j
> ava:202)
>  at
> org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139)
>  at
org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:345)
>  at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
>  at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
>  at
>
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
>  at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:214)
>  
>
>
>

__
> ifrance.com, l'email gratuit le plus complet de l'Internet !
> vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
> http://www.ifrance.com/_reloc/email.emailif
>
>
>
> -
> 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]>




Cocoon2 with Tomcat 4.0.1 (in JBuilder 6 Enterprise)

2002-04-26 Thread Barbara Post

Hello, I get the following when I try to lauch my webapp (Tomcat 4.0.1;
embedded into JB6). What does this mean regarding Cocoon ? What is wrong in
my Tomcat config.? Thank you very much.

Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error

type Exception

reportmessage Internal Server Error

description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.

exception javax.servlet.ServletException: Servlet.init() for servlet Cocoon2
threw exception
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)
 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 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.StandardContextValve.invoke(StandardContextValve.ja
va:201)
 

root cause java.lang.NoSuchMethodError
 at
org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.j
ava:202)
 at
org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139)
 at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:345)
 at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
 

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif



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