Re: TomCat Does not recognize my servelt

2008-03-02 Thread Steve R Burrus
why did you have to misspell the word servlet anyway? Before u can get any 
help with your problem you must spell the subject of your e-mail correctly.
- Original Message - 
From: Mark Thomas [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, March 02, 2008 4:28 PM
Subject: Re: TomCat Does not recognize my servelt


 Ash B wrote:
 But tomcat does not recognize my servlet
 TestDBTimeExample 
 Any help will be appreciated.
 
 As per the servlet spec, your class *must* be in a package.
 
 Mark
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


Re: Configuring tomcat, servlet not found error

2007-12-23 Thread Steve R Burrus
hi. you say that you added the servlet/servlet tag to the * bottom * of 
your Deployment Descriptor file, the web.xml. Now I hope that you know -- u 
should know -- that that it is the very * first * thing contained in a 
web.xml file and you also need the servlet-mapping tag right under that. 
It contains the servlet-name and the url-pattern tags. Hope that that 
helps you to fly right with trying to get the servlet viewed in Tomcat.


- Original Message - 
From: cuco2772 [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Wednesday, December 19, 2007 3:43 PM
Subject: Configuring tomcat, servlet not found error




I keep getting this error:

'The requested resource (/servlet/HelloServlet) is not available'. (404)
The servlet is not getting located by tomcat for some reason. This happens
when I go to localhost:8080/servlet/HelloServlet.
The servlet engine is running, tomcat is running.

I did this:

javac -classpath 
/usr/local/tomcat/apache-tomcat-6.0.14/lib/servlet-api.jar

HelloServlet.java

and I was able to at least compile the servlet into a .class file.

If  you have tomcat installed, there should be an html document on how to
configure it somewhere like here :
file:///usr/local/tomcat/apache-tomcat-6.0.14/webapps/docs/config/server.html
I've been studying this document trying to figure out what I need to do, 
but

so far to no avail.

I added the folowing Context element to my context.xml, located in
$CATALINA_HOME/conf:

Context path= docBase=webapps/ROOT debug=0 reloadable=true

   crossContext=true
   /Context


My HelloServlet.class is located in .../webapps/ROOT/WEB-INF/classes
In addition I added the following element to the bottom of my
/webapps/ROOT/WEB-INF/web.xml to try to provide some sort of servlet
mapping, I think:

servlet
servlet-nameHelloWorld/servlet-name
servlet-classHelloWorld/servlet-class
 /servlet

I got this info mostly from doing Google research, so I dont know
how well this applies. The only thing I can think of at this point is 
maybe

I need to set my
java -classpath also,  but attempts to set it to my .../classes directory
fail. I'm not sure exactly what it needs to be set to, and if you have
to provide a .class filename every time. Could anybody help clarify
some of this ? Thanx
--
View this message in context: 
http://www.nabble.com/Configuring-tomcat%2C-servlet-not-found-error-tp14425976p14425976.html

Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to increate memory resonably with Tomcat6, java 1.6..system: winxp , help appreciated.

2007-03-18 Thread Steve R Burrus
well what exactly is your problem anyway? U have just said : i m tomcat 
newer please be more specific!!

- Original Message - 
From: Rashmi Rubdi [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, March 18, 2007 12:32 PM
Subject: Re: How to increate memory resonably with Tomcat6, java 1.6..system: 
winxp , help appreciated.


 This has some tips on JDK 1.4 - may be different for JavaSE6 
 http://tomcat.apache.org/articles/performance.pdf  
 
 - Original Message 
 From: James liu [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Sunday, March 18, 2007 3:56:52 AM
 Subject: How to increate memory resonably with Tomcat6, java 1.6..system: 
 winxp , help appreciated.
 
 
 i m tomcat newer.
 
 
 -- 
 regards
 jl
 
 
 
 
 The fish are biting. 
 Get more visitors on your site using Yahoo! Search Marketing.
 http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


Re: problem starting Tomcat

2006-12-29 Thread Steve R Burrus

well boris what with this java exception in the server error msg. : 
java.lang.ClassNotFoundException you must not have placed/put the 2 jar 
files, servlet-api.jar and jsp-api.jar into your system's classpath yet.


Goykhman, Boris wrote:


Hi



I have just installed Tomcat 5.0.28 on my XP machine and I am having
trouble starting it.

Here's the output that Catalina.bat produces:



Using CATALINA_BASE:   C:\jakarta-tomcat-5.0.28

Using CATALINA_HOME:   C:\jakarta-tomcat-5.0.28

Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.0.28\temp

Using JAVA_HOME:   C:\j2sdk1.4.2_11



C:\j2sdk1.4.2_11\bin\java
-Djava.endorsed.dirs=C:\jakarta-tomcat-5.0.28\c

ommon\endorsed -classpath
C:\j2sdk1.4.2_11\lib\tools.jar;C:\jakarta-tomcat-5.0

.28\bin\bootstrap.jar -Dcatalina.base=C:\jakarta-tomcat-5.0.28
-Dcatalina.hom

e=C:\jakarta-tomcat-5.0.28
-Djava.io.tmpdir=C:\jakarta-tomcat-5.0.28\temp or

g.apache.catalina.startup.Bootstrap  start



java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina

   at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas

sLoader.java:854)

   at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas

sLoader.java:721)

   at
org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:205)

   at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402)





Because of corporate user restrictions, I cannot modify Path environment
variable.  It should not matter though because it's trying to use java
executable directly from JDK installation folder.  It looks like it
cannot find C:\jakarta-tomcat-5.0.28 folder even though that's where
Tomcat files are.  I would appreciate any help. 




Thanks



*The information contained in this e-mail and any attachments may be 
confidential and/or proprietary. If you are not an intended recipient or an 
authorized agent of an intended recipient, you are hereby notified that any 
dissemination, distribution or copying of this e-mail is strictly prohibited. 
If you have received this e-mail in error, please notify the sender by replying 
to this message and permanently delete the e-mail and any attachments 
immediately.

 





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do I ........?

2006-11-15 Thread Steve R Burrus
just a tiny correction for you Chris, and that is that the code ought to 
be if(in = = null) not as u had it if(null = = in). Am I right or not?


Christopher Schultz wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Steve,

Steve R Burrus wrote:
 


hi chris this is steve Burrus and the line of code in question is the
while loop : while( ( r = in.read(by)) != -1) { the server error for a
long time has always pointed to that line of code creating the NPE.
   



Yup, that's the first time you use the InputStream after attempting to
load your file. It's pretty simple to check for null: just use the code
I suggested in my last message:

 


Correct me if I'm wrong, but this generally checks for null:

if(null == in)
 // handle the null condition
 



Now, it's up to you what you want to do in the event of a NULL image.
You could either return a 404 Not Found error status, or return a
known good image that actually says ERROR on it.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFWM4Y9CaO5/Lv0PARArEgAKC8p+909qemHgpbGFmO5Fooh8AWcACeLF29
ajQlvN1B+YLbdmoKa+TFoyM=
=G5GE
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 



Re: How do I ........?

2006-11-13 Thread Steve R Burrus
hi chris this is steve Burrus and the line of code in question is the 
while loop : while( ( r = in.read(by)) != -1) { the server error for a 
long time has always pointed to that line of code creating the NPE.


Christopher Schultz wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Steve,

Steve R Burrus wrote:
 


here is the entire code for the image servlet which I seem to be
repeatedly getting that NullPointerException java exception. Any ideas
what the problem is ? :
   



What line of code does the NPE show? Please give us the line of code and
not just the line number.

I'm guessing that your JPG file is not being found, so
sc.getResourceAsStream is returning null.

Correct me if I'm wrong, but this generally checks for null:

if(null == in)
  // handle the null condition

Is there something that I'm not getting??!

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFV/3J9CaO5/Lv0PARAvNeAKCNQ3JQLLnVBYGrz9qKLaFRA0jGvACgu+CM
ps01WACr5sV+hluXp2s4mgU=
=SfP5
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 



How do I ........?

2006-11-12 Thread Steve R Burrus
I know that this question of  mine has been asked/answered in this 
group, but I was wondering how do I go about checking for a null value? 
I feel the need to do this in a servlet file that incorporates an image 
into it.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do I ........?

2006-11-12 Thread Steve R Burrus
here is the entire code for the image servlet which I seem to be 
repeatedly getting that NullPointerException java exception. Any ideas 
what the problem is ? :


   package coreservlets;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class Image_File extends HttpServlet {
public void doGet( HttpServletRequest rq, HttpServletResponse rp ) 
throws
  ServletException, 
IOException {

   rp.setContentType( image/jpeg );

   ServletContext sc = getServletContext ();
   InputStream in = sc.getResourceAsStream(/Sexy_Laundry_Girl!.JPG);

   int r = 0;
   byte[] by = new byte[4096];

   OutputStream os = rp.getOutputStream();
   while( ( r = in.read(by)) != -1) {
// if (r in= null)
   os.write(by, 0, r);
  }
  os.flush();
  os.close() ;
  }
}


Martin Gainty wrote:


you can always wrap your accesor in a simple try/catch block as in
try
{
Image logo=null;
 logo = Toolkit.getDefaultToolkit().getImage(images/splash.png);
}
catch(NullPointerException excp)
{
log.debug(NullPointerException thrown while retreiving image 
images/splash.png);
System.out.println(NullPointerException thrown while retrieving 
images/splash.png);
}

Anyone else?

M-
This e-mail communication and any attachments may contain confidential and privileged information for the use of the 
designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its 
contents
- Original Message - 
From: Steve R Burrus [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Sunday, November 12, 2006 5:52 PM
Subject: How do I ?


 

I know that this question of  mine has been asked/answered in this 
group, but I was wondering how do I go about checking for a null value? 
I feel the need to do this in a servlet file that incorporates an image 
into it.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

   







Re: Apache Tomcat\Windows XP\page not found error

2006-09-28 Thread Steve R Burrus
you might also try, in addition to of course setting the env. variable 
JAVA_HOME correctly, to point your PATH to the bin folder of your Tomcat 
installation and put both the servlet-api.jar and the jsp-api.jar into 
the CLASSPATH env. variable. Hope that helps you.


Frank J Murray wrote:


Hello,

  This is a new post, and I am a newbie (at least to Apache Tomcat on
Windows).

I went to the Apache.org website and downloaded and installed the
Windows executable under Core distributions, i.e.,

   Core:  a.. zip (pgp, md5)  b.. tar.gz (pgp, md5)  c.. Windows 
Executable (pgp, md5) The install went fine, but when I try to start 
Apache Tomcat, it just

gives me the standard error message, unable to connect.

This happens even after I start the Apache service known as
Configure Tomcat within the Apache Tomcat folder (or directory).

I'm guessing I need to install one or two other important files or apps,
as well as do some configuring, similar to setting JAVA_HOME, and
executing (./ in Unix) the startup file (or .bat) in Windows.

Any information is appreciated.  Thanks.

fjm

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to use tomcat libraries

2006-09-27 Thread Steve R Burrus
Michele my gut feeling initially is that you certainly cannot fail to 
put them into the lib folder of your web app. but I could be wrong I 
don't  know! There is a lot about Tomcat that I really don't know about.


Michele Mazzucco wrote:


Hi all,

how can I use the tomcat libraries (i.e. the ones in
$CATALINA_HOME/server/lib) without putting them in 'lib' of my web
application?

Thanks,
Michele

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Need Help w. Servlets And The JDBC.

2006-09-21 Thread Steve R Burrus
I don't suppose that on the Tomcat site there is a Type 4 database 
driver , which I have read is the preferred driver to get because it is 
pure Java, is there instead of the 1 which I assume I can always get at 
java.sun.com?


Sameer Acharya wrote:


You can configure a tomcat datasource to get a
connection or you can load your database driver and
get a connection object.

The advantage with using tomcat datasource is that it
will handle connection pooling for you.

The tomcat docs explain how to define a datasource
(you have to do it in context.xml) , also you will
need the JDBC drivers for whatever database you are
connecting to.
-Sameer

--- Steve R Burrus [EMAIL PROTECTED] wrote:

 


Hi all. I am an admitted newbie when it comes to
using a database 
connection for a servlet to access. So can someone
please tell me the 
basics about how exactly I should go about doing
this?? I have been very 
much stumped about how I should do this for quite
a long time now! I 
just know that I should use 1 of 3 getConnection( )
methods to start to 
do this and create a Connection object but little

else.




   


-
 


To start a new topic, e-mail:
users@tomcat.apache.org
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]


   




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 



Re: Need Help w. Servlets And The JDBC.

2006-09-21 Thread Steve R Burrus
Well this Microsoft SQL Server 2005 JDBC Driver. is it a Type 4 pure 
Java driver or not?? I should think that anything from Microsoft would 
tend to kind of de-emphasize Java.


Henry McClain wrote:

I am currently using the Microsoft SQL Server 2005 JDBC Driver. It is 
free.
If you need to connect to a SQL Server 2000 or 2005, this is a good 
driver.


On 9/21/06, Caldarale, Charles R [EMAIL PROTECTED] wrote:



 From: Steve R Burrus [mailto:[EMAIL PROTECTED]
 Subject: Re: Need Help w. Servlets And The JDBC.

 I don't suppose that on the Tomcat site there is a Type 4
 database driver , which I have read is the preferred driver
 to get because it is pure Java, is there instead of the 1
 which I assume I can always get at java.sun.com?

Your assumptions are incorrect.  Each data base vendor must supply an
appropriate JDBC driver, hopefully a type 4 (pure Java) version.  There
is no generic, all purpose JDBC driver.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Need Help w. Servlets And The JDBC.

2006-09-20 Thread Steve R Burrus
Hi all. I am an admitted newbie when it comes to using a database 
connection for a servlet to access. So can someone please tell me the 
basics about how exactly I should go about doing this?? I have been very 
much stumped about how I should do this for quite a long time now! I 
just know that I should use 1 of 3 getConnection( ) methods to start to 
do this and create a Connection object but little else.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Too many problems. Need help.

2006-09-18 Thread Steve R Burrus
Kevin you need to submit please your Deployment Descrtiptor file, i.e., 
the web.xml, for the I assume a servlet kind of a web application! Yeah  
you are  right about the server error msg., it never indicates exactly 
which line in that file has a problem in it.


Kevin Mullin wrote:



I just installed Tomcat 5.5.17 onto my IBM mainframe system, running 
operating system z/OS 1.7.  I'm getting numerous problems with JCL 
that I obtained from JZOS which is purported to start tomcat, but I am 
getting numerous failures that I would appreciate some help on.


The first is:
.
.
.
Sep 18, 2006 7:12:56 PM org.apache.tomcat.util.digester.Digester 
endElement
SEVERE: End event threw exception 
 
java.lang.reflect.InvocationTargetException   
 
.

much java stack tracing stuff.
.
Caused by: java.lang.IllegalArgumentException: Servlet mapping 
specifies an Caused by  unknown servlet name CompressionFilterTestServlet


I don't have a clue what this is talking about.  


The next error is:

SEVERE: Parse error in application web.xml file at 
jndi:/localhost/jsp-examplesWEB-INF/web.xml


Now jsp-examples cam with tomcat, so I would expect it to not have any 
problems. But the above error would seem to indicate a parsing error 
of the xml file itself.


The next error is:
SEVERE: Occurred at line 561 column 23
Not sure what file it is talking about here.  It's not clear from the 
surround log messages.


Perhaps it would be best to send whoever out there who is interested 
in helping me the complete log file with all of the run time messages 
from tomcat.


.
.
.




Kevin Mullin
Sr. Analyst
IBM Corporation
(206) 345-7068
[EMAIL PROTECTED]   http://www.ibm.com/ibm/values/




Re: jsvc + Tomcat vs Apache + Tomcat

2006-09-11 Thread Steve R Burrus
I am sorry but I need to know what exactly this jsvc technolology is?? I 
have frankly never heard of it ever before. I await your anticipated 
response.


Greg Johnson wrote:


If I put Apache in front of Tomcat, can I run Tomcat on port 8080, yet have 
Apache serve the content on port 80?

My production web server is currently running standalone Tomcat on Linux. I 
chose to use jsvc to serve the content on port 80.
For the most part, jsvc works, but it has a few problems. Occasionally Tomcat 
won't stop when I shut it down. (I have to resort to killing the process by 
hand.) It doesn't happen often...but often enough to bug me.
Also, using jsvc makes it so that I can't deploy web apps via ant. Can't figure 
out my way around that.

So, is Apache in front of Tomcat my solution? (I'd like to get rid of jsvc and 
also be able to deploy via ant.)

If the right answer for me is to use both Tomcat and Apache, do I need to 
reconfigure my SSL certificates with Apache, or can I leave them with Tomcat?

 





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: decompiling classes

2006-09-07 Thread Steve R Burrus
Me thinks that  Mr. Nicholas Irving is talking a bit tongue-in-cheek 
what with his 2 consecutive posts mentioning some money! You all agree? 


Filip Hanik - Dev Lists wrote:



gee, this is so BS, you don't have to go through all that effort.
download all the source in a single package from
http://tomcat.apache.org/download-55.cgi

don't pay anyone for decompilation instructions, for open source, you 
can always get the source, for closed source its illegal anyway.


Filip

Nicholas Irving wrote:

That is too much hard work, whenever I want to look @ the source for 
a class

I just decompile and it gte me a 100% accurate copy, no need to hit the
Internet to get the source I already have on my desktop. For an extra 
$5 I

will throw in the How to view Java Source within Eclispe PDF.

NIrving

On 07/09/06, Frank W. Zammetti [EMAIL PROTECTED] wrote:



Umm, the command to decompile Tomcat's classes is this:

http://tomcat.apache.org/svn.html

;)

Frank

Nicholas Irving wrote:
 I know the software you mean, it is completely free, but I have a 
guide

 that
 I can sell to you for $19.95 that tells you where to download it from
and
 contains commonly available documentation convert into a PDF for 
you to

 read.

 So you want my PayPal account so that you can deposit the money 
and then

 enjoy the world of decompiling java classes.

 NIrving

 On 08/09/06, Propes, Barry L [EMAIL PROTECTED] wrote:

 what's the command again for decompiling Tomcat's classes? Or was 
there

 special software needed to do so?




--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of Practical Ajax Projects With Java Technology
  (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
  Supplying the wheel, so you don't have to reinvent it!

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.1/440 - Release Date: 9/6/2006
  




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat startup error

2006-09-06 Thread Steve R Burrus
Socio_pal I might suggest that you maybe see that all of your env. 
variables are set correctly especially the classpath since you are 
getting the 


java.lang.ClassNotFoundException Java exception.



socio_pal wrote:


I am new to tomcat and I am using tomcat version 5.5.16. After deplying the
tar files in tomcat, I tried to start it using startup.sh and it throws me
the following error:

SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.logger.FileLogger
   at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   at
org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:204)
   at org.apache.tomcat.util.digester.Rule.begin(Rule.java:152)
   at
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1275)
   at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533)
   at
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:220)
   at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImp
Could anyone please tell me where the problem would be. I need an answer
ASAP, please.

Thanks,
socio
 





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ang. Need Help w. Null Pointer Exception.

2006-08-30 Thread Steve R Burrus
yes the while loop is on line number 19 okay. Please forgive me for my 
ignorance about this, but I was wondering how I should go about doing 
that check for a non-null value??


[EMAIL PROTECTED] wrote:


Is the while... line number 19? If so make atest that is != null before you
continue.

Regards
Nils-Olov Fransson


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Need Help w. A UnsupportedClassVersionError.

2006-08-30 Thread Steve R Burrus


 I was trying to see a simple servlet when I got the following server
 error! What does that mean, a UnsupportedClassVersionError and how
 do I go about fixing this problem in hopefully the quickest way possible??


  



 HTTP Status 500 -



type Exception report

message

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


exception

javax.servlet.ServletException: Error allocating a servlet instance
com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)

com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)

com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)

com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)

com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)

com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)

com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)

com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)

root cause

java.lang.UnsupportedClassVersionError: Bad version number in .class file
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1955)

org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:945)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1411)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1275)
com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)

com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)

com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)

com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)

com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)

com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)

com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)

com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)




Need Help w. Null Pointer Exception.

2006-08-29 Thread Steve R Burrus
I need some pretty immediate help/assistance with always getting a 
NullPointerException Java exception when I try to view a particular 
image in my favorite web browser!!! The line of text in my servlet file 
which is, I think, problemmatic is a while loop. Well here is my entire 
servlet file for someone to take a look at to hopefully help me with 
this problem.


package org.stephen.burris;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

 public class One_More_Time extends HttpServlet {
public void doGet(HttpServletRequest rq, HttpServletResponse rp ) 
throws

  ServletException, IOException {
   rp.setContentType( image/jpeg );

   ServletContext sc = getServletContext ();
   InputStream is = sc.getResourceAsStream(/pamandersonnaked.jpeg);

   int read = 0;
   byte [] bytes = new byte[ 1024 ];

   OutputStream os = rp.getOutputStream ();
   while ((read = is.read(bytes)) != -1) {
   os.write( bytes, 0, read);
   }

   os.flush();
   os.close();
  }
}

And the server error : 



 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
org.stephen.burris.One_More_Time.doGet(One_More_Time.java:19)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

note The full stack trace of the root cause is available in the Apache 
Tomcat/5.5.17 logs.





 Apache Tomcat/5.5.17




Re. FileInputStream Class.

2006-08-26 Thread Steve R Burrus
Hi all. I was just wondering what were the methods that I should be 
using with the FileInputStream Class to be able to see/view an image in 
a servlet??


how to use the mod_jk2?

2006-08-20 Thread Steve R Burrus
hi I have ocassionally gotten/obtained the Apache http server to 
supposedly use with tomcat. I say supposedly because I have never been 
able to even start to connect the 2 servers thru the mod_jk2! Can 
someone please walk me through the whole procedure for doing this? 
Much thanx to anyone who can help me with this long time problem.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to use the mod_jk2?

2006-08-20 Thread Steve R Burrus
Okay you are right. So how do I go about setting up the mod_jk to be the 
connector between Tomcat and the Apache HTTP Server anyway?


Mark Thomas wrote:


Steve R Burrus wrote:
 


hi I have ocassionally gotten/obtained the Apache http server to
supposedly use with tomcat. I say supposedly because I have never been
able to even start to connect the 2 servers thru the mod_jk2! Can
someone please walk me through the whole procedure for doing this?
Much thanx to anyone who can help me with this long time problem.
   



Are you aware that mod_jk2 is deprecated and the mod_proxy_ajp and
mod_jk are the currently supported methods of doing this?

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 



Re: Tomcat Crashed - Please Help.

2006-08-17 Thread Steve R Burrus
I assume that you have an entry in your System's classpath settings for 
every single jar file that the error indicates were not found for your jvm?


Uday Bhaskar wrote:


Hi,

When I start tomcat following is th error message:

Starting tomcat5: /usr/bin/rebuild-jar-repository: error: could not 
find jdbc-stdext Java extension for this JVM
/usr/bin/rebuild-jar-repository: error: could not find jndi Java 
extension for this JVM
/usr/bin/rebuild-jar-repository: error: All detected jars were not 
found for this jvm
/usr/bin/rebuild-jar-repository: error: could not find jaas Java 
extension for this JVM
/usr/bin/rebuild-jar-repository: error: All detected jars were not 
found for this jvm

[ OK ]

I did not made any changes on SDK (new installations etc).

when I say

# sudo /usr/sbin/alternatives --config java

Selection Command
---
1 /usr/share/java/libgcj-java-placeholder.sh
2 /usr/lib/jvm/java-1.4.2-ibm-1.4.2.0/jre/bin/java
3 /usr/lib/jvm/java-1.4.2-ibm-1.4.2.2/jre/bin/java
*+ 4 /usr/lib/jvm/java-1.4.2-ibm-1.4.2.3/jre/bin/java

And when I say,

$ java -version
java version 1.4.2_06
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)

Tomcat log :
Bootstrap: Class loader creation threw exception
java.lang.IllegalArgumentException: addRepositoryInternal
at 
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:957)
at 
org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoader.java:153)
at 
org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:207)
at 
org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.java:163)
at 
org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:104)

at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:196)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402)
Caused by: java.util.zip.ZipException: No such file or directory
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.init(ZipFile.java:112)
at java.util.jar.JarFile.init(JarFile.java:127)
at java.util.jar.JarFile.init(JarFile.java:65)
at 
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:944)

... 6 more


Can anyone help me.

--
Uday Bhaskar,
Sr. Programmer,
Olive Technology.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: NullPointerException

2006-08-14 Thread Steve R Burrus
Please forgive my rather dumb naivete but what exactly is OpenEdit 
supposed to be anyway? I don't believe that I have ever heard of it 
before!!


Antonio F. Tornisiello wrote:


Hi,

I'm facing a very strange problem trying to install OpenEdit as a WAR 
archive.
If I extract it under the main server webapps directory, it works 
fine. But the application is for only one customer, so I need to get 
it working under a virtual website.


It's a Windows box (Yes, I hate it too  ;-) ) running Plesk with 
Tomcat and JRE 1.5. Using the Plesk interface, installing WAR archives 
is very simple. When I try to install the OpenEdit WAR archive under 
any user account/virtual site, I get the following error (From 
TomCat's log):



INFO: Deploying web application archive cms.war
Aug 14, 2006 12:56:56 PM org.apache.catalina.core.ApplicationContext log
SEVERE: Exception starting filter OEFilter
java.lang.NullPointerException
   at java.io.File.init(Unknown Source)
   at com.openedit.servlet.OpenEditFilter.init(OpenEditFilter.java:85)
   at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:225) 

   at 
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308) 

   at 
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:79) 

   at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3502) 

   at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4071)
   at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:755) 

   at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
   at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:777)
   at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:672)
   at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)

   at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1142)
   at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:292) 

   at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) 

   at 
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1293) 

   at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1553) 

   at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1562) 

   at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1542) 


   at java.lang.Thread.run(Unknown Source)


Tracing back the problem, I guess it is related to this:


   String rootPath = servletContext.getRealPath(/);
   BaseWebServer server = new BaseWebServer();
   server.setRootDirectory(new File(rootPath));== LINE 85


Looks like under a virtual host, getRealPath(/) is returning NULL, 
so when the variable is used on LINE 85 the exception is raised.
These lines comes from a compiled .class archive, so changing the code 
is somehow out of question.


Is there anything that I can try to do in the TomCat's configuration 
files to get it working, without having to try to decompile and 
recompile the code ?


Thanks in advance,
Antonio








-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re. Tomcat v. 5.5.17

2006-07-24 Thread Mr. Steve R. Burrus
Hello all. I have been having/encountering some difficulties in being 
able to activate the 5.5.17 version of the Tomcat server! Now at the top 
of the DOS window it is indicated  that I don't have the proper Library 
path installed for Tomcat activation. Here is part of the error message 
: INFO: The Apache Tomcat Native library which allows optimal 
performance in production environments was not found on the 
java.library.path: Now what could the problem be?



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]