Re: NoSuchMethodError

2002-11-27 Thread Carsten Ziegert
The reason *could* be an old version of servlet.jar in  
$JAVA_HOME/jre/lib

Carsten


Am Dienstag, 26.11.02, um 19:55 Uhr (Europe/Berlin) schrieb Abhijat  
Thakur:


Hi,

When i am trying to access a servlet through tomcat it gives me a  
java.lang.NoSuchMethodError. From the stack trace at  
LoginServlet.java:238(which is my servlet) all i am doing is that i  
have a handle to HttpSession object and i call the setAttribute method  
to bind an object with the session. Why do i get this error?

thanks
abhijat


java.lang.NoSuchMethodError
	at  
org.apache.catalina.session.StandardSession.setAttribute(StandardSessio 
n.java:1262)
	at  
org.apache.catalina.session.StandardSessionFacade.setAttribute(Standard 
SessionFacade.java:191)
	at  
org.apache.catalina.session.StandardSessionFacade.setAttribute(Standard 
SessionFacade.java:191)
	at  
com.bdna.pl.servlet.LoginServlet.doPostMethod(LoginServlet.java:238)
	at com.bdna.pl.servlet.LoginServlet.service(LoginServlet.java:116)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic 
ationFilterChain.java:247)
	at  
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil 
terChain.java:193)
	at  
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal 
ve.java:260)
	at  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. 
invokeNext(StandardPipeline.java:643)
	at  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 
480)
	at  
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at  
org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal 
ve.java:191)
	at  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. 
invokeNext(StandardPipeline.java:643)
	at  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 
480)
	at  
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at  
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:23 
96)
	at  
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav 
a:180)
	at  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. 
invokeNext(StandardPipeline.java:643)
	at  
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV 
alve.java:170)
	at  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. 
invokeNext(StandardPipeline.java:641)
	at  
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav 
a:172)
	at  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. 
invokeNext(StandardPipeline.java:641)
	at  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 
480)
	at  
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at  
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve 
.java:174)
	at  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. 
invokeNext(StandardPipeline.java:643)
	at  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 
480)
	at  
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at  
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
	at  
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:4 
05)
	at  
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process 
Connection(Http11Protocol.java:380)
	at  
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5 
08)
	at  
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo 
l.java:533)
	at java.lang.Thread.run(Thread.java:484)


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

winmail.dat--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:  
mailto:[EMAIL PROTECTED]
--
Carsten Ziegert

Hannover Medical School, Dept. of Hematology and Oncology
Carl-Neuberg-Straße 1, 30625 Hannover

University of Applied Sciences, Faculty of Information Sciences
Ricklinger Stadtweg 120, 30459 Hannover

http://summit-bmt.fh-hannover.de



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




Re: Tomcat 3.2 and 4.1 coexist?

2002-11-25 Thread Carsten Ziegert
I performed your taskk without any trouble.
3.2 is running on port 8080, 4.1. on 8090. You just
have to change the file server.xml to define the new port.
Both versions are running in parallel. They've been
installed in /usr/local/tomcat3 and /usr/local/tomcat4

Carsten

Am Montag, 25.11.02, um 18:19 Uhr (Europe/Berlin) schrieb jimmy:


Hello Folks,

Is it possible to install Tomcat 3.2 and 4.1 on the
same server? Are there any side effects? Which path
needs to be followed to install 4.1 on a system that
has 3.2 installed?

The build list is rather long and complicated along
with references and dependancies to many packages.
Therefore any assistance would be appreciated from
someone who has already accomplished a similiar task.

Thanks for your time!

Tom Jerry

__
Do you Yahoo!?
Yahoo! Mail Plus ñ Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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



--
Carsten Ziegert

Hannover Medical School, Dept. of Hematology and Oncology
Carl-Neuberg-Straße 1, 30625 Hannover

University of Applied Sciences, Faculty of Information Sciences
Ricklinger Stadtweg 120, 30459 Hannover

http://summit-bmt.fh-hannover.de



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




Re: please help me

2002-11-22 Thread Carsten Ziegert
You'll have to include servlet.jar in your CLASSPATH.
servlet.jar is part of your tomcat distribution. When using
Tomcat 4.1 you can find it in $CATALINA_HOME/common/libs

Carsten

Am Freitag, 22.11.02, um 12:40 Uhr (Europe/Berlin) schrieb Shabeer Miah:


Hi There,
   I'm very new to java technology and I
started loving java, and now a days I'm learning
servlets, I have written a servlet example, and trying
to compile it but couldn't able to do that, do I need
to have different software to compile the servlets
apart from jdk1.4 please hel me!! I'm getting errors
saying that Servlet calsses not found, so please tell
me do I need to set the path or ?? please reply me,
shabeer

__
Do you Yahoo!?
Yahoo! Mail Plus ñ Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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



--
Carsten Ziegert

Hannover Medical School, Dept. of Hematology and Oncology
Carl-Neuberg-Straße 1, 30625 Hannover

University of Applied Sciences, Faculty of Information Sciences
Ricklinger Stadtweg 120, 30459 Hannover

http://summit-bmt.fh-hannover.de



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




Re: newbie Q

2002-11-20 Thread Carsten Ziegert
It is sufficient to create the directory containing the new webapp
directly nested under the webapps directory. Tomcat recognized
the new webapp when being restarted.

Am Mittwoch, 20.11.02, um 17:00 Uhr (Europe/Berlin) schrieb Price, Erik:


No, I have read through the guide for my distribution (4.0.6)
and I cannot find an explanation of how to configure server.xml
for a new webapp that I have created.  (Though I did create the
webapp along the guidelines provided in the Application
Developer's Guide, so that should be all set once I can get
Tomcat to recognize that there is a new webapp there.)

If anyone can help me with this, that'd be much appreciated
(CC me as I am a digester), thank you.


Erik




-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 10:05 PM
To: 'Enok Strine '; '[EMAIL PROTECTED] '
Subject: RE: newbie Q



More than likely, your questions are answered in the
documentation.  Perhaps
things like the Application Developer's Guide would help:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html

John

-Original Message-
From: Enok Strine
To: [EMAIL PROTECTED]
Sent: 11/19/02 10:01 PM
Subject: Re: newbie Q


I see. So the directories you talk of are not yet present,
presumably I
create them at my leisure?
What about ROOT? Why when I create
webapps/mydir/myfile.jsp and load
it
into the browser is it not accessible? (404) Must I define a
WEB-INF for

each app under webapps? What must it contain?

Thank you

E.



yes, each webapp has its own web.xml, you can use that among other

things

to define your servlets, taglibs, resource-refs.
unjared classes go into /WEB-INF/classes directory, jars go into
/WEB-INF/lib
How long a web.xml can be depends on how many things you

wish to put in


there. I think the tomcat doc has a section on best practices

deployment.

It *should* come with your installation of tomcat.

Enok Strine wrote:


Hi folks,
   I have installed TC 4.1 and have it apprently installed

correctly.
Can

anyone tell me the significance of the WEB-INF dir please?
   Also, must everything run under webapps/root/..? I am presuming
WEB-INF holds configuration / class libraries for each app?

Yet there
is a

single web.xml, file 6 lines in length?
   Will someone please enlighten me?

E.

_
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail


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






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



_
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus


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



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



--
Carsten Ziegert

Hannover Medical School, Dept. of Hematology and Oncology
Carl-Neuberg-Straße 1, 30625 Hannover

University of Applied Sciences, Faculty of Information Sciences
Ricklinger Stadtweg 120, 30459 Hannover

http://summit-bmt.fh-hannover.de



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




Re: making webapps without write access to $CATALINA_HOME

2002-11-19 Thread Carsten Ziegert
Erik,

ask your friend to create a symbolic link from hi webapps directory to
your application, e.g.

cd $CATALINA_HOME/webapps
ln -s /home/erik/my-app eriks-app


Carsten

Am Montag, 18.11.02, um 22:52 Uhr (Europe/Berlin) schrieb Price, Erik:





Hello,

I have an account on my friend's Linux box, and he installed
Tomcat 4.0.6 so that I could get some hands-on practice with
servlet and JSP development.  I was wondering if I will need
to have write access to the $CATALINA_HOME subdirectories
or whether there is a way to configure Tomcat to allow me to
use my ~/public_html directory.  If there is a HOWTO on this
that I missed, I apologize -- please forward the link. ;)


Erik

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



--
Carsten Ziegert

Hannover Medical School, Dept. of Hematology and Oncology
Carl-Neuberg-Straße 1, 30625 Hannover

University of Applied Sciences, Faculty of Information Sciences
Ricklinger Stadtweg 120, 	30459 Hannover

http://summit-bmt.fh-hannover.de



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




Re: tomcat redirects to default page

2002-11-18 Thread Carsten Ziegert
Neal,

I suppose index.jsp *is* the default page. Welcome pages are
defined in conf/web.xml:

 welcome-file-list
 welcome-fileindex.html/welcome-file
 welcome-fileindex.htm/welcome-file
 welcome-fileindex.jsp/welcome-file
 /welcome-file-list

But I dont' know if there is a priority specification. You could
either rename the file index.jsp or delete the line from web.xml,
but you'll keep in mind that web.xml is valid for *all* web 
applications.

Carsten


Am Montag, 18.11.02, um 11:17 Uhr (Europe/Berlin) schrieb neal:

Tomcat autmatically redirects from the root url to the defualt page of 
the
URL:

www.myurl.com - www.myurl.com/index.jsp

Does anyone know how to prevent it from doing this?  I would rather 
that it
show the default page but not redirect the url to 
www.myurl.com/index.jsp.

Is this possible?

Thanks.
Neal


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



--
Carsten Ziegert

Hannover Medical School, Dept. of Hematology and Oncology
Carl-Neuberg-Straße 1, 30625 Hannover

University of Applied Sciences, Faculty of Information Sciences
Ricklinger Stadtweg 120, 	30459 Hannover

http://summit-bmt.fh-hannover.de



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




Re: Fresh 4.1.12 install throws exceptions when compiling JSP pages

2002-11-18 Thread Carsten Ziegert
 PROTECTED]
For additional commands, e-mail:  
mailto:[EMAIL PROTECTED]



--
Carsten Ziegert

Hannover Medical School, Dept. of Hematology and Oncology
Carl-Neuberg-Straße 1, 30625 Hannover

University of Applied Sciences, Faculty of Information Sciences
Ricklinger Stadtweg 120, 	30459 Hannover

http://summit-bmt.fh-hannover.de



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




Re: Tomcat vs Iplanet

2002-11-14 Thread Carsten Ziegert
For a comparison of some servlet engines look at
http://www.servlets.com/engines/index.html

Carsten


Am Mittwoch, 13.11.02, um 21:21 Uhr (Europe/Berlin) schrieb peter lin:



these questions tend to start a flame war. no such thing as best. 
just
what suits your requirements.

peter

Raúl Peña wrote:

Hello. My name is Raul. I am a java developer. My cuestion is:
Can you say me that who is best web server (iPlanet - tomcat)?
thank you.


--
To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:tomcat-user-help;jakarta.apache.org



--
Hannover Medical School 			University of Applied Sciences
Dept. of Hematology and Oncology		Faculty of Information Sciences
Carl-Neuberg-Straße 1Ricklinger Stadtweg 120
30625 Hannover	30459 Hannover
http://summit-bmt.fh-hannover.de



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Java q: round to n decimal points?

2002-11-14 Thread Carsten Ziegert
It's quite easy:
multiply your double with 10^n, do a simple round, and divide
it by 10^n

Carsten


Am Donnerstag, 14.11.02, um 07:53 Uhr (Europe/Berlin) schrieb Josh G:


Is there a nice easy way to round a double to n decimal points? I 
couldn't
see anything in Math,Double,String, or NumberFormat...

-Josh
--
And can you tell me doctor why I still can't get to sleep?
And why the channel 7 chopper chills me to my feet?
And what's this rash that comes and goes, can you tell me what it 
means?
God help me, I was only 19



--
To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:tomcat-user-help;jakarta.apache.org



--
Hannover Medical School 			University of Applied Sciences
Dept. of Hematology and Oncology		Faculty of Information Sciences
Carl-Neuberg-Straße 1Ricklinger Stadtweg 120
30625 Hannover	30459 Hannover
http://summit-bmt.fh-hannover.de



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: GIF not displayed...why ?

2002-11-14 Thread Carsten Ziegert

Am Donnerstag, 14.11.02, um 05:08 Uhr (Europe/Berlin) schrieb azira din:



Hello, I am using Tomcat 4.0, on HP UNIX. Coding is in Java.  My 
system is running o.k but .GIF files not displayed. Any idea?

Doesn't seem to be Tomcat specific. Maybe the browser cached a first 
version
of the page without the images. Or a proxy server ...

--
Hannover Medical School 			University of Applied Sciences
Dept. of Hematology and Oncology		Faculty of Information Sciences
Carl-Neuberg-Straße 1Ricklinger Stadtweg 120
30625 Hannover	30459 Hannover
http://summit-bmt.fh-hannover.de



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



Re: Application not run on jakarta-tomcat-4.1.12

2002-11-14 Thread Carsten Ziegert
Amit,

I had exactly the same problem when upgrading from 3.2.4 to 4.1.12.
You need the additional structure

servlet-mapping
servlet-nameInitHostInformation /servlet-name
url-pattern/InitHostInformation /url-pattern
/servlet-mapping


in your web.xml

Carsten


Am Mittwoch, 13.11.02, um 13:02 Uhr (Europe/Berlin) schrieb Amit Kumar  
Samanta:

When I run my application on jakarta-tomcat-3.2.1, it works properly

but when it is run on jakarta-tomcat-4.1.12, the following errors will  
come.

HTTP Status 404 - /administration/servlet/Login

--- 
-

type Status report

message /administration/servlet/Login

description The requested resource (/administration/servlet/Login) is  
not available.

The sstucture of my web.xml file is

?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
servlet
servlet-nameInitHostInformation/servlet-name
servlet-classInitHostInformation/servlet-class

init-param
param-nameConnUrl/param-name
param-valuejdbc:mysql://NODE18:3306/LearnITy/param-value
/init-param
init-param
param-namenameOrIp/param-name
param-valueNODE18:8080/administration/param-value
/init-param
init-param
param-nameDBUserID/param-name
param-valueroot/param-value
/init-param
init-param
param-nameDBPassword/param-name
param-value/param-value
/init-param
init-param
param-nameResourcePath/param-name
param-valueNODE18:8080/administration/servlets//param-value
/init-param
init-param
param-nameAdminPath/param-name
param-valueC:\temp/param-value
/init-param
init-param
param-nameServerDocumentPath/param-name
param-valueC:\jakarta-tomcat-3.2.1\webapps\Contents\/param-value
/init-param
init-param
param-nameUtil/param-name
param-valueC:\jakarta-tomcat-3.2.1\webapps\administration\servlets/ 
param-value
/init-param
init-param
param-nameServerDocumentPathEngine/param-name
param-value/Contents//param-value
/init-param
 load-on-startup
   -2147483646
	/load-on-startup
/servlet

welcome-file-list
	welcome-filelogin.html/welcome-file
/welcome-file-list

/web-app 



What is the remedy.

With thanks and regrads,

Amit

_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:  
mailto:tomcat-user-help;jakarta.apache.org



--
Hannover Medical School 			University of Applied Sciences
Dept. of Hematology and Oncology		Faculty of Information Sciences
Carl-Neuberg-Straße 1Ricklinger Stadtweg 120
30625 Hannover	30459 Hannover
http://summit-bmt.fh-hannover.de



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org