Hi,
Just one last update.
Nothing changed related to DNS or firewall rules.
Tomcat does not work via localhost either.
Kind regards and thank you all for the feedback.
Piet
On Mon, Aug 17, 2009 at 5:39 PM, David Smith wrote:
> Hmmm ... maybe retour.mycompany.com isn't resolving to the IP you
I have Tomcat 5.5.27 running on Red Hat Enterprise Linux 2.6.9.-87
I have a webapp which seems to work fine for servlets that I have deployed.
I have a kind of Application Admin Console which I am developing and from
one of my plain html pages I want users to be able to click on a link which
w
Hi Chuck,
> The Tomcat manager app is the easiest way.
Perhaps, but that was beyond what a newbie meager brain could comprehend.
> When I delete the webapps/sample/WEB-INF/classes/mypackage/Hello.class
> file and restart Tomcat, any attempt to reference the servlet example
> fails with a 404 (as
Hi Chuck,
Thanks for your note, I think I understand.
I preface the remark below once again, with "being a newbie":
I hadn't gotten around to read everything I should have, but
I was getting confused by the fact that a class file was in
$CATALINA_HOME/webapps/sample/WEB-INF/classes directory and
> From: Gagan Malik [mailto:gaganma...@dev.java.net]
> Subject: how to host webapp via https
>
> How can I host this via https?
Besides reading Tomcat's SSL doc, you also need to read the security section of
the servlet spec. Any areas of the webapp that you want protected by HTTPS
need to hav
> From: Daniele Development-ML [mailto:daniele@googlemail.com]
> Subject: Re: (newbie question) missing classs file?
>
> I doubt that the JVM maintains in memory all the classes,
> all the times
Once referenced, a servlet, listener, filter, valve, or realm class will remain
loaded until the
> From: Tena Sakai [mailto:tsa...@gallo.ucsf.edu]
> Subject: RE: (newbie question) missing classs file?
>
> That aside, can you tell me how I can clear what's in the heap?
You can't, other than by restarting the JVM. As long as there's a reference to
an object, it will stay in the heap. You ca
> From: Tena Sakai [mailto:tsa...@gallo.ucsf.edu]
> Subject: RE: (newbie question) missing classs file?
>
> > you'd have to reload the webapp to make the change show.
>
> Would you mind telling me how I would do that?
The Tomcat manager app is the easiest way.
> I just restarted tomcat and hit
> From: Tena Sakai [mailto:tsa...@gallo.ucsf.edu]
> Subject: RE: (newbie question) missing classs file?
>
> Being a newbie, I had no idea such "deep secret" existed.
It's not a deep secret. Look at the JSP doc:
http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html
and at conf/web.xml for th
Hi Chunk,
Sorry about it.
I meant the project dir created /webapps/sg#server#test/ instead of
/webapps/sg/server/test/
Anyways, I got the issues resolved by specifying context elements under
server.xml and turned off startupDeploy to prevent double deployment.
That is the best way out for me fo
> From: Andy Ee [mailto:and...@sysatwork.com]
> Subject: RE: Multi-Level Context Paths
>
> My sg#server#test.xml deployed the sg#server#test.war file and
> created the project dir as /webapps/sg#server#test/ instead of
> /webapps/sg#server#test/
I know my eyes are getting old, but those sure loo
Hi Martin,
My sg#server#test.xml deployed the sg#server#test.war file and created the
project dir as /webapps/sg#server#test/ instead of /webapps/sg#server#test/
Under /webapps/sg#server#test/WEB-INF/decorators.xml
/resources/*
/registration_demo.html
did you check both of these files exist?
/usr/local/apache-tomcat/webapps/sg/WEB-INF/sitemesh.xml/usr/local/apache-tomcat/webapps/sg/WEB-INF/decorators.xml
if so please display contents of
/usr/local/apache-tomcat/webapps/sg/WEB-INF/decorators.xml
thanks,
Martin Gainty
__
Hi Martin,
Under WEB-INF/sitemesh.xml:
Best Regards,
Andy Ee
-Original Message-
From: Martin Gainty [mailto:mgai...@hotmail.com]
Sent: Wednesday, August 19, 2009 5:20 AM
To: Tomcat Users List
>
> Hi,
>
> I'm hosting a webapp on tomcat5 via http. I've simply copied the .war file
> to the webapps folder. How can I host this via https?
>
> I'm running tomcat5 on RHEL..
Hi Gagan,
Have you read the SSL documentation? This is the best place to start.
http://tomcat.apache.org/tomcat-5.5-doc
Daniele Development-ML wrote:
Hi all,
I'm trying to increase the sizes of the heap and of the max perm by passing
the options with the values (in catalina.sh)
JAVA_OPTS="$JAVA_OPTS -Xmx=100m -XX:MaxPermSize=350m -Dfile.encoding=UTF-8"
Try without the "=" signs ? -Xmx100m
Ognjen Blagojevic wrote:
Log file looks ok.
It is dirty with duplicate listeners errors. Can you try to solve that
first?
Doesn't it also show that port 8080 is already in use by something else,
and it cannot start because of that ?
(or is that a byproduct of the other error ?)
---
Gagan Malik wrote:
this is exactly the problem.. how do I generate a private/public key pair for
the user 'tomcat'..
A bit guessing here..
Your problem may be due to the fact that you cannot login as user
"tomcat" to create its keys, because the user "tomcat" is disabled (not
allowed to login
Hi,
I'm hosting a webapp on tomcat5 via http. I've simply copied the .war file
to the webapps folder. How can I host this via https?
I'm running tomcat5 on RHEL..
--
View this message in context:
http://www.nabble.com/how-to-host-webapp-via-https-tp25034284p25034284.html
Sent from the Tomcat -
Gwen Way wrote:
> java.lang.IllegalStateException: Cannot create a session after the
> response has been committed
Seems pretty clear.
Creating a session requires setting some headers (to send the session
cookie to the client). You can't do that after the response has been
committed (usually aft
Andy
can you display contents of WEB-INF/sitemesh.xml
thanks,
Martin Gainty
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger
sein, so bitten wir
Andy Ee wrote:
> Hi Mark,
>
> Thank you and I will try disabling both the autoDeploy and deployOnStartup.
>
> I actually created sg#server#test.xml under Catalina/localhost/ and points
> docBase="/usr/local/apache-tomcat/sg#server#test.war". After I started up
> Tomcat, it deployed the war file a
Yeeeha! That is it!
Thank you, Martin Gainty.
Being a newbie, I had no idea such "deep secret" existed.
Since the distribution contained a directory:
$CATALINA_HOME/webapps/sample/WEB-INF/classes
with a class file, I was completely blinded to look elsewhere.
Regards,
Tena Sakai
tsa...@gallo.
the system actually gave you the answer:
Invalid maximum heap size: -Xmx=100m
Could not create the Java virtual machine.
If you are going to give the PermSpace 350M, you must have a lot of
memory, so giving half gb for heap won't heart:
JAVA_OPTS="$JAVA_OPTS -Xmx=512m -XX:MaxPermSize=350m -Dfile.e
did you look at
$TOMCAT_HOME/work/Catalina/localhost/WEBAPPNAME/org/apache/jsp/
JSPNAME_jsp.java
JSPNAME_jsp.class
Martin Gainty
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Si
Hi David,
> you'd have to reload the webapp to make the change show.
Would you mind telling me how I would do that?
I just restarted tomcat and hit the same pages.
No changes. I mean it shows double "Hello!" and
I see no class file generated anywhere under
$CATALINA_HOME/webapps/sample director
I believe once a servlet is initialized in memory, it stays in and is
re-used over and over. After removing the class, you'd have to reload
the webapp to make the change show.
--David
Daniele Development-ML wrote:
> Consider also that once the application is loaded is memory, even if you
> cance
Hi Dan,
> Consider also that once the application is loaded is memory, even if you
> cancel the classes, the application still works.
> I doubt that the JVM maintains in memory all the classes, all the times, but
> if your current usage of the heap is not ridiculous big, probably your class
> rema
this didn't help..
Abhinav Shah wrote:
>
> vi /etc/ssh/sshd_config
> AllowUsers tomcat
>
> Restart sshd service.
>
>
>
> Gagan Malik wrote:
>>
>> this is exactly the problem.. how do I generate a private/public key pair
>> for the user 'tomcat'..
>>
>>
>> Abhinav Shah wrote:
>>>
>>> Why
Thanks.. although just creation of the .ssh directory didn't help much, I
copied the contents of the .shh of the current user to
/usr/share/tomcat5/.ssh and it worked.
Although its not the ideal solution, but works well..
Leandro Dardini-3 wrote:
>
> You can easily solve this problem with the
2009/8/18 R.Sriram
> I am trying to find out from Network Solution what JDK version they are using
> to compile. All they are telling me is they use JServ 1.1.2 and JDK
> compatible to that. Do you know what version of JDK that would map to.
No, as there are several possibilities. By the way,
Consider also that once the application is loaded is memory, even if you
cancel the classes, the application still works.
I doubt that the JVM maintains in memory all the classes, all the times, but
if your current usage of the heap is not ridiculous big, probably your class
remains loaded.
Dan
O
Hi,
I am using Tomcat 5.5.27 and java 1.5 on an old redhat Linux machine.
I have a UserDatabase Resource and a UserDatabaseRealm set up in
server.xml and logins are working as expected. I exposed my Resource
under name="UserDatabase". In my webapp code I tried invoking an
operation using an
Hi Dan,
> Are you reloading the pages from the server with the shift key?
> The pages might be locally cached from your browser.
Shift or no shift, it makes no difference.
I told my browser to dump the cache then hit pages again.
No difference.
I doubt this is a cache issue. If that's the case,
Are you reloading the pages from the server with the shift key?
The pages might be locally cached from your browser.
Dan
On Tue, Aug 18, 2009 at 7:48 PM, Tena Sakai wrote:
> Hi,
>
> I am new to tomcat and jsp. I appologize in advance my lack of knowledge,
> but I would appreciate some poninte
Hi,
I am new to tomcat and jsp. I appologize in advance my lack of knowledge,
but I would appreciate some poninters.
I am running tomcat 6.0.14 on redhat linux.
After reading a few pages of documentation, I tried:
http://localhost:8080/sample
It rendered what's in $CATALINA_HOME/webapps/sampl
Hi all,
I'm trying to increase the sizes of the heap and of the max perm by passing
the options with the values (in catalina.sh)
JAVA_OPTS="$JAVA_OPTS -Xmx=100m -XX:MaxPermSize=350m -Dfile.encoding=UTF-8"
but the VM cannot be created and from the catalina.out file I get this
printout:
Invalid m
Hello list.
I am working in a Win2003/CentOS 5.3 environment and have run into a
Java error today that has me baffled. It is the first time that anyone
here has seen this particular error. It appears to be insinuating that
a connection is being lost and then something is trying to close it
ag
Hello everybody,
I'm trying to set up a SSL transport layer, but I'm coming up against some
difficulties.
Specifically, I followed all the steps requires and specified as in the
Tomcat guide - adding some suggestions I found around on several web site
for the installation of APR libraries - but s
Hi Mark,
Thank you and I will try disabling both the autoDeploy and deployOnStartup.
I actually created sg#server#test.xml under Catalina/localhost/ and points
docBase="/usr/local/apache-tomcat/sg#server#test.war". After I started up
Tomcat, it deployed the war file and created sg#server#test fol
Hello -
We did this actually. But I can't be sure we did it correctly. We
created a new key using the IP address as the host, and replaced the
"a1as" aliased key in Glassfish. We loaded that certificate into the
client. But we got the same error.
I did not look at the certificate to see if al
Thanks Peter.
I am trying to find out from Network Solution what JDK version they are
using to compile. All they are telling me is they use JServ 1.1.2 and
JDK compatible to that. Do you know what version of JDK that would map to.
Also, it wouldnt matter if they are using Tomcat as the servlet
Andy Ee wrote:
> I would appreciate if anybody can tell if he/she has successfully deployed
> with multi-level context path.
Yep. Works like a charm in 6.0.18 and 6.0.20.
> I tried having the context element (given below) inside server.xml and the
> multi-level context path works!
>
> crossCont
Dear all,
I reported having problem deploying my war file with multi-level context
path on Tomcat 6.0.20. Beside the sitemesh issue, is it possible that the
problem be due to JDK 1.5 or Java 5, that has issue understanding the symbol
'#' in war filename.
Ref: https://issues.apache.org/bugzilla/sh
BJ Selman wrote:
> First of all, is there a specific extension required for SSL certificates on
> an Apache/Tomcat server? i.e. Does it have to be a "crt" or a "cert" or ?
> Seems like I read that it needs to be "PEM-encoded" - that's about all I
> could find.
>
> Also, my error log is showin
> From: Leon Rosenberg [mailto:rosenberg.l...@googlemail.com]
> Subject: Re: tomcat server hacked
>
> Have you run your tomcat as root and what is your
> kernel version?
According to the first post, Tomcat runs via jsvc with the userid Tomcat.
> If you don't run your tomcat as root and have a mo
> From: BJ Selman [mailto:bjsel...@travelhost.com]
> Subject: RE: tomcat server hacked
>
> What does your tomcat-users.xml look like? (sans the p/w of course)
Note that using the toy tomcat-users.xml for authentication is inappropriate
for a secure environment.
- Chuck
THIS COMMUNICATION M
Nick Knol wrote:
> First post, sorry if I'm breaking protocol. I could really use help
> tightening up security with the tomcat web server I'm running. A hacker got
> in and trashed a bunch of files and I'm scared to death it will happen
> again. I've been setting up a tomcat web server with th
First of all, is there a specific extension required for SSL certificates on an
Apache/Tomcat server? i.e. Does it have to be a "crt" or a "cert" or ? Seems
like I read that it needs to be "PEM-encoded" - that's about all I could find.
Also, my error log is showing the below... Where should I
What does your tomcat-users.xml look like? (sans the p/w of course)
-Original Message-
From: Nick Knol [mailto:nickk...@gmail.com]
Sent: Tuesday, August 18, 2009 8:45 AM
To: users@tomcat.apache.org
Subject: tomcat server hacked
First post, sorry if I'm breaking protocol. I could really
Log file looks ok.
It is dirty with duplicate listeners errors. Can you try to solve that
first?
Regards,
Ognjen
Mohamed Shah wrote:
Aug 18, 2009 4:44:44 AM org.apache.catalina.core.StandardContext
addApplicationListener
INFO: The listener
"com.liferay.portal.spring.context.PortalContextLo
just a quick shot. Have you run your tomcat as root and what is your
kernel version?
If you don't run your tomcat as root and have a more or less uptodate
kernel without local root exploits, its highly unprobable that
you got hacked via tomcat.
Do you have anything that proves it anyway? :-)
bes
Hello Nick,
probably someone of the tomcat developers will comment this related to
tomcat but
-/etc/ssh/ssh_host_key.pub file was modified (one key added, another
deleted)
This is owned by root and only root have access to modify it.
Are you sure your root account is compromised?
Best rega
Hi,
Actually I posted this on Friday. So only I used private. This is my log
Aug 18, 2009 4:44:34 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the java.library.p
Hi Mohamed,
Please, use mailing list, not private mail. Others might be interested too.
Could you post the content of the logs?
Regards,
Ognjen
Mohamed Shah wrote:
I use win xp sp 2. In Logs I can find only very small info. Not the full stack
trace.
thanks
-Original Message-
From
First post, sorry if I'm breaking protocol. I could really use help
tightening up security with the tomcat web server I'm running. A hacker got
in and trashed a bunch of files and I'm scared to death it will happen
again. I've been setting up a tomcat web server with the native apr
library on a
Dean Chester wrote:
> Hi
> I have this so far yet I am confused about where it goes.
The element should be placed inside a element. The
usual place for a element is inside a file called context.xml
placed in the META-INF directory in your WAR.
Mark
-
Hi
I am wondering if someone can help me with my persisting sessions problem. I
have this so far yet i am confused about where it goes, ive also created the
table in the database:
Thanks in Advance
Dean
vi /etc/ssh/sshd_config
AllowUsers tomcat
Restart sshd service.
Gagan Malik wrote:
>
> this is exactly the problem.. how do I generate a private/public key pair
> for the user 'tomcat'..
>
>
> Abhinav Shah wrote:
>>
>> Why don't you add the tomcat user to the ssh list of users..
>>
>> Gag
Mohamed Shah wrote:
Sorry If this is not interesting. I couldn't find all of the console contents
in log files. If not available in log files can I manage the console to read
the full contents somehow?. FYI I use old tomcat bundled with liferay
tomcat(5.0) and I cannot upgrade due to some tea
javier.rivas wrote:
> Hi,
>
> I have a few applications that share the same server.xml and all of them
> start tomcat, but some use only a few webapps.
>
> I want to reduce the startup time for these applications that only use a
> couple of webapps, so I was wondering if there is any way to set a
Hi,
I have a few applications that share the same server.xml and all of them
start tomcat, but some use only a few webapps.
I want to reduce the startup time for these applications that only use a
couple of webapps, so I was wondering if there is any way to set a flag to
tell tomcat not to start
This can be quite informative.
jstat -gc 5s
Ronald.
Op maandag, 17 augustus 2009 17:02 schreef hruesga :
Listers:
We are trying to enable the garbage collector log for jvm to see what
happens with our leak memory issue, i've already try to export CATALINA_OPTS
variable but i'm not able to
2009/8/18 Ognjen Blagojevic
> R.Sriram wrote:
>>
>> I am trying to host my servlet based solution in Network Solutions shared
>> hosting service.
>> In order test if I can use it, I downloaded Hello.java from their
>> environment and compiled in my environment as MyHello.class.
>> I tested their
R.Sriram wrote:
I am trying to host my servlet based solution in Network Solutions
shared hosting service.
In order test if I can use it, I downloaded Hello.java from their
environment and compiled in my environment as MyHello.class.
I tested their Hello.class (Hello.class compiled in their envi
Thanks, Ognjen. It works like a charm now!
As you said, with the new parameter (current time, in the case that I used)
it forces the client to reload the xml file. And this updates the graph as
well.
Regards,
Epithemeus
Ognjen Blagojevic-3 wrote:
>
> Epithemeus wrote:
>> What is happening i
Epithemeus wrote:
What is happening in practice is that: the xml file is indeed updated but
the graph being displayed is an older version (corresponding to the older
.xml file which has now been over-written). I gather that this means tomcat
is caching the xml files.
I have tried including "cach
Andy Ee wrote:
Other 2 questions:
1) Can I exclude the META-INF/context.xml file in the war file? This
context.xml that will be copied to conf/Catalina/localhost after deployment,
so that I can be sure this is not the problem to the setup of multi-level
context path?
Yes, you can.
2) When we
68 matches
Mail list logo