the server encountered an internal error () ...

2003-02-20 Thread bernd pier
hey,
i`m just new with tomcat. i wrote a servlet, that transform xml with 
xsl. i use tomcat 4.1.18, xerces,xalan on windows xp and i have the .jar 
files copied in c:/programme/apache group/tomcat 4.1/lib. running the 
servlet following error occurse:

HTTP Status 500 -

type Exception report

message

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

exception

java.lang.NullPointerException
   at 
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:875)
   at 
org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:799)
   at HelloWorldExample.processRequest(HelloWorldExample.java:52)
   at HelloWorldExample.doGet(HelloWorldExample.java:67)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.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(StandardContextValve.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:2415)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: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:432)
   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
   at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
   at java.lang.Thread.run(Thread.java:536)

Apache Tomcat/4.1.18
i`ve searched the mailing list archive, but didn`t found the solution.
any help in sight
thanx
  bernd


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



tomcat and xp

2003-07-02 Thread bernd pier


hi,
i`ve installed tomcat 5.0 on windows xp, using j2sdk1.4.2. i´ve set
JAVA_HOME and CATALINA_HOME, but tomcat won`t start.
i have use the installer from tomcat, so i try to run tomcat from the
command line and from the startmenu, but when try to connect
http://lodalhost:8080/
i got localhost.au.net or something like that, so i try the installer from tomcat 4.1.18 and ups, it works, i did the same steps like i did at version 5.0.
makes me wonder and so i look into the services and find tomcat 50 and run it got following error:
Der Dienst Apache Tomcat auf Lokalem Computer konnte nicht gestartet werden. 
Fehler 1053: Der Dienst antwortet nicht rechtzeitig auf die Start- oder Steuerungsanforderung
excuse me but i`m a german so i translate:
the service Apache Tomcat on localhost couldn`t launch
error 1053: the serivce didn`t response in time
did anybody got an idea?
thanx in advance
    bernd





---
Ausgehende Mail ist zertifiziert virenfrei.
Überprüft durch AVG Antivirus System (http://www.grisoft.com/de).
Version: 6.0.490 / Virendatenbank: 289 - Erstellungsdatum: 16.06.2003

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

Re: Tiomcat 4.1.24 HTTP Status 404 - The requested resource (servlet) is not available

2003-07-07 Thread bernd pier
hi,
could it be, that the folder coffemy is not integrate into the server.xml. 
cause when tomcat couldn`t find all the servlets that are in this folder, 
this could be the reason.
hope that will help you a little
bernd

At 20:10 02.07.2003 +0100, you wrote:

I have Tomcat 4.02 working using servlets and JSP and have now installed
Tomcat 4.1.24 as a service.
When I run the web site all is fine until a servlet is called and I get
 The requested resource (/coffeemy/servlet/ControlServlet) is not available
this happens with all the servlets I use.

Any suggestions please.

John

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


---
Eingehende Mail ist zertifiziert virenfrei.
Überprüft durch AVG Antivirus System (http://www.grisoft.com/de).
Version: 6.0.490 / Virendatenbank: 289 - Erstellungsdatum: 16.06.2003


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


Re: Help Creating new Host

2003-07-07 Thread bernd pier
so far as i know no, cause tomcat had to read the config files to make the 
changes.
bernd
At 12:25 07.07.2003 -0400, you wrote:
Hi

I'm using Tomcat 4.1.24 and when I create a new host with the 
Administration Tool I have to restart the server for the changes to take 
place. If I don't restart the new host is not available.

Is there a way to create a new Host without restarting the server?

Thanks

Oreste

-
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: strange error

2003-07-08 Thread BERND PIER
what tomcat version did you use. i got a similary error when i shutdown 
an older version of tomcat something like 4.1.24 or so. i have installed 
the newest tomcat version and this works fine.
bernd
Bodycombe, Andrew schrieb:

Sounds like you may have a corrupted .jar file.

-Original Message-
From: harsh [mailto:[EMAIL PROTECTED] 
Sent: 08 July 2003 10:18
To: Tomcat Users List
Subject: strange error



I ran the tomcat for second time and now when i try to stop
it behaves like this..
[EMAIL PROTECTED] bin]# ./shutdown.sh
Guessing CATALINA_HOME from catalina.sh to ./..
Setting CATALINA_HOME to ./..
Using CLASSPATH:
./../bin/bootstrap.jar:/usr/local/j2sdk1.4.0_01/lib/tools.jar
Using CATALINA_BASE: ./..
Using CATALINA_HOME: ./..
Using JAVA_HOME: /usr/local/j2sdk1.4.0_01
Exception during startup processing
java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
Caused by: java.lang.ClassFormatError:
org/apache/xerces/readers/DefaultEntityHandler$NullReader
(Illegal Class name "java/lang/Exce`tion")
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:246)
   at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
   at java.security.AccessController.doPrivileged(Native Method)
   at
org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
   at org.apache.catalina.startup.Catalina.stop(Catalina.java:817)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:683)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:179)

and more like thisIf someone could understand the possible cause..
regards.


--
harsh
http://www.cse.iitb.ac.in/~harsh

--


-
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: how to create servlet?

2003-07-10 Thread bernd pier
you can also create a own webapp-folder for your servelts, lets say 
named "project". there must be a structure like this:
/project/WEB-INF/classes
/project/WEB-INF/lib
and a web.xml file under WEB-INF.
then you can add this folder to the server.xml file located in 
tomcat../conf/.look in this file and search for the "examples" entry and 
copy this for your folder.
you can start your servlets with 
url"http://localhost:8081/project/servlet/yourservlet";.
for your pleasure
  bernd

kitty winslet schrieb:

In WEB-INF\classes\ I always find 2 kind of file SendMailServlet.java 

and SendMailServlet.class,

what is the difference btw *.java and *.class ?

In the servlet mapping fields, why it only shows the 

name of the servlet, not the full path to where it 

located for example c:\tomcat\webapps\examples\WEB-INF\classes\SendMailServlet?

Robert Wray <[EMAIL PROTECTED]> wrote:

The SendMailServlet code should be located in tomcat_installation_directory\webapps\examples\WEB-INF\classes\SendMailServlet.javaThe web.xml file in the WEB-INF directory should have a tags:  SendMailServlet SendMailServlet and  SendMailServlet /SendMailServlet which tell tomcat where to find the servlet when you request http://localhost:/examples/SendMailServletAt 07:07 AM 09/07/2003 -0400, you wrote:>To create/use servlets, you just need to folow Sun's Servlet Specification.>>http://java.sun.com/webservices/docs/1.1/tutorial/doc/>http://servlets.com/index.tea>http://moreservlets.com/>>-Tim>



-
Yahoo! Mobile
- Check & compose your email via SMS on your Telstra or Vodafone mobile.
 



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


Re: RPM Pacakages for RHLinux

2003-07-15 Thread bernd pier
hi hari
i think that jsdk and tomcat are available in bin or source versions.in 
my opinion the bin version is the easier way to install both of them. if 
you run in problems with one of the installation feel free to ask, help 
is on the way.
bernd

Hari Om schrieb:

where can I download rpm file for JDK and Tomcat on Red Hat Linux  7.1
I tried rpmfind.net freshrpms.net and rpmseek.com
what is better way to INSTALL above pacakages on Red Hat 
Linux...(1)TAR/GZ or (2) RPM...?

Where is the FORUM for RED HAT LINUX...?

MILLION THANKS!

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

-
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: tomcat-WEB-INF

2003-07-16 Thread bernd pier
don`t really understand what you are doing. did you have a structure 
like this /webapps/mywebapplication/anotherwebapplication ?
that won`t go. it must be /webapps/mywebapplication
/webapps/anotherwebapplication  
bernd
Elif Akten schrieb:

I have an webapplication under /webapp/mywebapplication,
I put all classes and lib files under WEB-INF directory classes  and 
lib directory, it works fine, but if I put a new directory under 
mywebapplication folder it gives NoClasssDef error.
what Shoul I do?

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

-
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: tomcat-WEB-INF

2003-07-17 Thread bernd pier
yeah, that`s what i mean. you have a structure like this 
/webapps/mywebapplication/newsubfolder and tomcat didn`t find the 
classes in the subfolder. is this right?
bernd
Elif Akten schrieb:

no,
I tried put some subfolders under my webapplication, and there was an 
class path error..

Original Message Follows
From: bernd pier <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Subject: Re: tomcat-WEB-INF
Date: Wed, 16 Jul 2003 15:35:54 +0200
MIME-Version: 1.0
Received: from apache.org ([208.185.179.12]) by 
mc7-f27.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 
16 Jul 2003 11:05:08 -0700
Received: (qmail 8507 invoked by uid 500); 16 Jul 2003 18:04:41 -
Received: (qmail 94447 invoked from network); 16 Jul 2003 13:36:14 -
X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Subscribe: <mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Post: <mailto:[EMAIL PROTECTED]>
List-Id: "Tomcat Users List" 
Delivered-To: mailing list [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; de-AT; rv:1.5a) 
Gecko/20030701 Thunderbird/0.1a
X-Accept-Language: de-de, de-at, de, en-us, en
References: <[EMAIL PROTECTED]>
In-Reply-To: <[EMAIL PROTECTED]>
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
Return-Path: 
[EMAIL PROTECTED]
X-OriginalArrivalTime: 16 Jul 2003 18:05:09.0083 (UTC) 
FILETIME=[CB2BE2B0:01C34BC4]

don`t really understand what you are doing. did you have a structure 
like this /webapps/mywebapplication/anotherwebapplication ?
that won`t go. it must be /webapps/mywebapplication
/webapps/anotherwebapplication  bernd
Elif Akten schrieb:

I have an webapplication under /webapp/mywebapplication,
I put all classes and lib files under WEB-INF directory classes  and 
lib directory, it works fine, but if I put a new directory under 
mywebapplication folder it gives NoClasssDef error.
what Shoul I do?

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

-
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]
_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail

-
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: Location of servlets?

2003-07-21 Thread bernd pier
if you try the example servlet "Hello World" the url must be 
http://localhost:8080/examples/servlet/HelloWorldExample"; cause this 
servlet is located in webapps/examples/WEB-INF/classes.
bernd
Jeff Howard schrieb:

Thanks for everyone's help earlier today. Upgrading
to JDK 1.4.2 from 1.2.2 allowed me to get Tomcat
running.
Now I'm trying the sample servlet Hello.java by calling it
from a simple webpage with the line:
   http://localhost:8080/servlet/hello

I put the compiled servlet in my tomcat4
directory/webapps. When I click on the
link to call this servlet I get an HTTP Status 500
window from Tomcat saying no context configured to provess this
request. Makes me think it can't find the servlet.
I looked in the log files and there's an entrythat says:
MAPPING configuration error for request URI /Hello
Any ideas?

Thanks very much!

Jeff H.

-
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: Problems with dir structure

2003-07-24 Thread bernd pier
hi,
you can put servlets in every dir you have create.it had to be this 
structure /webapps/WEB-INF/classes and there must be a web.xml file. 
look into the webapps/examples dir as a template.this question is often 
discussed in this list.

Lenandlar Singh schrieb:

Hello,

where do i put static html files and servlets so that the can be called in tomcat 4.1

-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
 



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


Re: Problem with Dir Structure...

2003-07-24 Thread bernd pier
hi,
i think this should be your servlet mapping:
   
   ShowParameters
   /testapp/ShowParameters
   
and so far as i know you had to do in html
action='ShowParameters' method='.. and so on.
Lenandlar Singh wrote:

 

Hello,

I have the following directory structure for an application under 
Tomcat 4.1.

c:\Tomcat 4.1\webapps\testapp\postform.html &
c:\Tomcat 4.1\webapps\testapp\Web-inf\classes\ShowParameters.class
where testapp is my application directory.

How do i set the path for the "Action" attribute in postform.html?

My Action is action = "/ShowParameters

Thanks.

Len.



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
   



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


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
 



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


Re: how to change this example JSP and servlet?

2003-07-24 Thread bernd pier
hi tommy,
what you see is the html side of the servlet. you can go to 
tomcat/webapps/examples/WEB-INF/classes there you`ll find the 
SendMailServlet. you`ll see to files one end with .java and one with 
.class. when you open the .java file you`ll see the source of the java 
serlvet which you can edit and change and do anything to it you like. 
you can open the java file with any editor or with an IDE.
i prefer netbeans, no matter you can use jbuilder or something else, but 
netbeans is free and has tomcat build in.
hope that helps a little bit.
bernd
tommy stone schrieb:

Hi..  I have a example JSP javamail page..  the sendmail.jsp (see below for the full syntax), it prompt us to input 1)From which email 2)To which email 3)Subject 4) Content

But now, I want to fix , it can only send to my email   [EMAIL PROTECTED], how do I fix it?? See below, the point to SendMailServlet and the parameter is "mailto".  It will pass the "mailto" to the SendMailServlet?  Where can I fix it to make to send only to [EMAIL PROTECTED]  Should I change the SendMailServlet?  But how do I change the SendMailServlet? I can't even see the content!!  Please teach me!!





---Content of the Javamail JSP  -->sendmail.jsp-


Example Mail Sending Form


This page will send an electronic mail message via the
javax.mail.Session resource factory that is configured into
the JNDI context for this web application.  Before it can be used
successfully, you must take note of the following:

The default configuration assumes that there is an SMTP server running
   on localhost.  If this is not the case, edit your
   conf/server.xml file and change the value for the
   mail.smtp.host parameter to the name of a host that provides
   SMTP service for your network.
The application logic assumes that no user authentication is required
   by your SMTP server before accepting mail messages to be sent.
All of the fields below are required.



 
   
 Enter The Email Message To Be Sent
   
 
 
   From:
   
 
   
 
 
   To:
   
 
   
 
 
   Subject:
   
 
   
 
 
   
 
 

 
 
   
 
   
   
 
   
 







-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
 



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