Tomcat only shows blank pages

2006-06-14 Thread Fredrik Andersson
Hi all

I´m trying ot set up an RHEL 4.3 server station with Apache ontop of
Tomcat using the mod_jk connector.

When Apache forwards pages to Tomcat all I get is empty white pages. I
have no idea what is up with that and no clue on how to solve it.

Any help on this would be great. Thanks =)

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



Re: Tomcat only shows blank pages

2006-06-14 Thread Fredrik Andersson
Versions:
tomcat 5.5.17
apache 2.0.52-22 (RHEL 4 binary)
mod_jk 1.2.15
log4j 1.2.13
commons-logging 1.1

Logs from latest run:

catalina.out
Jun 14, 2006 10:09:27 AM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Jun 14, 2006 10:09:27 AM org.apache.coyote.http11.Http11BaseProtocol
destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Jun 14, 2006 10:09:27 AM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime

tomcat.log
14 Jun 2006 11:34:46,892 - ERROR org.apache.catalina.connector.Connector
- Protocol handler pause failed
java.net.SocketException: Network is unreachable
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at java.net.Socket.(Socket.java:365)
at java.net.Socket.(Socket.java:207)
at
org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:473)
at
org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:270)
at org.apache.jk.server.JkMain.pause(JkMain.java:679)
at
org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:162)
at
org.apache.catalina.connector.Connector.pause(Connector.java:1031)
at
org.apache.catalina.core.StandardService.stop(StandardService.java:491)
at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:743)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:601)
at
org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:644)

mod_jk log:
[Wed Jun 14 13:10:28 2006][error] init_jk::mod_jk.c (2370): Initializing
shm:/etc/httpd/logs/jk-runtime-status errno=13
[Wed Jun 14 13:10:28 2006][error] init_jk::mod_jk.c (2370): Initializing
shm:/etc/httpd/logs/jk-runtime-status errno=13
[Wed Jun 14 13:10:28 2006][error] jk_child_init::mod_jk.c (2326):
Attachning shm:/etc/httpd/logs/jk-runtime-status errno=13
[Wed Jun 14 13:10:28 2006][error] jk_child_init::mod_jk.c (2326):
Attachning shm:/etc/httpd/logs/jk-runtime-status errno=13
[Wed Jun 14 13:10:28 2006][error] jk_child_init::mod_jk.c (2326):
Attachning shm:/etc/httpd/logs/jk-runtime-status errno=13
[Wed Jun 14 13:10:28 2006][error] jk_child_init::mod_jk.c (2326):
Attachning shm:/etc/httpd/logs/jk-runtime-status errno=13
[Wed Jun 14 13:10:28 2006][error] jk_child_init::mod_jk.c (2326):
Attachning shm:/etc/httpd/logs/jk-runtime-status errno=13
[Wed Jun 14 13:10:28 2006][error] jk_child_init::mod_jk.c (2326):
Attachning shm:/etc/httpd/logs/jk-runtime-status errno=13
[Wed Jun 14 13:10:28 2006][error] jk_child_init::mod_jk.c (2326):
Attachning shm:/etc/httpd/logs/jk-runtime-status errno=13
[Wed Jun 14 13:10:28 2006][error] jk_child_init::mod_jk.c (2326):
Attachning shm:/etc/httpd/logs/jk-runtime-status errno=13

I followed this tutorial pretty much,
http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html

Appreciates the help



Den 6/14/2006, skrev "Mark Thomas" <[EMAIL PROTECTED]>:

>Fredrik Andersson wrote:
>> Hi all
>>
>> I´m trying ot set up an RHEL 4.3 server station with Apache ontop of
>> Tomcat using the mod_jk connector.
>>
>> When Apache forwards pages to Tomcat all I get is empty white pages. I
>> have no idea what is up with that and no clue on how to solve it.
>>
>> Any help on this would be great. Thanks =)
>
>Versions? Logs messages?
>
>Mark
>
>-
>To start a new topic, e-mail: users@tomcat.apache.org
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

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



Fwd: Re: Tomcat only shows blank pages

2006-06-14 Thread Fredrik Andersson
A quick question on the topic, Is J2ee 5.0 SDK good to run togheter with
these version of tomcat and apache? Forgott to mention that I had that
version of java (5.0_017).

To me it seems like it is either a problem with the mod_jk module (but it
does forward me to an Appache Tomcat page when the file is not fund) or
some problems with Java (I did get jsp files to show up and then
rebooted my system and now I only get blank pages)

Thanks for youre help

--- Ursprungligt meddelande ---
Datum: 6/14/2006
Från: "Fredrik Andersson" <[EMAIL PROTECTED]>
Ämne: Re: Tomcat only shows blank pages


Versions:
tomcat 5.5.17
apache 2.0.52-22 (RHEL 4 binary)
mod_jk 1.2.15
log4j 1.2.13
commons-logging 1.1

Logs from latest run:

catalina.out
Jun 14, 2006 10:09:27 AM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Jun 14, 2006 10:09:27 AM org.apache.coyote.http11.Http11BaseProtocol
destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Jun 14, 2006 10:09:27 AM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime

tomcat.log
14 Jun 2006 11:34:46,892 - ERROR org.apache.catalina.connector.Connector
- Protocol handler pause failed
java.net.SocketException: Network is unreachable
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at java.net.Socket.(Socket.java:365)
at java.net.Socket.(Socket.java:207)
at
org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:473)
at
org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:270)
at org.apache.jk.server.JkMain.pause(JkMain.java:679)
at
org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:162)
at
org.apache.catalina.connector.Connector.pause(Connector.java:1031)
at
org.apache.catalina.core.StandardService.stop(StandardService.java:491)
at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:743)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:601)
at
org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:644)

mod_jk log:
[Wed Jun 14 13:10:28 2006][error] init_jk::mod_jk.c (2370): Initializing
shm:/etc/httpd/logs/jk-runtime-status errno=13
[Wed Jun 14 13:10:28 2006][error] init_jk::mod_jk.c (2370): Initializing
shm:/etc/httpd/logs/jk-runtime-status errno=13
[Wed Jun 14 13:10:28 2006][error] jk_child_init::mod_jk.c (2326):
Attachning shm:/etc/httpd/logs/jk-runtime-status errno=13
[Wed Jun 14 13:10:28 2006][error] jk_child_init::mod_jk.c (2326):
Attachning shm:/etc/httpd/logs/jk-runtime-status errno=13
[Wed Jun 14 13:10:28 2006][error] jk_child_init::mod_jk.c (2326):
Attachning shm:/etc/httpd/logs/jk-runtime-status errno=13
[Wed Jun 14 13:10:28 2006][error] jk_child_init::mod_jk.c (2326):
Attachning shm:/etc/httpd/logs/jk-runtime-status errno=13
[Wed Jun 14 13:10:28 2006][error] jk_child_init::mod_jk.c (2326):
Attachning shm:/etc/httpd/logs/jk-runtime-status errno=13
[Wed Jun 14 13:10:28 2006][error] jk_child_init::mod_jk.c (2326):
Attachning shm:/etc/httpd/logs/jk-runtime-status errno=13
[Wed Jun 14 13:10:28 2006][error] jk_child_init::mod_jk.c (2326):
Attachning shm:/etc/httpd/logs/jk-runtime-status errno=13
[Wed Jun 14 13:10:28 2006][error] jk_child_init::mod_jk.c (2326):
Attachning shm:/etc/httpd/logs/jk-runtime-status errno=13

I followed this tutorial pretty much,
http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html

Appreciates the help



Den 6/14/2006, skrev "Mark Thomas" <[EMAIL PROTECTED]>:

>Fredrik Andersson wrote:
>> Hi all
>>
>> I´m trying ot set up an RHEL 4.3 server station with Apache ontop of
>> Tomcat using the mod_jk connector.
>>
>> When Apache forwards pages to Tomcat all I get is empty white pages. I
>> have no idea what is up with that and no clue on how to solve it.
>>
>> Any help on this would be great. Thanks =)
>
>Versions? Logs messages?
>
>Mark
>
>-
>To start a new topic, e-mail: users@tomcat.apache.org
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

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



Re: replace tomcat Status report

2006-06-14 Thread Fredrik Andersson
Hi there

I belive you should be able to edit you web.xml with info to overwrite
the default error pages. Never done it myself but it´s a hint. =)

Good luck

Den 6/14/2006, skrev "Dean Hiller" <[EMAIL PROTECTED]>:

>I guess I should add that my partner did add this stuff to our
>ROOT.war(we deleted the ROOT directory) but it doesn't seem to work...
>
>
>java.lang.Throwable
>/error.jspx
>
>
>500
>/error.jspx
>
>
>404
>/error.jspx
>
>
>thanks,
>dean
>
>Dean Hiller wrote:
>
>> I finally gave up in searching for this(and my partner is soon to give
>> up to) so I decided to ask here.
>>
>> When I go to http://localhost:8080/NoPage.jsf, tomcat tells me the
>> tomcat version and everything so I can google for tomcat hacks on that
>> version.  I would much prefer to hide the version number with my own
>> "Resource not found" page.  Is this possible?
>>
>> for exceptions my app runs into, I am just using a filter to redirect
>> to a page that doesn't show a tomcat version too.
>>
>> thanks for any info,
>> dean
>>
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>
>-
>To start a new topic, e-mail: users@tomcat.apache.org
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

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



Tomcat configuration error

2006-06-16 Thread Fredrik Andersson
Hi all

Ok so heres the deal. I want my tomcat installation (5.5.17) to load
pages from /var/www/webapps/R2M/SMC

I´m also running a virtual host setup so I edit my server.xml file and
point the appBase for the directory to /var/www/webapps and then I have
the context part of the configuration inside
$CATALINA_HOME/conf/appserve/R2M/SMC.xml in which I point the docBase
variabel to "R2M/SMC"

Now when I point my webbrowser to a jsp file in my directory I recieve a
404 error.. :(

What went wrong in my configuration?

Any tip/help is greatly appreciated.

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



Re: Tomcat configuration error

2006-06-16 Thread Fredrik Andersson
Hi, thanks for answering=)
I´m still a little confused so I will try to describe what kind of setup
I want and we will se if it becomes clearer.

I want my internet files to reside inside of
/var/www/webapps/R2M/SMC

Now I wan´t apache to forward all pages that are jsp (*.jsp) and all
servlets thats are mapped through ip/servlets/* to tomcat.

As it is right now I have HelloWorld.html and HelloWorld.jsp inside the
SMC folder and apache finds them both and the .jsp file gets forwarded
to tomcat (it says that tomcat can´t find the file). Now where is tomcat
looking for the files?

$CATALINA_HOME/conf/server.xml (engine part)
 





then I read that it was good to seperate the context part into a
different file for every host and I understood that they were supposed
to reside inside of $CATALINA_HOME/conf//.xml

So I have the file $CATALINA_HOME/appserve/R2M/SMC.xml and it holds


Did I set this up wrong?


Den 6/16/2006, skrev "Filip Hanik - Dev Lists" <[EMAIL PROTECTED]>:

>Fredrik Andersson wrote:
>> Hi all
>>
>> Ok so heres the deal. I want my tomcat installation (5.5.17) to load
>> pages from /var/www/webapps/R2M/SMC
>>
>> I´m also running a virtual host setup so I edit my server.xml file and
>> point the appBase for the directory to /var/www/webapps and then I have
>> the context part of the configuration inside
>> $CATALINA_HOME/conf/appserve/R2M/SMC.xml in which I point the docBase
>>
>ok, this path is $CATALINA_HOME//
>
>are you saying you renamed your engine element in server.xml to appserve?
>
>> variabel to "R2M/SMC"
>>
>this is a weird setup, by setting appBase to /var/www/webapps, tomcat
>would want webapps in that directory
>so you would have the app in /var/www/webapps/SMC
>and tomcat would auto deploy it
>
>> Now when I point my webbrowser to a jsp file in my directory I recieve a
>> 404 error.. :(
>>
>> What went wrong in my configuration?
>>
>> Any tip/help is greatly appreciated.
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>
>
>--
>
>
>Filip Hanik
>
>-
>To start a new topic, e-mail: users@tomcat.apache.org
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

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



Re: Tomcat configuration error

2006-06-16 Thread Fredrik Andersson
ok, and my R2M.xml configuration file should reside inside of
$CATALINA_HOME/appserver/R2M ? or did I missunderstand you on that part?
Will try it out, thanks a million. Really nice of you taking youre time
explaining this to me :)

Den 6/16/2006, skrev "Filip Hanik - Dev Lists" <[EMAIL PROTECTED]>:

>the more logical setup would be (assuming the SMC is a webapp)
>
>debug="0"
>defaultHost="R2M">
>
>appBase="/var/www/webapps/RM2"
>autoDeploy="false"
>deployOnStartup="false"
>unpackWARs="false"
>deployXML="true"
>debug="0"/>
>
>
>
>docBase="SMC"
>reloadable="true"
>debug="0"/>
>
>I changed three things
>1. Host.appBase
>2. Context.path
>3. Context.docBase
>
>Filip
>
>
>
>Fredrik Andersson wrote:
>> Hi, thanks for answering=)
>> I´m still a little confused so I will try to describe what kind of setup
>> I want and we will se if it becomes clearer.
>>
>> I want my internet files to reside inside of
>> /var/www/webapps/R2M/SMC
>>
>> Now I wan´t apache to forward all pages that are jsp (*.jsp) and all
>> servlets thats are mapped through ip/servlets/* to tomcat.
>>
>> As it is right now I have HelloWorld.html and HelloWorld.jsp inside the
>> SMC folder and apache finds them both and the .jsp file gets forwarded
>> to tomcat (it says that tomcat can´t find the file). Now where is tomcat
>> looking for the files?
>>
>> $CATALINA_HOME/conf/server.xml (engine part)
>>  > debug="0"
>> defaultHost="R2M">
>>
>> > appBase="/var/www/webapps/RM2"
>> autoDeploy="false"
>> deployOnStartup="false"
>> unpackWARs="false"
>> deployXML="true"
>> debug="0"/>
>>
>> 
>>
>> then I read that it was good to seperate the context part into a
>> different file for every host and I understood that they were supposed
>> to reside inside of $CATALINA_HOME/conf/> name>/.xml
>>
>> So I have the file $CATALINA_HOME/appserve/R2M/SMC.xml and it holds
>> > docBase="SMC"
>> reloadable="true"
>> debug="0"/>
>>
>> Did I set this up wrong?
>>
>>
>> Den 6/16/2006, skrev "Filip Hanik - Dev Lists" <[EMAIL PROTECTED]>:
>>
>>
>>> Fredrik Andersson wrote:
>>>
>>>> Hi all
>>>>
>>>> Ok so heres the deal. I want my tomcat installation (5.5.17) to load
>>>> pages from /var/www/webapps/R2M/SMC
>>>>
>>>> I´m also running a virtual host setup so I edit my server.xml file and
>>>> point the appBase for the directory to /var/www/webapps and then I have
>>>> the context part of the configuration inside
>>>> $CATALINA_HOME/conf/appserve/R2M/SMC.xml in which I point the docBase
>>>>
>>>>
>>> ok, this path is $CATALINA_HOME//
>>>
>>> are you saying you renamed your engine element in server.xml to appserve?
>>>
>>>
>>>> variabel to "R2M/SMC"
>>>>
>>>>
>>> this is a weird setup, by setting appBase to /var/www/webapps, tomcat
>>> would want webapps in that directory
>>> so you would have the app in /var/www/webapps/SMC
>>> and tomcat would auto deploy it
>>>
>>>
>>>> Now when I point my webbrowser to a jsp file in my directory I recieve a
>>>> 404 error.. :(
>>>>
>>>> What went wrong in my configuration?
>>>>
>>>> Any tip/help is greatly appreciated.
>>>>
>>>> -
>>>> To start a new topic, e-mail: users@tomcat.apache.org
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>>
>>>>
>>>>
>>> --
>>>
>>>
>>> Filip Hanik
>>>
>>> -
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>
>
>--
>
>
>Filip Hanik
>
>-
>To start a new topic, e-mail: users@tomcat.apache.org
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

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



Re: Tomcat configuration error

2006-06-16 Thread Fredrik Andersson
ok, the application I want to launch is SMC so where should I place the
SMC.xml file?

I´m really confused, not because I dont know what I want to do, but there
are tons of different sources telling me different things and none
works.. :(

I understand that I must be anoying and it´s really nice of you to help
me. =)

Den 6/16/2006, skrev "Filip Hanik - Dev Lists" <[EMAIL PROTECTED]>:

>R2M.xml? where did that come from? it should be SCM.xml, although the
>name isn't important.
>
>Your original setup was confusing, cause you have RM2/SCM (inside of
>webapps)
>so which one is the webapp, RM2 directory, or the SCM directory?
>
>They key to your problem though, is probably the 
>instead of 
>
>Filip
>
>
>Fredrik Andersson wrote:
>> ok, and my R2M.xml configuration file should reside inside of
>> $CATALINA_HOME/appserver/R2M ? or did I missunderstand you on that part?
>> Will try it out, thanks a million. Really nice of you taking youre time
>> explaining this to me :)
>>
>> Den 6/16/2006, skrev "Filip Hanik - Dev Lists" <[EMAIL PROTECTED]>:
>>
>>
>>> the more logical setup would be (assuming the SMC is a webapp)
>>>
>>> >>debug="0"
>>>defaultHost="R2M">
>>>
>>>>>appBase="/var/www/webapps/RM2"
>>>autoDeploy="false"
>>>deployOnStartup="false"
>>>unpackWARs="false"
>>>deployXML="true"
>>>debug="0"/>
>>>
>>>
>>>
>>> >>docBase="SMC"
>>>reloadable="true"
>>>debug="0"/>
>>>
>>> I changed three things
>>> 1. Host.appBase
>>> 2. Context.path
>>> 3. Context.docBase
>>>
>>> Filip
>>>
>>>
>>>
>>> Fredrik Andersson wrote:
>>>
>>>> Hi, thanks for answering=)
>>>> I´m still a little confused so I will try to describe what kind of setup
>>>> I want and we will se if it becomes clearer.
>>>>
>>>> I want my internet files to reside inside of
>>>> /var/www/webapps/R2M/SMC
>>>>
>>>> Now I wan´t apache to forward all pages that are jsp (*.jsp) and all
>>>> servlets thats are mapped through ip/servlets/* to tomcat.
>>>>
>>>> As it is right now I have HelloWorld.html and HelloWorld.jsp inside the
>>>> SMC folder and apache finds them both and the .jsp file gets forwarded
>>>> to tomcat (it says that tomcat can´t find the file). Now where is tomcat
>>>> looking for the files?
>>>>
>>>> $CATALINA_HOME/conf/server.xml (engine part)
>>>>  >>> debug="0"
>>>> defaultHost="R2M">
>>>>
>>>> >>> appBase="/var/www/webapps/RM2"
>>>>     autoDeploy="false"
>>>> deployOnStartup="false"
>>>> unpackWARs="false"
>>>> deployXML="true"
>>>> debug="0"/>
>>>>
>>>> 
>>>>
>>>> then I read that it was good to seperate the context part into a
>>>> different file for every host and I understood that they were supposed
>>>> to reside inside of $CATALINA_HOME/conf/>>> name>/.xml
>>>>
>>>> So I have the file $CATALINA_HOME/appserve/R2M/SMC.xml and it holds
>>>> >>> docBase="SMC"
>>>> reloadable="true"
>>>> debug="0"/>
>>>>
>>>> Did I set this up wrong?
>>>>
>>>>
>>>> Den 6/16/2006, skrev "Filip Hanik - Dev Lists" <[EMAIL PROTECTED]>:
>>>>
>>>>
>>>>
>>>>> Fredrik Andersson wrote:
>>>>>
>>>>>
>>>>>> Hi all
>>>>>>
>

Re: Tomcat configuration error

2006-06-17 Thread Fredrik Andersson
ok, thanks a bunch :)

Sadly I'm away over the weekend and can´t test the configuration just
yet. But as soon as I get back again I will try it and let you know how
it went :)

Den 6/16/2006, skrev "Filip Hanik - Dev Lists" <[EMAIL PROTECTED]>:

>no worries, lets start from the beginning, after that I will send you
>off to take a tomcat and/or servlet tutorial
>
>
>
>The appbase is where tomcat will autodeploy applications from, an
>application, or webapp is defined by two means
>1. A directory
>2. A war file
>
>So in your case, the directory SMC is your webapp, hence the path to the
>application would be:
>/var/www/webapps/SMC (with subdirectories and files like below)
>  - WEB-INF
>- web.xml
>  - index.jsp
>
>You have four choices to deploy this webapp
>
>1. put the SCM directory inside Host.appBase, ie, /var/www/webapps/SCM
>   The app will get deployed as /SCM
>
>2. put the SCM directory inside Host.appBase, ie, /var/www/webapps/SCM
>   and put SCM.xml inside TC_HOME/conf/appserver/RM2/
>   The app will get deployed twice, /SCM and /
>
>3. put the SCM directory inside Host.appBase, ie, /var/www/webapps/SCM
>   Create a file named context.xml ie
>/var/www/webapps/SCM/META-INF/context.xml
>   The app will get deployed once as "/", tomcat will automatically
>create SCM.xml inside TC_HOME/conf/appserver/RM2/
>
>4. Put the SCM directory anywhere on the file system, for example /tmp/SCM
>   and put SCM.xml inside TC_HOME/conf/appserver/RM2/
>   and inside SCM.xml do 
>   The app will get deployed once as "/"
>
>Filip
>
>
>Fredrik Andersson wrote:
>> ok, the application I want to launch is SMC so where should I place the
>> SMC.xml file?
>>
>> I´m really confused, not because I dont know what I want to do, but there
>> are tons of different sources telling me different things and none
>> works.. :(
>>
>> I understand that I must be anoying and it´s really nice of you to help
>> me. =)
>>
>> Den 6/16/2006, skrev "Filip Hanik - Dev Lists" <[EMAIL PROTECTED]>:
>>
>>
>>> R2M.xml? where did that come from? it should be SCM.xml, although the
>>> name isn't important.
>>>
>>> Your original setup was confusing, cause you have RM2/SCM (inside of
>>> webapps)
>>> so which one is the webapp, RM2 directory, or the SCM directory?
>>>
>>> They key to your problem though, is probably the 
>>> instead of 
>>>
>>> Filip
>>>
>>>
>>> Fredrik Andersson wrote:
>>>
>>>> ok, and my R2M.xml configuration file should reside inside of
>>>> $CATALINA_HOME/appserver/R2M ? or did I missunderstand you on that part?
>>>> Will try it out, thanks a million. Really nice of you taking youre time
>>>> explaining this to me :)
>>>>
>>>> Den 6/16/2006, skrev "Filip Hanik - Dev Lists" <[EMAIL PROTECTED]>:
>>>>
>>>>
>>>>
>>>>> the more logical setup would be (assuming the SMC is a webapp)
>>>>>
>>>>> >>>>debug="0"
>>>>>defaultHost="R2M">
>>>>>
>>>>>    >>>>appBase="/var/www/webapps/RM2"
>>>>>autoDeploy="false"
>>>>>deployOnStartup="false"
>>>>>unpackWARs="false"
>>>>>deployXML="true"
>>>>>debug="0"/>
>>>>>
>>>>>
>>>>>
>>>>> >>>>docBase="SMC"
>>>>>reloadable="true"
>>>>>debug="0"/>
>>>>>
>>>>> I changed three things
>>>>> 1. Host.appBase
>>>>> 2. Context.path
>>>>> 3. Context.docBase
>>>>>
>>>>> Filip
>>>>>
>>>>>
>>>>>
>>>>> Fredrik Andersson wrote:
>>>>>
>>>>>
>>>>>> Hi, thanks for answering=)
>>>>>> I´m still a little confused so I will try to describe what kind of setup
>>>>>> I want and we will se if it becomes clearer.
>>>>>>
>>>>>> I want my i

Re: Tomcat configuration error

2006-06-19 Thread Fredrik Andersson
I must be stupid or something because I can´t get this to work :(

Anyway I figured what the hell, and made a symlink pointing from
CATALINA_HOME/webapps/ROOT to /var/www/webapps/R2M/SMC and it now works.
A little cheep solution but it works.

I have absolutley no Idea to why it does not work to configure tomcat
like I want it to.

Anyways, thanks a bunch for your help and patience. Really appriciated =)

Den 6/17/2006, skrev "Fredrik Andersson" <[EMAIL PROTECTED]>:

>ok, thanks a bunch :)
>
>Sadly I'm away over the weekend and can´t test the configuration just
>yet. But as soon as I get back again I will try it and let you know how
>it went :)
>
>Den 6/16/2006, skrev "Filip Hanik - Dev Lists" <[EMAIL PROTECTED]>:
>
>>no worries, lets start from the beginning, after that I will send you
>>off to take a tomcat and/or servlet tutorial
>>
>>
>>
>>The appbase is where tomcat will autodeploy applications from, an
>>application, or webapp is defined by two means
>>1. A directory
>>2. A war file
>>
>>So in your case, the directory SMC is your webapp, hence the path to the
>>application would be:
>>/var/www/webapps/SMC (with subdirectories and files like below)
>>  - WEB-INF
>>- web.xml
>>  - index.jsp
>>
>>You have four choices to deploy this webapp
>>
>>1. put the SCM directory inside Host.appBase, ie, /var/www/webapps/SCM
>>   The app will get deployed as /SCM
>>
>>2. put the SCM directory inside Host.appBase, ie, /var/www/webapps/SCM
>>   and put SCM.xml inside TC_HOME/conf/appserver/RM2/
>>   The app will get deployed twice, /SCM and /
>>
>>3. put the SCM directory inside Host.appBase, ie, /var/www/webapps/SCM
>>   Create a file named context.xml ie
>>/var/www/webapps/SCM/META-INF/context.xml
>>   The app will get deployed once as "/", tomcat will automatically
>>create SCM.xml inside TC_HOME/conf/appserver/RM2/
>>
>>4. Put the SCM directory anywhere on the file system, for example /tmp/SCM
>>   and put SCM.xml inside TC_HOME/conf/appserver/RM2/
>>   and inside SCM.xml do 
>>   The app will get deployed once as "/"
>>
>>Filip
>>
>>
>>Fredrik Andersson wrote:
>>> ok, the application I want to launch is SMC so where should I place the
>>> SMC.xml file?
>>>
>>> I´m really confused, not because I dont know what I want to do, but there
>>> are tons of different sources telling me different things and none
>>> works.. :(
>>>
>>> I understand that I must be anoying and it´s really nice of you to help
>>> me. =)
>>>
>>> Den 6/16/2006, skrev "Filip Hanik - Dev Lists" <[EMAIL PROTECTED]>:
>>>
>>>
>>>> R2M.xml? where did that come from? it should be SCM.xml, although the
>>>> name isn't important.
>>>>
>>>> Your original setup was confusing, cause you have RM2/SCM (inside of
>>>> webapps)
>>>> so which one is the webapp, RM2 directory, or the SCM directory?
>>>>
>>>> They key to your problem though, is probably the 
>>>> instead of 
>>>>
>>>> Filip
>>>>
>>>>
>>>> Fredrik Andersson wrote:
>>>>
>>>>> ok, and my R2M.xml configuration file should reside inside of
>>>>> $CATALINA_HOME/appserver/R2M ? or did I missunderstand you on that part?
>>>>> Will try it out, thanks a million. Really nice of you taking youre time
>>>>> explaining this to me :)
>>>>>
>>>>> Den 6/16/2006, skrev "Filip Hanik - Dev Lists" <[EMAIL PROTECTED]>:
>>>>>
>>>>>
>>>>>
>>>>>> the more logical setup would be (assuming the SMC is a webapp)
>>>>>>
>>>>>> >>>>>debug="0"
>>>>>>defaultHost="R2M">
>>>>>>
>>>>>>>>>>>appBase="/var/www/webapps/RM2"
>>>>>>autoDeploy="false"
>>>>>>deployOnStartup="false"
>>>>>>unpackWARs="false"
>>>>>>deployXML="true"
>>>>>>debug="0"/>
>>>>&g

404 - Might there be something wrong with my permissions?

2013-11-20 Thread Fredrik Andersson
Hello Tomcat-experts!
I have recently bought some space at a webhotel that uses Apache HTTP server as 
front before a Tomcat 6.0.37.My account at the webhotel is said to support 
Struts and Hibernate and such technics.At home I have developed a app that uses 
those technics and of course it runs fine in a similar environment as the one 
at the webhotel. I can deploy my app as a ROOT-app or a ordinary app and the 
Struts works perfectly.
At the webhotel I have tried to deploy it booth as a ROOT-app and as a 
MYAPP-webapp-1.0.0.war-file
Now I have stripped the app down to just a struts2-hello-world-app.
But at the webhotel I just keep getting this when I try to access the 
ActionClass through struts.xml:
HTTP Status 404 - There is no Action mapped for namespace [/] and action name 
[welcome] associated with context path [/MYAPP-webapp-1.0.0].type Status 
reportmessage There is no Action mapped for namespace [/] and action name 
[welcome] associated with context path [/MYAPP-webapp-1.0.0].description The 
requested resource is not available.
Unfortenatly the support guys at the webhotel says they lack knowledge of 
Tomcat so they can not help me out.But today I at least found this exception in 
the catalina.log just after my attempt yo access a struts-path:
/-- Encapsulated exception \ java.lang.NullPointerException: 
permission can't be null at 
java.security.AccessController.checkPermission(Unknown Source) at 
java.lang.SecurityManager.checkPermission(Unknown Source) at 
ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:834) at 
ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1280) at 
ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1481) at 
ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85) 
at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162) at 
com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27)
 at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2318) at 
com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:77)
 at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2318) at 
ognl.ASTProperty.setValueBody(ASTProperty.java:127) at 
ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220) at 
ognl.SimpleNode.setValue(SimpleNode.java:301) at 
ognl.Ognl.setValue(Ognl.java:737) at 
com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:217) at 
com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:186)
 at 
com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:173) 
at 
com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:151)
 at 
com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:292)
 at 
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:203)
 at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
 at 
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:211)
 at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
 at 
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
 at 
org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
 at 
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:90)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
 at 
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
 at 
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
 at 
com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
 at 
com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
 at 
com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
 at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilter

RE: 404 - Might there be something wrong with my permissions?

2013-11-21 Thread Fredrik Andersson
Hello Konstantin!Thanks for your reply!Yes the message got really hard to read, 
it looked fine when I send it!My apologies for that!I will start to investigate 
your advice right away!Sounds really interesting!I will get back as soon I got 
any new info!Best regards and thanks alot again!/Fredrik

> Date: Thu, 21 Nov 2013 17:10:58 +0400
> Subject: Re: 404 - Might there be something wrong with my permissions?
> From: knst.koli...@gmail.com
> To: users@tomcat.apache.org
> 
> 2013/11/21 Fredrik Andersson :
> > Hello Tomcat-experts!
> 
> It is hard to read you message.
> 
> > I have recently bought some space at a webhotel that uses Apache HTTP 
> > server as front before a Tomcat 6.0.37.My account at the webhotel is said 
> > to support Struts and Hibernate and such technics.At home I have developed 
> > a app that uses those technics and of course it runs fine in a similar 
> > environment as the one at the webhotel. I can deploy my app as a ROOT-app 
> > or a ordinary app and the Struts works perfectly.
> > At the webhotel I have tried to deploy it booth as a ROOT-app and as a 
> > MYAPP-webapp-1.0.0.war-file
> > Now I have stripped the app down to just a struts2-hello-world-app.
> > But at the webhotel I just keep getting this when I try to access the 
> > ActionClass through struts.xml:
> > HTTP Status 404 - There is no Action mapped for namespace [/] and action 
> > name [welcome] associated with context path [/MYAPP-webapp-1.0.0].type 
> > Status reportmessage There is no Action mapped for namespace [/] and action 
> > name [welcome] associated with context path 
> > [/MYAPP-webapp-1.0.0].description The requested resource is not available.
> 
> > Unfortenatly the support guys at the webhotel says they lack knowledge of 
> > Tomcat so they can not help me out.
> 
> If you want to change your hosting provider, there are a number of offers at
> http://wiki.apache.org/tomcat/PoweredBy#Hosting_providers
> 
> > But today I at least found this exception in the catalina.log just after my 
> > attempt yo access a struts-path:
> > /-- Encapsulated exception \ java.lang.NullPointerException: 
> > permission can't be null at 
> > java.security.AccessController.checkPermission(Unknown Source) at 
> > java.lang.SecurityManager.checkPermission(Unknown Source) at 
> > ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:834) at 
> > ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1280) at 
> > ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1481) at 
> > ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)
> >  at 
> > ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162) at 
> > com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27)
> >  at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2318) at 
> > com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:77)
> >  at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2318) at 
> > ognl.ASTProperty.setValueBody(ASTProperty.java:127) at 
> > ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220) at 
> > ognl.SimpleNode.setValue(SimpleNode.java:301) at 
> > ognl.Ognl.setValue(Ognl.java:737) at 
> > com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:217) at 
> > com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:186)
> >  at 
> > com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:173)
> >  at 
> > com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:151)
> >  at 
> > com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:292)
> >  at 
> > com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:203)
> >  at 
> > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> >  at 
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> >  at 
> > com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:211)
> >  at 
> > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> >  at 
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> >  at 
> > com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)
> >  at 
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation

RE: 404 - Might there be something wrong with my permissions?

2013-11-21 Thread Fredrik Andersson
Hello guys!
I started my tomcat at home with catalina.bat start -security.
During startup I at once got a lot of exceptions, please see this 
pastie:http://pastie.org/8499210
When I try to access the webapp I get 404 right away.At the production server I 
at least could access the jsp:s direct, but through struts I got 404.Now at 
home I just get 404 in both ways.
One interesting thing is that it looks like the app do not got permissions to 
load the struts-default.xml:
Caused by: Caught exception while loading file struts-default.xml
...that could be the same issue in production since no struts is working at all.
I have not worked with permissions before but examing the catalina.policy with 
polycytool I see there is alot of settings like:java.util.PropertyPermission 
java.vm.version read...that I guess means that it is OK to read the 
System.getProperty("java.vm.version");
If you draw any conclusion about my app like is there any permission I need to 
set to make it work (I guess it must be able to read struts-default.xml for 
eg), please let me know. 
Then I will get in contact with the webhotel-support and try to ask them to 
tell me if they got that permission-settings.
Best regardsFredrik




> From: fredan...@hotmail.com
> To: users@tomcat.apache.org
> Subject: RE: 404 - Might there be something wrong with my permissions?
> Date: Thu, 21 Nov 2013 15:46:07 +
> 
> Hello Konstantin!Thanks for your reply!Yes the message got really hard to 
> read, it looked fine when I send it!My apologies for that!I will start to 
> investigate your advice right away!Sounds really interesting!I will get back 
> as soon I got any new info!Best regards and thanks alot again!/Fredrik
> 
> > Date: Thu, 21 Nov 2013 17:10:58 +0400
> > Subject: Re: 404 - Might there be something wrong with my permissions?
> > From: knst.koli...@gmail.com
> > To: users@tomcat.apache.org
> > 
> > 2013/11/21 Fredrik Andersson :
> > > Hello Tomcat-experts!
> > 
> > It is hard to read you message.
> > 
> > > I have recently bought some space at a webhotel that uses Apache HTTP 
> > > server as front before a Tomcat 6.0.37.My account at the webhotel is said 
> > > to support Struts and Hibernate and such technics.At home I have 
> > > developed a app that uses those technics and of course it runs fine in a 
> > > similar environment as the one at the webhotel. I can deploy my app as a 
> > > ROOT-app or a ordinary app and the Struts works perfectly.
> > > At the webhotel I have tried to deploy it booth as a ROOT-app and as a 
> > > MYAPP-webapp-1.0.0.war-file
> > > Now I have stripped the app down to just a struts2-hello-world-app.
> > > But at the webhotel I just keep getting this when I try to access the 
> > > ActionClass through struts.xml:
> > > HTTP Status 404 - There is no Action mapped for namespace [/] and action 
> > > name [welcome] associated with context path [/MYAPP-webapp-1.0.0].type 
> > > Status reportmessage There is no Action mapped for namespace [/] and 
> > > action name [welcome] associated with context path 
> > > [/MYAPP-webapp-1.0.0].description The requested resource is not available.
> > 
> > > Unfortenatly the support guys at the webhotel says they lack knowledge of 
> > > Tomcat so they can not help me out.
> > 
> > If you want to change your hosting provider, there are a number of offers at
> > http://wiki.apache.org/tomcat/PoweredBy#Hosting_providers
> > 
> > > But today I at least found this exception in the catalina.log just after 
> > > my attempt yo access a struts-path:
> > > /-- Encapsulated exception \ java.lang.NullPointerException: 
> > > permission can't be null at 
> > > java.security.AccessController.checkPermission(Unknown Source) at 
> > > java.lang.SecurityManager.checkPermission(Unknown Source) at 
> > > ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:834) at 
> > > ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1280) at 
> > > ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1481) at 
> > > ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)
> > >  at 
> > > ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162) 
> > > at 
> > > com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27)
> > >  at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2318) at 
> > > com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:77)
> > >  at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2318) at 
> > > ognl.ASTProperty.s