Sample test case : Unresolved entities in included JSP file

2003-01-20 Thread Ludovic Maitre
Hello,
My first mail wasn't very clear, a simple test case follow.

Sample test case


File test_include.jsp :


]>

http://java.sun.com/JSP/Page";
	version="1.2">

 
	



File test_included.jsp :
 

When i access to test_include.jsp :

XML Parsing Error: undefined entity
Location: http://localhost:8080/test_include.jsp
Line Number 1, Column 17:
  
^

If somebody has an idea thanks per advance.
Regards,
Ludo

Ludovic Maitre wrote:

Hello,

I have a JSP 1.2 page who include some french character like ô .

The problem is that i have added the entity ocirc; to the dtd of my JSP 
and it seems that the DTD doesn't apply to the JSP files included from 
this page.

I have the following pages :
index.jsp
recherche.jsp

My index.jsp page is written in JSP 1.2 with XML syntax and include a 
declaration of the JSP1.2 DTD :


 "http://localhost:8080/awrgfa/dtd/jspxml.dtd";>

The JSP 1.2 DTD come from the website of Sun (it's annotated "DTD for 
JSP 1.2 thanks to Bob Foster, WebGain") and i use a modified version 
locally who include the following last lines :
http://localhost:8080/awrgfa/dtd/latin1.dtd"; >
%ISOLat1;

the file latin1.dtd contain lines like :



(the normative syntax, used on the W3C website, is :. It doesn't work and trigger  :

org.apache.jasper.JasperException: 
http://localhost:8080/awrgfa/dtd/latin1.dtd(12,18) OpenQuoteMissingInDecl

I don't know why, i think it concern the people of Xerces)

So after this little work, my JSP page can contain HTML entities 
references like  ô.

The problem is that i include the menu to the JSP page with an include 
directive in index.jsp :

xmlns:jsp="http://java.sun.com/JSP/Page";
version="1.2">

http://www.w3.org/1999/xhtml";>

Hôtes


...

...




The file /pages/menu.jsp is only a fragment of XHTML, he has a reference 
to the entity icirc; :

...
Hôtes
...


The problem is that this entity is unresolved at compilation :

XML Parsing Error: undefined entity
Location: http://localhost:8080/awrgfa/pages/modele.jsp
Line Number 10, Column 37:Hôtes
^

So my questions are :
1 - why the DTD defined in the document who include the others isn't 
applicable to the included documents ?
2 - Who is responsible for this bug (if this is a bug) : Xerces ? Jasper 
? Me ?

So thanks per advance for any answer and  best regards,


--
Ludovic Maître

Factory Productions | Tél: (33) 04 93 07 08 00
149, avenue des mimosas | Fax: (33) 04 93 07 04 02
06700 Saint-Laurent-du-Var (France) | Web: http://www.factory.fr




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




DTD doesn't apply to included JSP file

2003-01-20 Thread Ludovic Maitre
Hello,

I have a JSP 1.2 page who include some french character like ô .

The problem is that i have added the entity ocirc; to the dtd of my JSP 
and it seems that the DTD doesn't apply to the JSP files included from 
this page.

I have the following pages :
index.jsp
recherche.jsp

My index.jsp page is written in JSP 1.2 with XML syntax and include a 
declaration of the JSP1.2 DTD :


 "http://localhost:8080/awrgfa/dtd/jspxml.dtd";>

The JSP 1.2 DTD come from the website of Sun (it's annotated "DTD for 
JSP 1.2 thanks to Bob Foster, WebGain") and i use a modified version 
locally who include the following last lines :
http://localhost:8080/awrgfa/dtd/latin1.dtd"; >
%ISOLat1;

the file latin1.dtd contain lines like :



(the normative syntax, used on the W3C website, is :. It doesn't work and trigger  :

org.apache.jasper.JasperException: 
http://localhost:8080/awrgfa/dtd/latin1.dtd(12,18) OpenQuoteMissingInDecl

I don't know why, i think it concern the people of Xerces)

So after this little work, my JSP page can contain HTML entities 
references like  ô.

The problem is that i include the menu to the JSP page with an include 
directive in index.jsp :

	xmlns:jsp="http://java.sun.com/JSP/Page";
	version="1.2">

http://www.w3.org/1999/xhtml";>

Hôtes


...
	
...




The file /pages/menu.jsp is only a fragment of XHTML, he has a reference 
to the entity icirc; :

...
Hôtes
...


The problem is that this entity is unresolved at compilation :

XML Parsing Error: undefined entity
Location: http://localhost:8080/awrgfa/pages/modele.jsp
Line Number 10, Column 37:Hôtes
^

So my questions are :
1 - why the DTD defined in the document who include the others isn't 
applicable to the included documents ?
2 - Who is responsible for this bug (if this is a bug) : Xerces ? Jasper 
? Me ?

So thanks per advance for any answer and  best regards,
--
Ludovic Maître

Factory Productions | Tél: (33) 04 93 07 08 00
149, avenue des mimosas | Fax: (33) 04 93 07 04 02
06700 Saint-Laurent-du-Var (France) | Web: http://www.factory.fr

PS : If possible i don't want to enclose my html in  markups 
because i think that it breaks the possibility to edit the page easily 
in dreamweaver.
PPS : It doesn't work with a jsp:include directive.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: JSP/Servlet <-->EJB

2001-11-23 Thread Ludovic Maitre

you can instantiate a bean from a JSP page with the jsp:use-bean
statements as mentionned in the example packaged with tomcat 4 (and 3).
For more informations read the fine manual or specification of JSP on
the Sun website (their tutorial are also very good).

in tomcat 4, file webapps/examples/jsp/checkbox/checkresult :

<%! String[] fruits; %>

 


The checked fruits (got using request) are: 
<%
fruits = request.getParameterValues("fruit");
%>

<%
if (fruits != null) {
  for (int i = 0; i < fruits.length; i++) {
%>
...

regards,
Ludovic.

Huaxin wrote:
> 
> A little bit off topic, sorry about that.
> 
> I see most of the examples using EJB from Servlet.
> However, is there any example of using JSP with
> EJB directly? (without too much scriplet, and
> hopefully more efficient than create a bean to
> interact with the EJB)
> 
> thanks a lot

-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: newbies question: tomcat & jaxp-1.1

2001-08-29 Thread Ludovic Maitre

Hello,

you can rename your crimson.jar file to parser.jar, it should be work 
(this trick work for Cocoon2 who use jaxp1.1 or xerces, i don't
remember,
read xml.apache.org/cocoon2 for more info).

[EMAIL PROTECTED] wrote:
> 
> hi,
> i have just a little problem, i'm using jaxp-1.1. But jaxp-1.1 didn't
> contain the file parser.jar. The xml parser for jaxp seems to be
> crimson.jar
> 
> [verdon@pc-ccri-11 jaxp-1.1]# ls
> License-ASF  License-W3C.html  docs  install.html
> readme.htmlxalan.jar
> License-RI.html  crimson.jar   examples  jaxp.jar  relnotes.html
> [verdon@pc-ccri-11 jaxp-1.1]# find . -name parser.jar
> [verdon@pc-ccri-11 jaxp-1.1]#
> 
> So when compiling tomcat i get the following error:
> 
> No JAXP compliant XML parser found. See http://java.sun.com/xml for the
> reference implementation.
> --- Nested Exception ---
> java.lang.ClassNotFoundException: javax.xml.parsers.SAXParserFactory
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:298)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:285)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:314)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:124)
> at org.apache.tools.ant.Main.runBuild(Main.java:402)
> at org.apache.tools.ant.Main.main(Main.java:149)
> 
> is someone knows how to help me ? or where can i get the previous
> version of jaxp ?
> 
> --
> thanks
> pierre-yves VERDON

-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02



JSP files not always reloaded ?

2001-08-29 Thread Ludovic Maitre

Hello all,

I use Tomcat 3.2.3 on Solaris 2.6 with Apache 1.3.20
and i have a context who have this settings :


  

the problem i that i have a jsp page located under this 
context and that sometimes when i update the page (for
example adding a line of text), the changes aren't visible/
are not take in consideration by the server. the page isn't
even recompiled as a class as i can see in the workdir of tomcat 
(ls -l, the access time of the java file change but not the class file).
Other jsp in the directory works.

So the only solution i have found for make the job is to copy the 
original page (for example guide.jsp) to another name (for example
guide3.jsp), 
access the page guide3.jsp and then copy the guide3.jsp page to the 
original page (guide.jsp). After this manipulation the original page
display the changes that i have made on it. [there is also the solution
to
restart the tomcat server but it's not a good solution for a server that
i want to use as a production server one day. and the other solution
(touch guide.jsp) don't work in this case]

So my question is : Have you already seen this problem : the automatic 
recompilation of jsp after modification don't work, even after a touch
on the file ?
Please let me now, i will open a bug report if this is the case (and if
i can
reproduce the bug but i haven't understand how the bug come)

Thanks per advance for any answer,

Ludovic MAITRE



Re: PROBLEM with...

2001-08-01 Thread Ludovic Maitre

Loïc Lefèvre wrote:
> 
> Hem sorry, I should have say more:
> 
> When the server receive the log request, a session is created (with true)
> and a redirection is made to an other page, in this page, the following code
> is executed:
> 
> HttpSession session = req.getSession(false);
> 
> and it return null :(
> 
> So now I can ask: WHY?
> 
Hello, 

I had the same symptom and it was because my rewriterules in Apache was
"eating" 
the session and the best solution i have find is to use cookies for
storing the session.

(
  <-- was true )

I will now try to use the rewriterule mentionned in the FAQ for verify
that she 
work, and if it works, i give a feedback to you/the mailing list 
(it seems to be the same problem no ?)

regards,

Ludovic 

> Loïc Lefèvre
> 
> -Message d'origine-
> De : bk [mailto:bk]De la part de Bernd Koecke
> Envoyé : mercredi 1 août 2001 12:41
> À : [EMAIL PROTECTED]
> Objet : Re: PROBLEM with...
> 
> Hi,
> 
> Loïc Lefèvre wrote:
> >
> > Hi
> >
> > It's me againn ;)
> > Now that apache and tomcat SEEMS to work together,
> > I've got dome problems about SESSION.
> > After being 'loged', the following code return null:
> >
> > HttpSession session = req.getSession(false);
> 
> Try it with the Parameter 'true'. You don't have a session by default
> and with Parameter 'false' you won't get a new one.
> 
> >
> > The question is : WHY?
> >
> > Loïc Lefèvre
> 
> Bernd
> --
> Dipl.-Inform. Bernd Koecke
> UNIX-Entwicklung
> Schlund+Partner AG
> Fon: +49-721-91374-0
> E-Mail: [EMAIL PROTECTED]

-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02



Where are the pgp public keys for Tomcat ?

2001-07-31 Thread Ludovic Maitre

Hello Tomcat users,

I want to verify an archive of Tomcat and i type this command (Solaris
2.6, gpg (GnuPG) 1.0.6) :
ubik-16% gpg --verify jakarta-tomcat-3.2.3-src.tar.gz.asc
jakarta-tomcat-3.2.3-src.tar.gz
gpg: Warning: using insecure memory!
gpg: Signature made Tue Jul 17 19:38:39 2001 MET DST using DSA key ID
45ABB45D
gpg: Can't check signature: public key not found 
  
So, somebody know where i can find the public key for the jakarta
project ?
(i have already the keys for httpd.apache.org but it seems that this is
another branch of the ASF)

Thanks per advance, bye,

-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02



Re: Direct servlet Access ?

2001-07-27 Thread Ludovic Maitre

Hello,

Have you try to access http://lol.fivia.com:8080/adfront/adfront ? [with
your parameter after]
It seems that you webapps can be reached by /adfront and the name of
your servlet is the same.
 
Loïc Lefèvre wrote:
> 
> The story continue...
> 
> I've reinstalled Tomcat 3.2.3 on my server and
> http://lol.fivia.com:8080/examples/servlet/HelloWorldExample works well.
> I have installed a war file that work well on NT in [linux]
> %TOMCAT_HOME%/webapps
> What is the url to access the class Test (com.fivia.adfront.sales.Test) ?
> 
> server.xml:
> ...
>   docBase="webapps/adfront"
>  crossContext="false"
>  debug="0"
>  reloadable="true" >
> 
> ...
> 
> [adfront.war].web.xml:
> ...
> 
> 
> 
> AdFront
> com.fivia.adfront.sales.Test
> 
> 
> 
> AdFront
> /adfront
> 
> 
> 
> 30
> 
> 
> 

-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02



Re: Default folder in Tomcat

2001-07-27 Thread Ludovic Maitre

hello,

you can obtain the path where your application is located with the
following function :
WEBAPP_ROOT = getServletConfig().getServletContext().getRealPath()
this is obtained from the sample file realpath.jsp, that i sugger you
read.
After obtaining the location of your webapp, simply add WEB-INF + the
name of the property file.

[EMAIL PROTECTED] wrote:
> 
> Hello,
> 
> I am using Tomcat for the first time, I have a doubt, can someone help
> me with that please.
> 
> I am refering to some properties files from my Bean.
> I do not want to hardcode the path in my code.
> Can someone plesae tell me the default folder
> that the server reads from. I tried putting my files
> in my webapps folder , it doesnt seem to work.
> 
> Thanks in advance.
> regs
> M

-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02



Tomcat on FreeBSD

2001-07-27 Thread Ludovic Maitre

Hello all,

I try to install Tomcat on a Freebsd 5.0 and i don't find a recent jdk.

Could you tell me what version you use if you're on FreeBSD ? 
[only jdk1.18 is available for FreeBSD no ?]

(for exemple i will try the JDK + Linux emulation but i'm afraid by
the performance : if somebody could give me a feedback i will greatly
appreciate).

Thanks per advance,

-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02

PS : I have already sign the petition for porting a recent version of
the
JDK under BSD.



Re: hotspot jvm crashes in production

2001-05-03 Thread Ludovic Maitre

Hello,

I have the same problem with exactly the same software configuration and
i have no answer. 

PS : Are you using the Hotspot JVM with the -server switch ? 

Java Poop wrote:
> 
> Hi -
> 
> We have recently moved our production site to use JSPs with Tomcat
> 3.2.1/Apache 1.3.17/Sun JDK 1.3.0/Solaris 2.6. After running for a couple of
> hours, our JVM crashes with the following error:
> 
> An irrecoverable stack overflow has occurred.
> #
> # HotSpot Virtual Machine Error, Unexpected Signal 11
> # Please report this error at
> # http://java.sun.com/cgi-bin/bugreport.cgi
> #
> # Error ID: 4F533F534F4C415249530E435050079A 01
> #
> # Problematic Thread: prio=5 tid=0x2149d0 nid=0x25 runnable
> 
> Has anyone seen similiar problems? Is there anything in the settings we
> could set to avoid this?
> 
> jp

-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02



Re: URL rewriting ignored for "/whatever" context path; broken for "/" context path

2001-05-03 Thread Ludovic Maitre

Hello,

The only solution i had find is to replicate all my "url-rewrited"
folder as context in Tomcat and additionnaly make 
a few patchs on Tomcat (and Cocoon). 

It seems, after reading the source code of mod_jserv (that i use), that
the request form Apache to Tomcat is redirected AFTER the
URI-to-filename translation in Apache. It's AFAIK a limitation of apache
1.* who will be removed in Apache 2.* where a lot of hooks are added to
Apache.

Please if i'm wrong give some answer to this mail,

Regards,

Ludovic 

PS : Has somebody tested Catalina/tomcat 4 with Apache and mod_rewrite ?

Boopathi Subramanian wrote:
> 
> Hi Bill & others,
> 
> I'm also stuck with the exact same situation.
> 
> Do you have a solution or any work around for this?
> 
> Thanks,
> 
> Boopathi

-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02



Re: AJP13 file upload problems persist in 3.2.2b3 ?

2001-04-27 Thread Ludovic Maitre

Ulf Leonhardt wrote:
> 
> False alert. File upload in 3.2.2b3 is working.
> 
> BTW, if anyone wants the source for an AJP13 Java client, it can be
> found on jtrix.org (buried in the Webtrix project).
> 
> Ulf
> http://jtrix.org

I haven't find the sourcecode for the AJP13 Java client.  Have you a
more exact link ?
(the only webpage i found with a search on "AJP13" on the jtrix site is 
http://www.jtrix.org/documentation/start-running-jtrix/node18.html )

-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02



Re: Tomcat 3.2.1 not reading web.xml

2001-04-27 Thread Ludovic Maitre

Hello,

For giving your init parameter and read a default configuration file in
tomcat 3.2.1 you could patch the file
/tomcat-src/src/share/org/apache/tomcat/context/WebXmlReader.java
and recompile your tomcat.

Take attention to the  private void setDefaults( Context ctx )  method
(for init parameters) and private void readDefaultWebXml( Context ctx )
for reading the default configuration file. 
Note that this modifications are unsupported but that they are commented
in the source code.

By the way it is possible to made the same modification with Cocoon for
reading only one configuration file for the entire website.

regards

> Animesh Chaturvedi - US wrote:
> 
> I want to set the jspCompilerPlugin init parameter to the JSP compiler
> servlet. In 3.2.1, it seems that the global conf/web.xml is no longer
> read. So my question is that if the jsp servlet is defined by default
> for each context, then what syntax and file do I use to define
> init-parameters? Any documention you can point me to or any help you
> might provide is most welcome!
> 
> I tried setting the jspCompilerPlugin but the debug print statements I
> put return value null. The same thing when done with Tomcat3.1.1
> returns the value I initialized jspCompilerPlugin to.
> 
> Animesh

-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02



Re: Apache-tomcat: JVM dies

2001-04-25 Thread Ludovic Maitre

Hi,

I've no answer for you but i have noticed the same problem with tomcat
3.2.1+apache 1.3.17 (without SSL) on solaris 2.6.

the causes could be multiple, in my case i will study with care my Java
policy security 'cause it seems that the jvm die when executing some JSP
who didn't respect this policy... but i haven't spent a lot of time
about this for the moment. 

regards,

Ludovic Maitre

> Animesh Chaturvedi - US wrote:
> 
> Hi
> I posted this question earlier too but did not get any answer. Sorry
> for repeating it again but its really urgent for me.
> 
> I have tried searching for an answer on tomcat archives and other
> places but did not find any.
> I am trying to run Apache 1.3.17 with SSL and Tomact3.2.1 and using
> mod_jserv as connector.
> Tomcat 3.2.1 works fine in standalone mode.
> But when I run it through apache. The JVM dies multiple times in a row
> and does not come up.
> I do not get any error message. I just get VM spwaned VM exited.
> I am stuck.
> 
> I will appreciate any help
> Thanks in advance
> Animesh

-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02



Re: Apache-Tomcat RewriteRule..

2001-04-24 Thread Ludovic Maitre

Hello,

I had had the same problem than you and the only solution that i have
found was to re-create 
each folder (under my Apache document root) who need JSP publication as
a context for tomcat, 
because i have never find a trick for giving the request to tomcat AFTER
the URI-to-filename translation phase in Apache. It will be a thing
fixed in Apache 2 as i have read. (but the Apache/Tomcat connector will
need a rewrite
for this, i'm not very sure if mod_webapp is planned to use the requests
send by Apache after the URI-to-filename
conversion). 

If your not sure, the best solution is to read the source of Tomcat,
mod_jk (or mod_jserv it's what 
i use) and perhaps Apache (or the book Writing Module for Apache who
explain the differents phases where a module
can receive a request from Apache).

Somy solution of recreating a context for each folder where i need
JSP/XML publication suffer of some drawbacks :
- it's very, very expensive in memory if , as me, you have embedded
Cocoon as a default servlet, loaded a the creation for EACH context (my
bi-Sun UltraSPARC 60 with 1 GB of RAM is a little short with more than
20 contexts)
- the integration that i have made isn't pretty (for giving the same
document root as Apache, avoiding to have a
WEB-INF folder for each context (I know that it's not in the standard of
JSP/Servlets but i have other things to do that protect each of this
directories and maintain a configuration file (web.xml) and servlets
files per directory),
force the reading of the server.xml file at the beginning...) : i have
patched my tomcat and cocoon sources (but at some locations where it is
indicated to patch) 
- the errors on an JSP/XML url aren't forwarded to Apache
...there is some other little problems but that's work.

I you want more informations for dealing between virtual host+rewrite
rules with Apache+Tomcat (and Cocoon 
in my case) contact me, i don't want to appear as a stupid hacker if i
say in the list where i have patched the sources :-)

So, if you don't want more explanations, good luck because i have found
that it is very hard to integrate tomcat on a real Apache production web
server (where we abuse of rewrite rules and virtual hosting)

-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02



Re: chart in jsp

2001-03-26 Thread Ludovic Maitre

Altuð Altýntaþ (Koç.Net) wrote:
> 
> are there  any way to draw a dynamic chart in jsp ?
> 
> any source  or idea ?
> 
> thanks ..
> 
> Altug

Perhaps that you can generate an SVG image (cf www.w3.org) from your
data but it's more easy with XML than with JSP.
And your public must have a SVG plugin on their browser.

Regards,

-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02



Redirect errors from Tomcat to Apache

2001-02-22 Thread Ludovic Maitre

Hello,

I use Tomcat 3.2.1/Apache 1.3.17 with mod_jserv on Solaris 2.6.

I want to redirect the 404 error (or others) from Tomcat to Apache when
a jsp page is called and don't exist.

For a folder who is managed by Tomcat and Apache i have no problem with
files who are managed by Apache (shtml, html, php, cgi,...), Apache
catch the error and respond with is error page. But with URL who are
managed by Tomcat (xml, jsp, servlets...) via a handler (AddHandler
jserv-servlet .jsp) the errors like 404 are catched by Tomcat.

Is there any configuration in Apache and/or Tomcat to forward the errors
to
Apache ? 

Thanks per advance,
-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02

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




Re: Cannot buiild mod_jserv.so

2001-02-22 Thread Ludovic Maitre

Hello,

>From http://www.webdav.org/mod_dav/install.html :
Note: if using APXS and your Apache installation does not support
loadable modules, then APXS will terminate with an error. Typically, we
have seen the following error when this happens: 

apxs:Break: Command failed with rc=16711680 
If this happens, then you will need to rebuild and reinstall your Apache
software with the mod_so module included. Note the reinstall part --
we've seen several cases where a new Apache was built and installed, but
a new APXS was not (so the problems continued). 

Manos Riglis wrote:
> 
> Hi,
> 
> I have tried to build mod_jserv.so  in a solaris box for tomcat 3.2.1, by
> running apxs -c -o mod_jserv.so *.c.; Here is the compiler output
>
> apxs:Break: Command failed with rc=16711680
> 
> I am running apxs from $JAKARTA_HOME/jakarta-tomcat/src/native/apache/jserv
> as root.
> 
> Any help would be appreciated
> 
> Thanks
> 
> Manos

Regards,
-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02

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




Disbling -auto files generation

2001-02-21 Thread Ludovic Maitre

Hello all,

Is there an option to prevent the generation of -auto files in /conf
(e.g. mod_jk.conf-auto,...) without modifying the code of Tomcat ? 

This files aren't needed on a production server.

Thanks per advance for your answers,

-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02

PS : If somebody want information for dealing with URL rewriting between
Tomcat and Apache i have found some tricks who could help you, mail me
if you are
interested.
(and without making external redirects)

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




Re: apache doesn't like my mod_jk.so

2001-02-21 Thread Ludovic Maitre

Hello,

I had had the same problem and it was because i've forgotten to copy the
file mod_jk.c from native/apache1.3 to the directory native/jk

regards,

S
-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02

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




Re: How to measure Apache-Tomcat performance?

2001-02-21 Thread Ludovic Maitre


Hello,
Perhaps that you can use the ab tool from Apache (part of the support
tools optionnaly installed with apache 1.3)
After you can use it with command like :
ab -n 2100 -c 300 http://monserveur/mapage.jsp
(-n : number of connection, -c : number of concurrent connection)
After you have test a jsp page, perhaps you can try to test an html
page of the same size.
I hope it could help you,  please send back info if you find other
tools/protocol for benchmarking Apache/Tomcat.
It is also a file test-tomcat.xml on the tomcat distribution (in /src/etc/)
that perhaps you could modify for your tests.
 
Regards,
-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93    Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)    Fax: (33/0) 4 92 38 76 02
 


Re: problems configuring tomcat/apache mod_jk.so

2001-02-21 Thread Ludovic Maitre


Hello, you must add the -lposix4 flag on the apxs command line on Solaris
Sparc, and i thinkl that it is the same for Solaris x86
Try this l:
#!/usr/bin/gnu/bash
SERVER_ROOT=/0/admin/lmaitre/www-sop
JAVA_HOME=/usr/local/jdk1.3
${SERVER_ROOT}/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I${JAVA_HOME}/include
-I${JAVA_HOME}/include/solaris -lposix4 -c *.c ../jk/*.c
(it is from http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html:
"On some systems, this will build the module correctly, but will fail at
runtime with a "symbol "fdatasync" not found". To fix, add -lposix4 just
before the -c in the above command.")
Regards,
-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93    Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)    Fax: (33/0) 4 92 38 76 02
 


Tomcat don't like URL rewriting from Apache

2001-02-15 Thread Ludovic Maitre

Hello,

I have a problem for "integrate" tomcat 3.2.1 with apache 1.3.17 under
solaris 2.6.
The only module of apache who is build as DSO is mod_jk (or mod_jserv, i
test with the 2).

Briefly we have 2 website on the same Apache, managed with virtual host
and a lot of rewrite rules.
It seems that tomcat don't use the urls rewrited by apache.

All documents are served from /htdocs/files who is the document Root for
Apache 
and the docbase of Tomcat root context (path="", and "/" don't work
also).

I load the mod_jk (or mod_jserv, it don't work also) after mod_rewrite
in the main configuration of apache 
(see below if you have the time)

The rewrite rules are declared - for the most important part - and
RewriteEngine is set to On before 
the handler for mod_jk (AddHandler jakarta-servlet .xml or .jsp) is
declared in the main configuration.

The mount point of mod_jk (or mod_jserv it's the same result) are
declared in the virtual host configuration (but i have also tested to
declare JkMount /*.xml or jsp in the main configuration), the virtual
hosts have RewriteOptions inherit

So if i want acceed the page /chouba/chups.jsp who is really located in
/htdocs/files/team/sophia/chups.jsp, 
the rewrite rule is correctly applied in apache (rewrite log say
"go-ahead with /htdocs/files/team/sophia/chups.jsp [OK]")
but i have an error in Tomcat who search the file :

2001-02-15 07:08:06 -ServletPath: /chouba/chups.jsp
2001-02-15 07:08:06 -   PathInfo: null
2001-02-15 07:08:06 -   RealPath: /htdocs/files/chouba/chups.jsp
2001-02-15 07:08:06 - RequestURI: /chouba/chups.jsp
 
I have tried whith rewrite rules like [PT],[R] and i haven't find a
solution.

I have read a lot of mail archive about this but it seems that it is a
lot of questions but a few answers.
Jan Labanowski had already answer me, but i haven't find a solution on
this problem in his excellent pages about tomcat installation.

I have read a little in the source of tomcat (and read
http://w4.metronet.com/~wjm/tomcat/2000/Mar/msg00513.html) but i don't
know if the proposed patch have been applied on Tomcat 3.2.

I think that tomcat must be really integrated with Apache for serving a
lot of documents and that the communication
between the 2 servers must be improved (but i hope that somebody can
tell me that i just don't know deeply the soft 
and give me the information who lacks me)

So, best regards,

Ludovic Maître

- ANNEXES :

The way that i load the modules : (if i have good understand the module
are activated bottom to top, 
but it's the same effect i place mod_jserv or jk after rewrite)

#LoadModule jserv_module   libexec/mod_jserv.so
LoadModule jk_module   libexec/mod_jk.so

ClearModuleList
...
AddModule mod_imap.c
AddModule mod_actions.c
#AddModule mod_jserv.c
AddModule mod_jk.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
...

The rewrite rule who isn't pass to tomcat :
RewriteRule ^/chouba(/.*)?$   /htdocs/files/team/sophia/chouba$1
[L]
(it seems to don't work with [PT,L] (why ?) and not with [R] (because
/htdocs/files/team/sophia/ isn't accessible via http only as files)

So, thanks per advance for any answer (sorry if this topic seems to be
off-topic but in fact he is cross-topic)
-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02

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




Re: configuring web.xml

2001-02-15 Thread Ludovic Maitre

Hello,


Alex Fernández wrote:
> 
> Don't forget that you must change the web.xml file inside your WEB-INF
> directory, the one in /conf is just for shows.
> 
> Alex.
> 

I think that i haven't good understand how work tomcat because i was
thinking that the web.xml 
file provided in the /conf directory was for declaring the servlets
loaded at startup (Jasper), the mime type and the mappings used by the
whole application tomcat.

Are you sure that the /conf/web.xml file isn't used by tomcat ?

By the way in tomcat 3.1 i would be able to declare the cocoon servlet
and is mapping (.xml -> cocoon) in the web web.xml file and with tomcat
3.2 it seems not to work. Has somebody notice the same problem ? And it
is possible to specify the location and the name of this file ('cause i
want to locate web.xml near my apache configuration) ?

Here are the lines i have added to /conf/web.xml (and this don't work on
3.2 but work on 3.1) :




cocoon


org.apache.cocoon.Cocoon


properties
cocoon.properties


-2147483646





cocoon


*.xml




...

index.xml

...


-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02

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




URL Rewrite between Apache & Tomcat (ah,ah it's very funny to configure)

2001-02-09 Thread Ludovic Maitre

Hello all,

I have convince my boss that we must use Tomcat for our institutionnal
webserver but there is a really bad news
what i haven't detected before : mod_jserv don't manage the rewrite
rules of Apache :-

So my question is : will i have more luck with mod_jk ? (the handler
could retrieve the local path of a file from Apache for example ?)

you know it's very important to manage the rewrite rules 'cause in a big
server, for maintaining old page (and preserving the bookmarks of our
visitors), we must use the rewrite rules.

So any help would be really appreciated,

Best regards,

-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02

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




Compile mod_jserv in static

2001-02-06 Thread Ludovic Maitre


Hello,

I know that mod_jk is available but i want to use mod_jerv for connect
Apache 1.3.17 and Tomcat 3.2.1 on solaris 2.6.

My question is : Is it possible to compile the mod_jserv packaged with
tomcat in static ? (it's more fast)

There is a lot of symbol who are not resolved when i make apache :

gcc  -DSOLARIS2=260 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED
`./apaci`\
  -o httpd buildmark.o modules.o modules/extra/libextra.a
modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a
ap/libap.a  lib/expat-lite/libexpat.a -L/usr/local/gdbm/lib -lgdbm
-lsocket -lnsl
Undefined   first referenced
 symbol in file
jserv_openfile
modules/extra/libextra.a(mod_jserv.o)
jserv_protocol_cleanupall
modules/extra/libextra.a(mod_jserv.o)
jserv_error
modules/extra/libextra.a(mod_jserv.o)
jserv_server_config_get
modules/extra/libextra.a(mod_jserv.o)
jserv_protocol_parameter
modules/extra/libextra.a(mod_jserv.o)
jserv_readfile
modules/extra/libextra.a(mod_jserv.o)
jserv_protocol_initall
modules/extra/libextra.a(mod_jserv.o)
jserv_protocol_getbyname
modules/extra/libextra.a(mod_jserv.o)
jserv_resolve
modules/extra/libextra.a(mod_jserv.o)
jserv_error_exit
modules/extra/libextra.a(mod_jserv.o)
jserv_protocol_handler
modules/extra/libextra.a(mod_jserv.o)
ld: fatal: Symbol referencing errors. No output written to httpd

(for doing this i had copied all the jserv*, lib* and mod* files from
tomcat/src/native/apache/jserv

to apache/src/modules/extra)

So i you have compiled apche+mod_jserv for tomcat please let me know.

Regards,

--
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02




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




Re: 'Dir checksum error' untarring jakarta-tomcat-3.2.1-src.tar onSolaris .. ??

2001-01-23 Thread Ludovic Maitre

Tim Darling wrote:
> 
> Same error untarring jakarta-tomcat-3.1.1-src.tar on Solaris.
> 
> Anyone seen this?  If I untar on Linux and retar then ftp to Solaris, I
> get the same error.  Please help!
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

Yes i have seen this and some people have answer to me few days ago (my
message was posted Friday and had the subject "Corrupted files on
Jakarta server ?") for the same problem. An answer was to use the GNU
tar for decompressing on Solaris (not the sun tar). I haven't tried (and
people who answered to me that they have the same problem aren't on
Solaris) but perhaps you could try. Please feedback us.

-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02

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




Corrupted files on jakarta server ?

2001-01-19 Thread Ludovic Maitre

Hello, 
if have problems to retrieve tomcat 3.2.1 on the Jakarta website
(http://jakarta.apache.org/builds/tomcat/release/v3.2.1/src/). I have
downloaded it by three time and (.Z, .2 times .gz and one time .zip) and
with the tar extraced form .Z and .gz i have always the same message
during the extraction :
x
jakarta-tomcat-3.2.1-src/src/webpages/docs/api/javax/servlet/http/class-use/HttpServletRequest.html,
13710 bytes, 27 tape blocks
tar: directory checksum error  

I have downloaded Tomcat with wget and Netscape and nothing seems wrong
(no apparent problem during transfert, good size for the recepted
files).

Could somebody explain me what is wrong ?

By the way is it possible to place signatures files with the
distibutions ? With it it will be possible to test the integrity of the
recepted files.

thanks per advance,
-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02

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




Re: Nested Servlet Zone

2001-01-11 Thread Ludovic Maitre

Hello,

LUN wrote:

> I can run servlet /examples/servlet/ directory
> but
> cannot run servlet in /examples/servlet/xxx/
> where xxx is a sub-directory.
>
> I think it is a problem about servlet zone.
> Do anyone have an idea?
>

the servlet zone is a virtual directory where you can reach the delared
servlets in your webapps and the classes accessibles under WEB-INF/lib
and WEB-INF/classes of the example webapplication. So, i think (i
haven't tested it) that you cannot create subdirectories because the
servlets are referenced exclusively with their alias (who can perhaps -i
don't know, test it and feedback- contain a directories) in the web.xml
or by their fully qualified classname (ie fr.inria.hello) if they aren't
declared in web.xml.

Remember that the class are stocked in a tree of directories
(WEB-INF/classes/fr/inria/hello.class). I think it's not very clean to
make subdirectories in the concerned directories because it's disturbing
the tradiationnal organisation of Java classes).

Read the mailing list archives for more info.

Regards,

--
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02




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




How manage multiples developers with Tomcat ?

2001-01-03 Thread Ludovic Maitre

Hello and happy new year !

We have a lot of developers who needs to develop java servlets and we
have chosen Tomcat 3.2.1 & Apache 1.3.14 as servers. (because they are
open source and a lot of stuff are developped for this (Cocoon,
Jetspeed)). 
[for the moment i've used only Tomcat 3.1]

But we have a problem : when a developer want to add a servlet to the
server he must restart the Tomcat server, because else the dependencies
of the servlet aren't seen by the server. 

For example if i put a hello.class file in the classes folder of the
webapp and i compile it there is no problem to reach the servlet after
without restarting the server (just type
http://myhost/mywebapp/servlet?hello or the fully qualified class name).
But if this servlet call other servlet Tomcat give us an error
(ClassNotFound).

So the questions are :
- Must i install a tomcat server for each developer (who can play with
it, add the servlet, restarting it without disturbing the others
developers) ? I don't want this because this is a lot of work for
maintain one server per developer...
- Is there a solution to reload a webapp without stopping the entire
server ? (it will be the most useful for me)

- and finally if this feature isn't present in Tomcat 3 should be
present in Catalina ? (or other servlet container)

PS : I haven't find a solution in the mailing list archives.

Thanks per advance for your answers,
Regards,

-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02

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




Re: Mailing List Archives?

2001-01-03 Thread Ludovic Maitre

Peter Brandt-Erichsen wrote:
> 
> Sorry for the dumb question, but how
> do I access the archives for
> this mailing list?
> 
you can find this at http://marc.theaimsgroup.com/ (Apache section)
-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02

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




Re: Rare problem

2000-12-12 Thread Ludovic Maitre

[EMAIL PROTECTED] wrote:
> 
> Pls create a handler for *.JSP files in web.xml file.
> i think this prob occurs on Linux.
> 
> Hope this helps.
> 
> rahul

Hello,

Did you know if this problem is fixed in 3.2 ? 

Regards,

-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02