RE: Tomcat Question - HELP

2004-10-01 Thread Gerardo Juarez

I think a UNIX admin should know how hard it is to debug a problem when it
is not accompanied by any other information. A UNIX admin should also know 
that novice users normally don't see anything abnormal in the logs. They 
have to list the output of a program for you to notice something. Ninety 
percent of the time the assertion 'the log says nothing' is false. UNIX 
admins know that.

Please post the log and any information that may give us more context.

Gerardo

On Fri, 1 Oct 2004 [EMAIL PROTECTED] wrote:

 First of all, let me tell you that I am not a big fan of tomcat and second 
 if you just want to annoy me, don't even reply to my question.
 Be professional man. I am soliciting for clue on where else to look. I am 
 a Unix admin and not a an app admin. I also managed Weblogic and it's a 
 lot
 easier for me to debug.
 
 Thanks.
 Daniel Salud
 (310)665-6583
 
 
 
 
 Shapira, Yoav [EMAIL PROTECTED]
 10/01/2004 08:35 AM
 Please respond to Tomcat Users List
 
  
 To: Tomcat Users List [EMAIL PROTECTED]
 cc: 
 Subject:RE: Tomcat Question - HELP
 
 
 
 Hi,
 So something went wrong, you looked at the logs and didn't see anything
 to help you debug the problem, restarted the server, now it's all fine,
 and you expect someone else to have a clue as to what went wrong?  Come
 on ;)  Post the log if still have it, otherwise have a good weekend ;)
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 01, 2004 11:34 AM
 To: Tomcat Users List
 Subject: Re: Tomcat Question - HELP
 
 anybody ?
 
 Daniel Salud
 (310)665-6583
 - Forwarded by Daniel Salud/LA/SPE on 10/01/2004 08:32 AM -
 
 
 Rick Moen [EMAIL PROTECTED]
 09/30/2004 07:15 PM
 
 
 To: [EMAIL PROTECTED]
 cc:
 Subject:Re: Tomcat Question - HELP
 
 
 Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]):
 
  I have a tomcat question:
 
  I killed the tomcat PID and restarted it using my start up script on
  /etc/rc2.d (Unix - Sun). I saw a new PID after I restarted it but it
 won't
  open the
  jsp page and I cannot to my servlets. I was getting Internal Server
 error.
  It appears that Tomcat did not actually start.I looked at the
 Catalina
 out
  logs
  but nothing much there to tell what was the issue.
 
  I have to reboot the server to clear tomcat and it started just fine
 after
  reboot.
 
  Any ideas what cause it not to restart ?
 
  Daniel Salud
  (310)665-6583
 
 
 
 Thanks for your mail about How to Ask Questions the Smart Way.
 As a reminder, that essay suggests (generic) ways to ensure
 you're asking technical questions in the right way, in the right place.
 
 People write back for one of two _very_ different reasons:
 
 o  Good reason:  Sending feedback/suggestions to help improve the
 essay.
 o  VERY BAD reason:  Asking essay co-author Rick Moen for technical
 help.
 
 Guess what?  99% of such mails are for the VERY BAD type of reason.
 If you're about to do that, STOP.  Do something else.  Anything.
 Don't act like a moron:  Rick Moen is _not_ your personal, private
 helpdesk.
 
 The other 1% of you who want to discuss ways to improve How to Ask
 Questions
 the Smart Way, thank you!  Please reach Rick at [EMAIL PROTECTED].
 
 
 This is an automated e-mail.  (Your mail has not reached a human.)
 
 Thanks! Mr. Autoresponder
 
 
 
 
 This e-mail, including any attachments, is a confidential business 
 communication, and may contain information that is confidential, 
 proprietary and/or privileged.  This e-mail is intended only for the 
 individual(s) to whom it is addressed, and may not be saved, copied, 
 printed, disclosed or used by anyone else.  If you are not the(an) 
 intended recipient, please immediately delete this e-mail from your 
 computer system and notify the sender.  Thank you.
 
 
 -
 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 Question - HELP

2004-10-01 Thread Gerardo Juarez

Have I seen something like this before? Yes I have. Many times.
Would I share what I did? Absolutely:

I posted the log and described the situation. 
Now, I see that you're still not posting it... :(

Gerardo

On Fri, 1 Oct 2004 [EMAIL PROTECTED] wrote:

 I know all those. I already have our web engineer looked at it and he 
 found nothing from the log so I wouldn't post the log.
 I guess between you and my web engineer, I will trust his judgement.
 
 I am hoping that somebody has seen something like this before and would 
 share what they did. Have you?
 That's one of the issues with open source as you already know. No support 
 so sometimes you have to rely on
 user forums for open source stuff.
 
 Thanks anyway.
 
 Daniel Salud
 (310)665-6583
 



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



Re: Multiple arguments in a GET URL

2004-10-01 Thread Gerardo Juarez

getParameter should work for all parameters. Your url is not correct or it 
is extremely long and blows up with the GET method. But that is highly 
unlikely. 

How does it fail? Do you obtain an error? Is it a null String?

Gerardo

On Fri, 1 Oct 2004 [EMAIL PROTECTED] wrote:

 I am attempting to redirect to a URL that is similar to the following
 
  
 
 http://www.mysite.com/index.jsp?mainFrame=somePage.jsp?item1=info1
 http://www.mysite.com/index.jsp?mainFrame=somePage.jsp?item1=info1item2=in
 fo2 item2=info2
 
  
 
 However, I can only do a request.getParameter on item1 in the somePage.jsp
 JSP.  When I attempt to do it for item2, it fails..
 
  
 
 Any ideas? Workarounds?
 
  
 
 Azam Khan
 
  
 
  
 
 


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



RE: Multiple arguments in a GET URL

2004-10-01 Thread Gerardo Juarez

The problem is I don't know that there are any parenthesis in URLs, to
group things like

http://your.server.com/index.jsp?mainFrame={blahblah.jsp?arg1=val1arg2=val2}

which is what I understand you want. Were I in your place, I would use the
URL

http://your.server.com/index.jsp?mainFrame=blahblah.jsparg1=val1arg2=val2

Then, your index.jsp (or mine) would getParameter() *all three* arguments, 
knowing that the first is the page and then call for the center frame the 
page with its arguments resent.

blahblah.jsp?arg1=val2arg2=val2

It seems the only logical solution to me, since HTTP is a stateless 
protocol. It's this or use HTTPSessions, but the first step would be the 
same anyway.

Gerardo

On Fri, 1 Oct 2004 [EMAIL PROTECTED] wrote:

 Yoav-
 I understand that an ? indicates the beginning of a query string but with my
 scenario it is exactly how I want it. 
 
 For example, my index.jsp is the frameset that takes an argument mainFrame
 specifying the JSP/HTML to use as the center frame of the frameset.
 
 So for example I would have
 http://ndsc.eng.vzwcorp.com/index.jsp?mainFrame=blahblah.jsp
 
 So now, assuming that the mainFrame is set to blahblah.jsp, I need to pass
 additional arguments to blahblah.jsp leading to the second ? in the URL.
 
 http://ndsc.eng.vzwcorp.com/index.jsp?mainFrame=blahblah.jsp?arg1=helloarg2
 =helloagain
 
 In this scenario, I am able to perform a request.getParameter on arg1 in
 blahblah.jsp but when I try to do it on arg2, I receive a null pointer
 exception.
 
 Any ideas?
 
 Thanks,
  
 Azam Khan
 Network Data Support Center
 Verizon Wireless
 866-222-7114
 http://ndsc.eng.vzwcorp.com
 
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Friday, October 01, 2004 2:50 PM
 To: Tomcat Users List
 Subject: RE: Multiple arguments in a GET URL
 
 
 Hi,
 
 Be careful with your syntax, use ?param1=param1param2=param2, not
 ?param1=param1?param2=param2.  The ? indicates the beginning of the
 query string and is expected once per URL,  is a parameter separator in
 the query string is can be there zero or more times.
 
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Ben Souther [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 01, 2004 2:23 PM
 To: Tomcat Users List
 Subject: RE: Multiple arguments in a GET URL
 
 http://www.mysite.com/index.jsp?mainFrame=somePage.jsp?item1=info1ite
 m2=i
 nfo2item2=info2
 
 
 That's your url?
 
 
 
 On Fri, 2004-10-01 at 14:14, [EMAIL PROTECTED] wrote:
  Yea.. it's a null string.. I have a feeling it is passing item2 into
 the
  index.jsp instead of the somePage.jsp .. I guess will try to retrieve
 item2
  in index.jsp and see if it works
 
  Thanks,
 
  Azam Khan
  Network Data Support Center
  Verizon Wireless
  866-222-7114
  http://ndsc.eng.vzwcorp.com
 
  -Original Message-
  From: Gerardo Juarez [mailto:[EMAIL PROTECTED]
  Sent: Friday, October 01, 2004 2:10 PM
  To: Tomcat Users List
  Subject: Re: Multiple arguments in a GET URL
 
 
  getParameter should work for all parameters. Your url is not correct
 or
 it
  is extremely long and blows up with the GET method. But that is
 highly
  unlikely.
 
  How does it fail? Do you obtain an error? Is it a null String?
 
  Gerardo
 
  On Fri, 1 Oct 2004 [EMAIL PROTECTED] wrote:
 
   I am attempting to redirect to a URL that is similar to the
 following
  
  
  
   http://www.mysite.com/index.jsp?mainFrame=somePage.jsp?item1=info1
  
 
 http://www.mysite.com/index.jsp?mainFrame=somePage.jsp?item1=info1ite
 m2=i
 n
   fo2 item2=info2
  
  
  
   However, I can only do a request.getParameter on item1 in the
 somePage.jsp
   JSP.  When I attempt to do it for item2, it fails..
  
  
  
   Any ideas? Workarounds?
  
  
  
   Azam Khan
  
  
  
  
  
  
 
 
  -
  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]
 
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential, proprietary
 and/or privileged.  This e-mail is intended only for the individual(s) to
 whom it is addressed, and may not be saved, copied, printed, disclosed or
 used by anyone else.  If you are not the(an) intended recipient, please
 immediately delete this e-mail from your computer system and notify the
 sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED

Re: Question from a newbie! Please pardon me!

2004-09-30 Thread Gerardo Juarez

If other applications (using other packages) compile correctly, then your 
classpath is correct and the problem then is that you don't have installed 
the servlet jar, or it is in the wrong place, which is 

$JAVA_HOME/jre/lib/ext/

The file I have is: servlet-2_3-fcs-classfiles.jar. I guess there could be 
others, depending on your JDK version but the important thing is that this 
jar is not bundled with the JDK.

Gerardo

On Thu, 30 Sep 2004, Venkat  Radha Venkataramanan wrote:

 Hello:
 
  
 
 When I tried to compile my first servlet, using the command line,
 
  
 
 javac -classpath $CATALINA_HOME/common/lib/servlet-api.jar HelloWorld.java
 
  
 
 I get the following errors, mainly due to the fact that it's unable to find
 the package javax.servlet.
 
  
 
 HelloWorld.java:6: package javax.servlet does not exist
 
 import javax.servlet.*;
 
 ^
 
 HelloWorld.java:7: package javax.servlet.http does not exist
 
 import javax.servlet.http.*;
 
 ^
 
 HelloWorld.java:9: cannot resolve symbol
 
 symbol  : class HttpServlet
 
 location: class HelloWorld
 
 public class HelloWorld extends HttpServlet {
 
 ^
 
 HelloWorld.java:11: cannot resolve symbol
 
 symbol  : class HttpServletRequest
 
 location: class HelloWorld
 
 public void doGet ( HttpServletRequest request, HttpServletResponse
 resp
 
 onse )
 
 ^
 
 HelloWorld.java:11: cannot resolve symbol
 
 symbol  : class HttpServletResponse
 
 location: class HelloWorld
 
 public void doGet ( HttpServletRequest request, HttpServletResponse
 resp
 
 onse )
 
 ^
 
 HelloWorld.java:12: cannot resolve symbol
 
 symbol  : class ServletException
 
 location: class HelloWorld
 
 throws ServletException, IOException{
 
^
 
 6 errors
 
  
 
 Can somebody guide me on how to resolve this issue?
 
  
 
 Thanks.
 
  
 
 Venkat
 
 


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



Re: Strings in VARCHAR or BLOB

2004-09-29 Thread Gerardo Juarez

What most sites do is store in the DB a reference to the page (serial, ID,
etc.) and the page itself in a file in a specific directory (a
repository). This is one reason for URL's including many numbers and
letters. This approach lends itself to storingn documents in a compressed
format for instance. My feeling is that if you are storing raw documents
sooner or later there will be one that is too large. Or there will be many
of them if you choose to limit the size, so many infact, that it will be
impractical to limit the size of all pages. I think you might as well kill
the problem from the start than create a monster that will wake up one day 
and eat you and your clients. :-)

Cheers,
Gerardo

PS - Am I wrong or this is slightly off-topic?

On Wed, 29 Sep 2004, Steffen Heil wrote:

 Hi
 
 I need to store webpages in the database.
 Until now I used BLOBs for this, but I think about switching to VARCHARs.
 
 It would not be a problem to limit the content to say 1 CHARs.
 However I am using ISO8859_1. (I think this is a one-byte-charset?)
 
 What would you recommend?
 
 Regards,
   Steffen
 


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



Re: Problem whit this message cannot resolve symbol

2004-09-29 Thread Gerardo Juarez

The Java runtime env. cannot find the class clsDisplayHtml. It may be:

- you defined it but is elsewhere. Is it yours? some library's?
- your invoking it with a different name (ClsDisplayHtml is different to 
clsDisplayHtml, for example).

On Wed, 29 Sep 2004 [EMAIL PROTECTED] wrote:

 Hi i´m begginer in Tomcat and Java and i´ve a problem.
 I try run a JSP , but the next error appear, some one know the reasons?
 The JSP use a simple class, when i run the example by shell (only for 
 test) all it´s OK, but when the JSP call the Class i get the Error.
 My classPath it´s ok, i´ve review it.
 Thanks.
 ype Exception report
 message 
 description The server encountered an internal error () that prevented it 
 from fulfilling this request.
 exception 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 
 An error occurred at line: 3 in the jsp file: /Example.jsp
 
 Generated servlet error:
 [javac] Compiling 1 source file
 
 /opt/jakarta-tomcat-5.0.19/work/Catalina/localhost/Mysql-conn/org/apache/jsp/Example_jsp.java:55:
  
 cannot resolve symbol
 symbol  : class clsDisplayHtml 
 location: class org.apache.jsp.Example_jsp
  clsDisplayHtml m_ClsDisplayHTML = new 
 clsDisplayHtml(m_StrAppName, m_StrWebMEmail, m_StrWebMName, 
 m_StrPageTitle);
 ^
 
 
 
 An error occurred at line: 3 in the jsp file: /Example.jsp
 
 Generated servlet error:
 /opt/jakarta-tomcat-5.0.19/work/Catalina/localhost/Mysql-conn/org/apache/jsp/Example_jsp.java:55:
  
 cannot resolve symbol
 symbol  : class clsDisplayHtml 
 location: class org.apache.jsp.Example_jsp
  clsDisplayHtml m_ClsDisplayHTML = new 
 clsDisplayHtml(m_StrAppName, m_StrWebMEmail, m_StrWebMName, 
 m_StrPageTitle);
   ^
 
 
 
 An error occurred at line: 3 in the jsp file: /Example.jsp
 
 Generated servlet error:
 /opt/jakarta-tomcat-5.0.19/work/Catalina/localhost/Mysql-conn/org/apache/jsp/Example_jsp.java:60:
  
 cannot resolve symbol
 symbol  : class clsReadProps 
 location: class org.apache.jsp.Example_jsp
  clsReadProps m_ClsProperties = new 
 clsReadProps(mysql.properties);
 ^
 
 
 
 An error occurred at line: 3 in the jsp file: /Example.jsp
 
 Generated servlet error:
 /opt/jakarta-tomcat-5.0.19/work/Catalina/localhost/Mysql-conn/org/apache/jsp/Example_jsp.java:60:
  
 cannot resolve symbol
 symbol  : class clsReadProps 
 location: class org.apache.jsp.Example_jsp
  clsReadProps m_ClsProperties = new 
 clsReadProps(mysql.properties);
^
 
 
 
 An error occurred at line: 3 in the jsp file: /Example.jsp
 
 Generated servlet error:
 /opt/jakarta-tomcat-5.0.19/work/Catalina/localhost/Mysql-conn/org/apache/jsp/Example_jsp.java:65:
  
 cannot resolve symbol
 symbol  : class clsDbBean 
 location: class org.apache.jsp.Example_jsp
  clsDbBean m_ClsDataBase = new clsDbBean(m_StrDriver, 
 m_StrUrl, m_StrUser, m_StrPass);
 ^
 
 
 
 An error occurred at line: 3 in the jsp file: /Example.jsp
 
 Generated servlet error:
 /opt/jakarta-tomcat-5.0.19/work/Catalina/localhost/Mysql-conn/org/apache/jsp/Example_jsp.java:65:
  
 cannot resolve symbol
 symbol  : class clsDbBean 
 location: class org.apache.jsp.Example_jsp
  clsDbBean m_ClsDataBase = new clsDbBean(m_StrDriver, 
 m_StrUrl, m_StrUser, m_StrPass);
   ^
 6 errors
 
 
  
 org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
  
 org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
  org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
  
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
  
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 
 note The full stack trace of the root cause is available in the Tomcat 
 logs.
 
 Apache Tomcat/5.0.19
 
 -
 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]



Unexpected error starting Tomcat

2004-09-21 Thread Gerardo Juarez

I have been working with Tomcat 4.1.30 for several weeks now. Everything 
so far has been according to the documentation, butover the last couple of 
weeks some problems have developed: the server stops working and it is 
difficult to restart. The first timeI reinstalled the Java SDK. On a later 
occassion I reinstalled Tomcat as well. I packed and unpacked all the 
applications as they were exactly and it worked again. Now none of these 
remedies sems to work. I would have said that Tomcat doesn't work if it 
hadn't been for the fact that I have already *seen it* at work. Any 
suggestions will be greatly appreciated.

This is my setup:

fedora core 2
tomcat 4.1.30
j2sdk1.4.2_04

cpu: intel 2.8GHz, 760Mb RAM, 

I am including a portioin of the log with the errors.

Thanks,
Gerardo Juarez

-- Log ---
SEVERE: Begin event threw error
java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at 
org.apache.catalina.startup.LifecycleListenerRule.begin(LifecycleListenerRule.java:139)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at 
org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at 
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown 
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Caused by: java.lang.NullPointerException
at 
org.apache.catalina.startup.ContextConfig.createTldDigester(ContextConfig.java:481)
at 
org.apache.catalina.startup.ContextConfig.clinit(ContextConfig.java:183)
... 22 more
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 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Caused by: java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at 
org.apache.catalina.startup.LifecycleListenerRule.begin(LifecycleListenerRule.java:139)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at 
org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at 
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown 
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
... 5 more
Caused by: java.lang.NullPointerException
at 
org.apache.catalina.startup.ContextConfig.createTldDigester(ContextConfig.java:481)
at 
org.apache.catalina.startup.ContextConfig.clinit(ContextConfig.java:183

Re: Help with Tomcat Install?

2004-09-08 Thread Gerardo Juarez

Ok, you installed Tomcat, but is it running? Something like:
$CATALINA_HOME/bin/start.sh should have happened before pointing at 
http://localhost:8080. It's a common mistake.

Gerardo

On Wed, 8 Sep 2004, Lash, David A (David) wrote:

 Hi
 I am trying to figure out why my tomcat install is not working. 
 
 System: Apache 1.3.29
 Server: Solaris 8
 Tomcat: 4.1.18
 
 
 I installed tomcat (setting my CATALINA_HOME and JAVA_HOME). 
 
 When I go to http://localhost:8080 I cannot display the 'default page'. Any idea 
 why? Enclosed is the 'page' I receive:
 
 Thanks
 dave l
 


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



RE: Help with Tomcat Install?

2004-09-08 Thread Gerardo Juarez

David,

In the sequence of events to start Tomcat, binding to the port comes 
first. If the log says that this failed, then Tomcat is not listening 
there. I have seen many times the 404 error to know that it doesn't 
tell me much about what it is really happening. The Tomcat logs are the 
place to look.

Gerardo

On Wed, 8 Sep 2004, Lash, David A (David) wrote:

 Hi all 
 
 Here is the contents of webapps/ROOT
 
 WEB-INF/ index.jspjakarta-banner.gif   tomcat-power.gif 
 tomcat.gif
 
 I also tried http://localserver:8080/index.jsp 
 
 
 And got the same 404 error. So its like tomcat is looking in a different directory. 
 Is there a config file that defines where tomcat looks for root files? (perhaps 
 someone (at my site) changed this).
 
 Thanks
 Dave lash
 
 
 -Original Message-
 From: Avinash R S [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 08, 2004 11:47 AM
 To: Tomcat Users List
 Subject: Re: Help with Tomcat Install?
 
 John,
 
 Root App does not have a servlet. The page accessed is a static html page
 ROOT/index.html.
 
 Then verify whether index.html file along with 3 image files is available at
 location ROOT app.
 
 Best Regards,
 Avinash R S
 
 
 - Original Message - 
 From: John Villar [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, September 08, 2004 10:08 PM
 Subject: Re: Help with Tomcat Install?
 
 
  I think that's not the case, look that he gets a 404 status from tomcat
  with a Apache Tomcat/4.1.18 signature at the end
  the problem he's having is that the default servlet for tomcat root
  isn't insatalled very rare indeed, but that's the case
 
  Shapira, Yoav escribió:
 
  Hi,
  There is at least one of other possible cause for this error.
  
  Perhaps your shutdown cannot be completed normally.  For example, if you
  start a non-daemon thread from your app and never shut it down, it will
  keep running.  That will prevent the JVM process from exiting and the
  port will stay bound, even though all the Tomcat stuff is gone and you
  won't be able to connect to Tomcat with a browser.
  
  In that case, you'd need to kill the process in order to release the
  port.  Then you'll be able to start up again.  Of course, you should
  debug why this is happening.
  
  Yoav Shapira
  Millennium Research Informatics
  
  
  
  
  -Original Message-
  From: Avinash R S [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 08, 2004 12:24 PM
  To: Tomcat Users List
  Subject: Re: Help with Tomcat Install?
  
  It looks like the port is being used by another application.
  
  Run Shutdown.sh once, and then run startup.sh and still if you get the
  
  
  same
  
  
  error as Catalina.start: LifecycleException:  Protocol handler
  initialization failed: java.net.BindException: Address already in
  
  
  use:8080
  
  
  Then some other application is using the port
  
  Access server.xml file and change port from 8080 to say 7645 .
  
  Try to start the server and access the page at http://localhost:7645
  
  Best Regards,
  Avinash
  
  
  - Original Message -
  From: John Villar [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Wednesday, September 08, 2004 9:45 PM
  Subject: Re: Help with Tomcat Install?
  
  
  
  
  Catalina.start: LifecycleException:  Protocol handler initialization
  
  
  failed: java.net.BindException: Address already in use:8080
  
  
  LifecycleException:  Protocol handler initialization failed:
  
  
  java.net.BindException: Address already in use:8080
  
  
  
  
  This error is saying that port 8080 is already taken, probably by
  
  
  your
  
  
  already running Tomcat daemon, it is common in that case
  
  --
  John Villar
  Gerente de Proyectos
  Computadores Flor Hard Soft 2058 C.A.
  www.florhard.com
  
  
  
  
  
  ---
  
  
  
  
  
  -
  
  
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  DISCLAIMER:
  This message (including attachment if any) is confidential and may be
  privileged. Before opening attachments please check them for viruses
  
  
  and
  
  
  defects. MindTree Consulting Private Limited (MindTree) will not be
  responsible for any viruses or defects or any forwarded attachments
  emanating either from within MindTree or outside. If you have received
  
  
  this
  
  
  message by mistake please notify the sender by return  e-mail and
  
  
  delete
  
  
  this message from your system. Any unauthorized use or dissemination of
  this message in whole or in part is strictly prohibited.  Please note
  
  
  that
  
  
  e-mails are susceptible to change and MindTree shall not be liable for
  
  
  any
  
  
  improper, untimely or incomplete transmission.
  
  

RE: Why is Tomcat/Connector Installation So Incredibly Painful??

2004-09-07 Thread Gerardo Juarez

You're right, if you don't have the time to contribute patches or
enhancements, you cannot expect anyone to care, since you are not paying
for the job. A complaint does, however, point to areas of potential
improvement, and wise developers will eventually listen to them, giving
each the priority they desire. It's called feedback... ;-)

Snapping kills feedback, and without feedback you're pretty much in the 
dark.

Gerardo Juarez

On Tue, 7 Sep 2004, Shapira, Yoav wrote:

 
 Hi,
 I would point out a few things:
 
 - If you can't navigate from the jakarta.apache.org web site to the JK
 download links (either source or binary), and must resort to Googling
 for the download links, you probably shouldn't be installing and
 configuring the connectors (or Tomcat, or Apache httpd) in the first
 place ;)  It's pretty simple to click on either the Binaries or
 Source code links under the Downloads header on the left-hand side
 of jakarta.apache.org, and then scroll down the page for whatever
 product you want.  If you don't feel like reading the page or scrolling
 down, you can use ctrl+f to find mod_jk right away, no problem.
 
 - I get completely different Google results from what you report when I
 search for mod_jk, with a number of how-to pages coming first.
 
 - If you don't have time to contribute any patches or enhancements, you
 can definitely bitch and gripe but you can't expect anyone to care.  All
 of us also have jobs and don't get paid for making your life easier.
 We'd love to evaluate and integrate any improvements you can come up
 with, but naturally connector documentation has never been an area of
 high interest to most tomcat developers.  Moreover, as Tomcat as
 maturing the importance of the connectors in general is going down IMHO,
 with more and more standalone installations.
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Greg Ward [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 07, 2004 9:27 AM
 To: Tomcat Users List
 Subject: Re: Why is Tomcat/Connector Installation So Incredibly
 Painful??
 
 On 03 September 2004, Peter Alvin said:
  But why is it so
  incredibly painful to install Apache/Tomcat/Connector?  It always
  takes me about two days.  I look forward to it as much as doing my
  federal tax returns.
 
 I'm in complete agreement with you.  Even finding the right files to
 download is a bit of a chore.  (OK, so everyone says I need mod_jk.
 Therefore I'm looking for a file called...
 jakarta-tomcat-connectors-jk-1.2.6-src.tar.gz.  Rght.  Well, at
 least they have two letters in common.)
 
 Here's an interesting experiment: google'ing for mod_jk finds this
 page:
   http://jakarta.apache.org/site/binindex.cgi
 as the second hit.  But the string mod_jk occurs nowhere in that
 page;
 you have to hunt around until you realize that what you're really
 looking for is Tomcat Web Server Connectors.  And then you only get
 to
 the binary releases page, which is useless -- I need the source,
 dammit!
 
 Oh, the *first* Google hit for mod_jk is
   http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html
 which I think most people who are working with Tomcat 4.1.x or 5.0.x
 would probably ignore based on the URL.
 
 Anyways, once you've downloaded the source (which I've already
 forgotten
 how to do -- luckily I kept a local copy), you then have to figure out
 *what* to build in that tree and where to find it.  Not obvious.  And
 it's different from mod_jk to mod_jk2.  And then getting things to
 build
 is even less obvious.
 
 Alas, I don't have time to do anything more than bitch and gripe.
 Whoever is actually maintaining mod_jk, mod_jk2, and associated web
 pages, please hear our cries!
 
 Greg
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential business communication, 
 and may contain information that is confidential, proprietary and/or privileged.  
 This e-mail is intended only for the individual(s) to whom it is addressed, and may 
 not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
 the(an) intended recipient, please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 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: Bind errors in 5.0.19

2004-09-07 Thread Gerardo Juarez

It could appear as 'webcache' instead of '8080'...

Some Linux distributions have a Tomcat server that may be active. You 
download and install a new version and end up having two servers: the one 
you wish to use and the one the distribution has but is not obvious it's 
there. Have you checked the services that are up and running?

Gerardo Juarez

On Tue, 7 Sep 2004, Sunitha Kumar wrote:

 Hey folks:
 On reboot, tomcat complains that it is not able to Bind to port 8080.
 I do not see 8080 being used by anything else,
 with netstat -a
 Any pointers?
 thanks,
 -sunitha
 
 ug 16, 2004 1:10:51 PM org.apache.catalina.startup.Catalina load
 SEVERE: Catalina.start
 LifecycleException:  Protocol handler initialization failed: 
 java.net.BindException: Address already in use
 :8080
 at 
 org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1447)
 at 
 org.apache.catalina.core.StandardService.initialize(StandardService.java:648)
 at 
 org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2416)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:545)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:566)
 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 org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397)
 Aug 16, 2004 1:10:51 PM org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 1892 ms
 Aug 16, 2004 1:10:52 PM org.apache.catalina.core.StandardService start
 INFO: Starting service Catalina
 Aug 16, 2004 1:10:52 PM org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/5.0.19
 Aug 16, 2004 1:10:52 PM org.apache.catalina.core.StandardHost start
 INFO: XML validation disabled
 Aug 16, 2004 1:10:52 PM org.apache.catalina.core.StandardHostDeployer remove
 INFO: Removing web application at context path
 Aug 16, 2004 1:10:52 PM org.apache.catalina.logger.LoggerBase stop
 INFO: unregistering logger Catalina:type=Logger,host=localhost
 Aug 16, 2004 1:10:52 PM org.apache.catalina.logger.LoggerBase stop
 INFO: unregistering logger Catalina:type=Logger
 Aug 16, 2004 1:10:52 PM org.apache.coyote.http11.Http11Protocol destroy
 INFO: Stoping http11 protocol on 8080 Catalina:type=ThreadPool,name=http8080
 Aug 16, 2004 1:10:52 PM org.apache.coyote.http11.Http11Protocol destroy
 INFO: Stoping http11 protocol on 8443 Catalina:type=ThreadPool,name=http8443
 Aug 16, 2004 1:10:52 PM org.apache.catalina.startup.ContextConfig 
 applicationConfig
 
 
 
 -
 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]