Re: Http-status 500 error in Tomcat 4.1

2005-08-18 Thread subi
Hello all,

I tried both the options:
1. I uninstalled the tomcat and reinstalled so that not it resides 
c:\tomcat1.4
2. I tried changing my URL Patern" 
/servets/TestServlet

Now I am able to get the html file correctly and after clicking the show 
button it gives the following error:
"HTTP Status 404 - /testapp/TestServlet" ---servlet not found.


Where i went wrong? Please enlighten

On 8/18/05, Raghupathy,Gurumoorthy <[EMAIL PROTECTED]> 
wrote:
> 
> Good spotted
> 
> -Original Message-
> From: Mark Thomas [mailto:[EMAIL PROTECTED]
> Sent: 18 August 2005 10:00
> To: Tomcat Users List
> Subject: Re: Http-status 500 error in Tomcat 4.1
> 
> 
> Just guessing, but are your servlets in a package? Packageless classes
> do not work. See http://jakarta.apache.org/tomcat/faq/classnotfound.html
> 
> Mark
> 
> subi wrote:
> > Hello All,
> >
> > I am using Tomcat 4.1. I just started working in it,
> >
> > so this asking may be childish, if so, pls don't
> > mistake me.
> >
> > Here is my webapp structure:
> >
> > 1. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\classes
> > -here i have my servlet classes
> > 2. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\jsp
> > -here i have a sample.htmfile
> > 3. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\WEB-INF
> > -here is the web.xml resides
> >
> > my web.xml entry is like this:
> >
> >  > Inc.//DTD Web Application 2.3//EN"
> > "http://java.sun.com/dtd/web-app_2_3.dtd";>
> > 
> > 
> > TestServlet
> > TestServlet
> > 
> >
> > 
> > TestServlet
> >
> > /TestServlet
> > 
> > 
> >
> > --
> > the sample.htm has the following entries:
> >
> >  > Transitional//EN">
> > 
> > 
> > Untitled Document
> > 
> > 
> >
> > 
> > Hello, Welcome! 
> >  > action="http:\\localhost:8080\testapp\TestServlet" method="post"
> > name="form1" target="_self">
> > 
> > 
> >   
> > 
> > 
> >
> > ---
> >
> > Here is what I done:
> > 1. I started the Tomcat server
> > 2. opened the IE browser and
> "http://localhost:8080/testapp/jsp/sample.htm";
> > 3. clicked the button which gives the error "HTTP Status 500 -
> > TestServlet is not found"
> >
> > Please tell me what is the problem?
> >
> >
> 
> 
> 
> 
> -
> 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]
> 
> 


-- 
ilu,
subi


Re: Http-status 500 error in Tomcat 4.1

2005-08-18 Thread Litty Preeth

Hi Subi,

 
> 1. C:\Program Files\Apache Group\Tomcat
> 4.1\webapps\testapp\classes 
>-here i have my servlet

But ur class files shud be in :
 C:\Program Files\Apache Group\
 Tomcat4.1\webapps\testapp\WEB-INF\classes

And in ur html file ur form action shud be instead of
:

>  action="http:\\localhost:8080\testapp\TestServlet"
> method="post"
> name="form1" target="_self">

It shud be :
action="http:\\localhost:8080\testapp\servlet\TestServlet"

Hope this will work ...
With Regards,
Litty Preeth





Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



RE: Http-status 500 error in Tomcat 4.1

2005-08-18 Thread Raghupathy,Gurumoorthy
Good spotted

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: 18 August 2005 10:00
To: Tomcat Users List
Subject: Re: Http-status 500 error in Tomcat 4.1


Just guessing, but are your servlets in a package? Packageless classes 
do not work. See http://jakarta.apache.org/tomcat/faq/classnotfound.html

Mark

subi wrote:
> Hello All,
> 
> I am using Tomcat 4.1. I just started working in it,
>  
> so this asking may be childish, if so, pls don't
> mistake me.
> 
> Here is my webapp structure:
> 
> 1. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\classes 
>-here i have my servlet classes
> 2. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\jsp
> -here i have a sample.htmfile
> 3. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\WEB-INF 
>-here is the web.xml resides
> 
> my web.xml entry is like this:
> 
>  Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd";>
> 
>   
>   TestServlet
>   TestServlet
>   
>   
>   
>   TestServlet
>  
> /TestServlet
>   
> 
> 
> --
> the sample.htm has the following entries:
> 
>  Transitional//EN">
> 
> 
> Untitled Document
> 
> 
> 
> 
> Hello, Welcome! 
>  action="http:\\localhost:8080\testapp\TestServlet" method="post"
> name="form1" target="_self">
>   
> 
>   
> 
> 
> 
> ---
> 
> Here is what I done:
> 1. I started the Tomcat server
> 2. opened the IE browser and
"http://localhost:8080/testapp/jsp/sample.htm";
> 3. clicked the button which gives the error "HTTP Status 500 -
> TestServlet is not found"
> 
> Please tell me what is the problem?
> 
> 




-
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: Http-status 500 error in Tomcat 4.1

2005-08-18 Thread Mark Thomas
Just guessing, but are your servlets in a package? Packageless classes 
do not work. See http://jakarta.apache.org/tomcat/faq/classnotfound.html


Mark

subi wrote:

Hello All,

I am using Tomcat 4.1. I just started working in it,
 
so this asking may be childish, if so, pls don't

mistake me.

Here is my webapp structure:

1. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\classes 
   -here i have my servlet classes

2. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\jsp
-here i have a sample.htmfile
3. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\WEB-INF 
   -here is the web.xml resides


my web.xml entry is like this:

http://java.sun.com/dtd/web-app_2_3.dtd";>


  TestServlet
  TestServlet

  
	

  TestServlet
 
/TestServlet




--
the sample.htm has the following entries:




Untitled Document




Hello, Welcome! 

  

  



---

Here is what I done:
1. I started the Tomcat server
2. opened the IE browser and "http://localhost:8080/testapp/jsp/sample.htm";
3. clicked the button which gives the error "HTTP Status 500 -
TestServlet is not found"

Please tell me what is the problem?







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



RE: Http-status 500 error in Tomcat 4.1

2005-08-18 Thread Raghupathy,Gurumoorthy
Well I can also think of one more issue ... 
Installing tomcat in a directory with spaces in them 


I would rather suggest that you install tomcat in directory without spaces (
not C:\Program Files\Apache Group\Tomcat 4.1\ ) 
c:\Server\tomcat4.1\ will be a good option. I had loads of problems when I
installed tomcat to C:\Program Files\Apache Group\Tomcat 4.1\

Regards
Guru

-Original Message-
From: Rakesh [mailto:[EMAIL PROTECTED] 
Sent: 18 August 2005 10:01
To: Tomcat Users List
Subject: Re: Http-status 500 error in Tomcat 4.1


Hi subi,

you hav did servlet deployment almost correct but in url-pattern you hav
made a little mistake.Change it to:


 TestServlet
 /servlet/TestServlet


Try it and reply.

- Original Message - 
From: "subi" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, August 18, 2005 11:28 AM
Subject: Http-status 500 error in Tomcat 4.1


Hello All,

I am using Tomcat 4.1. I just started working in it,

so this asking may be childish, if so, pls don't
mistake me.

Here is my webapp structure:

1. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\classes
   -here i have my servlet classes
2. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\jsp
-here i have a sample.htmfile
3. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\WEB-INF
   -here is the web.xml resides

my web.xml entry is like this:

http://java.sun.com/dtd/web-app_2_3.dtd";>


  TestServlet
  TestServlet



  TestServlet

/TestServlet



--
the sample.htm has the following entries:




Untitled Document




Hello, Welcome! 

  

  



---

Here is what I done:
1. I started the Tomcat server
2. opened the IE browser and "http://localhost:8080/testapp/jsp/sample.htm";
3. clicked the button which gives the error "HTTP Status 500 -
TestServlet is not found"

Please tell me what is the problem?


-- 
ilu,
subi


-
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: Http-status 500 error in Tomcat 4.1

2005-08-18 Thread Rakesh
Hi subi,

you hav did servlet deployment almost correct but in url-pattern you hav
made a little mistake.Change it to:


 TestServlet
 /servlet/TestServlet


Try it and reply.

- Original Message - 
From: "subi" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, August 18, 2005 11:28 AM
Subject: Http-status 500 error in Tomcat 4.1


Hello All,

I am using Tomcat 4.1. I just started working in it,

so this asking may be childish, if so, pls don't
mistake me.

Here is my webapp structure:

1. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\classes
   -here i have my servlet classes
2. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\jsp
-here i have a sample.htmfile
3. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\WEB-INF
   -here is the web.xml resides

my web.xml entry is like this:

http://java.sun.com/dtd/web-app_2_3.dtd";>


  TestServlet
  TestServlet



  TestServlet

/TestServlet



--
the sample.htm has the following entries:




Untitled Document




Hello, Welcome! 

  

  



---

Here is what I done:
1. I started the Tomcat server
2. opened the IE browser and "http://localhost:8080/testapp/jsp/sample.htm";
3. clicked the button which gives the error "HTTP Status 500 -
TestServlet is not found"

Please tell me what is the problem?


-- 
ilu,
subi


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



Http-status 500 error in Tomcat 4.1

2005-08-17 Thread subi
Hello All,

I am using Tomcat 4.1. I just started working in it,
 
so this asking may be childish, if so, pls don't
mistake me.

Here is my webapp structure:

1. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\classes 
   -here i have my servlet classes
2. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\jsp
-here i have a sample.htmfile
3. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\WEB-INF 
   -here is the web.xml resides

my web.xml entry is like this:

http://java.sun.com/dtd/web-app_2_3.dtd";>


  TestServlet
  TestServlet

  

  TestServlet
 
/TestServlet



--
the sample.htm has the following entries:




Untitled Document




Hello, Welcome! 

  

  



---

Here is what I done:
1. I started the Tomcat server
2. opened the IE browser and "http://localhost:8080/testapp/jsp/sample.htm";
3. clicked the button which gives the error "HTTP Status 500 -
TestServlet is not found"

Please tell me what is the problem?


-- 
ilu,
subi


RE: Error in tomcat manager

2004-12-15 Thread kangkoong Kakoong
thanks for your suggestion Yoav, but I am newbie in tomcat, so would you like 
to tell me how to automate it using web.xml, I mean what command I should use? 
, or any one can help me? thanks a lot


-
Do you Yahoo!?
 Yahoo! Mail - You care about security. So do we.

RE: Error in tomcat manager

2004-12-14 Thread Shapira, Yoav

Hi,

>   I have deploy myapp in context path at   tomcat manager but myapp
didn't
>start?,then when I click start at commands the   following message
>show:
>  FAIL - Application at context path   /wrok could not be started
>
>Why that happened and how to solve it?

Check your logs.

>2.how to make myapp automatically start   in tomcat manager without
>clicking   start   at Commands list?

When you use the manager as-is, you need to start the application.  You
can customize the manager or easily script manager actions together via
Ant, for example, to automate this step.

Yoav Shapira http://www.yoavshapira.com




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]


Error in tomcat manager

2004-12-13 Thread kangkoong Kakoong

1.I use tomcat 5.0.19, and when 
   I have deploy myapp in context path at   tomcat manager but myapp didn't 
start?,then when I click start at commands the   following message show:
  FAIL - Application at context path   /wrok could not be started 

Why that happened and how to solve it?

2.how to make myapp automatically start   in tomcat manager without clicking   
start   at Commands list? 

Thanks in Advance 



-
Do you Yahoo!?
 Yahoo! Mail - Find what you need with new enhanced search. Learn more.

error in tomcat

2004-11-26 Thread akki
hi all

i m getting these enteries in my tomcat log file
very frequently
INFO: server has been restarted or reset this connection
Nov 27, 2004 7:39:10 AM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Nov 27, 2004 7:39:41 AM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Nov 27, 2004 7:40:18 AM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Nov 27, 2004 7:40:22 AM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Nov 27, 2004 7:40:52 AM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Nov 27, 2004 7:40:53 AM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Nov 27, 2004 7:41:24 AM org.apache.jk.common.ChannelSocket processConnection

what may be cause of this logging
any info

tia



Regards

Akki
Engineer
ITX
BHEL,HARDWAR
Available at 5405,4553
"The greatest mistake you can make in life is to be continually fearing you
will make one"



-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Saturday, November 27, 2004 11:23 AM
To: [EMAIL PROTECTED]
Subject: issue with  differences between 5.0.xx and 5.5.x



I created a custom resource factory for Tomcat which works great in
5.0.xx.  However, I'm having an issue with the new configuration 5.5.x
where all config is done via attributes rather than as nested 
elements.  Basically, I've got a parameter of which the value needs to
include newlines as it is really a set of properties to be loaded into a
java.util.Properties object and this simply doesn't work if the config is
provided as an attribute.  I didn't expect this to work, but I made an
attempt and verified that it didn't.  Here it is



This is supposed to configure a Kodo JDO connection factory to be accessed
via JNDI (mimicking more standard mechanisms in full J2EE
servers).  However, using this config in Tomcat-5.5.4 results in Kodo
saying that the property "javax.jdo.PersistenceManagerFactoryClass" is
missing and must be specified.  Well, I've obviously attempted to specify
it above (along with many others).  It just can't deal with the newlines in
the attribute.  How do I get around this?  Is there an option for nested
parameters defined by XML elements rather than attributes like in
Tomcat-5.0.xx?  Here's the equivalent config that works perfectly well
under Tomcat-5.0.xx


 
 
 factory
 com.mycompany.container.jdo.JDOHelperWrapperJNDIFactory<
/value>
 
 
 config
 
 kodo.LicenseKey: [some license key]
 javax.jdo.PersistenceManagerFactoryClass:
kodo.jdbc.runtime.JDBCPersistenceManagerFactory
 javax.jdo.option.ConnectionURL:
jdbc:oracle:thin:@somedomain.com:1521:somedb
 javax.jdo.option.ConnectionDriverName:
oracle.jdbc.driver.OracleDriver
 javax.jdo.option.ConnectionUserName: username
 javax.jdo.option.ConnectionPassword: password
 javax.jdo.option.Optimistic: true
 javax.jdo.option.RetainValues: true
 javax.jdo.option.NontransactionalRead: true
 kodo.jdbc.Schemas: SOMESCHEMA
 
 
 

Please don't tell me to implement each of these properties as config
attributes of the  element.  The properties are free-form and
there are many more possible, quite a few of them kodo-specific that I
would like to be able to add without having to modify the custom resource
factory constantly.  It is vastly simpler to be able to load all this stuff
up in a Properties object which is what Kodo expects anyway for
configuration.

I can understand why the whole  +  + 
was eschewed in favor of less verbose attributes, but attributes don't
offer all the functionality of the nested elements.  Can nested 
elements be an option for Tomcat-5.5.x's  config?

thanks,


Jake


-
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]

error in tomcat

2004-11-25 Thread akki
hi all

my apache error log file is showing
the error after 5 minutes..

[Thu Nov 25 15:29:14 2004] [error] Error ajp_process_callback - write failed
[Thu Nov 25 15:29:14 2004] [error] ajp13.service() ajpGetReply unrecoverable
error 3
[Thu Nov 25 15:29:14 2004] [error] ajp13.service() Error  forwarding
ajp13:localhost:8009 0 1
[Thu Nov 25 15:29:14 2004] [error] lb.service() worker failed
ajp13:localhost:8009
[Thu Nov 25 15:29:14 2004] [error] lb.service() unrecoverable error...
[Thu Nov 25 15:29:14 2004] [error] mod_jk.handler() Error connecting to
tomcat 12

but as such there is no problem in working of server and the applications
are working fine
any clue


Regards

Akki

"The greatest mistake you can make in life is to be continually fearing you
will make one"



-Original Message-
From: Quinton Delpeche [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 25, 2004 3:39 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 5 Dies...


Okay,

I have now narrowed the problem down to the following:

WebappClassLoader: Failed to open JAR
java.util.zip.ZipException: Too many open files

So like what does this mean? I have and am busy googling... ...but I haven't
been successful just yet.

Q
--
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

At Group L, Stoffel oversees six first-rate programmers, a managerial
challenge roughly comparable to herding cats.
-- The Washington Post Magazine, 9 June, 1985

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

RE: Exception Error in Tomcat

2004-11-15 Thread Shapira, Yoav

Hi,
This is an internal JVM crash.  It nearly always occurs for one of two
reasons: you're missing OS-level patches for the JDK you're running, OR
you have native code that's not correctly compiled for your platform.


>using the precompiled JK2 for Fedora Core, but on a RH9 box with some
>updated packages from later distros.

This is likely why.  Compile JK2 for your box and make sure the packages
and patches are in sync.

Yoav Shapira http://www.yoavshapira.com



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]



Exception Error in Tomcat

2004-11-15 Thread Lisa Soto
Hello, 

Does anyone know what this error means, and/or what it may point to? I'm
using the precompiled JK2 for Fedora Core, but on a RH9 box with some
updated packages from later distros. 

-- Lisa 

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 7 occurred at PC=0x400B0B8C
Function=memcpy+0x1C
Library=/lib/tls/libc.so.6

Current Java thread:
at java.util.zip.ZipFile.read(Native Method)
at java.util.zip.ZipFile.access$1000(ZipFile.java:26)
at
java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:433)
- locked <0x44c34d48> (a java.util.zip.ZipFile)
at java.util.zip.ZipFile$1.fill(ZipFile.java:227)
at
java.util.zip.InflaterInputStream.read(InflaterInputStream.java:134)
at
E4sGetEvaluation$executeRequest.extractFile(E4sGetEvaluation.java:540)
at
E4sGetEvaluation$executeRequest.executeQuery(E4sGetEvaluation.java:407)
- locked <0x451201e8> (a E4sGetEvaluation$executeRequest)
at
E4sGetEvaluation$executeRequest.(E4sGetEvaluation.java:190)
at E4sGetEvaluation.doGet(E4sGetEvaluation.java:121)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
-- 
Lisa Soto
[EMAIL PROTECTED]
(631) 344-2009
Systems Administrator
ITD Unix Services


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



Strange threading error in Tomcat

2004-10-19 Thread John MccLain
Howdy,
Here is the issue - I would like some help on HOW to debug and fix this
problem:

2 test use cases -
1)
a)User goes to Login.jsp, enters user and password
b) User submits to LoginServlet
c) login calls JNI code that connects to a powerbuilder(Yes I know this is
ugly) PBNI code module (this is a .dll) that authenticates the user with the
database
d) the servlet then redirects to another .jsp page
e) user then submits to LogoutServlet - also a JNI call to a powerbuilder
PBNI code module
f) REPEAT STEPS a-e over a few times (inconsistent) and then the call to the
JNI code hangs

2)
a) users does NOT goto Login.jsp, but rather calls LoginServlet and passes
the userid and password as GET parms
b) user does NOT get redirected to a page (redirect code commented out)
c) user calls LogoutServlet
d) repeat steps a-c at will and no failure, no hanging

The only difference is that in case 1 (with JSP), there is a redirect and it
afffected the JNI call by haniging inside JNI code.
In case 2  (without JSP) there is still a JNI call, but it does not hang. In
addition, when it hangs and I stop Tomcat, the logs show cleanup entries
that say:
Oct 19, 2004 9:17:09 AM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Oct 19, 2004 9:17:10 AM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Oct 19, 2004 9:17:11 AM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated

Is this a threading issue in Tomcat???
On would assume that the JNI code is not cleaning up after itself, but I
don't believe this is the case,
and even if it was, why would I get the tomcat log cleanup entries above???
What do those cleanup entries imply about the state of Tomcat



John McClain
Senior Software Engineer
TCS Healthcare
[EMAIL PROTECTED]
(530)886-1700x235
"Before you criticize someone, walk a mile in their shoes.
That way, you'll be a mile from them, and you'll have their shoes."


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



RE: 505 Error in Tomcat 5.0

2004-09-20 Thread Shapira, Yoav

Hi,

>I am using Tomcat 5.0 and Struts 1.1.  I also use a Filter that zips
the
>requests and responses.

First step: ditch your own filter and use one of the freely available,
well-tested ones.  Tomcat ships with one, in the servlet example webapp,
called CompressionFilter.  This way we eliminate the possibility of bugs
in your filter.

Alternatively, and even simpler: ditch the Filter altogether for
testing.  I imagine with a chat client the pages aren't that big
anyways, so the performance gained from compression is negligible.  You
can benchmark this if you want.

>gets 505 messages.

Are they really 505's, or more common 500's?  Do you have the
AccessLogValve enabled?  If not, enable it and see what it says when she
gets the errors.

If the user has the 'show friendly http error message' option enabled in
IE, ask her to disable this option.  This will aid in your debugging.

>What do you think?

Recreate the errors in a test environment if you can.  It sounds like
that won't be easy to do given the type of error.  If your app supports
different browsers, and the user is willing to try a different browser,
that's a good thing to test as well.

As an aside, please wait a bit longer before cross-posting to tomcat-dev
;)  Many of us tomcat-dev people like to take weekends off ;)

Yoav



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]



505 Error in Tomcat 5.0

2004-09-17 Thread Michael McGrady
I am using Tomcat 5.0 and Struts 1.1.  I also use a Filter that zips the 
requests and responses.  I am running a chat room on port 80 with a 
frameset html that auto refreshes in one frame and sends in another 
frame.  When a user with IE tries to chat with me from her office, she 
gets 505 messages.  I have recently changed the code on the pages.  I am 
getting requests when she sends one, but they are old requests, with the 
same chat lines she sent before.  Anyone know what is probably going on 
here?  The Filter I use follows:

  public class GZIPFilter implements Filter {
public void doFilter(ServletRequest req, ServletResponse res,
FilterChain chain) throws IOException, ServletException {
  if (req instanceof HttpServletRequest) {
HttpServletRequest request = (HttpServletRequest) req;
HttpServletResponse response = (HttpServletResponse) res;
String ae = request.getHeader("accept-encoding");
if (ae != null && ae.indexOf("gzip") != -1) {
  GZIPResponseWrapper wrappedResponse = new
  GZIPResponseWrapper(response);
  chain.doFilter(req, wrappedResponse);
  wrappedResponse.finishResponse();
  return;
}
chain.doFilter(req, res);
  }
}
public void init(FilterConfig filterConfig) {
  // noop
}
public void destroy() {
  // noop
}
  }
What do you think?
Michael McGrady

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


RE: Unknown error in tomcat log help

2004-06-04 Thread Shapira, Yoav

Hi,
These types of error messages show up when a user closes his/her
browser, thereby closing the output socket, while the webapp is in the
process of writing to it.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: James Sherwood [mailto:[EMAIL PROTECTED]
>Sent: Friday, June 04, 2004 7:05 AM
>To: Tomcat Users List
>Subject: Unknown error in tomcat log help
>
>Hi,
>I get this error in my tomcat log once and a while.  It doesnt seem
to
>affect the site any and I was just wondering if anyone knew what it
was?
>
>I am using tomcat 5.025, apache 2.049 and mod_jk 1.25
>
>Thanks
>
>
>**
>
>
>Exception during post-request cleanup.
>
>
>  Session id: 6A15A35F0A762F1605E9CB9417F38967
>  Client address: 216.108.4.73
>
>Exceptions:
>
>org.apache.catalina.connector.ClientAbortException
>
>java.net.SocketException: Connection reset by peer: socket write error
>java.net.SocketOutputStream.socketWrite0(Native Method)
>java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
>java.net.SocketOutputStream.write(SocketOutputStream.java:136)
>org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:465)
>org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:675)
>org.apache.jk.server.JkCoyoteHandler.doWrite(JkCoyoteHandler.java:251)
>org.apache.coyote.Response.doWrite(Response.java:542)
>org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes(OutputBuffer.java
:368
>)
>org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:398)
>org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:318)
>org.apache.coyote.tomcat5.OutputBuffer.flush(OutputBuffer.java:297)
>org.apache.coyote.tomcat5.CoyoteOutputStream.flush(CoyoteOutputStream.j
ava:
>8
>5)
>org.apache.tapestry.request.ResponseOutputStream.forceFlush(ResponseOut
putS
>t
>ream.java:149)
>org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:9
28)
>org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.jav
a:19
>7
>)
>org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:15
8)
>javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
>n
>FilterChain.java:237)
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
>h
>ain.java:157)
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
>a
>va:214)
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
onte
>x
>t.java:104)
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
>org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCo
ntex
>t
>Valve.java:198)
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
ve.j
>a
>va:152)
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
onte
>x
>t.java:104)
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a:13
>7
>)
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
onte
>x
>t.java:104)
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a:11
>7
>)
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
onte
>x
>t.java:102)
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.jav
>a
>:109)
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
onte
>x
>t.java:104)
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:296)
>org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:372)
>org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:694)
>org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java
:626
>)
>org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807)
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
l.ja
>v
>a:644)
>java.lang.Thread.run(Thread.java:534)
>
>**
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, inc

Unknown error in tomcat log help

2004-06-04 Thread James Sherwood
Hi,
I get this error in my tomcat log once and a while.  It doesnt seem to
affect the site any and I was just wondering if anyone knew what it was?

I am using tomcat 5.025, apache 2.049 and mod_jk 1.25

Thanks


**


Exception during post-request cleanup.


  Session id: 6A15A35F0A762F1605E9CB9417F38967
  Client address: 216.108.4.73

Exceptions:

org.apache.catalina.connector.ClientAbortException

java.net.SocketException: Connection reset by peer: socket write error
java.net.SocketOutputStream.socketWrite0(Native Method)
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
java.net.SocketOutputStream.write(SocketOutputStream.java:136)
org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:465)
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:675)
org.apache.jk.server.JkCoyoteHandler.doWrite(JkCoyoteHandler.java:251)
org.apache.coyote.Response.doWrite(Response.java:542)
org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes(OutputBuffer.java:368)
org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:398)
org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:318)
org.apache.coyote.tomcat5.OutputBuffer.flush(OutputBuffer.java:297)
org.apache.coyote.tomcat5.CoyoteOutputStream.flush(CoyoteOutputStream.java:8
5)
org.apache.tapestry.request.ResponseOutputStream.forceFlush(ResponseOutputSt
ream.java:149)
org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:928)
org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:197
)
org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:158)
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:198)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:152)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137
)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:296)
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:372)
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:694)
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:626)
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:644)
java.lang.Thread.run(Thread.java:534)

**



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



RE: [OT] getBlob() error in Tomcat

2004-04-08 Thread Shapira, Yoav

Hi,
Attachments in most forms are removed by the list server, so yours
didn't make it (at least on my mail reader).

>I am using weblog.jar file as suggested by somebody in a forum,
>Can somebody tell me why I am getting Class Cast Error on RUNTIME? I am
>able to compile the code.

Why don't you ask "somebody in a forum" ?

Use the obj.getClass().getName() approach shown by someone else to see
what the class actually is before you cast it.  Many cast errors can't
be caught at compile time.  This is why we have unit tests: write them
and use them regularly.

Yoav Shapira




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: [OT] getBlob() error in Tomcat

2004-04-07 Thread Kumar Abhay-CAK203C
Hi 

I am using weblog.jar file as suggested by somebody in a forum, 
Can somebody tell me why I am getting Class Cast Error on RUNTIME? I am able to 
compile the code.

SerialOracleBlob cast1 =(SerialOracleBlob)result.getTheRealBlob("FILE_IMAGE"); // 
ERROR IS COMING on runtime
OracleTBlobImpl cast2 =(OracleTBlobImpl)cast1.getTheRealBlob();
myBlob = (oracle.sql.BLOB)cast2.getTheRealBlob();


ERROR:
java.lang.ClassCastException
at 
com.mot.iDEN.webapp.oes.servlet.FileDisplayServlet.readBlob(FileDisplayServlet.java:174)
at 
com.mot.iDEN.webapp.oes.servlet.FileDisplayServlet.action(FileDisplayServlet.java:90)

SerialOracleBlob.java is attached.

Best Regards
Abhay Kumar

-Original Message-
From: Robert Hall [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 06, 2004 7:06 PM
To: Tomcat Users List
Subject: Re: [OT] getBlob() error in Tomcat


Hi,

You can determine the actual Class of 'result' by doing:

String className = result.getClass().getName();

HTH,
Robert


Kumar Abhay-CAK203C wrote:

>Still not working
>
>I am using
>myBlob = ((OracleResultSet)result).getBLOB(1);
>
>It is giving Class Cast Exception
>
>Best Regards
>Abhay Kumar
>
>-Original Message-
>From: Summers, Bert W. [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 06, 2004 2:35 PM
>To: Tomcat Users List
>Subject: RE: [OT] getBlob() error in Tomcat
>
>
>Unjar the classes12.jar file and look for it.
>There should be some ResultSet class in there.
>
>The jdbc class that come with Java do not implement the getBLOB method, 
>hence the abstract violation. The Oracle driver in the case has the 
>implemented method, of course you are now tied to Oracle in your code.
>
>-Original Message-
>From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 06, 2004 12:15 PM
>To: 'Tomcat Users List'
>Subject: RE: [OT] getBlob() error in Tomcat
>Importance: High
>
>
>Thanks for the suggestions,
>
>My question is how I can check that both the versions are same, I have 
>classes12.jar in common/lib and that is set in system classpath.
>How to find the OracleResultSEt class to cast result?
>
>Best Regards
>Abhay Kumar
>
>-Original Message-----
>From: Mike Curwen [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 06, 2004 1:59 PM
>To: 'Tomcat Users List'
>Subject: RE: [OT] getBlob() error in Tomcat
>
>
>The javadoc for that error suggests:
>"this error can only occur at run time if the definition of some class 
>has incompatibly changed since the currently executing method was last compiled."
> 
>So is the version of classes12.jar that you used to compile the code, 
>the exact same version that is being used to run it ?
> 
>As for casting..
>
>OracleResultSetClass foo = (OracleResultSetClass)result;
>
>obviously, you'd need to replace 'OracleResultSetClass' with the actual 
>name of the class.
>
>
>  
>
>>-Original Message-
>>From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED]
>>Sent: Tuesday, April 06, 2004 1:43 PM
>>To: 'Tomcat Users List'
>>Subject: RE: [OT] getBlob() error in Tomcat
>>Importance: High
>>
>>
>>I will appreciate you if you can tell me how ?
>>
>>Best Regards
>>Abhay Kumar
>>
>>-Original Message-
>>From: Summers, Bert W. [mailto:[EMAIL PROTECTED]
>>Sent: Tuesday, April 06, 2004 1:05 PM
>>To: Tomcat Users List
>>Subject: RE: [OT] getBlob() error in Tomcat
>>
>>
>>You need to cast the ResultSet to the Oracle specify ResultSet
>>
>>-Original Message-
>>From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED]
>>Sent: Tuesday, April 06, 2004 11:01 AM
>>To: Tomcat Users List
>>Subject: [OT] getBlob() error in Tomcat
>>Importance: High
>>
>>
>>Hi,
>>
>>Any idea why this error is coming in runtime?
>>
>>Servlet) - FileDisplayServlet.doPost()
>>java.lang.AbstractMethodError: 
>>oracle.jdbc.driver.OracleResultSetImpl.getBlob(Ljava/lang/Stri
>>ng;)Ljava/sql/
>>Blob;
>>at 
>>org.apache.commons.dbcp.DelegatingResultSet.getBlob(Delegating
>>ResultSet.java
>>:318)
>>at
>>com.mot.iDEN.webapp.oes.servlet.FileDisplayServlet.readBlob(Fi
>>leDisplayServl
>>et.java:169)
>>
>>I am trying to display a image that is stored in a BLOB field in 
>>Oracle. I am using connection pooling and classes12.jar
>>
>>Servlet Code
>>--
>>--
>>--
>>--

Re: [OT] getBlob() error in Tomcat

2004-04-06 Thread Robert Hall
Hi,

You can determine the actual Class of 'result' by doing:

String className = result.getClass().getName();

HTH,
Robert
Kumar Abhay-CAK203C wrote:

Still not working 

I am using 
myBlob = ((OracleResultSet)result).getBLOB(1);

It is giving Class Cast Exception

Best Regards
Abhay Kumar
-Original Message-
From: Summers, Bert W. [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 06, 2004 2:35 PM
To: Tomcat Users List
Subject: RE: [OT] getBlob() error in Tomcat

Unjar the classes12.jar file and look for it.
There should be some ResultSet class in there.
The jdbc class that come with Java do not implement the getBLOB method, hence the abstract violation. The Oracle driver in the case has the implemented method, of course you are now tied to Oracle in your code.

-Original Message-
From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 06, 2004 12:15 PM
To: 'Tomcat Users List'
Subject: RE: [OT] getBlob() error in Tomcat
Importance: High

Thanks for the suggestions,

My question is how I can check that both the versions are same, I have classes12.jar in common/lib and that is set in system classpath. 
How to find the OracleResultSEt class to cast result?

Best Regards
Abhay Kumar
-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 06, 2004 1:59 PM
To: 'Tomcat Users List'
Subject: RE: [OT] getBlob() error in Tomcat

The javadoc for that error suggests:
"this error can only occur at run time if the definition of some class has incompatibly 
changed since the currently executing method was last compiled."
So is the version of classes12.jar that you used to compile the code, the exact same version that is being used to run it ?

As for casting..

OracleResultSetClass foo = (OracleResultSetClass)result;

obviously, you'd need to replace 'OracleResultSetClass' with the actual name of the class.

 

-Original Message-
From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 1:43 PM
To: 'Tomcat Users List'
Subject: RE: [OT] getBlob() error in Tomcat
Importance: High
I will appreciate you if you can tell me how ?

Best Regards
Abhay Kumar
-Original Message-
From: Summers, Bert W. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 1:05 PM
To: Tomcat Users List
Subject: RE: [OT] getBlob() error in Tomcat
You need to cast the ResultSet to the Oracle specify ResultSet

-Original Message-
From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 11:01 AM
To: Tomcat Users List
Subject: [OT] getBlob() error in Tomcat
Importance: High
Hi,

Any idea why this error is coming in runtime?

Servlet) - FileDisplayServlet.doPost()
java.lang.AbstractMethodError:
oracle.jdbc.driver.OracleResultSetImpl.getBlob(Ljava/lang/Stri
ng;)Ljava/sql/
Blob;
   at
org.apache.commons.dbcp.DelegatingResultSet.getBlob(Delegating
ResultSet.java
:318)
   at 
com.mot.iDEN.webapp.oes.servlet.FileDisplayServlet.readBlob(Fi
leDisplayServl
et.java:169)

I am trying to display a image that is stored in a BLOB field in
Oracle. I am using connection pooling and classes12.jar
Servlet Code
--
--
--
--

private void readBlob
(
HttpServletRequest request,
HttpServletResponse response,
long aFeatureId,
String aFileName,
String aUserId
)
throws SQLException,IOException
{
Connection conn = null;
ResultSet result = null;
PreparedStatement prepStmt = null;
java.io.InputStream in = null;
java.sql.Blob myBlob = null;
FileUploadFactory uploadFactory = new
FileUploadFactory();
		try
		{
			conn = config_.getEstimationConnection(false);
			String sql = "";
			sql =
"	SELECT "+
"		FILE_IMAGE "+
"	FROM "+
"		OES_FEATURE_DETAILS "+
"	WHERE "+
"		FEATURE_ID = 
"+aFeatureId;

			log_.debug("SQL:==="+sql);
			log_.debug("result=" + result);
			prepStmt = conn.prepareStatement(sql);
			result = prepStmt.executeQuery();
			if (result != null && result.next())
			{
//get the file ext
String strDocExt = "";
try
{
	strDocExt =
uploadFactory.getFileType(aFileName, aUserId);
}
catch(Exception e)
{
	log_.debug("Exception is"+e);
}
//get the file length
int intCountBytes = 0;
String strPrpValue = null;

RE: [OT] getBlob() error in Tomcat

2004-04-06 Thread Kumar Abhay-CAK203C
Still not working 

I am using 
myBlob = ((OracleResultSet)result).getBLOB(1);

It is giving Class Cast Exception

Best Regards
Abhay Kumar

-Original Message-
From: Summers, Bert W. [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 06, 2004 2:35 PM
To: Tomcat Users List
Subject: RE: [OT] getBlob() error in Tomcat


Unjar the classes12.jar file and look for it.
There should be some ResultSet class in there.

The jdbc class that come with Java do not implement the getBLOB method, hence the 
abstract violation. The Oracle driver in the case has the implemented method, of 
course you are now tied to Oracle in your code.

-Original Message-
From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 06, 2004 12:15 PM
To: 'Tomcat Users List'
Subject: RE: [OT] getBlob() error in Tomcat
Importance: High


Thanks for the suggestions,

My question is how I can check that both the versions are same, I have classes12.jar 
in common/lib and that is set in system classpath. 
How to find the OracleResultSEt class to cast result?

Best Regards
Abhay Kumar

-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 06, 2004 1:59 PM
To: 'Tomcat Users List'
Subject: RE: [OT] getBlob() error in Tomcat


The javadoc for that error suggests:
"this error can only occur at run time if the definition of some class has 
incompatibly changed since the currently executing method was last compiled."
 
So is the version of classes12.jar that you used to compile the code, the exact same 
version that is being used to run it ?
 
As for casting..

OracleResultSetClass foo = (OracleResultSetClass)result;

obviously, you'd need to replace 'OracleResultSetClass' with the actual name of the 
class.


> -Original Message-
> From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 06, 2004 1:43 PM
> To: 'Tomcat Users List'
> Subject: RE: [OT] getBlob() error in Tomcat
> Importance: High
> 
> 
> I will appreciate you if you can tell me how ?
> 
> Best Regards
> Abhay Kumar
> 
> -Original Message-
> From: Summers, Bert W. [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 06, 2004 1:05 PM
> To: Tomcat Users List
> Subject: RE: [OT] getBlob() error in Tomcat
> 
> 
> You need to cast the ResultSet to the Oracle specify ResultSet
> 
> -Original Message-
> From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 06, 2004 11:01 AM
> To: Tomcat Users List
> Subject: [OT] getBlob() error in Tomcat
> Importance: High
> 
> 
> Hi,
> 
> Any idea why this error is coming in runtime?
> 
> Servlet) - FileDisplayServlet.doPost()
> java.lang.AbstractMethodError:
> oracle.jdbc.driver.OracleResultSetImpl.getBlob(Ljava/lang/Stri
> ng;)Ljava/sql/
> Blob;
> at
> org.apache.commons.dbcp.DelegatingResultSet.getBlob(Delegating
> ResultSet.java
> :318)
> at 
> com.mot.iDEN.webapp.oes.servlet.FileDisplayServlet.readBlob(Fi
> leDisplayServl
> et.java:169)
> 
> I am trying to display a image that is stored in a BLOB field in
> Oracle. I am using connection pooling and classes12.jar
> 
> Servlet Code
> --
> --
> --
> --
> 
>   private void readBlob
>   (
>   HttpServletRequest request,
>   HttpServletResponse response,
>   long aFeatureId,
>   String aFileName,
>   String aUserId
>   )
>   throws SQLException,IOException
>   {
>   Connection conn = null;
>   ResultSet result = null;
>   PreparedStatement prepStmt = null;
>   java.io.InputStream in = null;
>   java.sql.Blob myBlob = null;
>   FileUploadFactory uploadFactory = new
> FileUploadFactory();
> 
>   try
>   {
>   conn = config_.getEstimationConnection(false);
>   String sql = "";
>   sql =
>   "   SELECT "+
>   "   FILE_IMAGE "+
>   "   FROM "+
>   "   OES_FEATURE_DETAILS "+
>   "   WHERE "+
>   "   FEATURE_ID = 
> &

RE: [OT] getBlob() error in Tomcat

2004-04-06 Thread Summers, Bert W.
Unjar the classes12.jar file and look for it.
There should be some ResultSet class in there.

The jdbc class that come with Java do not implement the getBLOB method,
hence the abstract violation.
The Oracle driver in the case has the implemented method, of course you are
now tied to Oracle in your code.

-Original Message-
From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 06, 2004 12:15 PM
To: 'Tomcat Users List'
Subject: RE: [OT] getBlob() error in Tomcat
Importance: High


Thanks for the suggestions,

My question is how I can check that both the versions are same, I have
classes12.jar in common/lib and that is set in system classpath. 
How to find the OracleResultSEt class to cast result?

Best Regards
Abhay Kumar

-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 06, 2004 1:59 PM
To: 'Tomcat Users List'
Subject: RE: [OT] getBlob() error in Tomcat


The javadoc for that error suggests:
"this error can only occur at run time if the definition of some class has
incompatibly changed since the currently executing method was last
compiled."
 
So is the version of classes12.jar that you used to compile the code, the
exact same version that is being used to run it ?
 
As for casting..

OracleResultSetClass foo = (OracleResultSetClass)result;

obviously, you'd need to replace 'OracleResultSetClass' with the actual name
of the class.


> -Original Message-
> From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 06, 2004 1:43 PM
> To: 'Tomcat Users List'
> Subject: RE: [OT] getBlob() error in Tomcat
> Importance: High
> 
> 
> I will appreciate you if you can tell me how ?
> 
> Best Regards
> Abhay Kumar
> 
> -Original Message-
> From: Summers, Bert W. [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 06, 2004 1:05 PM
> To: Tomcat Users List
> Subject: RE: [OT] getBlob() error in Tomcat
> 
> 
> You need to cast the ResultSet to the Oracle specify ResultSet
> 
> -Original Message-
> From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 06, 2004 11:01 AM
> To: Tomcat Users List
> Subject: [OT] getBlob() error in Tomcat
> Importance: High
> 
> 
> Hi,
> 
> Any idea why this error is coming in runtime?
> 
> Servlet) - FileDisplayServlet.doPost()
> java.lang.AbstractMethodError: 
> oracle.jdbc.driver.OracleResultSetImpl.getBlob(Ljava/lang/Stri
> ng;)Ljava/sql/
> Blob;
> at
> org.apache.commons.dbcp.DelegatingResultSet.getBlob(Delegating
> ResultSet.java
> :318)
> at 
> com.mot.iDEN.webapp.oes.servlet.FileDisplayServlet.readBlob(Fi
> leDisplayServl
> et.java:169)
> 
> I am trying to display a image that is stored in a BLOB field in 
> Oracle. I am using connection pooling and classes12.jar
> 
> Servlet Code
> --
> --
> --
> --
> 
>   private void readBlob
>   (
>   HttpServletRequest request,
>   HttpServletResponse response,
>   long aFeatureId,
>   String aFileName,
>   String aUserId
>   )
>   throws SQLException,IOException
>   {
>   Connection conn = null;
>   ResultSet result = null;
>   PreparedStatement prepStmt = null;
>   java.io.InputStream in = null;
>   java.sql.Blob myBlob = null;
>   FileUploadFactory uploadFactory = new
> FileUploadFactory();
> 
>   try
>   {
>   conn = config_.getEstimationConnection(false);
>   String sql = "";
>   sql =
>   "   SELECT "+
>   "   FILE_IMAGE "+
>   "   FROM "+
>   "   OES_FEATURE_DETAILS "+
>   "   WHERE "+
>   "   FEATURE_ID = 
> "+aFeatureId;
> 
>   log_.debug("SQL:==="+sql);
>   log_.debug("result=" + result);
>   prepStmt = conn.prepareStatement(sql);
>   result = prepStmt.executeQuery();
>  

RE: [OT] getBlob() error in Tomcat

2004-04-06 Thread Kumar Abhay-CAK203C
Thanks for the suggestions,

My question is how I can check that both the versions are same, I have classes12.jar 
in common/lib and that is set in system classpath. 
How to find the OracleResultSEt class to cast result?

Best Regards
Abhay Kumar

-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 06, 2004 1:59 PM
To: 'Tomcat Users List'
Subject: RE: [OT] getBlob() error in Tomcat


The javadoc for that error suggests:
"this error can only occur at run time if the definition of some class has 
incompatibly changed since the currently executing method was last compiled."
 
So is the version of classes12.jar that you used to compile the code, the exact same 
version that is being used to run it ?
 
As for casting..

OracleResultSetClass foo = (OracleResultSetClass)result;

obviously, you'd need to replace 'OracleResultSetClass' with the actual name of the 
class.


> -Original Message-
> From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 06, 2004 1:43 PM
> To: 'Tomcat Users List'
> Subject: RE: [OT] getBlob() error in Tomcat
> Importance: High
> 
> 
> I will appreciate you if you can tell me how ?
> 
> Best Regards
> Abhay Kumar
> 
> -Original Message-
> From: Summers, Bert W. [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 06, 2004 1:05 PM
> To: Tomcat Users List
> Subject: RE: [OT] getBlob() error in Tomcat
> 
> 
> You need to cast the ResultSet to the Oracle specify ResultSet
> 
> -Original Message-
> From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 06, 2004 11:01 AM
> To: Tomcat Users List
> Subject: [OT] getBlob() error in Tomcat
> Importance: High
> 
> 
> Hi,
> 
> Any idea why this error is coming in runtime?
> 
> Servlet) - FileDisplayServlet.doPost()
> java.lang.AbstractMethodError:
> oracle.jdbc.driver.OracleResultSetImpl.getBlob(Ljava/lang/Stri
> ng;)Ljava/sql/
> Blob;
> at 
> org.apache.commons.dbcp.DelegatingResultSet.getBlob(Delegating
> ResultSet.java
> :318)
> at 
> com.mot.iDEN.webapp.oes.servlet.FileDisplayServlet.readBlob(Fi
> leDisplayServl
> et.java:169)
> 
> I am trying to display a image that is stored in a BLOB field
> in Oracle. I am using connection pooling and classes12.jar
> 
> Servlet Code
> --
> --
> --
> --
> 
>   private void readBlob
>   (
>   HttpServletRequest request,
>   HttpServletResponse response,
>   long aFeatureId,
>   String aFileName,
>   String aUserId
>   )
>   throws SQLException,IOException
>   {
>   Connection conn = null;
>   ResultSet result = null;
>   PreparedStatement prepStmt = null;
>   java.io.InputStream in = null;
>   java.sql.Blob myBlob = null;
>   FileUploadFactory uploadFactory = new 
> FileUploadFactory();
> 
>   try
>   {
>   conn = config_.getEstimationConnection(false);
>   String sql = "";
>   sql =
>   "   SELECT "+
>   "   FILE_IMAGE "+
>   "   FROM "+
>   "   OES_FEATURE_DETAILS "+
>   "   WHERE "+
>   "   FEATURE_ID = 
> "+aFeatureId;
> 
>   log_.debug("SQL:==="+sql);
>   log_.debug("result=" + result);
>   prepStmt = conn.prepareStatement(sql);
>   result = prepStmt.executeQuery();
>   if (result != null && result.next())
>   {
>   //get the file ext
>   String strDocExt = "";
>   try
>   {
>   strDocExt =
> uploadFactory.getFileType(aFileName, aUserId);
>   }
>   catch(Exception e)
>   {
>   l

RE: [OT] getBlob() error in Tomcat

2004-04-06 Thread Kumar Abhay-CAK203C
My classpath is 

.;C:\Estimation;C:\Tomcat\common\lib\servlet.jar;C:\Tomcat\common\lib\mail.jar;C:\Tomcat\common\lib\activation.jar;C:\Tomcat\common\lib\jndi.jar;C:\Tomcat\common\lib\classes12.jar;C:\Tomcat\common\lib\commons-collections-3.0.jar;C:\Tomcat\common\lib\commons-dbcp-1.1.jar;C:\Tomcat\common\lib\commons-pool-1.1.jar;C:\Tomcat\common\lib\jdbc2_0-stdext.jar;C:\Tomcat\common\lib\ojdbc14.jar;C:\Tomcat\common\lib\classes111.jar;C:\Tomcat\common\lib\ocrs12.jar;

Best Regards
Abhay Kumar


-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 06, 2004 1:59 PM
To: 'Tomcat Users List'
Subject: RE: [OT] getBlob() error in Tomcat


The javadoc for that error suggests:
"this error can only occur at run time if the definition of some class has 
incompatibly changed since the currently executing method was last compiled."
 
So is the version of classes12.jar that you used to compile the code, the exact same 
version that is being used to run it ?
 
As for casting..

OracleResultSetClass foo = (OracleResultSetClass)result;

obviously, you'd need to replace 'OracleResultSetClass' with the actual name of the 
class.


> -Original Message-
> From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 06, 2004 1:43 PM
> To: 'Tomcat Users List'
> Subject: RE: [OT] getBlob() error in Tomcat
> Importance: High
> 
> 
> I will appreciate you if you can tell me how ?
> 
> Best Regards
> Abhay Kumar
> 
> -Original Message-
> From: Summers, Bert W. [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 06, 2004 1:05 PM
> To: Tomcat Users List
> Subject: RE: [OT] getBlob() error in Tomcat
> 
> 
> You need to cast the ResultSet to the Oracle specify ResultSet
> 
> -Original Message-
> From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 06, 2004 11:01 AM
> To: Tomcat Users List
> Subject: [OT] getBlob() error in Tomcat
> Importance: High
> 
> 
> Hi,
> 
> Any idea why this error is coming in runtime?
> 
> Servlet) - FileDisplayServlet.doPost()
> java.lang.AbstractMethodError:
> oracle.jdbc.driver.OracleResultSetImpl.getBlob(Ljava/lang/Stri
> ng;)Ljava/sql/
> Blob;
> at 
> org.apache.commons.dbcp.DelegatingResultSet.getBlob(Delegating
> ResultSet.java
> :318)
> at 
> com.mot.iDEN.webapp.oes.servlet.FileDisplayServlet.readBlob(Fi
> leDisplayServl
> et.java:169)
> 
> I am trying to display a image that is stored in a BLOB field
> in Oracle. I am using connection pooling and classes12.jar
> 
> Servlet Code
> --
> --
> --
> --
> 
>   private void readBlob
>   (
>   HttpServletRequest request,
>   HttpServletResponse response,
>   long aFeatureId,
>   String aFileName,
>   String aUserId
>   )
>   throws SQLException,IOException
>   {
>   Connection conn = null;
>   ResultSet result = null;
>   PreparedStatement prepStmt = null;
>   java.io.InputStream in = null;
>   java.sql.Blob myBlob = null;
>   FileUploadFactory uploadFactory = new 
> FileUploadFactory();
> 
>   try
>   {
>   conn = config_.getEstimationConnection(false);
>   String sql = "";
>   sql =
>   "   SELECT "+
>   "   FILE_IMAGE "+
>   "   FROM "+
>   "   OES_FEATURE_DETAILS "+
>   "   WHERE "+
>   "   FEATURE_ID = 
> "+aFeatureId;
> 
>   log_.debug("SQL:==="+sql);
>   log_.debug("result=" + result);
>   prepStmt = conn.prepareStatement(sql);
>   result = prepStmt.executeQuery();
>   if (result != null && result.next())
>   {
>   //get the file ext
>   String strDocExt = "";
>   try
>   {
>

RE: [OT] getBlob() error in Tomcat

2004-04-06 Thread Mike Curwen
The javadoc for that error suggests:
"this error can only occur at run time if the definition of some class
has incompatibly changed since the currently executing method was last
compiled."
 
So is the version of classes12.jar that you used to compile the code,
the exact same version that is being used to run it ?
 
As for casting..

OracleResultSetClass foo = (OracleResultSetClass)result;

obviously, you'd need to replace 'OracleResultSetClass' with the actual
name of the class.


> -Original Message-
> From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, April 06, 2004 1:43 PM
> To: 'Tomcat Users List'
> Subject: RE: [OT] getBlob() error in Tomcat
> Importance: High
> 
> 
> I will appreciate you if you can tell me how ?
> 
> Best Regards
> Abhay Kumar
> 
> -Original Message-
> From: Summers, Bert W. [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, April 06, 2004 1:05 PM
> To: Tomcat Users List
> Subject: RE: [OT] getBlob() error in Tomcat
> 
> 
> You need to cast the ResultSet to the Oracle specify ResultSet
> 
> -Original Message-
> From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, April 06, 2004 11:01 AM
> To: Tomcat Users List
> Subject: [OT] getBlob() error in Tomcat
> Importance: High
> 
> 
> Hi,
> 
> Any idea why this error is coming in runtime?
> 
> Servlet) - FileDisplayServlet.doPost()
> java.lang.AbstractMethodError: 
> oracle.jdbc.driver.OracleResultSetImpl.getBlob(Ljava/lang/Stri
> ng;)Ljava/sql/
> Blob;
> at 
> org.apache.commons.dbcp.DelegatingResultSet.getBlob(Delegating
> ResultSet.java
> :318)
> at 
> com.mot.iDEN.webapp.oes.servlet.FileDisplayServlet.readBlob(Fi
> leDisplayServl
> et.java:169)
> 
> I am trying to display a image that is stored in a BLOB field 
> in Oracle. I am using connection pooling and classes12.jar
> 
> Servlet Code 
> --
> --
> --
> --
> 
>   private void readBlob
>   (
>   HttpServletRequest request,
>   HttpServletResponse response,
>   long aFeatureId,
>   String aFileName,
>   String aUserId
>   )
>   throws SQLException,IOException
>   {
>   Connection conn = null;
>   ResultSet result = null;
>   PreparedStatement prepStmt = null;
>   java.io.InputStream in = null;
>   java.sql.Blob myBlob = null;
>   FileUploadFactory uploadFactory = new 
> FileUploadFactory();
> 
>   try
>   {
>   conn = config_.getEstimationConnection(false);
>   String sql = "";
>   sql =
>   "   SELECT "+
>   "   FILE_IMAGE "+
>   "   FROM "+
>   "   OES_FEATURE_DETAILS "+
>   "   WHERE "+
>   "   FEATURE_ID = 
> "+aFeatureId;
> 
>   log_.debug("SQL:==="+sql);
>   log_.debug("result=" + result);
>   prepStmt = conn.prepareStatement(sql);
>   result = prepStmt.executeQuery();
>   if (result != null && result.next())
>   {
>   //get the file ext
>   String strDocExt = "";
>   try
>   {
>   strDocExt =
> uploadFactory.getFileType(aFileName, aUserId);
>   }
>   catch(Exception e)
>   {
>   log_.debug("Exception is"+e);
>   }
>   //get the file length
>   int intCountBytes = 0;
>   String strPrpValue = null;
>   //set the mimetype
>   ResourceBundle mimetype = 
> ResourceBundle.getBundle("mimes"

RE: [OT] getBlob() error in Tomcat

2004-04-06 Thread Kumar Abhay-CAK203C
I will appreciate you if you can tell me how ?

Best Regards
Abhay Kumar

-Original Message-
From: Summers, Bert W. [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 06, 2004 1:05 PM
To: Tomcat Users List
Subject: RE: [OT] getBlob() error in Tomcat


You need to cast the ResultSet to the Oracle specify ResultSet

-Original Message-
From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 06, 2004 11:01 AM
To: Tomcat Users List
Subject: [OT] getBlob() error in Tomcat
Importance: High


Hi,

Any idea why this error is coming in runtime?

Servlet) - FileDisplayServlet.doPost()
java.lang.AbstractMethodError: 
oracle.jdbc.driver.OracleResultSetImpl.getBlob(Ljava/lang/String;)Ljava/sql/
Blob;
at org.apache.commons.dbcp.DelegatingResultSet.getBlob(DelegatingResultSet.java
:318)
at com.mot.iDEN.webapp.oes.servlet.FileDisplayServlet.readBlob(FileDisplayServl
et.java:169)

I am trying to display a image that is stored in a BLOB field in Oracle. I am using 
connection pooling and classes12.jar

Servlet Code 



private void readBlob
(
HttpServletRequest request,
HttpServletResponse response,
long aFeatureId,
String aFileName,
String aUserId
)
throws SQLException,IOException
{
Connection conn = null;
ResultSet result = null;
PreparedStatement prepStmt = null;
java.io.InputStream in = null;
java.sql.Blob myBlob = null;
FileUploadFactory uploadFactory = new FileUploadFactory();

try
{
conn = config_.getEstimationConnection(false);
String sql = "";
sql =
"   SELECT "+
"   FILE_IMAGE "+
"   FROM "+
"   OES_FEATURE_DETAILS "+
"   WHERE "+
"   FEATURE_ID = "+aFeatureId;

log_.debug("SQL:==="+sql);
log_.debug("result=" + result);
prepStmt = conn.prepareStatement(sql);
result = prepStmt.executeQuery();
if (result != null && result.next())
{
//get the file ext
String strDocExt = "";
try
{
strDocExt =
uploadFactory.getFileType(aFileName, aUserId);
}
catch(Exception e)
{
log_.debug("Exception is"+e);
}
//get the file length
int intCountBytes = 0;
String strPrpValue = null;
//set the mimetype
ResourceBundle mimetype = 
ResourceBundle.getBundle("mimes");
strPrpValue =
mimetype.getString(strDocExt.toLowerCase());
log_.debug("Value=" + strPrpValue);
if (strPrpValue != null)
{

response.setContentType(strPrpValue);

response.setHeader("Content-Disposition", "inline; filename=" + aFileName);
}
myBlob = result.getBlob("FILE_IMAGE");
//get the inputStream
in = myBlob.getBinaryStream();
/*Get the Output Stream*/
if (in != null)
{
generatePresentation(in, response);
in.close();
}
}
}
catch (SQLException sqle)
{
throw new
SQLException("FileDisplayServlet.readBlob", "" + sqle.getErrorCode());
}
catc

RE: [OT] getBlob() error in Tomcat

2004-04-06 Thread Summers, Bert W.
You need to cast the ResultSet to the Oracle specify ResultSet

-Original Message-
From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 06, 2004 11:01 AM
To: Tomcat Users List
Subject: [OT] getBlob() error in Tomcat
Importance: High


Hi,

Any idea why this error is coming in runtime?

Servlet) - FileDisplayServlet.doPost()
java.lang.AbstractMethodError:
oracle.jdbc.driver.OracleResultSetImpl.getBlob(Ljava/lang/String;)Ljava/sql/
Blob;
at
org.apache.commons.dbcp.DelegatingResultSet.getBlob(DelegatingResultSet.java
:318)
at
com.mot.iDEN.webapp.oes.servlet.FileDisplayServlet.readBlob(FileDisplayServl
et.java:169)

I am trying to display a image that is stored in a BLOB field in Oracle. I
am using connection pooling and classes12.jar

Servlet Code 



private void readBlob
(
HttpServletRequest request,
HttpServletResponse response,
long aFeatureId,
String aFileName,
String aUserId
)
throws SQLException,IOException
{
Connection conn = null;
ResultSet result = null;
PreparedStatement prepStmt = null;
java.io.InputStream in = null;
java.sql.Blob myBlob = null;
FileUploadFactory uploadFactory = new FileUploadFactory();

try
{
conn = config_.getEstimationConnection(false);
String sql = "";
sql =
"   SELECT "+
"   FILE_IMAGE "+
"   FROM "+
"   OES_FEATURE_DETAILS "+
"   WHERE "+
"   FEATURE_ID = "+aFeatureId;

log_.debug("SQL:==="+sql);
log_.debug("result=" + result);
prepStmt = conn.prepareStatement(sql);
result = prepStmt.executeQuery();
if (result != null && result.next())
{
//get the file ext
String strDocExt = "";
try
{
strDocExt =
uploadFactory.getFileType(aFileName, aUserId);
}
catch(Exception e)
{
log_.debug("Exception is"+e);
}
//get the file length
int intCountBytes = 0;
String strPrpValue = null;
//set the mimetype
ResourceBundle mimetype =
ResourceBundle.getBundle("mimes");
strPrpValue =
mimetype.getString(strDocExt.toLowerCase());
log_.debug("Value=" + strPrpValue);
if (strPrpValue != null)
{

response.setContentType(strPrpValue);

response.setHeader("Content-Disposition", "inline; filename=" + aFileName);
}
myBlob = result.getBlob("FILE_IMAGE");
//get the inputStream
in = myBlob.getBinaryStream();
/*Get the Output Stream*/
if (in != null)
{
generatePresentation(in, response);
in.close();
}
}
}
catch (SQLException sqle)
{
throw new
SQLException("FileDisplayServlet.readBlob", "" + sqle.getErrorCode());
}
catch (IOException io)
{
throw new
IOException("FileDisplayServlet.readBlob");
}
finally

[OT] getBlob() error in Tomcat

2004-04-06 Thread Kumar Abhay-CAK203C
Hi,

Any idea why this error is coming in runtime?

Servlet) - FileDisplayServlet.doPost()
java.lang.AbstractMethodError: 
oracle.jdbc.driver.OracleResultSetImpl.getBlob(Ljava/lang/String;)Ljava/sql/Blob;
at 
org.apache.commons.dbcp.DelegatingResultSet.getBlob(DelegatingResultSet.java:318)
at 
com.mot.iDEN.webapp.oes.servlet.FileDisplayServlet.readBlob(FileDisplayServlet.java:169)

I am trying to display a image that is stored in a BLOB field in Oracle. I am using 
connection pooling and classes12.jar

Servlet Code 

private void readBlob
(
HttpServletRequest request,
HttpServletResponse response,
long aFeatureId,
String aFileName,
String aUserId
)
throws SQLException,IOException
{
Connection conn = null;
ResultSet result = null;
PreparedStatement prepStmt = null;
java.io.InputStream in = null;
java.sql.Blob myBlob = null;
FileUploadFactory uploadFactory = new FileUploadFactory();

try
{
conn = config_.getEstimationConnection(false);
String sql = "";
sql =
"   SELECT "+
"   FILE_IMAGE "+
"   FROM "+
"   OES_FEATURE_DETAILS "+
"   WHERE "+
"   FEATURE_ID = "+aFeatureId;

log_.debug("SQL:==="+sql);
log_.debug("result=" + result);
prepStmt = conn.prepareStatement(sql);
result = prepStmt.executeQuery();
if (result != null && result.next())
{
//get the file ext
String strDocExt = "";
try
{
strDocExt = 
uploadFactory.getFileType(aFileName, aUserId);
}
catch(Exception e)
{
log_.debug("Exception is"+e);
}
//get the file length
int intCountBytes = 0;
String strPrpValue = null;
//set the mimetype
ResourceBundle mimetype = 
ResourceBundle.getBundle("mimes");
strPrpValue = 
mimetype.getString(strDocExt.toLowerCase());
log_.debug("Value=" + strPrpValue);
if (strPrpValue != null)
{
response.setContentType(strPrpValue);
response.setHeader("Content-Disposition", 
"inline; filename=" + aFileName);
}
myBlob = result.getBlob("FILE_IMAGE");
//get the inputStream
in = myBlob.getBinaryStream();
/*Get the Output Stream*/
if (in != null)
{
generatePresentation(in, response);
in.close();
}
}
}
catch (SQLException sqle)
{
throw new SQLException("FileDisplayServlet.readBlob", "" + 
sqle.getErrorCode());
}
catch (IOException io)
{
throw new 
IOException("FileDisplayServlet.readBlob");
}
finally
{
try
{
if (result != null)
{
result.close();
}
if (prepStmt != null)
{
prepStmt.close();
}
if (conn != n

error in tomcat logging

2004-03-26 Thread Emerson Cargnin
I've got the message :

log4j:WARN No appenders could be found for logger 
(org.apache.catalina.session.ManagerBase).
log4j:WARN Please initialize the log4j system properly.

I'm using tomcat 5.0.18.
Could it be due to any lof4j configuration of my apps?
I think that this could happen if I had a ROOT category, isn't it?

My log4j configuration:






   
 
 






  

  


  
   
  




--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Connection reset by peer: socket write error in tomcat log

2003-09-08 Thread Mike Curwen
I think a lot of people have lots of these entries. :)  Here's my idea:

What it means is that the client (your browser) has closed the tcp/ip
connection between itself and Tomcat, before Tomcat thinks it is done
sending data.

Since the images and pages seem to be 100% complete (because you don't
mention that you are experiencing any actual page load problems), one
could wonder whether or not Tomcat is correct, but putting that aside...
the problem is not Tomcat related, so much as it is connection related.

The 'solution' is to simply disable this message. In Tomcat 3.2.x, go to
/conf/server.xml and modify the following:

code:
-

 -Original Message-
> From: Jiang Chen [mailto:[EMAIL PROTECTED] 
> Sent: Friday, September 05, 2003 11:35 PM
> To: Tomcat Users List
> Subject: Connection reset by peer: socket write error in tomcat log
> 
> 
> Hi;
> 
> I have quite a lot following exception in the tomcat log:
> 
> ErrorDispatcherValve[localhost]: Exception Processing 
> ErrorPage[errorCode=404, location=/pages/error.jsp]
> java.net.SocketException: Connection reset by peer: socket write error
>   at java.net.SocketOutputStream.socketWrite(Native Method)
>   at java.net.SocketOutputStream.write(SocketOutputStream.java:91)
>   at 
> org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutp
> utBuffer.doWri
> te(InternalOutputBuffer.java:668)
>   at 
> org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(C
> hunkedOutputFi
> lter.java:171)
>   at 
> org.apache.coyote.http11.InternalOutputBuffer.doWrite(Internal
> OutputBuffer.j
> ava:523)
>   at org.apache.coyote.Response.doWrite(Response.java:524)
>   at
> org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBu
> ffer.java:384)
>   at 
> org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:360)
>   at 
> org.apache.coyote.tomcat4.OutputBuffer.flush(OutputBuffer.java:345)
>   at 
> org.apache.coyote.tomcat4.CoyoteResponse.flushBuffer(CoyoteRes
> ponse.java:555
> )
>   at 
> org.apache.coyote.tomcat4.CoyoteResponseFacade.flushBuffer(Coy
> oteResponseFac
> ade.java:227)
>   at 
> org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDi
> spatcherValve.
> java:307)
>   at 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> spatcherValve.
> java:180)
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:641)
>   at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java:172
> )
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:641)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:480)
>   at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> gineValve.java
> :174)
>   at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invok
> eNext(StandardPipeline.java:643)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.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(Http11Process
> or.java:432)
>   at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle
> r.processConne
> ction(Http11Protocol.java:386)
>   at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
> nt.java:534)
>   at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.jav
> a:530)
>   at java.lang.Thread.run(Thread.java:479)
> 
> I am using Tomcat 4.1.18 and Structs 1.0, running at w2k box.
> 
> Does anyone know what cause it, and how to fix it?
> 
> Thanks a lot
> 
> Jiang
> 
> 
> -
> 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]



Connection reset by peer: socket write error in tomcat log

2003-09-05 Thread Jiang Chen
Hi;

I have quite a lot following exception in the tomcat log:

ErrorDispatcherValve[localhost]: Exception Processing
ErrorPage[errorCode=404, location=/pages/error.jsp]
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:91)
at
org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWri
te(InternalOutputBuffer.java:668)
at
org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFi
lter.java:171)
at
org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.j
ava:523)
at org.apache.coyote.Response.doWrite(Response.java:524)
at
org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:384)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:360)
at org.apache.coyote.tomcat4.OutputBuffer.flush(OutputBuffer.java:345)
at
org.apache.coyote.tomcat4.CoyoteResponse.flushBuffer(CoyoteResponse.java:555
)
at
org.apache.coyote.tomcat4.CoyoteResponseFacade.flushBuffer(CoyoteResponseFac
ade.java:227)
at
org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherValve.
java:307)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.invok
eNext(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.processConne
ction(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
at java.lang.Thread.run(Thread.java:479)

I am using Tomcat 4.1.18 and Structs 1.0, running at w2k box.

Does anyone know what cause it, and how to fix it?

Thanks a lot

Jiang


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



Unable to compile class for JSP error in Tomcat 5.0.7

2003-08-14 Thread John Cavacas
Hi,

This is my first time trying Tomcat 5.0.7, i'm already familiar with tomcat 4.

I tried to run a simple JSP, then the Struts struts-blank.war application, 
and i keep getting this error:

org.apache.jasper.JasperException: Unable to compile class for JSP
..snip..
java.lang.IllegalArgumentException: -1

org.apache.jasper.compiler.SmapStratum$LineInfo.setOutputLineIncrement(SmapStratum.java:124)
...snip..
I've looked in bugzilla for a bug report, but didn't find anything related 
to this.

I just recently upgraded to JDK 1.4.2, but I'm not experiencing any 
problems with any other Java related application.

Any help or insight would be appreciated.

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


RE: Error in Tomcat

2003-06-11 Thread Reynir Hübner
Hi, 

Well, I don't know how many threads you are using, if your website is under a lot of 
load you might want to increase the "maxProcessors" settings in 
tomcat_home/conf/server.xml in the config for the connector you are using. 

This could also be result of requests locking up threads, which in the end comes down 
to the fact that no threads are available...
 

Hope it helps
-reynir




> -Original Message-
> From: Sarkar, Sudipta [mailto:[EMAIL PROTECTED] 
> Sent: 11. júní 2003 15:11
> To: [EMAIL PROTECTED]
> Subject: Error in Tomcat
> 
> 
> Hi,
>I am getting the following error with Tomcat 4.1.24
> "threads.ThreadPool  - All threads are busy, waiting. Please 
> increase maxThreads or check the servlet status75 75" and the 
> tomcat server stopped responding.
>Can any one help me solve this problem.
> Thanks
> Sudipta
> 
> -
> 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]



Error in Tomcat

2003-06-11 Thread Sarkar, Sudipta
Hi,
   I am getting the following error with Tomcat 4.1.24
"threads.ThreadPool  - All threads are busy, waiting. Please increase maxThreads or 
check the servlet status75 75" and the tomcat server stopped responding.
   Can any one help me solve this problem.
Thanks
Sudipta

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



Re: Error In Tomcat But Not WebLogic

2003-03-20 Thread Aidan Monroe
> It could be because weblogic had a larger buffer
> than tomcat before 
> flushing. 

Thanks, that sounds like it might be it as I am 99%
certain that I am not committing the response and then
sending more data, which I know is against the spec.

I'll look into the buffer size of WebLogic compared to
Tomcat.

Thanks.

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



Re: Error In Tomcat But Not WebLogic

2003-03-20 Thread Peter Lin

 
I will second the remarks about this particular behavior. It is a bug and isn't normal 
behavior. I believe the behavior was present in version 5 and 6.
 
the solution is to well, not do that, since it's not logical. what I ended up doing 
was to place the sendRedirect logic at the top of a JSP page and redirecting before 
anything happens. that was the only way i could ensure correct behavior, especially 
when redirects and forwards were used together to direct a request.
 
peter
 
 Tim Funk <[EMAIL PROTECTED]> wrote:Weblogic isn't the best at obeying the spec. (From 
past painful experience)

You probably have code which is sending data to the browser and then the 
response is getting committed. Then you try a 
RequestDispatcher.forward(). This is illegal with respect to the spec. 
It could be because weblogic had a larger buffer than tomcat before 
flushing. See the jsp(and/or servlet) spec for the declaration to 
enlarge the buffer for your request.

A simple way to reproduce:
/* Write a 50kb string to ensure response is committed */
char[] c = new char[1024*50];
java.util.Arrays.fill(c,'z')
out.println(new String(c));
%>


---
Another common way is to get this error is by performing a sendRedirect 
in a jsp and then printing more data out, for example:

Wacky text here.
---

A simple way to resolve:
return;
%>
Wacky text here.


-Tim

Aidan Monroe wrote:
> I have a .war file that runs perfectly in WebLogic
> 7.0. Today I tried to run that same .war in Tomcat
> 4.0.6. Unfortunately, it did not run. I get the
> following error:
> 
> java.lang.IllegalStateException: Cannot forward after
> response has been committed
> 
> Now, I know what this error means, but I don't know
> why I would get it when I run in Tomcat but not
> WebLogic. Is there something that I need to set in
> Tomcat to avoid this?
> 
> Please note that I am new to Tomcat so I apologize in
> advance if this is a stupid question.
> 
> Aidan
> 


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



-
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!

Re: Error In Tomcat But Not WebLogic

2003-03-20 Thread Tim Funk
Weblogic isn't the best at obeying the spec. (From past painful experience)

You probably have code which is sending data to the browser and then the 
response is getting committed. Then you try a 
RequestDispatcher.forward(). This is illegal with respect to the spec. 
It could be because weblogic had a larger buffer than tomcat before 
flushing. See the jsp(and/or servlet) spec for the declaration to 
enlarge the buffer for your request.

A simple way to reproduce:
<%
   /* Write a 50kb string to ensure response is committed */
   char[] c = new char[1024*50];
   java.util.Arrays.fill(c,'z')
   out.println(new String(c));
%>
   
---
Another common way is to get this error is by performing a sendRedirect 
in a jsp and then printing more data out, for example:
<% response.sendRedirect("moreCowbell.jsp");%>
Wacky text here.
---

A simple way to resolve:
<% response.sendRedirect("moreCowbell.jsp");
   return;
%>
Wacky text here.
-Tim

Aidan Monroe wrote:
I have a .war file that runs perfectly in WebLogic
7.0. Today I tried to run that same .war in Tomcat
4.0.6. Unfortunately, it did not run. I get the
following error:
java.lang.IllegalStateException: Cannot forward after
response has been committed
Now, I know what this error means, but I don't know
why I would get it when I run in Tomcat but not
WebLogic. Is there something that I need to set in
Tomcat to avoid this?
Please note that I am new to Tomcat so I apologize in
advance if this is a stupid question.
Aidan
 


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


Re: Error In Tomcat But Not WebLogic

2003-03-20 Thread Romualdo Rubens de Freitas
Aidan,

If you know what that error means, you should also know that it
violates Servlet specification. Maybe WebLogic has a pseudo-bug,
because it allows for you to send the buffer response to the server
and yet allows for you to keep filling it up.
Just my thoughts.

Best regards,
Romualdo Rubens de Freitas
mailto:[EMAIL PROTECTED]
Aidan Monroe escreveu:
I have a .war file that runs perfectly in WebLogic
7.0. Today I tried to run that same .war in Tomcat
4.0.6. Unfortunately, it did not run. I get the
following error:
java.lang.IllegalStateException: Cannot forward after
response has been committed
Now, I know what this error means, but I don't know
why I would get it when I run in Tomcat but not
WebLogic. Is there something that I need to set in
Tomcat to avoid this?
Please note that I am new to Tomcat so I apologize in
advance if this is a stupid question.
Aidan

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
.





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


Error In Tomcat But Not WebLogic

2003-03-20 Thread Aidan Monroe
I have a .war file that runs perfectly in WebLogic
7.0. Today I tried to run that same .war in Tomcat
4.0.6. Unfortunately, it did not run. I get the
following error:

java.lang.IllegalStateException: Cannot forward after
response has been committed

Now, I know what this error means, but I don't know
why I would get it when I run in Tomcat but not
WebLogic. Is there something that I need to set in
Tomcat to avoid this?

Please note that I am new to Tomcat so I apologize in
advance if this is a stupid question.

Aidan

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



Re: ERROR IN TOMCAT 4.18 + APACHE 2.0.43 + JK2 CONNECTOR

2003-01-08 Thread p niemandt
Rather send your message as plain text: Copy and paste if you are using
word. I only run linux and do not open word documents: A suspect a lot
of other people as well. 

On Wed, 2003-01-08 at 14:59, [EMAIL PROTECTED] wrote:
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
-- 
p niemandt <[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




ERROR IN TOMCAT 4.18 + APACHE 2.0.43 + JK2 CONNECTOR

2003-01-08 Thread Krishna_R . _Nagaraj


problem.doc
Description: MS-Word document
--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


RE: ERROR IN TOMCAT 4.18 + APACHE 2.0.43 + JK2 CONNECTOR - HELP PLS

2003-01-06 Thread Krishna_R . _Nagaraj




Sorry. I didn't mean to send 4 times. The first 2 times only the attached
document was displayed in the mail. That's why I sent it out again by
adding more explanation into the attached doc.

Again I apologize for the inconvenience.


Re: Error in Tomcat 4.18 + Apache 2.0.43 + JK2 Conenctor

2003-01-06 Thread Jason Pyeron

Ms. Krishna please read: http://www.tuxedo.org/~esr/faqs/smart-questions.html

here is the contents of her attached document:


If I try to browse a jpg file of size greater than 34KB then I get an 
image which has a dark pattern from the middle of the image. This only 
happens if the image is greater than 34KB. This is happening to another 
colleague of mine. 

I also noticed that if I try to browse the same image (> 34KB) under the 
subfolder of examples (i.e. jsp folder) I get the following errors (logged 
in apache error.log file). This however happens to any file (No size 
constraint)

[Fri Jan 03 17:40:28 2003] [error] Error ajp_process_callback - write failed
[Fri Jan 03 17:40:28 2003] [error] ajp13.service() ajpGetReply recoverable error 3
[Fri Jan 03 17:40:28 2003] [error] Error ajp_process_callback - write failed
[Fri Jan 03 17:40:28 2003] [error] ajp13.service() ajpGetReply recoverable error 3
[Fri Jan 03 17:40:28 2003] [error] ajp13.service() Error  forwarding 
ajp13:localhost:8019 1 0
[Fri Jan 03 17:40:28 2003] [error] mod_jk.handler() Error connecting to tomcat 3

Can someone please help me in solving this problem

I have the following settings in my config files.

Server.xml

 Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
   port="8019" minProcessors="5" maxProcessors="75"
   enableLookups="true" redirectPort="8443"
   acceptCount="10" debug="0" connectionTimeout="2"
   useURIValidationHack="false"
   
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"

worker2.properties

[shm]
file=c:/apache/Apache2/logs/shm.file
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8019]
port=8019
host=127.0.0.1

# define the worker
[ajp13:localhost:8019]
channel=channel.socket:localhost:8019

# Uri mapping
[uri:/test/*]
worker=ajp13:localhost:8019

jk2.properties

# list of needed handlers.
handler.list=apr,channelSocket,request

# Override the default port for the channelSocket
channelSocket.port=8019



-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron   http://www.pyerotechnics.com   -
- Owner & Lead  Pyerotechnics Development, Inc. -
- +1 410 808 6646 (c)   500 West University Parkway #1S -
- +1 410 467 2266 (f)   Baltimore, Maryland  21210-3253 -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.


On Mon, 6 Jan 2003 [EMAIL PROTECTED] wrote:

I have explained the error in this attached document.

(See attached file: problem.doc)

Thanks a lot

Krishna



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: ERROR IN TOMCAT 4.18 + APACHE 2.0.43 + JK2 CONNECTOR - HELP PLS

2003-01-06 Thread Turner, John

This is the fourth time you've posted this today.  We get it.  If someone
has an answer, I'm sure they will reply.

John

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 06, 2003 2:32 PM
To: [EMAIL PROTECTED]
Subject: ERROR IN TOMCAT 4.18 + APACHE 2.0.43 + JK2 CONNECTOR - HELP PLS


I have explained the error in this attached document. 

(See attached file: problem.doc)

Thanks a lot

Krishna 

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




ERROR IN TOMCAT 4.18 + APACHE 2.0.43 + JK2 CONNECTOR - HELP PLS

2003-01-06 Thread Krishna_R . _Nagaraj

I have explained the error in this attached document. 

(See attached file: problem.doc)

Thanks a lot

Krishna


problem.doc
Description: MS-Word document
--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


RE: resource not available error in tomcat-4.1.12

2002-10-02 Thread Larry Isaacs

See the last item in the RELEASE-NOTES-4.1.txt file in your
Tomcat 4.1.12 installation.

Cheers,
Larry

> -Original Message-
> From: Zsolt Koppany [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, October 02, 2002 9:04 AM
> To: [EMAIL PROTECTED]
> Subject: resource not available error in tomcat-4.1.12
> 
> 
> Hi,
> 
> I try to move from tc-4.0.4 to 4.1.12 but have a problem. I 
> have changed the 
> default docBase (see below) for my application but I get the 
> error attached 
> at the end of the mail when I want to get the http://localhost:8080 
> displayed. In the index.jsp file the  command 
> does not work and 
> I don't know why. My application does work with tc-4.0.4 with 
> this setup. I 
> do have a correct web.xml in "/home/zk/CB/tomcat/cb/WEB-INF" 
> and the class 
> files are also in the right directories.
> 
> What is the reason of the error?
> 
> 
> 
>  docBase="/home/zk/CB/tomcat/cb"
> reloadable="false" debug="0"/>
> --
> index.jsp:
> 
> 
> 
> --
> Error message:
> 
> type Status report
> 
> message /servlet/top
> 
> description The requested resource (/servlet/top) is not available.
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 

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




resource not available error in tomcat-4.1.12

2002-10-02 Thread Zsolt Koppany

Hi,

I try to move from tc-4.0.4 to 4.1.12 but have a problem. I have changed the 
default docBase (see below) for my application but I get the error attached 
at the end of the mail when I want to get the http://localhost:8080 
displayed. In the index.jsp file the  command does not work and 
I don't know why. My application does work with tc-4.0.4 with this setup. I 
do have a correct web.xml in "/home/zk/CB/tomcat/cb/WEB-INF" and the class 
files are also in the right directories.

What is the reason of the error?




--
index.jsp:



--
Error message:

type Status report

message /servlet/top

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

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Error in tomcat but not in resin (caucho)

2002-09-06 Thread Justin Ruthenbeck


Many app servers buffer the response output and allow anything to be done 
to the response until the first time the buffer is flushed to the 
client.  This can lead to runtime situations where you can call 
response.setHeader() AFTER writing something to the response... so long as 
you don't write enough to cause the buffer to flush.

Needless to say, this "feature" can lead to some pretty annoying debugging 
sessions and bewildered people when their application works in something 
loose (like WL and, apparently, Resin), but not in Tomcat.  I'm especially 
authoritative on that last point.  ;)

justin


At 03:38 PM 9/6/2002, you wrote:
>Because this:
><%
>response.setHeader("Cache-Control","no-cache");
>response.setHeader("Pragma","no-cache");
>
>will commit the response, after which you cannot redirect.
>
>Not sure why Resin would allow this.
>
>
>
>-Original Message-
>From: Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED]]
>Sent: Friday, September 06, 2002 5:28 PM
>To: [EMAIL PROTECTED]
>Subject: Error in tomcat but not in resin (caucho)
>
>
>Why bellow code is error in tomcat?
>this code runs well in resin.
>there is any error?
>thanks
>
>code:
>
>
><%
>response.setHeader("Cache-Control","no-cache");
>response.setHeader("Pragma","no-cache");
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


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




RE: Error in tomcat but not in resin (caucho)

2002-09-06 Thread Curwen, Michael

Because this:
<%
response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");

will commit the response, after which you cannot redirect.

Not sure why Resin would allow this.



-Original Message-
From: Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 5:28 PM
To: [EMAIL PROTECTED]
Subject: Error in tomcat but not in resin (caucho)


Why bellow code is error in tomcat?
this code runs well in resin.
there is any error?
thanks

code:


<%
response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");

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




Error in tomcat but not in resin (caucho)

2002-09-06 Thread Dionisio Ruiz de Zarate

Why bellow code is error in tomcat?
this code runs well in resin.
there is any error?
thanks

code:


<%
response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");

String login= (String)session.getAttribute("login");
String usuario= (String)session.getAttribute("usuario");
if(usuario==null){usuario="";}
String passwd= (String)session.getAttribute("passwd");
if(passwd==null){passwd="";}
String nivelaccesoTmp= (String)session.getAttribute("nivelacceso");
int nivelacceso=Integer.parseInt(nivelaccesoTmp);

String nivelTmp= (String)session.getAttribute("nivel");
if(nivelTmp==null){nivelTmp="0";}
  if(Integer.parseInt(nivelTmp)< nivelacceso){
  String p=request.getParameter("pagina");
  String pp=request.getParameter("pagina");
  if(paginas==null){paginas="";}
   session.setAttribute("estado","0");
   session.setAttribute("nivel","0");
   session.setAttribute("error","3");
   session.setAttribute("login","0");
   response.sendRedirect("login.jsp?p="+pp + "&" +
request.getQueryString());
  }

if ((login==null)||(login.equals("0"))){
StringBuffer pagina=HttpUtils.getRequestURL(request);
String parametros = request.getQueryString();
response.sendRedirect ("login.jsp?p=" + p );
}

%>


ERROR:

Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error




type Exception report

message Internal Server Error

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

exception

java.lang.IllegalStateException
at
org.apache.catalina.connector.HttpResponseFacade.sendRedirect(HttpResponseFa
cade.java:173)
at org.apache.jsp.index$jsp._jspService(index$jsp.java:1144)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:217)
at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
at java.lang.Thread.run(Thread.java:484)





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




Error in tomcat 4.0.3

2002-03-28 Thread Rich Baldwin

Thought I'd test tomcat 4.0.3 w/ my servlets.  Note: these same routines
are running w/o any problems in
tomcat 4.0.1.  I get the following error in 4.0.3...  Any ideas.


Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error



type Exception report

message Internal Server Error

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

exception

javax.servlet.ServletException: Servlet.init() for servlet StateLister
threw exception
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)

 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)

 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)

 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)

 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)

 at java.lang.Thread.run(Thread.java:536)


root cause

java.lang.NullPointerException
 at org.webmacro.util.Settings.load(Settings.java:97)
 at org.webmacro.util.Settings.(Settings.java:56)
 at org.webmacro.Broker.loadDefaultSettings(Broker.java:273)
 at org.webmacro.servlet.Servlet22Broker.(Servlet22Broker.java:52)
 at
org.webmacro.servlet.Servlet22Broker.getBroker(Servlet22Broker.java:85)
 at org.webmacro.servlet.ServletBroker.getBroker(ServletBroker.java:73)
 at org.webmacro.WM.(WM.java:95)
 at org.webmacro.servlet.WMServlet.initWebMacro(WMServlet.java:681)
 at org.webmacro.servlet.WMServlet.init(WMServlet.java:117)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at org.webmacro.servlet.WMServlet.init(WMServlet.java:93)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)

 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)

 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)

 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apa

Parse Error in Tomcat Startup...

2002-03-27 Thread João Augusto Charnet

Every time a start TOMCAT  I get the following error

PARSE error at line 1 column 1
org.xml.sax.SAXParseException: The markup in the document preceding the
root ele
ment must be well-formed.

Anyone knows what's wrong ???

Thanks a lot 

John.



RE: Path error in Tomcat startup scripts on Linux

2002-02-25 Thread Randy Layman


Is it possible that in your Context definition in either server.xml
or apps-XXX.xml you are specifying an absolute path instead of a relative
one?

Randy


> -Original Message-
> From: Luke Studley [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 25, 2002 11:24 AM
> To: 'Tomcat Users List'
> Subject: Path error in Tomcat startup scripts on Linux
> 
> 
> {See also thread [Apache Tomcat/4.0.2 - HTTP Status 404 - 
> /examples/jsp/]
> which seems a similar problem}
> 
> Have an application which works fine on Win2k with Tomcat 
> 4.0.1 - but is
> failing on Linux.
> 
> I have an app under $CATALINA_HOME/webapps/webcare/web - and 
> an entry in
> server.xml which maps to it.
> 
> However in the logs on Linux Catalina apparently binds perfectly to
> $CATALINA_HOME/webapps/ROOT but fails miserably when trying 
> to bind to my
> app.
> 
> In the log it says it fails to find the app at /webcare/web - and sure
> enough if I create a directory at /webcare/web - i.e. in the 
> filesystem root
> directory - it works again.
> 
> Looks like something in the unix version is not picking up 
> paths properly.
> Anybody else come across this - and especially anyone know 
> how to fix it?
> 
> Regards
> 
> Luke
> 
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Path error in Tomcat startup scripts on Linux

2002-02-25 Thread Luke Studley

{See also thread [Apache Tomcat/4.0.2 - HTTP Status 404 - /examples/jsp/]
which seems a similar problem}

Have an application which works fine on Win2k with Tomcat 4.0.1 - but is
failing on Linux.

I have an app under $CATALINA_HOME/webapps/webcare/web - and an entry in
server.xml which maps to it.

However in the logs on Linux Catalina apparently binds perfectly to
$CATALINA_HOME/webapps/ROOT but fails miserably when trying to bind to my
app.

In the log it says it fails to find the app at /webcare/web - and sure
enough if I create a directory at /webcare/web - i.e. in the filesystem root
directory - it works again.

Looks like something in the unix version is not picking up paths properly.
Anybody else come across this - and especially anyone know how to fix it?

Regards

Luke



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




JSP tag lib error in Tomcat 4.0.1

2002-01-14 Thread Jacob Thomas

While trying out Tomcat 4.0.1 ran into problems exercising most of the
JSP examples. Got the following exception:

java.lang.NoSuchMethodError
at
org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCac
he.java :202)
at
org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139
)
at
org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:324)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)


All of the servlet examples worked fine. Also, some of the JSP examples
(such as the calendar) bring up their first page correctly but not the
subsequent ones. Any suggestions would be greatly appreciated. 
--
Thanks
Jacob

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Why 500 error in Tomcat 4.0.1 but NOT 4.0???

2001-12-12 Thread Galbayar

can u send me your servlet?

- Original Message -
From: "Richard S. Huntrods" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 13, 2001 11:31
Subject: Why 500 error in Tomcat 4.0.1 but NOT 4.0???


> I have a servlet that runs fine in Tomcat 4.0 on a Win2000 machine.  If
> I run the same servlet, using the same server.xml, in the same directory
> structure in Tomcat 4.0.1, I get the following error.  If I run this
> same servlet, with the same server.xml, in the same directory structure
> on Tomcat 4.0.1 on Solaris, I get NO ERROR.
>
> Can anyone tell me what might cause this error ONLY on Tomcat 4.0.1 on
> Windows 2000?
>
> Thanks,
>
> -Richard
>
>
> Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
>
> --
--
>
> type Exception report
>
> message Internal Server Error
>
> description The server encountered an internal error (Internal Server
> Error) that prevented it from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: Servlet execution threw an exception
>  at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:269)
>
>  at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
>
>  at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
>
>  at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
>
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
>
>  at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
>
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
>
>  at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
>
>  at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
>
>  at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
>
>  at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
>
>  at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
>
>  at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
>
>  at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
>
>  at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
>
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
>
>  at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
>
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
>
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1011)
>
>  at
>
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
>
>  at java.lang.Thread.run(Thread.java:484)
>
>
> root cause
>
> java.lang.NoSuchMethodError
>  at
>
org.apache.catalina.session.StandardSession.setAttribute(StandardSession.jav
a:1182)
>
>  at
>
org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessi
onFacade.java:191)
>
>  at
>
org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessi
onFacade.java:191)
>
>  at qti.object.Login.putSession(Login.java:572)
>  at qti.system.SystemTestServlet.doPost(SystemTestServlet.java:78)
>  at qti.system.SystemTestServlet.doGet(SystemTestServlet.java:34)
>  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(Application
FilterChain.java:247)
>
>  at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
>
>  at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
>
>  at
>

Why 500 error in Tomcat 4.0.1 but NOT 4.0???

2001-12-12 Thread Richard S. Huntrods

I have a servlet that runs fine in Tomcat 4.0 on a Win2000 machine.  If
I run the same servlet, using the same server.xml, in the same directory
structure in Tomcat 4.0.1, I get the following error.  If I run this
same servlet, with the same server.xml, in the same directory structure
on Tomcat 4.0.1 on Solaris, I get NO ERROR.

Can anyone tell me what might cause this error ONLY on Tomcat 4.0.1 on
Windows 2000?

Thanks,

-Richard


Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error



type Exception report

message Internal Server Error

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

exception

javax.servlet.ServletException: Servlet execution threw an exception
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)

 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)

 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)

 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)

 at java.lang.Thread.run(Thread.java:484)


root cause

java.lang.NoSuchMethodError
 at
org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1182)

 at
org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:191)

 at
org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:191)

 at qti.object.Login.putSession(Login.java:572)
 at qti.system.SystemTestServlet.doPost(SystemTestServlet.java:78)
 at qti.system.SystemTestServlet.doGet(SystemTestServlet.java:34)
 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:243)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)

 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)

 at
org.apach

Error in Tomcat/Apache, help!

2001-07-11 Thread Bryan Coon

Hi,

Kind of a repost, I never heard anything back from the original post...

I cannot get Apache and Tomcat to work together with servlets... static
pages are fine, but I get an internal server error when I try to access one
of the examples/servlets/ servlets.

The error message from mod_jk.log is this:
[jk_ajp12_worker.c (503)]: ajp12_handle_response, error reading header line

What the heck is this?  What did I do wrong?  How do I fix it?
If more info is needed, let me know what and Ill post it.

Thanks!
Bryan

Summary installation log:
On a Redhat 6.2 box:
Apache 1.3.20 compiled with OpenSSL 0.9.6b and MM 1.1.3.
Tomcat 3.2.2 Compiled and installed
compiled and installed mod_jk.so
added "include /mod_jk.conf-auto" to httpd.conf (did
not change it)
http & https check out fine
tomcat checks out fine
apache can serve static pages fine from tomcat
no servlets work...