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]


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 /common/lib and one in 
/webapps//WEB-INF/lib/

However, I removed the copy present in /webapps//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 
/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 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at 
org.apache.catalina.cor

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  in the  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  "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 ). 
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]


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]



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]


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]



Re: Soap under Tomcat

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

-

rpcrouter
Apache-SOAP RPC Router
no description

org.apache.soap.server.http.RPCRouterServlet

  faultListener
  org.apache.soap.server.DOMFaultListener

  

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

The current error message is


D:\Programs\jakarta-tomcat-4.1.30\webapps\soap\WEB-INF\classes>java
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
> > 
> >   rpcrouter
> >   /servlet/rpcrouter
> > 
> > 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

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  

 

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.

 



 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---




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
> 
>   rpcrouter
>   /servlet/rpcrouter
> 
> 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 "text/html;
> > > charset=ISO-8859-1", must be
> > > : "text/xml". Response was:
> > > Apache Tomcat/4.1.30 -
> > > Error report</tit
> > > le><STYLE><!--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;} --></STYLE>
> > > </head><body><h1>
> > > HTTP Status 404 - /soap/rpcrouter</h1><HR
> > > size="1" noshade>
> > > ;<p><b>type</b> Status
> > > report</p><p><b>messa
> > > ge</b>
> > > 
> <u>/soap/rpcrouter</u></p><p><b>descr
> > > iption</b> <u>The requested resource
> > > (/soap/rpcrouter) is not availa
> > > ble.</u></p><HR size="1"
> > > noshade><h3>Apache To
> > > mcat/4.1.30</h3></body></html>
> > > ]
> > > at 
> org.apache.soap.rpc.Call.getEnvelopeString(Call.java:208)
> > > at org.apache.soap.rpc.Call.invoke(Call.java:255)
> > >   </pre></span>
</blockquote><br>

<h3><span class=subject><a href="/tomcat-user@jakarta.apache.org/msg140834.html">Exception in Tomcat under Soap</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=tomcat-user%40jakarta.apache.org&q=date:20041114&o=newest&f=1">2004-11-14</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=tomcat-user%40jakarta.apache.org&q=subject:%22Exception+in+Tomcat+under+Soap%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=tomcat-user%40jakarta.apache.org&q=from:%22feilong%22&o=newest&f=1">feilong</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
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\classes>java 
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



http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>


  Apache-SOAP
  no description
  
rpcrouter
Apache-SOAP RPC Router
no description
   
org.apache.soap.server.http.RPCRouterServlet 
   
 

  faultListener
  org.apache.soap.server.DOMFaultListener

  

  
messagerouter
Apache-SOAP Message Router

org.apache.soap.server.http.MessageRouterServlet

  faultListener
  org.apache.soap.server.DOMFaultListener

  

  
rpcrouter
/servlet/rpcrouter
  

  
messagerouter
/servlet/messagerouter
  

--
I added new context in tomcat/conf/server.xml
 


Thanks in advance
Feilong

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/tomcat-user@jakarta.apache.org/msg140833.html">Re: Soap under Tomcat</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=tomcat-user%40jakarta.apache.org&q=date:20041114&o=newest&f=1">2004-11-14</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=tomcat-user%40jakarta.apache.org&q=subject:%22Soap+under+Tomcat%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=tomcat-user%40jakarta.apache.org&q=from:%22feilong%22&o=newest&f=1">feilong</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Hallo Mark,
My client is requesting  http://localhost:8080/soap/servlet/rpcrouter, and
the servletmapping is exactly same

  rpcrouter
  /servlet/rpcrouter

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 "text/html;
> > charset=ISO-8859-1", must be
> > : "text/xml". Response was:
> > <html><head><title>Apache Tomcat/4.1.30 -
> > Error report</tit
> > le><STYLE><!--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;} --></STYLE>
> > </head><body><h1>
> > HTTP Status 404 - /soap/rpcrouter</h1><HR
> > size="1" noshade>
> > ;<p><b>type</b> Status
> > report</p><p><b>messa
> > ge</b>
> > <u>/soap/rpcrouter</u></p><p><b>descr
> > iption</b> <u>The requested resource
> > (/soap/rpcrouter) is not availa
> > ble.</u></p><HR size="1"
> > noshade><h3>Apache To
> > mcat/4.1.30</h3></body></html>
> > ]
> > 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</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/tomcat-user@jakarta.apache.org/msg140832.html">Re: Remote debugging a web app with Eclipse?</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=tomcat-user%40jakarta.apache.org&q=date:20041114&o=newest&f=1">2004-11-14</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=tomcat-user%40jakarta.apache.org&q=subject:%22Remote+debugging+a+web+app+with+Eclipse%5C%3F%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=tomcat-user%40jakarta.apache.org&q=from:%22Michael+Schuerig%22&o=newest&f=1">Michael Schuerig</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
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:

  

  

  

  

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]


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/tomcat-user@jakarta.apache.org/msg140831.html">RE: Remote debugging a web app with Eclipse?</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=tomcat-user%40jakarta.apache.org&q=date:20041114&o=newest&f=1">2004-11-14</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=tomcat-user%40jakarta.apache.org&q=subject:%22RE%5C%3A+Remote+debugging+a+web+app+with+Eclipse%5C%3F%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=tomcat-user%40jakarta.apache.org&q=from:%22George+Sexton%22&o=newest&f=1">George Sexton</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
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]


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/tomcat-user@jakarta.apache.org/msg140830.html">Remote debugging a web app with Eclipse?</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=tomcat-user%40jakarta.apache.org&q=date:20041114&o=newest&f=1">2004-11-14</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=tomcat-user%40jakarta.apache.org&q=subject:%22Remote+debugging+a+web+app+with+Eclipse%5C%3F%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=tomcat-user%40jakarta.apache.org&q=from:%22Michael+Schuerig%22&o=newest&f=1">Michael Schuerig</a></span>
</div>
<blockquote><span class="msgFragment"><pre>

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]


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/tomcat-user@jakarta.apache.org/msg140829.html">Re: OT:  hosting recommendations?</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=tomcat-user%40jakarta.apache.org&q=date:20041114&o=newest&f=1">2004-11-14</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=tomcat-user%40jakarta.apache.org&q=subject:%22OT%5C%3A++hosting+recommendations%5C%3F%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=tomcat-user%40jakarta.apache.org&q=from:%22Webmaster%22&o=newest&f=1">Webmaster</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
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]


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/tomcat-user@jakarta.apache.org/msg140828.html">Re: OutOfMemory errors compiling JSPs on 5.0.16 and 5.5.4</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=tomcat-user%40jakarta.apache.org&q=date:20041114&o=newest&f=1">2004-11-14</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=tomcat-user%40jakarta.apache.org&q=subject:%22OutOfMemory+errors+compiling+JSPs+on+5.0.16+and+5.5.4%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=tomcat-user%40jakarta.apache.org&q=from:%22Remy+Maucherat%22&o=newest&f=1">Remy Maucherat</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
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]


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/tomcat-user@jakarta.apache.org/msg140827.html">Re: Soap under Tomcat</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=tomcat-user%40jakarta.apache.org&q=date:20041114&o=newest&f=1">2004-11-14</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=tomcat-user%40jakarta.apache.org&q=subject:%22Soap+under+Tomcat%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=tomcat-user%40jakarta.apache.org&q=from:%22feilong%22&o=newest&f=1">feilong</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
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 "text/html;
> > charset=ISO-8859-1", must be
> > : "text/xml". Response was:
> > <html><head><title>Apache Tomcat/4.1.30 -
> > Error report</tit
> > le><STYLE><!--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;} --></STYLE>
> > </head><body><h1>
> > HTTP Status 404 - /soap/rpcrouter</h1><HR
> > size="1" noshade>
> > ;<p><b>type</b> Status
> > report</p><p><b>messa
> > ge</b>
> > <u>/soap/rpcrouter</u></p><p><b>descr
> > iption</b> <u>The requested resource
> > (/soap/rpcrouter) is not availa
> > ble.</u></p><HR size="1"
> > noshade><h3>Apache To
> > mcat/4.1.30</h3></body></html>
> > ]
> > 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
> > 
> > 
> >
> >  > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> >
> > 
> >   Apache-SOAP
> >   no description
> >   
> > rpcrouter
> > Apache-SOAP RPC Router
> > no description
> >
> > org.apache.soap.server.http.RPCRouterServlet ervlet-class>
> > 
> >   faultListener
> >
> > org.apache.soap.server.DOMFaultListener
> > 
> >   
> >
> >   
> > messagerouter
> > Apache-SOAP Message Router
> >
> > org.apache.soap.server.http.MessageRouterServle
> t
> > 
> >   faultListener
> >
> > org.apache.soap.server.DOMFaultListener
> > 
> >   
> >
> >   
> > rpcrouter
> > /servlet/rpcrouter
> >   
> >
> >   
> > messagerouter
> > /servlet/messagerouter
> >   
> > 
> > 
> > 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:
> > ---
> > 
> </pre></span>
</blockquote><br>

<h3><span class=subject><a href="/tomcat-user@jakarta.apache.org/msg140826.html">Re: tomcat clustering / jwsdp soap / serializable</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=tomcat-user%40jakarta.apache.org&q=date:20041114&o=newest&f=1">2004-11-14</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=tomcat-user%40jakarta.apache.org&q=subject:%22tomcat+clustering+%5C%2F+jwsdp+soap+%5C%2F+serializable%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=tomcat-user%40jakarta.apache.org&q=from:%22peter+maas%22&o=newest&f=1">peter maas</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
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]

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/tomcat-user@jakarta.apache.org/msg140825.html">tomcat clustering / jwsdp soap / serializable</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=tomcat-user%40jakarta.apache.org&q=date:20041114&o=newest&f=1">2004-11-14</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=tomcat-user%40jakarta.apache.org&q=subject:%22tomcat+clustering+%5C%2F+jwsdp+soap+%5C%2F+serializable%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=tomcat-user%40jakarta.apache.org&q=from:%22peter+maas%22&o=newest&f=1">peter maas</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
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]

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/tomcat-user@jakarta.apache.org/msg140824.html">RE: Webgui framework</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=tomcat-user%40jakarta.apache.org&q=date:20041114&o=newest&f=1">2004-11-14</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=tomcat-user%40jakarta.apache.org&q=subject:%22RE%5C%3A+Webgui+framework%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=tomcat-user%40jakarta.apache.org&q=from:%22Mark+Thomas%22&o=newest&f=1">Mark Thomas</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
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]


</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/tomcat-user@jakarta.apache.org/msg140823.html">RE: Soap under Tomcat</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=tomcat-user%40jakarta.apache.org&q=date:20041114&o=newest&f=1">2004-11-14</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=tomcat-user%40jakarta.apache.org&q=subject:%22RE%5C%3A+Soap+under+Tomcat%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=tomcat-user%40jakarta.apache.org&q=from:%22Mark+Thomas%22&o=newest&f=1">Mark Thomas</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
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 "text/html; 
> charset=ISO-8859-1", must be
> : "text/xml". Response was:
> <html><head><title>Apache Tomcat/4.1.30 - 
> Error report</tit
> le><STYLE><!--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;} --></STYLE> 
> </head><body><h1>
> HTTP Status 404 - /soap/rpcrouter</h1><HR 
> size="1" noshade>
> ;<p><b>type</b> Status 
> report</p><p><b>messa
> ge</b> 
> <u>/soap/rpcrouter</u></p><p><b>descr
> iption</b> <u>The requested resource 
> (/soap/rpcrouter) is not availa
> ble.</u></p><HR size="1" 
> noshade><h3>Apache To
> mcat/4.1.30</h3></body></html>
> ]
> 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
> 
> 
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> 
> 
>   Apache-SOAP
>   no description
>   
> rpcrouter
> Apache-SOAP RPC Router
> no description
> 
> org.apache.soap.server.http.RPCRouterServlet
> 
>   faultListener
>   
> org.apache.soap.server.DOMFaultListener
> 
>   
> 
>   
> messagerouter
> Apache-SOAP Message Router
> 
> org.apache.soap.server.http.MessageRouterServle
t
> 
>   faultListener
>   
> org.apache.soap.server.DOMFaultListener
> 
>   
> 
>   
> rpcrouter
> /servlet/rpcrouter
>   
> 
>   
> messagerouter
> /servlet/messagerouter
>   
> 
> 
> 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:
> ---
> 
> 
> 
> 
> 
> 
> 
> 
>   
>   
>className="org.apache.catalina.mbeans.ServerLifecycleListener"
> debug="0"/>
>className="org.apache.catalina.mbeans.GlobalResourcesLifecycle
> Listener"
> debug="0"/>
> 
>   
>   
> 
> 
>  value="30"/>
> 
> 
>type="org.apache.catalina.UserDatabase"
>description="User database that can be updated and saved">
> 
> 
>   
> factory
> 
> org.apache.catalina.users.MemoryUserDatabaseFactory
>   
>   
> pathname
> conf/tomcat-users.xml
>   </pre></span>
</blockquote><br>

<h3><span class=subject><a href="/tomcat-user@jakarta.apache.org/msg140822.html">RE: OutOfMemory errors compiling JSPs on 5.0.16 and 5.5.4</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=tomcat-user%40jakarta.apache.org&q=date:20041114&o=newest&f=1">2004-11-14</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=tomcat-user%40jakarta.apache.org&q=subject:%22RE%5C%3A+OutOfMemory+errors+compiling+JSPs+on+5.0.16+and+5.5.4%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=tomcat-user%40jakarta.apache.org&q=from:%22Dale%2C+Matt%22&o=newest&f=1">Dale, Matt</a></span>
</div>
<blockquote><span class="msgFragment"><pre>

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]
</pre></span>
</blockquote><br>
    <h2></h2>
  </div>
  <div class="aside" role="complementary">
    <div class="logo">
      <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a>
    </div>
    <h2>22 matches</h2>
    <br>
    
<ul><li><a href="/search?l=tomcat-user%40jakarta.apache.org&q=date%3A20041114&a=1&o=newest&f=1">Advanced search</a></li></ul>
<form class="overflow" action="/search" method="get">
<input type="hidden" name="l" value="tomcat-user@jakarta.apache.org">
<label class="hidden" for="q">Search the list</label>
<input class="submittext" type="text" id="q" name="q" placeholder="Search tomcat-user" value="date:20041114">
<input class="submitbutton" id="submit" type="image" src="/submit.png" alt="Submit">
</form>

    
    <div class="nav margintop" id="nav" role="navigation">
      <h2 class="hidden">
                               Site Navigation
      </h2>
      <ul class="icons font16">
        <li class="icons-home"><a href="/">The Mail Archive home</a></li>
        <li class="icons-list">
          <a href="/tomcat-user@jakarta.apache.org" title="c" id="c">tomcat-user - all messages</a></li>
        <li class="icons-about">
          <a href="/tomcat-user@jakarta.apache.org/info.html">tomcat-user  - about the list</a></li>
        <li class="icons-expand"><a href="/search?l=tomcat-user%40jakarta.apache.org&q=date%3A20041114&o=newest" title="e" id="e">Expand</a></li>
      </ul>
    </div>

    <div class="listlogo margintopdouble">
      <h2 class="hidden">
  				Mail list logo
      </h2>
      
    </div>
  </div>
  <div class="footer" role="contentinfo">
    <h2 class="hidden">
	        	      Footer information
    </h2>
    <ul>
      <li><a href="/">The Mail Archive home</a></li>
      <li><a href="/faq.html#newlist">Add your mailing list</a></li>
      <li><a href="/faq.html">FAQ</a></li>
      <li><a href="/faq.html#support">Support</a></li>
      <li><a href="/faq.html#privacy">Privacy</a></li>
    </ul>
  </div>
<script language="javascript" type="text/javascript">
document.onkeydown = NavigateThrough;
function NavigateThrough (event)
{
  if (!document.getElementById) return;
  if (window.event) event = window.event;
  if (event.target.tagName == 'INPUT') return;
  if (event.ctrlKey || event.metaKey) return;
  var link = null;
  switch (event.keyCode ? event.keyCode : event.which ? event.which : null) {
    case 69:
      link = document.getElementById ('e');
      break;
    }
  if (link && link.href) document.location = link.href;
}
</script>
</body>
</html>