Re: manager 401 error fixed with restart

2009-03-01 Thread Thufir
On Mon, 02 Mar 2009 05:49:53 +, Thufir wrote:

> I'm getting:
> 
> 
> HTTP Status 401 -
> 
> type Status report
> 
> message
> 
> description This request requires HTTP authentication ().
> 
> http://localhost:8080/manager/html
> 
> 
> on tomcat6 for ubuntu 8.10 with sun java.  Neither restarting tomcat nor
> logging out gained access to the manager page, had to restart.
> 
> Is there a less drastic step to take in that circumstance?


Additional data:

thu...@arrakis:~$ 
thu...@arrakis:~$ netstat -tan
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address   Foreign Address 
State  
tcp0  0 127.0.0.1:631   0.0.0.0:*   
LISTEN 
tcp6   0  0 127.0.0.1:8005  :::*
LISTEN 
tcp6   0  0 :::8009 :::*
LISTEN 
tcp6   0  0 :::8080 :::*
LISTEN 
tcp6   0  0 :::80   :::*
LISTEN 
tcp6   0  0 ::1:33239   :::*
LISTEN 
tcp6   0  0 127.0.0.1:45109 127.0.0.1:8080  
ESTABLISHED
tcp6   0  0 127.0.0.1:8080  127.0.0.1:45109 
ESTABLISHED
tcp6   1  0 127.0.0.1:8080  127.0.0.1:45112 
CLOSE_WAIT 
thu...@arrakis:~$ 


is there a problem with port 8080?  would configuring server.xml 
differently help?

If I kill java that seems to help (I think) but is inconvenient.



thanks,

Thufir


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: help again... what means these errors?

2009-03-01 Thread Laura Bartolomé

Hi again!

Well, I give you more information about our setup...

We have 2 servers ( both with IIS + .NET and Tomcat ) and 1 server DB
with MySQL and MS SQL Server. Applications in IIS work with MS SQL and
applications in Tomcat work with MySQL. Both 3 servers are virtual
machines distributed in 2 differents physical machines and in the same
net. We've got a balancer too with an IIS farm and a Tomcar farm.

I think that's all... some new idea? some critical thing we don't take care?

We'll be waiting your news :)

Thanks

Alan Chaney escribió:
> Hi Andre
>
> Totally agree with your comments with respect to the OP's first
> exception. However, they actually had two exceptions in their original
> email with completely different time stamps. The 2nd exception appears
> to be a HibernateException
>
> 01-Mar-2009 11:36:21 org.apache.catalina.core.StandardWrapperValve invoke
> SEVERE: Servlet.service() for servlet HumanReadableLinksServlet threw
> exception
> org.hibernate.TransactionException: Transaction not successfully started
>at
> org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:100)
>
>at
>
>
> The cause of this is probably completely unconnected to a remote
> client disconnect. The error above is thrown under the following
> conditiions: (from
> http://www.hibernate.org/hib_docs/v3/api/org/hibernate/TransactionException.html
>
>
> "Indicates that a transaction could not be begun, committed or rolled
> back. "
>
> With the very limited information given it is iimpossible to infer the
> exact cause but I would suspect that likely possibilities are a severe
> resource contention on the database or possibly a transaction timeout.
>
> The OP gave these two errors but didn't indicate whether they were
> happening repeatedly or just "one offs". One further possibility is a
> poor network setup causing  failure to access the database and/or
> connection failures with the client. More information would be
> required to correctly diagnose the problem. I doubt very much that the
> problem or problems are directly connected with Tomcat - more likely
> the application or the system configuration.
>
> Regards
>
> Alan
>
>
> André Warnier wrote:
>> Laura Bartolomé wrote:
>>> Hi again...
>>>
>>> We are going on findind errors and problems... and we wanna cry...
>>
>> We certainly would not want that to happen, because then your
>> messages here would get all mushy and more difficult to read.
>> And Tomcat would probably not care.
>>
>>> someone could explain what means these errors? The first:
>>>
>>> 01-Mar-2009 00:08:46 org.apache.catalina.core.StandardWrapperValve
>>> invoke
>>> SEVERE: Servlet.service() for servlet HumanReadableLinksServlet threw
>>> exception
>>> java.net.SocketException: Connection reset by peer: socket write error
>>> at java.net.SocketOutputStream.socketWrite0(Native Method)
>>> at java.net.SocketOutputStream.socketWrite(Unknown Source)
>>> at java.net.SocketOutputStream.write(Unknown Source)
>>>
>> The above rather self-explanatory message (Connection reset by peer:
>> socket write error) typically means what it says : the client
>> (browser ?) "went away" before the server could send a response to
>> it.  That usually means :
>> either
>> a) the user clicked the "stop" or "cancel" button in the browser,
>> before he received the answer to his request
>> or
>> b) the impatient user clicked on another link on the current page,
>> causing the browser to interrupt the current connection to the server
>> and load the new page, before the server could send the response to
>> the previous request
>>
>> The above 2 reasons probably cover at least 90% of the cases. It
>> could be due to the application being so slow to answer, that the
>> human user gets impatient and starts clicking all over.
>>
>> c) some communication problem occurred between the client and the
>> server, causing the TCP connection to be closed prematurely.
>> From personal experience, that may be due to some proxy or other
>> in-between element, closing the connection because nothing happened
>> on that connection for some time.
>>
>> Anyway, with 100% certainty, it means that when the server was ready
>> to send the answer to the client, it could not, because the
>> connection with the client had been closed for some reason.
>>
>>
>>
>>> and the other:
>>>
>>> 01-Mar-2009 11:36:21 org.apache.catalina.core.StandardWrapperValve
>>> invoke
>>> SEVERE: Servlet.service() for servlet HumanReadableLinksServlet threw
>>> exception
>>> org.hibernate.TransactionException: Transaction not successfully
>>> started
>>> at
>>
>> I am no specialist, but according to the above message, that seems to
>> be something in the "hibernate" application, not something coming
>> from Tomcat itself.  So you probably should ask in some "hibernate"
>> forum what it means.
>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.or

manager 401 error fixed with restart

2009-03-01 Thread Thufir
I'm getting:


HTTP Status 401 -

type Status report

message

description This request requires HTTP authentication ().

http://localhost:8080/manager/html


on tomcat6 for ubuntu 8.10 with sun java.  Neither restarting tomcat nor 
logging out gained access to the manager page, had to restart.

Is there a less drastic step to take in that circumstance?


thu...@arrakis:~$ cat -n /usr/local/tomcat/logs/catalina.out  | tail -n 99
101159  at java.util.logging.Logger.getLogger(Logger.java:274)
101160  at org.apache.juli.logging.DirectJDKLog.
(DirectJDKLog.java:71)
101161  at org.apache.juli.logging.DirectJDKLog.getInstance
(DirectJDKLog.java:178)
101162  at org.apache.juli.logging.LogFactory.getInstance
(LogFactory.java:170)
101163  at org.apache.juli.logging.LogFactory.getInstance
(LogFactory.java:241)
101164  at org.apache.juli.logging.LogFactory.getLog
(LogFactory.java:296)
101165  at org.apache.catalina.startup.Bootstrap.
(Bootstrap.java:54)
101166  java.util.logging.ErrorManager: 4
101167  java.io.FileNotFoundException: /usr/local/tomcat/logs/
admin.2009-03-01.log (Permission denied)
101168  at java.io.FileOutputStream.openAppend(Native Method)
101169  at java.io.FileOutputStream.
(FileOutputStream.java:177)
101170  at java.io.FileOutputStream.
(FileOutputStream.java:102)
101171  at java.io.FileWriter.(FileWriter.java:61)
101172  at org.apache.juli.FileHandler.open(FileHandler.java:259)
101173  at org.apache.juli.FileHandler.(FileHandler.java:59)
101174  at org.apache.juli.FileHandler.(FileHandler.java:50)
101175  at sun.reflect.NativeConstructorAccessorImpl.newInstance0
(Native Method)
101176  at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
101177  at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
101178  at java.lang.reflect.Constructor.newInstance
(Constructor.java:513)
101179  at java.lang.Class.newInstance0(Class.java:355)
101180  at java.lang.Class.newInstance(Class.java:308)
101181  at org.apache.juli.ClassLoaderLogManager.readConfiguration
(ClassLoaderLogManager.java:404)
101182  at org.apache.juli.ClassLoaderLogManager.readConfiguration
(ClassLoaderLogManager.java:348)
101183  at org.apache.juli.ClassLoaderLogManager.readConfiguration
(ClassLoaderLogManager.java:239)
101184  at java.util.logging.LogManager$2.run(LogManager.java:258)
101185  at java.security.AccessController.doPrivileged(Native 
Method)
101186  at 
java.util.logging.LogManager.readPrimordialConfiguration
(LogManager.java:256)
101187  at java.util.logging.LogManager.getLogManager
(LogManager.java:239)
101188  at java.util.logging.Logger.(Logger.java:221)
101189  at java.util.logging.LogManager$RootLogger.
(LogManager.java:973)
101190  at java.util.logging.LogManager$RootLogger.
(LogManager.java:970)
101191  at java.util.logging.LogManager$1.run(LogManager.java:179)
101192  at java.security.AccessController.doPrivileged(Native 
Method)
101193  at java.util.logging.LogManager.
(LogManager.java:156)
101194  at java.util.logging.Logger.getLogger(Logger.java:274)
101195  at org.apache.juli.logging.DirectJDKLog.
(DirectJDKLog.java:71)
101196  at org.apache.juli.logging.DirectJDKLog.getInstance
(DirectJDKLog.java:178)
101197  at org.apache.juli.logging.LogFactory.getInstance
(LogFactory.java:170)
101198  at org.apache.juli.logging.LogFactory.getInstance
(LogFactory.java:241)
101199  at org.apache.juli.logging.LogFactory.getLog
(LogFactory.java:296)
101200  at org.apache.catalina.startup.Bootstrap.
(Bootstrap.java:54)
101201  java.util.logging.ErrorManager: 4
101202  java.io.FileNotFoundException: /usr/local/tomcat/logs/host-
manager.2009-03-01.log (Permission denied)
101203  at java.io.FileOutputStream.openAppend(Native Method)
101204  at java.io.FileOutputStream.
(FileOutputStream.java:177)
101205  at java.io.FileOutputStream.
(FileOutputStream.java:102)
101206  at java.io.FileWriter.(FileWriter.java:61)
101207  at org.apache.juli.FileHandler.open(FileHandler.java:259)
101208  at org.apache.juli.FileHandler.(FileHandler.java:59)
101209  at org.apache.juli.FileHandler.(FileHandler.java:50)
101210  at sun.reflect.NativeConstructorAccessorImpl.newInstance0
(Native Method)
101211  at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
101212  at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
101213  at java.lang.reflect.Constructor.newInstance
(Constructor.java:513)
101214  at java.lang.Class.newInstance0(Class.java:355)
101215  

RE: Can't use J2EE libraries in Eclipse

2009-03-01 Thread Caldarale, Charles R
> From: Mighty Tornado [mailto:mighty.torn...@gmail.com]
> Subject: Re: Can't use J2EE libraries in Eclipse
>
> 
>  Please Choose Info:
>  
>   Family Members
>   Time
>  
> 
> 

You're missing the closing  (or just change the > to /> on the input 
element).

> 
>  /HTML/index.html
> 

That's not a valid ; to quote from section 9.10 of the servlet 
spec:

"The welcome file list is an ordered list of partial URLs with no trailing or 
leading /."

If yours works, it's an accident.

 - Chuck


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

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: instance has been stopped. could not loadoracle.toplink.essentials...

2009-03-01 Thread Caldarale, Charles R
> From: news [mailto:n...@ger.gmane.org] On Behalf Of Thufir
> Subject: Re: instance has been stopped. could not
> loadoracle.toplink.essentials...
>
> Glad you saw that.  It seems like toplink is required for JPA?

Got no idea; what I said was mostly a joke, like mixing oil and water.  Should 
have used a smiley face.

> Do you have suggestion beyond "don't use mssql" because
> mssql is what my school uses

Nothing wrong with MSSQL; it has its quirks, just like every other DB.

 - Chuck


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

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



JkMount a different location

2009-03-01 Thread Andres Riancho
List,

I've search the Tomcat FAQ, but I haven't been able to find any
answers, so... here is my question... I have a JSP application
deployed in Tomcat inside the "/abc/" directory; and I want to be able
to access it from *two different locations* from Apache, for example,
when I access: "http://apache/abc/"; and "http://apache/123/abc/";. The
first JkMount is trivial:

JkMount /abc ajp13_worker
JkMount /abc/* ajp13_worker

And is working as expected, but for the second... I don't have the
slightest clue on how to do it... I tried mod_rewrite, but it seems
that it isn't possible to combine JkMount's and URL rewrites in a
successful way. Could anyone point me in the right direction? Thanks!

I'm using Apache2, Tomcat6.

Cheers,
-- 
Andrés Riancho
http://www.bonsai-sec.com/
http://w3af.sourceforge.net/

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Can't use J2EE libraries in Eclipse

2009-03-01 Thread Mighty Tornado
Here is what I have:
HTML






Please Choose Info:



 

Family Members

Time



 

 


web.xml
===



/HTML/index.html

  



  

  GetInfo

  com.Household.servlet.GetInfo

  



  

  GetInfo

  /GetInfo.do

  
On Sun, Mar 1, 2009 at 7:31 PM, Martin Gainty  wrote:

>
> you need to identify a program that submit will post to as in this example
>
> 
> 
> Nickname: 
> 
>
> where the contents of web.xml map chat to submit its contents to
> ChatServlet
>
>ChatServlet
>/jsp/chat/chat
>
>
> where ChatServlet maps to the ChatServlet class located in
> /WEB-INF/classes/chat/ChatServlet
>
>ChatServlet
>chat.ChatServlet
>
>
> Martin
> __
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official
> business of Sender. This transmission is of a confidential nature and Sender
> does not endorse distribution to any party other than intended recipient.
> Sender does not necessarily endorse content contained within this
> transmission.
>
>
>
>
> > Date: Sun, 1 Mar 2009 19:02:03 -0500
> > Subject: Re: Can't use J2EE libraries in Eclipse
> > From: mighty.torn...@gmail.com
> > To: users@tomcat.apache.org
> >
> > Thanks,
> > I resolved this issue by having Eclipse use the Tomcat SDK.
> >
> > Unfortunately I now have a different problem with my initial app.
> >
> > I have an HTML page - index.html which asks the user to select one of two
> > values from a dropdown and then click a Submit button.
> >
> > It's a regular HTML form using POST request. I have a context in my
> > server.xml, I have a servlet mapped in web.xml. I have the servlet class
> > compiled and in the deployment dir under webapps in tomcat directory.
> > However, when I hit the submit button on the HTML, nothing happens.
> >
> > not sure where I went wrong.
> >
> > On Sun, Mar 1, 2009 at 8:56 AM, supareno  wrote:
> >
> > > Mighty,
> > >
> > > you need to add to your classpath project the servlet.api to compile
> > > servlet
> > > /lib/servlet-api.api
> > > (right click on the projet -> build path/configure build path choose
> > > librairy/ add external jar)
> > >
> > > in glassfish v2, it is in /lib/javaee.jar
> > >
> > > now with javaee5, i'm not sure that is possible to download the ee sdk
> > > separeted from glassfish
> > > it was possible with j2ee 1.4
> > >
> > > hope this help
> > >
> > > supareno
> > >
> > >  Hi,
> > >> I am working on Mac OS X.
> > >> I have the latest version of Tomcat, and Eclipse Europa.
> > >>
> > >> Mac OS X did not come with J2EE.
> > >>
> > >> I downloaded J2EE with GlassFish from Sun. Set it up by running the
> setup
> > >> shell script. Unfortunately the directory structure is very different
> now,
> > >> I
> > >> am guessing the J2EE is inside GlassFish somewhere. I need to set it
> up in
> > >> Eclipse to be able to compile Servlets and the like. and I cannot find
> the
> > >> right Jars.
> > >>
> > >> 1. Could somebody point me to where the jars are now within GlassFish
> so I
> > >> can add them to Eclipse?
> > >> 2. Is there a way to install J2EE without this GlassFish stuff, just
> > >> alongside the J2SE?
> > >>
> > >> Thank you.
> > >>
> > >>
> > >>
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > > For additional commands, e-mail: users-h...@tomcat.apache.org
> > >
> > >
>
> _
> Express your personality in color! Preview and select themes for Hotmail®.
>
> http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme
>


RE: Can't use J2EE libraries in Eclipse

2009-03-01 Thread Martin Gainty

you need to identify a program that submit will post to as in this example



Nickname: 


where the contents of web.xml map chat to submit its contents to ChatServlet

ChatServlet
/jsp/chat/chat


where ChatServlet maps to the ChatServlet class located in 
/WEB-INF/classes/chat/ChatServlet

ChatServlet
chat.ChatServlet


Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 




> Date: Sun, 1 Mar 2009 19:02:03 -0500
> Subject: Re: Can't use J2EE libraries in Eclipse
> From: mighty.torn...@gmail.com
> To: users@tomcat.apache.org
> 
> Thanks,
> I resolved this issue by having Eclipse use the Tomcat SDK.
> 
> Unfortunately I now have a different problem with my initial app.
> 
> I have an HTML page - index.html which asks the user to select one of two
> values from a dropdown and then click a Submit button.
> 
> It's a regular HTML form using POST request. I have a context in my
> server.xml, I have a servlet mapped in web.xml. I have the servlet class
> compiled and in the deployment dir under webapps in tomcat directory.
> However, when I hit the submit button on the HTML, nothing happens.
> 
> not sure where I went wrong.
> 
> On Sun, Mar 1, 2009 at 8:56 AM, supareno  wrote:
> 
> > Mighty,
> >
> > you need to add to your classpath project the servlet.api to compile
> > servlet
> > /lib/servlet-api.api
> > (right click on the projet -> build path/configure build path choose
> > librairy/ add external jar)
> >
> > in glassfish v2, it is in /lib/javaee.jar
> >
> > now with javaee5, i'm not sure that is possible to download the ee sdk
> > separeted from glassfish
> > it was possible with j2ee 1.4
> >
> > hope this help
> >
> > supareno
> >
> >  Hi,
> >> I am working on Mac OS X.
> >> I have the latest version of Tomcat, and Eclipse Europa.
> >>
> >> Mac OS X did not come with J2EE.
> >>
> >> I downloaded J2EE with GlassFish from Sun. Set it up by running the setup
> >> shell script. Unfortunately the directory structure is very different now,
> >> I
> >> am guessing the J2EE is inside GlassFish somewhere. I need to set it up in
> >> Eclipse to be able to compile Servlets and the like. and I cannot find the
> >> right Jars.
> >>
> >> 1. Could somebody point me to where the jars are now within GlassFish so I
> >> can add them to Eclipse?
> >> 2. Is there a way to install J2EE without this GlassFish stuff, just
> >> alongside the J2SE?
> >>
> >> Thank you.
> >>
> >>
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> >
> >

_
Express your personality in color! Preview and select themes for Hotmail®. 
http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme

Re: Can't use J2EE libraries in Eclipse

2009-03-01 Thread Mighty Tornado
Thanks,
I resolved this issue by having Eclipse use the Tomcat SDK.

Unfortunately I now have a different problem with my initial app.

I have an HTML page - index.html which asks the user to select one of two
values from a dropdown and then click a Submit button.

It's a regular HTML form using POST request. I have a context in my
server.xml, I have a servlet mapped in web.xml. I have the servlet class
compiled and in the deployment dir under webapps in tomcat directory.
However, when I hit the submit button on the HTML, nothing happens.

not sure where I went wrong.

On Sun, Mar 1, 2009 at 8:56 AM, supareno  wrote:

> Mighty,
>
> you need to add to your classpath project the servlet.api to compile
> servlet
> /lib/servlet-api.api
> (right click on the projet -> build path/configure build path choose
> librairy/ add external jar)
>
> in glassfish v2, it is in /lib/javaee.jar
>
> now with javaee5, i'm not sure that is possible to download the ee sdk
> separeted from glassfish
> it was possible with j2ee 1.4
>
> hope this help
>
> supareno
>
>  Hi,
>> I am working on Mac OS X.
>> I have the latest version of Tomcat, and Eclipse Europa.
>>
>> Mac OS X did not come with J2EE.
>>
>> I downloaded J2EE with GlassFish from Sun. Set it up by running the setup
>> shell script. Unfortunately the directory structure is very different now,
>> I
>> am guessing the J2EE is inside GlassFish somewhere. I need to set it up in
>> Eclipse to be able to compile Servlets and the like. and I cannot find the
>> right Jars.
>>
>> 1. Could somebody point me to where the jars are now within GlassFish so I
>> can add them to Eclipse?
>> 2. Is there a way to install J2EE without this GlassFish stuff, just
>> alongside the J2SE?
>>
>> Thank you.
>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: instance has been stopped. could not loadoracle.toplink.essentials...

2009-03-01 Thread Thufir
On Sun, 01 Mar 2009 09:24:08 -0600, Caldarale, Charles R wrote:

> (Mixing anything from Oracle with MSSQL?  That's gutsy.)
> 
>  - Chuck


Glad you saw that.  It seems like toplink is required for JPA?  Do you 
have suggestion beyond "don't use mssql" because mssql is what my school 
uses, so I have to connect to that db.

Maybe I should setup some sort of derby thing?  I'm not sure how that 
works, but I'm guessing that it would add a layer of abstraction.  
However, I'm not sure that would get me anywhere.  Kinda a java question 
rather than tomcat.


-Thufir


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: instance has been stopped. could not loadoracle.toplink.essentials...

2009-03-01 Thread Thufir
On Sun, 01 Mar 2009 09:24:08 -0600, Caldarale, Charles R wrote:

>> From: news [mailto:n...@ger.gmane.org] On Behalf Of Thufir Subject:
>> instance has been stopped. could not loadoracle.toplink.essentials...
> 
>> I can't quite predict with certainty when this error will occur:
> 
> And we can't predict what Tomcat version you're running on.  You might
> be a mentat, but the rest of us aren't.

Uproot your questions from their ground and the dangling roots will 
be seen. More questions!
-Mentat Zensufi

Server Information
Tomcat Version  JVM Version JVM Vendor  OS Name OS 
Version OS Architecture
Apache Tomcat/6.0.181.6.0_10-b33Sun Microsystems Inc.   Linux   
2.6.27-11-generic   i386


Which is all manually installed on ubuntu.

>>  86899  Feb 28, 2009 10:05:50 PM
>> org.apache.catalina.loader.WebappClassLoader loadClass
>>  86900  INFO: Illegal access: this web application instance has been
>> stopped already.
> 
> It looks like the webapp was already on the way down when the above
> message (note that it's INFO, not ERROR) was displayed.  You may have
> run into the problem of your logging environment trying to reinitialize
> itself when it shouldn't.  You can try setting the system property:

Yeah, I've just been ignoring the INFO, as you point out and it doesn't 
seem to matter.  Nebeans undeploys and redeploys, and maybe restarts 
tomcat as well.  I suppose settings for those actions would be in 
netbeans.

Sounds like something fairly safely ignored?



thanks,

Thufir


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: help again... what means these errors?

2009-03-01 Thread Alan Chaney

Sorry, didn't see the end!

Alan


André Warnier wrote:

Alan Chaney wrote:

Hi Andre

Totally agree with your comments with respect to the OP's first 
exception. However, they actually had two exceptions in their 
original email with completely different time stamps. The 2nd 
exception appears to be a HibernateException


Yes, which I mentioned also in my answer.  You need to read to the end 
though...

;-)

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



!DSPAM:49aad1ae104581527717022!




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: RemoteAddrValve and RemoteHostValve

2009-03-01 Thread Gregor Schneider
On Sun, Mar 1, 2009 at 6:05 PM, Zak Mc Kracken  wrote:
>
> Yes, but localhost-only is simpler in my case.
>
ehem, still not sure if i got you right:

you've been asking the valve-stuff because you want to limit the
access to requests coming from localhost only?
why then not make tomcat listen on localhost only? configuration for
that's a walk in the park...

rgds

gregor
-- 
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: friendly urls

2009-03-01 Thread Dan Vega
Thanks for the help Chuck. I am actually running railo under tomcat fine
right now and as you said its just a specific app thats not working because
it uses a convention for urls. From what I understand Tomcat only allows one
* per mapping and thats why these urls are not working and that resin allows
for this. Is this not correct?


Re: friendly urls

2009-03-01 Thread Serge Fonville
> * I would really like to go with option 2 but as I said I am new to this,
> so
> anyone who could confirm this and point me in the right direction would be
> awesome!
>

When I googled tomcat friendly urls, the first link was
http://www.coderanch.com/t/85405/Tomcat/Setting-Friendly-URLs-applications-Tomcat

Hope this helps.

Regards,

Serge Fonville


RE: friendly urls

2009-03-01 Thread Caldarale, Charles R
> From: Dan Vega [mailto:danv...@gmail.com]
> Subject: friendly urls
>
> I have a url that looks like this and from what I
> understand tomcat does not support this

Your understanding is incorrect; Tomcat doesn't care what URLs you give it - 
but your webapp might.

> http://dev.danvega.org/blog/index.cfm/2009/2/5/CFMU-Updates-coming-soon

> 1.) move to resin

Won't help.

> 2.) use a friendly url servlet.

Tomcat is a servlet container; it's the servlets of your webapps that process 
the URL.  Tomcat only matches whatever portion of the URL you've configured for 
each webapp, and then passes the request on to the appropriate webapp.  From 
that point on, it's up to the webapp to decipher and handle the request.

In your case, it looks like you want to use ColdFusion under Tomcat; if so, a 
little Googling would have found numerous descriptions of how to do it, 
including this one from Adobe itself:
http://www.adobe.com/support/coldfusion/j2ee/phase2-tomcat-deploy.html

Or if you want to use Railo instead:
http://railo.ch/en/index.cfm?treeID=351

 - Chuck


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

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



friendly urls

2009-03-01 Thread Dan Vega
I am having a problem running a application on tomcat and its due to the ses
urls. I am pretty new to tomcat so I am sure you guys (&girls) already know
this.  I have a url that looks like this and from what I understand tomcat
does not support this and I was presented with 2 options.

http://dev.danvega.org/blog/index.cfm/2009/2/5/CFMU-Updates-coming-soon


1.) move to resin
2.) use a friendly url servlet.

* I would really like to go with option 2 but as I said I am new to this, so
anyone who could confirm this and point me in the right direction would be
awesome!


Thank You
Dan Vega
danv...@gmail.com
http://www.danvega.org


Re: help again... what means these errors?

2009-03-01 Thread André Warnier

Alan Chaney wrote:

Hi Andre

Totally agree with your comments with respect to the OP's first 
exception. However, they actually had two exceptions in their original 
email with completely different time stamps. The 2nd exception appears 
to be a HibernateException


Yes, which I mentioned also in my answer.  You need to read to the end 
though...

;-)

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: help again... what means these errors?

2009-03-01 Thread Alan Chaney

Hi Andre

Totally agree with your comments with respect to the OP's first 
exception. However, they actually had two exceptions in their original 
email with completely different time stamps. The 2nd exception appears 
to be a HibernateException


01-Mar-2009 11:36:21 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet HumanReadableLinksServlet threw
exception
org.hibernate.TransactionException: Transaction not successfully started
   at
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:100)
   at


The cause of this is probably completely unconnected to a remote client 
disconnect. The error above is thrown under the following conditiions: 
(from

http://www.hibernate.org/hib_docs/v3/api/org/hibernate/TransactionException.html

"Indicates that a transaction could not be begun, committed or rolled 
back. "


With the very limited information given it is iimpossible to infer the 
exact cause but I would suspect that likely possibilities are a severe 
resource contention on the database or possibly a transaction timeout.


The OP gave these two errors but didn't indicate whether they were 
happening repeatedly or just "one offs". One further possibility is a 
poor network setup causing  failure to access the database and/or 
connection failures with the client. More information would be required 
to correctly diagnose the problem. I doubt very much that the problem or 
problems are directly connected with Tomcat - more likely the 
application or the system configuration.


Regards

Alan


André Warnier wrote:

Laura Bartolomé wrote:

Hi again...

We are going on findind errors and problems... and we wanna cry...


We certainly would not want that to happen, because then your messages 
here would get all mushy and more difficult to read.

And Tomcat would probably not care.


someone could explain what means these errors? The first:

01-Mar-2009 00:08:46 org.apache.catalina.core.StandardWrapperValve 
invoke

SEVERE: Servlet.service() for servlet HumanReadableLinksServlet threw
exception
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)

The above rather self-explanatory message (Connection reset by peer: 
socket write error) typically means what it says : the client (browser 
?) "went away" before the server could send a response to it.  That 
usually means :

either
a) the user clicked the "stop" or "cancel" button in the browser, 
before he received the answer to his request

or
b) the impatient user clicked on another link on the current page, 
causing the browser to interrupt the current connection to the server 
and load the new page, before the server could send the response to 
the previous request


The above 2 reasons probably cover at least 90% of the cases. It could 
be due to the application being so slow to answer, that the human user 
gets impatient and starts clicking all over.


c) some communication problem occurred between the client and the 
server, causing the TCP connection to be closed prematurely.
From personal experience, that may be due to some proxy or other 
in-between element, closing the connection because nothing happened on 
that connection for some time.


Anyway, with 100% certainty, it means that when the server was ready 
to send the answer to the client, it could not, because the connection 
with the client had been closed for some reason.





and the other:

01-Mar-2009 11:36:21 org.apache.catalina.core.StandardWrapperValve 
invoke

SEVERE: Servlet.service() for servlet HumanReadableLinksServlet threw
exception
org.hibernate.TransactionException: Transaction not successfully started
at


I am no specialist, but according to the above message, that seems to 
be something in the "hibernate" application, not something coming from 
Tomcat itself.  So you probably should ask in some "hibernate" forum 
what it means.




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



!DSPAM:49aaa5fc82807785049143!




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: RemoteAddrValve and RemoteHostValve

2009-03-01 Thread Zak Mc Kracken

Gregor wrote:

marc,
do i understand you correct that you only whant to accept requests from 
"localhost"?


I have a Java web application that computes some data from an existing 
Java-based infrastructure and output it as simple plain text. The output 
is intended to be consumed by other PHP applications on the same server, 
not by end-users.



next: wouldn't authorization solve your problem?



Yes, but localhost-only is simpler in my case.

Marco.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: RemoteAddrValve and RemoteHostValve

2009-03-01 Thread Zak Mc Kracken

Thanks again.

André Warnier wrote:

It would in my view make a lot more sense to have a single Remote Access 
Valve to which one could specify, in "allow" or "deny", a hostname 
AND/OR an IP address expression. Like
deny=".*\.badguys.com,10\.20\.30\.0" />
That's how it works in Apache httpd, and it seems to me to make a lot 
more sense than these two separate Valves.




Yes, that would be useful. Maybe I'll find time to write something alike.

Cheers.

Marco.




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat Service

2009-03-01 Thread supareno

Caldarale, Charles R a écrit :

From: supareno [mailto:reno.rkc...@free.fr]
Subject: Re: Tomcat Service

will it possible to tomcat to compile jsps without a jdk?



Tomcat does not need a JDK to compile JSPs (and it's been that way a long time).
  

sorry, i apologize

 - Chuck


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

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



  



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat Service

2009-03-01 Thread motit

We precompiled all our JSPs.


supareno wrote:
> 
> motit,
> 
> will it possible to tomcat to compile jsps without a jdk?
> tomcat and a jre has ever been discussed here:
> 
> http://www.mail-archive.com/users@tomcat.apache.org/msg50300.html
> 
> hope this help
> 
> supareno
>> Hi, 
>>   
>> According to Tomcat bin/service.bat file, the environment variable
>> JAVA_HOME
>> needs to be existed, otherwise the service is not installed. 
>>   
>> The problem is that I want to use only the JAVA JRE installation (1.6.0,
>> update 12) on that machine. I manually add the bin/server folder to that
>> JRE
>> (it comes only with the Client folder :-( ( As known, Tomcat required
>> only
>> the JRE). 
>>   
>> I tried to change all the JAVA_HOME references in the server.bat to
>> JRE_HOME
>> (as required by Tomcat in order to run with only the JRE), and even added
>> --JavaHome to be %JRE_HOME%. 
>>   
>> I haven't seen any problems with the changes I did: the service was
>> installed successfully, everything seems to run OK. But I don't know if
>> there might be problems with what I did. 
>>   
>> There is a line in the service.bat: set
>> PR_JVM=%JAVA_HOME%\jre\bin\server\jvm.dll I changed it to be set
>> PR_JVM=%JRE_HOME%\bin\server\jvm.dll. 
>>   
>> I don't know if I use --JavaHome %JRE_HOME% - then what is the value of
>> %JAVA_HOME%\jre\bin\server\jvm.dll ? I don't have such a folder... Does
>> tomcat6.exe uses JAVA_HOME? Can it leave with JRE_HOME? Will my changes
>> work? 
>>   
>> Thanks.
>>   
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tomcat-Service-tp22270969p22274536.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: instance has been stopped. could not loadoracle.toplink.essentials...

2009-03-01 Thread Caldarale, Charles R
> From: news [mailto:n...@ger.gmane.org] On Behalf Of Thufir
> Subject: instance has been stopped. could not
> loadoracle.toplink.essentials...

> I can't quite predict with certainty when this error
> will occur:

And we can't predict what Tomcat version you're running on.  You might be a 
mentat, but the rest of us aren't.

>  86899  Feb 28, 2009 10:05:50 PM
> org.apache.catalina.loader.WebappClassLoader loadClass
>  86900  INFO: Illegal access: this web application instance has been
> stopped already.

It looks like the webapp was already on the way down when the above message 
(note that it's INFO, not ERROR) was displayed.  You may have run into the 
problem of your logging environment trying to reinitialize itself when it 
shouldn't.  You can try setting the system property:

org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES

to false, but that may end up with a webapp that can't be reloaded.  Doc is 
here:
http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html#Other

(Mixing anything from Oracle with MSSQL?  That's gutsy.)

 - Chuck


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

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat Service

2009-03-01 Thread Caldarale, Charles R
> From: motit [mailto:moti@expand.com]
> Subject: Tomcat Service
>
> According to Tomcat bin/service.bat file, the environment
> variable JAVA_HOME needs to be existed, otherwise the
> service is not installed.

Looks like the text in the script was not updated; read the Tomcat doc first:
http://tomcat.apache.org/tomcat-6.0-doc/setup.html

This states, in part:

"The installer will use the registry or the JAVA_HOME environment variable to 
determine the base path of a J2SE 5 JRE."

As long as your JRE was installed properly and is specified in the registry, 
you don't need either JAVA_HOME or JRE_HOME to install the service - the script 
will find it automatically.

 - Chuck


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

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: help again... what means these errors?

2009-03-01 Thread André Warnier

Laura Bartolomé wrote:

Hi again...

We are going on findind errors and problems... and we wanna cry...


We certainly would not want that to happen, because then your messages 
here would get all mushy and more difficult to read.

And Tomcat would probably not care.


someone could explain what means these errors? The first:

01-Mar-2009 00:08:46 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet HumanReadableLinksServlet threw
exception
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)

The above rather self-explanatory message (Connection reset by peer: 
socket write error) typically means what it says : the client (browser 
?) "went away" before the server could send a response to it.  That 
usually means :

either
a) the user clicked the "stop" or "cancel" button in the browser, before 
he received the answer to his request

or
b) the impatient user clicked on another link on the current page, 
causing the browser to interrupt the current connection to the server 
and load the new page, before the server could send the response to the 
previous request


The above 2 reasons probably cover at least 90% of the cases. It could 
be due to the application being so slow to answer, that the human user 
gets impatient and starts clicking all over.


c) some communication problem occurred between the client and the 
server, causing the TCP connection to be closed prematurely.
From personal experience, that may be due to some proxy or other 
in-between element, closing the connection because nothing happened on 
that connection for some time.


Anyway, with 100% certainty, it means that when the server was ready to 
send the answer to the client, it could not, because the connection with 
the client had been closed for some reason.





and the other:

01-Mar-2009 11:36:21 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet HumanReadableLinksServlet threw
exception
org.hibernate.TransactionException: Transaction not successfully started
at


I am no specialist, but according to the above message, that seems to be 
something in the "hibernate" application, not something coming from 
Tomcat itself.  So you probably should ask in some "hibernate" forum 
what it means.




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat Service

2009-03-01 Thread Caldarale, Charles R
> From: supareno [mailto:reno.rkc...@free.fr]
> Subject: Re: Tomcat Service
>
> will it possible to tomcat to compile jsps without a jdk?

Tomcat does not need a JDK to compile JSPs (and it's been that way a long time).

 - Chuck


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

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat Service

2009-03-01 Thread supareno

motit,

will it possible to tomcat to compile jsps without a jdk?
tomcat and a jre has ever been discussed here:

http://www.mail-archive.com/users@tomcat.apache.org/msg50300.html

hope this help

supareno
Hi, 
  
According to Tomcat bin/service.bat file, the environment variable JAVA_HOME
needs to be existed, otherwise the service is not installed. 
  
The problem is that I want to use only the JAVA JRE installation (1.6.0,

update 12) on that machine. I manually add the bin/server folder to that JRE
(it comes only with the Client folder :-( ( As known, Tomcat required only
the JRE). 
  
I tried to change all the JAVA_HOME references in the server.bat to JRE_HOME

(as required by Tomcat in order to run with only the JRE), and even added
--JavaHome to be %JRE_HOME%. 
  
I haven't seen any problems with the changes I did: the service was

installed successfully, everything seems to run OK. But I don't know if
there might be problems with what I did. 
  
There is a line in the service.bat: set

PR_JVM=%JAVA_HOME%\jre\bin\server\jvm.dll I changed it to be set
PR_JVM=%JRE_HOME%\bin\server\jvm.dll. 
  
I don't know if I use --JavaHome %JRE_HOME% - then what is the value of

%JAVA_HOME%\jre\bin\server\jvm.dll ? I don't have such a folder... Does
tomcat6.exe uses JAVA_HOME? Can it leave with JRE_HOME? Will my changes
work? 
  
Thanks.
  



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Can't use J2EE libraries in Eclipse

2009-03-01 Thread supareno

Mighty,

you need to add to your classpath project the servlet.api to compile 
servlet

/lib/servlet-api.api
(right click on the projet -> build path/configure build path choose 
librairy/ add external jar)


in glassfish v2, it is in /lib/javaee.jar

now with javaee5, i'm not sure that is possible to download the ee sdk 
separeted from glassfish

it was possible with j2ee 1.4

hope this help

supareno

Hi,
I am working on Mac OS X.
I have the latest version of Tomcat, and Eclipse Europa.

Mac OS X did not come with J2EE.

I downloaded J2EE with GlassFish from Sun. Set it up by running the setup
shell script. Unfortunately the directory structure is very different now, I
am guessing the J2EE is inside GlassFish somewhere. I need to set it up in
Eclipse to be able to compile Servlets and the like. and I cannot find the
right Jars.

1. Could somebody point me to where the jars are now within GlassFish so I
can add them to Eclipse?
2. Is there a way to install J2EE without this GlassFish stuff, just
alongside the J2SE?

Thank you.

  



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Can't use J2EE libraries in Eclipse

2009-03-01 Thread Pid
Mighty Tornado wrote:
> Hi,
> I am working on Mac OS X.
> I have the latest version of Tomcat, and Eclipse Europa.
> 
> Mac OS X did not come with J2EE.

Why do you need J2EE?
If you're just making a JSP/Servlet application you don't need it.


p



> I downloaded J2EE with GlassFish from Sun. Set it up by running the setup
> shell script. Unfortunately the directory structure is very different now, I
> am guessing the J2EE is inside GlassFish somewhere. I need to set it up in
> Eclipse to be able to compile Servlets and the like. and I cannot find the
> right Jars.
> 
> 1. Could somebody point me to where the jars are now within GlassFish so I
> can add them to Eclipse?
> 2. Is there a way to install J2EE without this GlassFish stuff, just
> alongside the J2SE?
> 
> Thank you.
> 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Can't use J2EE libraries in Eclipse

2009-03-01 Thread Mighty Tornado
Hi,
I am working on Mac OS X.
I have the latest version of Tomcat, and Eclipse Europa.

Mac OS X did not come with J2EE.

I downloaded J2EE with GlassFish from Sun. Set it up by running the setup
shell script. Unfortunately the directory structure is very different now, I
am guessing the J2EE is inside GlassFish somewhere. I need to set it up in
Eclipse to be able to compile Servlets and the like. and I cannot find the
right Jars.

1. Could somebody point me to where the jars are now within GlassFish so I
can add them to Eclipse?
2. Is there a way to install J2EE without this GlassFish stuff, just
alongside the J2SE?

Thank you.


help again... what means these errors?

2009-03-01 Thread Laura Bartolomé
Hi again...

We are going on findind errors and problems... and we wanna cry...
someone could explain what means these errors? The first:

01-Mar-2009 00:08:46 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet HumanReadableLinksServlet threw
exception
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
at
org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:740)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349)
at
org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:764)
at
org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:118)
at
org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:573)
at org.apache.coyote.Response.doWrite(Response.java:560)
at
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:353)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:354)
at
org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:381)
at
org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:370)
at
org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89)
at
org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1708)
at
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:809)
at
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:325)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at
se.flera.servlet.HumanReadableLinksServlet.doGet(HumanReadableLinksServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
se.flera.servlet.LinkCallbackFilter.doFilter(LinkCallbackFilter.java:47)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.theotherus.persistance.HibernateOpenSessionInView.doFilter(HibernateOpenSessionInView.java:35)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:188)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
se.purpur.roach.web.locale.LocaleFilter.doFilter(LocaleFilter.java:54)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)

and the other:

01-Mar-2009 11:

Re: not using the port number in the address???

2009-03-01 Thread Ben Stringer
Also, if you have an existing app listening on port 80, and you only
have one IP address to use, you can use Apache httpd name-based virtual
hosts to allow two entirely different apps to both be served from the
same IP:port combination.

For each virtual host, either use mod_jk, or the proxying that Anurag
describes below.

Details for configuring virtual hosts in httpd (v2.2) are here:

http://httpd.apache.org/docs/2.2/vhosts/

Cheers, Ben

On Wed, 2009-02-25 at 20:13 +, Anurag Kapur wrote:
> You can use Apache HTTP server and use mod_proxy_http or mod_proxy_ajp
> modules to forward all requests on port 80 on apache to port 8080 on tomcat.
> 
> Specifically use the ProxyPass directive to achieve what you want. Example:
> 
> ProxyPass/   http://localhost:8080/your-app/
> 
> The above directive would forward all requests on the root context on port
> 80 to be proxied to your-app under tomcat on port 8080.
> 
> Read about it in detail here:
> http://httpd.apache.org/docs/2.0/mod/mod_proxy.html
> 
> Cheers
> Anurag
> 
> --
> Anurag Kapur
> Associate - Technology,
> Sapient Corporation India.
> 
> http://www.linkedin.com/in/anuragkapur
> --
> 
> 
> On Wed, Feb 25, 2009 at 2:10 PM, nicumarius  wrote:
> 
> >
> > what should I do to not use port number when writting the address of a page
> > on the Apache server?
> > --
> > View this message in context:
> > http://www.nabble.com/not-using-the-port-number-in-the-addresstp22203518p22203518.html
> > Sent from the Tomcat - User mailing list archive at Nabble.com.
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> >
> >


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat Service

2009-03-01 Thread motit

Hi, 
  
According to Tomcat bin/service.bat file, the environment variable JAVA_HOME
needs to be existed, otherwise the service is not installed. 
  
The problem is that I want to use only the JAVA JRE installation (1.6.0,
update 12) on that machine. I manually add the bin/server folder to that JRE
(it comes only with the Client folder :-( ( As known, Tomcat required only
the JRE). 
  
I tried to change all the JAVA_HOME references in the server.bat to JRE_HOME
(as required by Tomcat in order to run with only the JRE), and even added
--JavaHome to be %JRE_HOME%. 
  
I haven't seen any problems with the changes I did: the service was
installed successfully, everything seems to run OK. But I don't know if
there might be problems with what I did. 
  
There is a line in the service.bat: set
PR_JVM=%JAVA_HOME%\jre\bin\server\jvm.dll I changed it to be set
PR_JVM=%JRE_HOME%\bin\server\jvm.dll. 
  
I don't know if I use --JavaHome %JRE_HOME% - then what is the value of
%JAVA_HOME%\jre\bin\server\jvm.dll ? I don't have such a folder... Does
tomcat6.exe uses JAVA_HOME? Can it leave with JRE_HOME? Will my changes
work? 
  
Thanks.
-- 
View this message in context: 
http://www.nabble.com/Tomcat-Service-tp22270969p22270969.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org