RE: OutOfMemory errors compiling JSPs on 5.0.16 and 5.5.4

2004-11-14 Thread Dale, Matt

I've not been following this thread but my guess would be that you are running 
out of space in the permanent generation of the heap. Get a hold of jvmstat 
from sun and run visualgc on your JVM, it should become obvious then which pool 
is running out of space.

Ta
Matt

-Original Message-
From: Kevin A. Burton [mailto:[EMAIL PROTECTED]
Sent: 14 November 2004 01:31
To: Tomcat Users List
Subject: Re: OutOfMemory errors compiling JSPs on 5.0.16 and 5.5.4


Remy Maucherat wrote:

On Fri, 12 Nov 2004 17:17:28 -0800, Kevin A. Burton
[EMAIL PROTECTED] wrote:
  

- For all my JSPs I fetch them with the URL foo.jsp?jsp_precompile=true
to trigger precompilation



How many JSPs must be compiled to cause problems ?
  

About 50 or so... it changes every time.   Sometimes I have to trigger a 
precompile twice.

Note that the VM still shows plenty of memory so I'm not sure what the
heck is going on here.  I also looked at our file handles and they seem
fine too.



In that kind of situation, a profiler will have to be used. All I can
tell right now is that it has nothing to do with the Java compilation,
which is not very surprising.
  

Why is it then that doing a ?jsp_precompile=true for all my JSPs and NO 
other action causes this?

For really large web applications, I think you should precompile as
many JSPs as possible anyway, as a JSP compiled dynamically will
always use more resources (even if there is no bug in Jasper).
  

Well thats probably an approach we will take but its unfortunate.

If i had a profiler I would connect it to figure out whats going on but 
I'm really not happy with any of them.

Kevin

-- 

Use Rojo (RSS/Atom aggregator).  Visit http://rojo.com. Ask me for an 
invite!  Also see irc.freenode.net #rojo if you want to chat.

Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html

If you're interested in RSS, Weblogs, Social Networking, etc... then you 
should work for Rojo!  If you recommend someone and we hire them you'll 
get a free iPod!

Kevin A. Burton, Location - San Francisco, CA
   AIM/YIM - sfburtonator,  Web - http://peerfear.org/
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not 
the intended recipient or the person responsible for delivering to the intended 
recipient, be advised that you have received this E-mail in error and that any 
use or copying is strictly prohibited. If you have received this E-mail in 
error please notify the beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual 
sender and not beCogent Ltd. You must take full responsibility for virus 
checking this email and any attachments.
Please note that the content of this email or any of its attachments may 
contain data that falls within the scope of the Data Protection Acts and that 
you must ensure that any handling or processing of such data by you is fully 
compliant with the terms and provisions of the Data Protection Act 1984 and 
1998.


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

RE: Soap under Tomcat

2004-11-14 Thread Mark Thomas
I am not familiar with this particular tutorial but the problem appears to be
that your client is requesting /soap/rpcrouter but the servlet mapping in
web.xml indicates that the webapp is expcting /soap/servlet/rpcrouter. What the
root cuase of this mismatch might be I do not know.

Mark

 -Original Message-
 From: feilong [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, November 13, 2004 11:45 PM
 To: [EMAIL PROTECTED]
 Subject: Soap under Tomcat
 
 Hallo all,
 I am a beginner with programming web-service with soap 
 protocol under Tomcat web server. 
 I find a link 
 http://www.onjava.com/pub/a/onjava/2002/02/27/tomcat.html?page=1
 which introduce how to use soap in Tomcat and deploy web 
 services and a simple client to call this web service
 I have followed each step what is showed in this article. All 
 run succesfully. only the last step
 java onjava.CalcClient 96 95. I get the following exceptions, 
 but unfortunately I can not understand such exceptions, I 
 hope someone can indicate the reason for me  
 ---
 Exception in thread main [SOAPException: 
 faultCode=SOAP-ENV:Protocol; msg=Unsu
 pported response content type quot;text/html; 
 charset=ISO-8859-1quot;, must be
 : quot;text/xmlquot;. Response was:
 lt;htmlgt;lt;headgt;lt;titlegt;Apache Tomcat/4.1.30 - 
 Error reportlt;/tit
 legt;lt;STYLEgt;lt;!--H1{font-family : 
 sans-serif,Arial,Tahoma;color : white
 ;background-color : #0086b2;} H3{font-family : 
 sans-serif,Arial,Tahoma;color : w
 hite;background-color : #0086b2;} BODY{font-family : 
 sans-serif,Arial,Tahoma;col
 or : black;background-color : white;} B{color : 
 white;background-color : #0086b2
 ;} HR{color : #0086b2;} --gt;lt;/STYLEgt; 
 lt;/headgt;lt;bodygt;lt;h1gt;
 HTTP Status 404 - /soap/rpcrouterlt;/h1gt;lt;HR 
 size=quot;1quot; noshadegt
 ;lt;pgt;lt;bgt;typelt;/bgt; Status 
 reportlt;/pgt;lt;pgt;lt;bgt;messa
 gelt;/bgt; 
 lt;ugt;/soap/rpcrouterlt;/ugt;lt;/pgt;lt;pgt;lt;bgt;descr
 iptionlt;/bgt; lt;ugt;The requested resource 
 (/soap/rpcrouter) is not availa
 ble.lt;/ugt;lt;/pgt;lt;HR size=quot;1quot; 
 noshadegt;lt;h3gt;Apache To
 mcat/4.1.30lt;/h3gt;lt;/bodygt;lt;/htmlgt;
 ]
 at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:208)
 at org.apache.soap.rpc.Call.invoke(Call.java:255)
 at onjava.CalcClient.main(CalcClient.java:35)
 --
 I put my java servlet classes and source code in
 D:\Programs\jakarta-tomcat-4.1.30\webapps\soap\WEB-INF\classes\onjava
 I can deploy the CalcService servlet in Tomcat Server.
 But when I run the CalcClient, get the error messages above.
 I guess since I didn't add anything in 
 \jakarta-tomcat-4.1.30\webapps\soap\WEB-INF\web.xml 
 descriptor file. This web.xml is automatic generated by 
 soap.war while I run the Tomcat Server first time. I don't 
 know how can I edit the
 original web.xml(Deployment Descriptor)if I add new servlet 
 class with package onjava in 
 webapps\soap\WEB-INF\classes\onjava\.
 Another DeploymentDescriptor.xml identifying soap-service 
 under webapps\soap\WEB-INF\classes\onjava\ runs correctly 
 since I can deploy this webservice. 
 The soap\WEB-INF\web.xml looks like following
 
 ?xml version=1.0 encoding=ISO-8859-1?
 
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
 http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
 
 web-app
   display-nameApache-SOAP/display-name
   descriptionno description/description
   servlet
 servlet-namerpcrouter/servlet-name
 display-nameApache-SOAP RPC Router/display-name
 descriptionno description/description
 
 servlet-classorg.apache.soap.server.http.RPCRouterServlet/s
ervlet-class
 init-param
   param-namefaultListener/param-name
   
 param-valueorg.apache.soap.server.DOMFaultListener/param-value
 /init-param
   /servlet
 
   servlet
 servlet-namemessagerouter/servlet-name
 display-nameApache-SOAP Message Router/display-name
 
 servlet-classorg.apache.soap.server.http.MessageRouterServle
t/servlet-class
 init-param
   param-namefaultListener/param-name
   
 param-valueorg.apache.soap.server.DOMFaultListener/param-value
 /init-param
   /servlet
 
   servlet-mapping
 servlet-namerpcrouter/servlet-name
 url-pattern/servlet/rpcrouter/url-pattern
   /servlet-mapping
 
   servlet-mapping
 servlet-namemessagerouter/servlet-name
 url-pattern/servlet/messagerouter/url-pattern
   /servlet-mapping
 /web-app
 
 Another reason I guess is that I didn't edit anything in 
 D:\Programs\jakarta-tomcat-4.1.30\conf\server.xml while new 
 webapplicatin soap comes. I can't edit such configuration 
 files. How can I learn to write and edit such Deployment 
 Descriptor file and server configuration files. 
 The server.xml looks like:
 

RE: Webgui framework

2004-11-14 Thread Mark Thomas
Java Server Faces

http://java.sun.com/j2ee/javaserverfaces/

Mark 

 -Original Message-
 From: Alessandro Ronchi [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, November 14, 2004 1:04 AM
 To: 'Tomcat Users List'
 Subject: Webgui framework
 
 Is there a jsp framework that helps developing of web applications,
 helping developers handling tabs, buttons, choices and other similar
 application needs, avoiding them to write the presentation layer
 specific classes, such as tables, images for buttons and so on?
 -- 
 Alessandro Ronchi [EMAIL PROTECTED]
 http://www.aronchi.org
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



tomcat clustering / jwsdp soap / serializable

2004-11-14 Thread peter maas
Hi list,
I have been experimenting with the clustering options for a while. The 
main issue I seem to encounter over and over again is synchronizing 
objects which do not implement the serializable interface. Since we are 
using the jwsdp wscompile tool to generate source code based on a wsdl 
we have tons of beans generated which do not implement the Serializable 
interface (allthough, since they are sent over SOAP the can be 
serialized). If we want to connect suchs a bean to a session, I would 
have to modify the auto generated code or write adapter beans.
Also it would mean that if I want to use older applications (for which 
we are not sure if they implement the Serializable interface) in a 
cluster setup, I would have to modify and recompile them!

Is there a way to enable replication based on introspection if the 
Serialization interface is not implemented? Any other ideas?

--
Peter Maas
Application Architect / Streaming
Noterik Multimedia BV
Prins Hendrikkade 120
1011 AM Amsterdam
The Netherlands
Tel: +31 (0)205929966
Fax: +31 (0)204688405
Gsm: +31 (0)624687952
Web: www.noterik.nl
--
Take a look at our streaming solutions: 
http://www.streamedit.com/demo.html

Get firefox: 
http://www.mozilla.org/products/firefox/
---

:wq!

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


Re: tomcat clustering / jwsdp soap / serializable

2004-11-14 Thread peter maas
O.k. I just found out that I can force wscompile to add the 
implementation of Serializable to all datatypes 
(xSerializable=true)... however the part about older apps is still 
relevant.

peter maas wrote:
Hi list,
I have been experimenting with the clustering options for a while. The 
main issue I seem to encounter over and over again is synchronizing 
objects which do not implement the serializable interface. Since we 
are using the jwsdp wscompile tool to generate source code based on a 
wsdl we have tons of beans generated which do not implement the 
Serializable interface (allthough, since they are sent over SOAP the 
can be serialized). If we want to connect suchs a bean to a session, I 
would have to modify the auto generated code or write adapter beans.
Also it would mean that if I want to use older applications (for which 
we are not sure if they implement the Serializable interface) in a 
cluster setup, I would have to modify and recompile them!

Is there a way to enable replication based on introspection if the 
Serialization interface is not implemented? Any other ideas?


--
Peter Maas
Application Architect / Streaming
Noterik Multimedia BV
Prins Hendrikkade 120
1011 AM Amsterdam
The Netherlands
Tel: +31 (0)205929966
Fax: +31 (0)204688405
Gsm: +31 (0)624687952
Web: www.noterik.nl
--
Take a look at our streaming solutions: 
http://www.streamedit.com/demo.html

Get firefox: 
http://www.mozilla.org/products/firefox/
---

:wq!

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


Re: Soap under Tomcat

2004-11-14 Thread feilong
Hallo Mark,
Thanks for your reply. I must now see my web.xml file.
I don't know excatly how to edit the web.xml such
Deployment Descriptor file and server.xml such configuration file.

Best
Feilong

- Original Message - 
From: Mark Thomas [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Sunday, November 14, 2004 12:44 PM
Subject: RE: Soap under Tomcat


 I am not familiar with this particular tutorial but the problem appears to
be
 that your client is requesting /soap/rpcrouter but the servlet mapping in
 web.xml indicates that the webapp is expcting /soap/servlet/rpcrouter.
What the
 root cuase of this mismatch might be I do not know.

 Mark

  -Original Message-
  From: feilong [mailto:[EMAIL PROTECTED]
  Sent: Saturday, November 13, 2004 11:45 PM
  To: [EMAIL PROTECTED]
  Subject: Soap under Tomcat
 
  Hallo all,
  I am a beginner with programming web-service with soap
  protocol under Tomcat web server.
  I find a link
  http://www.onjava.com/pub/a/onjava/2002/02/27/tomcat.html?page=1
  which introduce how to use soap in Tomcat and deploy web
  services and a simple client to call this web service
  I have followed each step what is showed in this article. All
  run succesfully. only the last step
  java onjava.CalcClient 96 95. I get the following exceptions,
  but unfortunately I can not understand such exceptions, I
  hope someone can indicate the reason for me
  ---
  Exception in thread main [SOAPException:
  faultCode=SOAP-ENV:Protocol; msg=Unsu
  pported response content type quot;text/html;
  charset=ISO-8859-1quot;, must be
  : quot;text/xmlquot;. Response was:
  lt;htmlgt;lt;headgt;lt;titlegt;Apache Tomcat/4.1.30 -
  Error reportlt;/tit
  legt;lt;STYLEgt;lt;!--H1{font-family :
  sans-serif,Arial,Tahoma;color : white
  ;background-color : #0086b2;} H3{font-family :
  sans-serif,Arial,Tahoma;color : w
  hite;background-color : #0086b2;} BODY{font-family :
  sans-serif,Arial,Tahoma;col
  or : black;background-color : white;} B{color :
  white;background-color : #0086b2
  ;} HR{color : #0086b2;} --gt;lt;/STYLEgt;
  lt;/headgt;lt;bodygt;lt;h1gt;
  HTTP Status 404 - /soap/rpcrouterlt;/h1gt;lt;HR
  size=quot;1quot; noshadegt
  ;lt;pgt;lt;bgt;typelt;/bgt; Status
  reportlt;/pgt;lt;pgt;lt;bgt;messa
  gelt;/bgt;
  lt;ugt;/soap/rpcrouterlt;/ugt;lt;/pgt;lt;pgt;lt;bgt;descr
  iptionlt;/bgt; lt;ugt;The requested resource
  (/soap/rpcrouter) is not availa
  ble.lt;/ugt;lt;/pgt;lt;HR size=quot;1quot;
  noshadegt;lt;h3gt;Apache To
  mcat/4.1.30lt;/h3gt;lt;/bodygt;lt;/htmlgt;
  ]
  at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:208)
  at org.apache.soap.rpc.Call.invoke(Call.java:255)
  at onjava.CalcClient.main(CalcClient.java:35)
  --
  I put my java servlet classes and source code in
  D:\Programs\jakarta-tomcat-4.1.30\webapps\soap\WEB-INF\classes\onjava
  I can deploy the CalcService servlet in Tomcat Server.
  But when I run the CalcClient, get the error messages above.
  I guess since I didn't add anything in
  \jakarta-tomcat-4.1.30\webapps\soap\WEB-INF\web.xml
  descriptor file. This web.xml is automatic generated by
  soap.war while I run the Tomcat Server first time. I don't
  know how can I edit the
  original web.xml(Deployment Descriptor)if I add new servlet
  class with package onjava in
  webapps\soap\WEB-INF\classes\onjava\.
  Another DeploymentDescriptor.xml identifying soap-service
  under webapps\soap\WEB-INF\classes\onjava\ runs correctly
  since I can deploy this webservice.
  The soap\WEB-INF\web.xml looks like following
  
  ?xml version=1.0 encoding=ISO-8859-1?
 
  !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
  http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
 
  web-app
display-nameApache-SOAP/display-name
descriptionno description/description
servlet
  servlet-namerpcrouter/servlet-name
  display-nameApache-SOAP RPC Router/display-name
  descriptionno description/description
 
  servlet-classorg.apache.soap.server.http.RPCRouterServlet/s
 ervlet-class
  init-param
param-namefaultListener/param-name
 
  param-valueorg.apache.soap.server.DOMFaultListener/param-value
  /init-param
/servlet
 
servlet
  servlet-namemessagerouter/servlet-name
  display-nameApache-SOAP Message Router/display-name
 
  servlet-classorg.apache.soap.server.http.MessageRouterServle
 t/servlet-class
  init-param
param-namefaultListener/param-name
 
  param-valueorg.apache.soap.server.DOMFaultListener/param-value
  /init-param
/servlet
 
servlet-mapping
  servlet-namerpcrouter/servlet-name
  url-pattern/servlet/rpcrouter/url-pattern
/servlet-mapping
 
servlet-mapping
  servlet-namemessagerouter/servlet-name
  

Re: OutOfMemory errors compiling JSPs on 5.0.16 and 5.5.4

2004-11-14 Thread Remy Maucherat
On Sat, 13 Nov 2004 17:30:38 -0800, Kevin A. Burton
[EMAIL PROTECTED] wrote:
 Remy Maucherat wrote:
 
 On Fri, 12 Nov 2004 17:17:28 -0800, Kevin A. Burton
 [EMAIL PROTECTED] wrote:
 
 - For all my JSPs I fetch them with the URL foo.jsp?jsp_precompile=true
 to trigger precompilation
 
 
 How many JSPs must be compiled to cause problems ?
 
 About 50 or so... it changes every time.   Sometimes I have to trigger a
 precompile twice.

I don't quite understand in which cases problems occur:
- if you ?jsp_precompile=true 50 times for the same JSP ?
- if you ?jsp_precompile=true for 50 different JSPs ?
- if you access normally 50 different JSPs (triggering compilation for
each one) ?
I would understand from your description only the second one is an
issue. Can you confirm this ?

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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



Re: OT: hosting recommendations?

2004-11-14 Thread Webmaster
www.locaweb.com



On Fri, 12 Nov 2004 11:34:52 -0800 (PST), Woodchuck [EMAIL PROTECTED] 
escreveu:

 De: Woodchuck [EMAIL PROTECTED]
 Data: Fri, 12 Nov 2004 11:34:52 -0800 (PST)
 Para: struts [EMAIL PROTECTED], tomcat [EMAIL PROTECTED]
 Assunto: OT:  hosting recommendations?
 
 hihi all,
 
 can anyone recommend hosters that are Tomcat/Java friendly and offer
 private JVMs for cheap monthly cost?  (cheap to me is $0 - $20/month
 range)
 
 i went to servlets.com and visited many of the hosters on their list
 but most of them seem to still have the legacy offerings that are
 stingy on space and transfer allowances.  it was either that or they
 charge a lot ($50+/month) for private JVMs.
 
 thanks in advance,
 woodchuck
 
 
   
 __ 
 Do you Yahoo!? 
 Check out the new Yahoo! Front Page. 
 www.yahoo.com 
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

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



Remote debugging a web app with Eclipse?

2004-11-14 Thread Michael Schuerig

I've tried to remote debug a web app with Eclipse, but didn't make the 
first hurdle. Apparently, Eclipse can't connect to Tomcat's JVM. I'm 
using Tomcat 5.5.1, J2SE 5.0 and Eclipse 3.1M3.

I take it, that in some way I need to tell the JVM that it's running in 
debug mode and what port it ought to listen on. All I found out, 
though, is that there's a deprecated -Xdebug option. Is there a short 
tutorial somewhere on remote debugging?

Michael

-- 
Michael Schuerig  Failures to use one's frontal lobes
mailto:[EMAIL PROTECTED]can result in the loss of them.
http://www.schuerig.de/michael/   --William H. Calvin

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



RE: Remote debugging a web app with Eclipse?

2004-11-14 Thread George Sexton
Here is a wrapper that I use to start tomcat for remote debugging with
Eclipse. Note that the indented CATALINA_OPTS is actually one long line in
the batch file.

REM @ECHO OFF
SET CATALINA_VER=5.0.28
SET CATALINA_BASE=M:\cdaily
SET CATALINA_HOME=C:\SERVLET\Jakarta-Tomcat-%CATALINA_VER%
SET CATALINA_OPTS=-Xdebug -Xnoagent 
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7100 
-Djava.compiler=NONE 
-Dfile.encoding=ISO-8859-1
SET JAVA_HOME=C:\J2SDK1.4.2_04
%CATALINA_HOME%\bin\catalina.bat %1 %2 %3 %4 %5 %6 %7 %8 %9



George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Michael Schuerig [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, November 14, 2004 9:06 AM
 To: [EMAIL PROTECTED]
 Subject: Remote debugging a web app with Eclipse?
 
 
 I've tried to remote debug a web app with Eclipse, but didn't 
 make the 
 first hurdle. Apparently, Eclipse can't connect to Tomcat's JVM. I'm 
 using Tomcat 5.5.1, J2SE 5.0 and Eclipse 3.1M3.
 
 I take it, that in some way I need to tell the JVM that it's 
 running in 
 debug mode and what port it ought to listen on. All I found out, 
 though, is that there's a deprecated -Xdebug option. Is there a short 
 tutorial somewhere on remote debugging?
 
 Michael
 
 -- 
 Michael Schuerig  Failures to use one's frontal lobes
 mailto:[EMAIL PROTECTED]can result in the loss of them.
 http://www.schuerig.de/michael/   --William H. Calvin
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: Remote debugging a web app with Eclipse?

2004-11-14 Thread Michael Schuerig
On Sunday 14 November 2004 17:16, George Sexton wrote:
 Here is a wrapper that I use to start tomcat for remote debugging
 with Eclipse. Note that the indented CATALINA_OPTS is actually one
 long line in the batch file.

Thanks! that was easier than I expected.

I'm starting Tomcat from an ant file like this:

  property name=tomcat.java_opts  value=-Duser.language=en 
-Dcom.sun.management.jmxremote -enableassertions -Xdebug -Xnoagent 
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7100/

  target name=tomcat.start
   description=Start Tomcat server
exec executable=${tomcat.home}/bin/startup.sh 
  os=Linux,Unix
  env key=JAVA_OPTS value=${tomcat.java_opts}/
/exec
  /target

Michael

-- 
Michael Schuerig   Face reality and stare it down
mailto:[EMAIL PROTECTED]--Jethro Tull, Silver River Turning
http://www.schuerig.de/michael/

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



Re: Soap under Tomcat

2004-11-14 Thread feilong
Hallo Mark,
My client is requesting  http://localhost:8080/soap/servlet/rpcrouter, and
the servletmapping is exactly same
servlet-mapping
  servlet-namerpcrouter/servlet-name
  url-pattern/servlet/rpcrouter/url-pattern
/servlet-mapping
in soap/WEB-INF/web.xml.
Why do you say that the requesting doesn't match the description in web.xml?
The problem is still there.

Best
Feilong

The source code for CalcClient.java is following:

---
package onjava;

import java.io.*;
import java.net.*;
import java.util.*;
import org.apache.soap.*;
import org.apache.soap.rpc.*;

public class CalcClient {

  public static void main(String[] args) throws Exception {

URL url = new URL (http://localhost:8080/soap/servlet/rpcrouter;);

Integer p1 = new Integer(args[0]);
Integer p2 = new Integer(args[1]);

// Build the call.
Call call = new Call();
call.setTargetObjectURI(urn:onjavaserver);
call.setMethodName(subtract);
call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
Vector params = new Vector();
params.addElement(new Parameter(p1, Integer.class, p1, null));
params.addElement(new Parameter(p2, Integer.class, p2, null));
call.setParams (params);

// make the call: note that the action URI is empty because the
// XML-SOAP rpc router does not need this. This may change in the
// future.
Response resp = call.invoke(url,  );

// Check the response.
if ( resp.generatedFault() ) {

  Fault fault = resp.getFault ();
  System.out.println(The call failed: );
  System.out.println(Fault Code   =  + fault.getFaultCode());
  System.out.println(Fault String =  + fault.getFaultString());
}
else {

  Parameter result = resp.getReturnValue();
  System.out.println(result.getValue());
}
  }
}

-




- Original Message - 
From: Mark Thomas [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Sunday, November 14, 2004 12:44 PM
Subject: RE: Soap under Tomcat


 I am not familiar with this particular tutorial but the problem appears to
be
 that your client is requesting /soap/rpcrouter but the servlet mapping in
 web.xml indicates that the webapp is expcting /soap/servlet/rpcrouter.
What the
 root cuase of this mismatch might be I do not know.

 Mark

  -Original Message-
  From: feilong [mailto:[EMAIL PROTECTED]
  Sent: Saturday, November 13, 2004 11:45 PM
  To: [EMAIL PROTECTED]
  Subject: Soap under Tomcat
 
  Hallo all,
  I am a beginner with programming web-service with soap
  protocol under Tomcat web server.
  I find a link
  http://www.onjava.com/pub/a/onjava/2002/02/27/tomcat.html?page=1
  which introduce how to use soap in Tomcat and deploy web
  services and a simple client to call this web service
  I have followed each step what is showed in this article. All
  run succesfully. only the last step
  java onjava.CalcClient 96 95. I get the following exceptions,
  but unfortunately I can not understand such exceptions, I
  hope someone can indicate the reason for me
  ---
  Exception in thread main [SOAPException:
  faultCode=SOAP-ENV:Protocol; msg=Unsu
  pported response content type quot;text/html;
  charset=ISO-8859-1quot;, must be
  : quot;text/xmlquot;. Response was:
  lt;htmlgt;lt;headgt;lt;titlegt;Apache Tomcat/4.1.30 -
  Error reportlt;/tit
  legt;lt;STYLEgt;lt;!--H1{font-family :
  sans-serif,Arial,Tahoma;color : white
  ;background-color : #0086b2;} H3{font-family :
  sans-serif,Arial,Tahoma;color : w
  hite;background-color : #0086b2;} BODY{font-family :
  sans-serif,Arial,Tahoma;col
  or : black;background-color : white;} B{color :
  white;background-color : #0086b2
  ;} HR{color : #0086b2;} --gt;lt;/STYLEgt;
  lt;/headgt;lt;bodygt;lt;h1gt;
  HTTP Status 404 - /soap/rpcrouterlt;/h1gt;lt;HR
  size=quot;1quot; noshadegt
  ;lt;pgt;lt;bgt;typelt;/bgt; Status
  reportlt;/pgt;lt;pgt;lt;bgt;messa
  gelt;/bgt;
  lt;ugt;/soap/rpcrouterlt;/ugt;lt;/pgt;lt;pgt;lt;bgt;descr
  iptionlt;/bgt; lt;ugt;The requested resource
  (/soap/rpcrouter) is not availa
  ble.lt;/ugt;lt;/pgt;lt;HR size=quot;1quot;
  noshadegt;lt;h3gt;Apache To
  mcat/4.1.30lt;/h3gt;lt;/bodygt;lt;/htmlgt;
  ]
  at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:208)
  at org.apache.soap.rpc.Call.invoke(Call.java:255)
  at onjava.CalcClient.main(CalcClient.java:35)
  --
  I put my java servlet classes and source code in
  D:\Programs\jakarta-tomcat-4.1.30\webapps\soap\WEB-INF\classes\onjava
  I can deploy the CalcService servlet in Tomcat Server.
  But when I run the CalcClient, get the error messages above.
  I guess since I didn't add anything in
  \jakarta-tomcat-4.1.30\webapps\soap\WEB-INF\web.xml
  descriptor file. This web.xml is automatic 

Exception in Tomcat under Soap

2004-11-14 Thread feilong
Hallo all,
I am a beginner with programming web-service with soap protocol under Tomcat 
web server. 
I find a link http://www.onjava.com/pub/a/onjava/2002/02/27/tomcat.html?page=1
which introduce how to use soap in Tomcat and deploy web services and a simple 
client to call this web service
I have followed each step what is showed in this article. All run succesfully. 
only the last step
java onjava.CalcClient 96 95. I get the following exceptions, but unfortunately 
I can not understand such exceptions, I hope someone can indicate the reason 
for me  
---
D:\Programs\jakarta-tomcat-4.1.30\webapps\soap\WEB-INF\classesjava 
onjava.CalcClient 98 92
The call failed:
Fault Code   = SOAP-ENV:Server.Exception:
Fault String = onjava/CalcService (wrong name: CalcService)
--
I put my java servlet classes and source code in
D:\Programs\jakarta-tomcat-4.1.30\webapps\soap\WEB-INF\classes\onjava
I can deploy the CalcService servlet in Tomcat Server.
But when I run the CalcClient, get the error messages above.
I didn't edit \jakarta-tomcat-4.1.30\webapps\soap\WEB-INF\web.xml descriptor 
file. This web.xml is automatic generated by soap.war while I run the Tomcat 
Server first time. I don't know how can I edit the
soap\WEB-INF\web.xml in this case, i.e new servlet under package 
soap\WEB-INF\classes\onjava 

Another DeploymentDescriptor.xml identifying soap-service 
under webapps\soap\WEB-INF\classes\onjava\ runs correctly since I can deploy 
this webservice. 
The soap\WEB-INF\web.xml looks like following

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

web-app
  display-nameApache-SOAP/display-name
  descriptionno description/description
  servlet
servlet-namerpcrouter/servlet-name
display-nameApache-SOAP RPC Router/display-name
descriptionno description/description
   
servlet-classorg.apache.soap.server.http.RPCRouterServlet/servlet-class 
   
 
init-param
  param-namefaultListener/param-name
  param-valueorg.apache.soap.server.DOMFaultListener/param-value
/init-param
  /servlet

  servlet
servlet-namemessagerouter/servlet-name
display-nameApache-SOAP Message Router/display-name

servlet-classorg.apache.soap.server.http.MessageRouterServlet/servlet-class
init-param
  param-namefaultListener/param-name
  param-valueorg.apache.soap.server.DOMFaultListener/param-value
/init-param
  /servlet

  servlet-mapping
servlet-namerpcrouter/servlet-name
url-pattern/servlet/rpcrouter/url-pattern
  /servlet-mapping

  servlet-mapping
servlet-namemessagerouter/servlet-name
url-pattern/servlet/messagerouter/url-pattern
  /servlet-mapping
/web-app
--
I added new context in tomcat/conf/server.xml
 Context path=/soap docBase=soap debug=0 reloadable=true /


Thanks in advance
Feilong


RE: Soap under Tomcat

2004-11-14 Thread Mark Thomas
To quote from the error message from your original post:

The requested resource (/soap/rpcrouter) is not available.

Mark 

 -Original Message-
 From: feilong [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, November 14, 2004 8:18 PM
 To: Tomcat Users List
 Subject: Re: Soap under Tomcat
 
 Hallo Mark,
 My client is requesting  
 http://localhost:8080/soap/servlet/rpcrouter, and
 the servletmapping is exactly same
 servlet-mapping
   servlet-namerpcrouter/servlet-name
   url-pattern/servlet/rpcrouter/url-pattern
 /servlet-mapping
 in soap/WEB-INF/web.xml.
 Why do you say that the requesting doesn't match the 
 description in web.xml?
 The problem is still there.
 
 Best
 Feilong
 
 The source code for CalcClient.java is following:
 --
 --
 ---
 package onjava;
 
 import java.io.*;
 import java.net.*;
 import java.util.*;
 import org.apache.soap.*;
 import org.apache.soap.rpc.*;
 
 public class CalcClient {
 
   public static void main(String[] args) throws Exception {
 
 URL url = new URL 
 (http://localhost:8080/soap/servlet/rpcrouter;);
 
 Integer p1 = new Integer(args[0]);
 Integer p2 = new Integer(args[1]);
 
 // Build the call.
 Call call = new Call();
 call.setTargetObjectURI(urn:onjavaserver);
 call.setMethodName(subtract);
 call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
 Vector params = new Vector();
 params.addElement(new Parameter(p1, Integer.class, p1, null));
 params.addElement(new Parameter(p2, Integer.class, p2, null));
 call.setParams (params);
 
 // make the call: note that the action URI is empty because the
 // XML-SOAP rpc router does not need this. This may change in the
 // future.
 Response resp = call.invoke(url,  );
 
 // Check the response.
 if ( resp.generatedFault() ) {
 
   Fault fault = resp.getFault ();
   System.out.println(The call failed: );
   System.out.println(Fault Code   =  + fault.getFaultCode());
   System.out.println(Fault String =  + fault.getFaultString());
 }
 else {
 
   Parameter result = resp.getReturnValue();
   System.out.println(result.getValue());
 }
   }
 }
 
 -
 
 
 
 
 - Original Message - 
 From: Mark Thomas [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Sunday, November 14, 2004 12:44 PM
 Subject: RE: Soap under Tomcat
 
 
  I am not familiar with this particular tutorial but the 
 problem appears to
 be
  that your client is requesting /soap/rpcrouter but the 
 servlet mapping in
  web.xml indicates that the webapp is expcting 
 /soap/servlet/rpcrouter.
 What the
  root cuase of this mismatch might be I do not know.
 
  Mark
 
   -Original Message-
   From: feilong [mailto:[EMAIL PROTECTED]
   Sent: Saturday, November 13, 2004 11:45 PM
   To: [EMAIL PROTECTED]
   Subject: Soap under Tomcat
  
   Hallo all,
   I am a beginner with programming web-service with soap
   protocol under Tomcat web server.
   I find a link
   http://www.onjava.com/pub/a/onjava/2002/02/27/tomcat.html?page=1
   which introduce how to use soap in Tomcat and deploy web
   services and a simple client to call this web service
   I have followed each step what is showed in this article. All
   run succesfully. only the last step
   java onjava.CalcClient 96 95. I get the following exceptions,
   but unfortunately I can not understand such exceptions, I
   hope someone can indicate the reason for me
   ---
   Exception in thread main [SOAPException:
   faultCode=SOAP-ENV:Protocol; msg=Unsu
   pported response content type quot;text/html;
   charset=ISO-8859-1quot;, must be
   : quot;text/xmlquot;. Response was:
   lt;htmlgt;lt;headgt;lt;titlegt;Apache Tomcat/4.1.30 -
   Error reportlt;/tit
   legt;lt;STYLEgt;lt;!--H1{font-family :
   sans-serif,Arial,Tahoma;color : white
   ;background-color : #0086b2;} H3{font-family :
   sans-serif,Arial,Tahoma;color : w
   hite;background-color : #0086b2;} BODY{font-family :
   sans-serif,Arial,Tahoma;col
   or : black;background-color : white;} B{color :
   white;background-color : #0086b2
   ;} HR{color : #0086b2;} --gt;lt;/STYLEgt;
   lt;/headgt;lt;bodygt;lt;h1gt;
   HTTP Status 404 - /soap/rpcrouterlt;/h1gt;lt;HR
   size=quot;1quot; noshadegt
   ;lt;pgt;lt;bgt;typelt;/bgt; Status
   reportlt;/pgt;lt;pgt;lt;bgt;messa
   gelt;/bgt;
   
 lt;ugt;/soap/rpcrouterlt;/ugt;lt;/pgt;lt;pgt;lt;bgt;descr
   iptionlt;/bgt; lt;ugt;The requested resource
   (/soap/rpcrouter) is not availa
   ble.lt;/ugt;lt;/pgt;lt;HR size=quot;1quot;
   noshadegt;lt;h3gt;Apache To
   mcat/4.1.30lt;/h3gt;lt;/bodygt;lt;/htmlgt;
   ]
   at 
 org.apache.soap.rpc.Call.getEnvelopeString(Call.java:208)
   at org.apache.soap.rpc.Call.invoke(Call.java:255)
   at 

Tomcat 5.5.4 Upgrade Blog

2004-11-14 Thread Allistair Crossley
Hi List,

 

Based on my upgrade to Tomcat 5.5.4 late last week and the few config issues I 
came across, I wrote a Blog that can be found on my web site here

 

www.adcworks.com/blog http://www.adcworks.com/blog 

 

It covers IIS authentication (thanks Bill), logging, basic JNDI data source 
config.

 

It won't be useful for everyone, but hopefully for some of you. Everything I 
have written works. Feel free to comment on this Blog from the page or add 
additional information relating to it.

 

Best regards, Allistair

 

PS: Remy/Yoav, if you could take a look at this Blog and let me know if you 
think any of it is useful for the Tomcat pages, I can covert it appropriately.

 



FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT



Re: Soap under Tomcat

2004-11-14 Thread feilong
Hallo,
What do you mean that the /soap/rpcrouter is not available?
in web.xml

-
servlet
servlet-namerpcrouter/servlet-name
display-nameApache-SOAP RPC Router/display-name
descriptionno description/description

servlet-classorg.apache.soap.server.http.RPCRouterServlet/servlet-class
init-param
  param-namefaultListener/param-name
  param-valueorg.apache.soap.server.DOMFaultListener/param-value
/init-param
  /servlet

--
The servlet class is in this package org..RPCRouterServlet.
I tried replace servlet-class with onjava.CalcService but it doesn't work.

The current error message is


D:\Programs\jakarta-tomcat-4.1.30\webapps\soap\WEB-INF\classesjava
onjava.CalcC
lient 98 92
I am called!
The call failed:
Fault Code   = SOAP-ENV:Server.Exception:
Fault String = onjava/CalcService (wrong name: CalcService)

-

Thanks again

Best
Feilong




- Original Message - 
From: Mark Thomas [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Sunday, November 14, 2004 10:00 PM
Subject: RE: Soap under Tomcat


 To quote from the error message from your original post:

 The requested resource (/soap/rpcrouter) is not available.

 Mark

  -Original Message-
  From: feilong [mailto:[EMAIL PROTECTED]
  Sent: Sunday, November 14, 2004 8:18 PM
  To: Tomcat Users List
  Subject: Re: Soap under Tomcat
 
  Hallo Mark,
  My client is requesting
  http://localhost:8080/soap/servlet/rpcrouter, and
  the servletmapping is exactly same
  servlet-mapping
servlet-namerpcrouter/servlet-name
url-pattern/servlet/rpcrouter/url-pattern
  /servlet-mapping
  in soap/WEB-INF/web.xml.
  Why do you say that the requesting doesn't match the
  description in web.xml?
  The problem is still there.
 
  Best
  Feilong
 
  The source code for CalcClient.java is following:
  --
  --
  ---
  package onjava;
 
  import java.io.*;
  import java.net.*;
  import java.util.*;
  import org.apache.soap.*;
  import org.apache.soap.rpc.*;
 
  public class CalcClient {
 
public static void main(String[] args) throws Exception {
 
  URL url = new URL
  (http://localhost:8080/soap/servlet/rpcrouter;);
 
  Integer p1 = new Integer(args[0]);
  Integer p2 = new Integer(args[1]);
 
  // Build the call.
  Call call = new Call();
  call.setTargetObjectURI(urn:onjavaserver);
  call.setMethodName(subtract);
  call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
  Vector params = new Vector();
  params.addElement(new Parameter(p1, Integer.class, p1, null));
  params.addElement(new Parameter(p2, Integer.class, p2, null));
  call.setParams (params);
 
  // make the call: note that the action URI is empty because the
  // XML-SOAP rpc router does not need this. This may change in the
  // future.
  Response resp = call.invoke(url,  );
 
  // Check the response.
  if ( resp.generatedFault() ) {
 
Fault fault = resp.getFault ();
System.out.println(The call failed: );
System.out.println(Fault Code   =  + fault.getFaultCode());
System.out.println(Fault String =  + fault.getFaultString());
  }
  else {
 
Parameter result = resp.getReturnValue();
System.out.println(result.getValue());
  }
}
  }
 
  -
 
 
 
 
  - Original Message - 
  From: Mark Thomas [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Sunday, November 14, 2004 12:44 PM
  Subject: RE: Soap under Tomcat
 
 
   I am not familiar with this particular tutorial but the
  problem appears to
  be
   that your client is requesting /soap/rpcrouter but the
  servlet mapping in
   web.xml indicates that the webapp is expcting
  /soap/servlet/rpcrouter.
  What the
   root cuase of this mismatch might be I do not know.
  
   Mark
  
-Original Message-
From: feilong [mailto:[EMAIL PROTECTED]
Sent: Saturday, November 13, 2004 11:45 PM
To: [EMAIL PROTECTED]
Subject: Soap under Tomcat
   
Hallo all,
I am a beginner with programming web-service with soap
protocol under Tomcat web server.
I find a link
http://www.onjava.com/pub/a/onjava/2002/02/27/tomcat.html?page=1
which introduce how to use soap in Tomcat and deploy web
services and a simple client to call this web service
I have followed each step what is showed in this article. All
run succesfully. only the last step
java onjava.CalcClient 96 95. I get the following exceptions,
but unfortunately I 

RE: Tomcat and -server option

2004-11-14 Thread Chong, Kwong

On *NIX, you should be able to firstly check to see if your environment
variables are being picked up when you start up tomcat with ps

eg

$ ps -ef , or ps -auxww

might show something like

  tcuser 23134 1  0   Nov 04 ?0:44 /usr/java/bin/java
-server -verbose:gc -Xms768m -Xmx768m 

and take it from there

KC.

-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED]
Sent: Saturday, 13 November 2004 11:46 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat and -server option

You might need a space here, depending on what else is being constructed
and
sent to the command line:

JAVA_OPTS=-server
---^

might need:
JAVA_OPTS= -server



 -Original Message-
 From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 12, 2004 3:09 PM
 To: Tomcat Users List
 Subject: Re: Tomcat and -server option


 Hi,

 I have: JAVA_OPTS=-server -Djava.awt.headless=true -Xms1g -Xmx1g
 -Dfile.encoding=ISO-8859-1 in catalina.sh

 I just tried:
   logger.info(java.vm.name:  +
 System.getProperty(java.vm.name));
 and i get:
   INFO - java.vm.name: Java HotSpot(TM) Client VM

 Why is the -server option not taking effect?




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




www.sensis.com.au

A leading Australian advertising, information
and directories business.

www.yellowpages.com.au
www.whitepages.com.au
www.citysearch.com.au
www.whereis.com.au
www.telstra.com.au
www.tradingpost.com.au

This email and any attachments are intended only for the use of the recipient 
and may be confidential and/or legally privileged.
Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, loss 
and/or damage arising from using, opening or transmitting this email.
If you are not the intended recipient you must not use, interfere with, 
disclose, copy or retain this email and you should notify the sender 
immediately by return email or by contacting Sensis Pty Ltd by telephone on 
[+61 3 8653 5000]

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



TAGLIBS: Unresolved compilation problems

2004-11-14 Thread Ricci Angelo
Tomcat return the followed error and i can't understand why
standard.jar seems to be in the right place (WEB-INF\lib)
and the java code isn't  change since my customized tag worked very well!!!
So I can't recognize my error.
Can you help me???
error output from tomcat:
=
javax.servlet.ServletException: Unresolved compilation problems:
The import org.apache.taglibs cannot be resolved
ExpressionEvaluatorManager cannot be resolved
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


WebDAV-Servlet with Contexts different from FileDirContext

2004-11-14 Thread Oliver Zeigermann
Folks,

I am just reviewing Tomcat's WebDAV servlet and have even run Slide's
WebDAV testsuite against it - many tests work :) I really like the
brevity!

I understand the default context used is FileDirContext, right? I am
no Tomcat expert, so maybe this is a stupid question, but is it
actually possible to use a different context possibly accessing a
system in a more complicated way? Has anybody tried this already?

Thanks in advance,
Oliver

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



Re: Tomcat 5.5.4, Logging and the death of my friend localhost_log

2004-11-14 Thread Jacob Kjome
At 01:26 AM 11/13/2004 +0100, you wrote:
On Fri, 12 Nov 2004 12:53:18 -0600, Jonathan Eric Miller
[EMAIL PROTECTED] wrote:
 Actually, I guess the default isn't that bad for UNIX/Linux anyway. In

On Windows, I think it's time to start using the .exe wrapper (or
another similar wrapper), rather than keep using the .bat scripts,
given their current limitations. This redirects output to log files,
which are not rotated at the moment (unlike the main procrun logger).
I suppose the feature could be added.

I know the new logging is not perfect, but I think it's better than
it was before. As the ServletContext logging is bad, applications were
never using it, and logging could not be unified due to Tomcat's use
of proprietary loggers. The container logger often has little data,
usually uncaught exceptions.

What I liked about the ServletContext logging was that I could dynamically 
create the file using a simple Logger in the Context element of my 
context configuration file.  This way, all I have to do is the deploy the 
app and the log file is created and rolled for me.  Of course you're right 
that the context logging is weak on its own, but with the 
logging-log4j-sandbox ServletContextLogAppender (see 
http://tinyurl.com/5mf2q  and http://tinyurl.com/3s94q ), I can hook in 
application logging to go to the ServletContext log file.  And since that 
file is specified by the server, my own log4j config file need not point at 
any physical location on the machine (and it is my own app's config file, 
not the server's).  The logging will show up wherever the server decides to 
put the servlet context log file for the application.  No more 
context.getRealPath(/WEB-INF/logs) which is not guaranteed to work in all 
cases, nor do I have to configure any directory to point logging to.  Plus, 
I have the full power of Log4j.

This is logging heaven right up to Tomcat-5.0.xx, but with 5.5.x, I lose 
this ability to dynamically define the logger at deployment time.  For each 
context I want logging for, I have to set up an entry in my server-defined 
log4j config file in common/classes (in which case I also have to be the 
server admin) and then deploy the app.  This extra step is a real downgrade 
in functionality and efficiency between 5.0.xx and 5.5.x, IMO.  I'd like to 
see something like the old functionality come back, although I'm not 
holding my breath.

The other thing I'll mention is not so much a bug or defect, but an 
unfortunate collision between log4j's dtd and Tomcat-5.5.x's ServletContext 
logger naming scheme.  for Log4j XML config files, the log4j dtd (used for 
the DOMConfigurator, but not for Log4j-1.3's JoranConfigurator which will, 
hopefully, ameliorate this issue) specifies the logger name attribute 
as being of Type ID.  As such, the naming scheme Tomcat-5.5.x uses causes a 
parsing failure because it uses characters not allowed in XML ID attributes 
([, ], and / in logger 
name=org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/MyContext). 
I'm not in any way implying that this is a bug in Tomcat-5.5.x.  I just 
thought I'd mention it for those who attempt to use Log4j XML config files 
with the DOMConfigurator for servlet context logging.  Using a properties 
file (which, unfortunately, doesn't have all the functionality that an XML 
config file has) or using Log4j-1.3's new JoranConfigurator should get 
around this (although I haven't actually tested this claim as of yet).

Jake
--
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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


Re: Problem with classpaths

2004-11-14 Thread Venkatesh . Babu
Hi,

First of all, thanks for the reply... U were right, I had two copies of 
servlet.jar, one in CATALINA_HOME/common/lib and one in 
CATALINA_HOME/webapps/my application/WEB-INF/lib/

However, I removed the copy present in CATALINA_HOME/webapps/my 
application/WEB-INF/lib/, but I still get NoClassDef found error for 
javax.servlet.http.HttpServlet... This problem seems to be strange. I've 
checked to ensure that servlet.jar is now present only in 
CATALINA_HOME/common/lib... Earlier I was playing around with setting 
CLASSPATH variable in (bin/catalina.sh)... but now, I've removed all the 
jars that I had added to the CLASSPATH environment variable... But still 
I'm facing with this problem. I've included the exception stack trace for 
your reference...

Regards,
Venkatesh

Exception stack trace:

java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
 at java.lang.ClassLoader.defineClass1(Native Method)
 at 
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
 at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
 at 
java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
 at 
java.net.URLClassLoader.access$100(URLClassLoader.java:56)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 at java.security.AccessController.doPrivileged(Native 
Method)
 at 
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
 at 
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
 at java.lang.ClassLoader.defineClass1(Native Method)
 at 
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
 at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
 at 
java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
 at 
java.net.URLClassLoader.access$100(URLClassLoader.java:56)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 at java.security.AccessController.doPrivileged(Native 
Method)
 at 
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
 at 
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
 at java.lang.ClassLoader.defineClass1(Native Method)
 at 
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
 at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
 at 
java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
 at 
java.net.URLClassLoader.access$100(URLClassLoader.java:56)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 at java.security.AccessController.doPrivileged(Native 
Method)
 at 
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
 at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1355)
 at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1289)
 at 
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
 at java.lang.ClassLoader.defineClass1(Native Method)
 at 
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
 at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
 at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1679)
 at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:968)
 at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1409)
 at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1289)
 at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:885)
 at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
 at 

Re: Webgui framework

2004-11-14 Thread wim
http://www.myfaces.org/
wim
Mark Thomas wrote:
Java Server Faces
http://java.sun.com/j2ee/javaserverfaces/
Mark 

 

-Original Message-
From: Alessandro Ronchi [mailto:[EMAIL PROTECTED] 
Sent: Sunday, November 14, 2004 1:04 AM
To: 'Tomcat Users List'
Subject: Webgui framework

Is there a jsp framework that helps developing of web applications,
helping developers handling tabs, buttons, choices and other similar
application needs, avoiding them to write the presentation layer
specific classes, such as tables, images for buttons and so on?
--
Alessandro Ronchi [EMAIL PROTECTED]
http://www.aronchi.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   


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


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