ssha digest in jndi realm

2008-09-29 Thread Janko Harej
Hi,

I've read that Salted SHA (SSHA) realm was added to tomcat realms.

http://emsp.em.doe.gov/tomcat-docs/changelog.html
https://issues.apache.org/bugzilla/show_bug.cgi?id=32938

So I've set digest=SSHA in my realm configuration. However when I try to
start tomcat I get

tomcat  SSHA MessageDigest not available

I'm using tomcat 5.5.26 on linux

any hint would be very helpfull, thanks

-- 
Janko


Jconsole working without using any extra System property with Tomcat6.0 started using Intellij Idea 7.0

2008-09-29 Thread Choudhury
Hi Guys,
I am running tomcat 6.0 which is confgured through 
Intellij Idea . My objective was to run Jconsole to see it in action . 
Basically I didn't tinker with the catalina.bat file(whatever comes 
bundled with Tomcat) at all . Intellij uses the catalina.bat as a startup 
and and as shutdown script . So nowhere I set the "
-Dcom.sun.management.jmxremote" parameter that needs to be used in order 
to attach the JMX agent to the Java app in order to get some results using 
the Jconsole. But when I run tomcat through Intellij Idea and when I start 
Jconsole , it is detecting " org.apache.catalina.startup.Bootstrap start " 
as one of the local process 

Who is setting the "-Dcom.sun.management.jmxremote" parameter in my case ? 
Please reply . 

Regards,

Subhrajyoti 
Mobile: +919830079545
Mail: [EMAIL PROTECTED]
Web: www.labware.com

LabWare LIMS Solutions - Results Count

Re: Jconsole working without using any extra System property with Tomcat6.0 started using Intellij Idea 7.0

2008-09-29 Thread Mark Thomas
[EMAIL PROTECTED] wrote:
> Hi Guys,
> I am running tomcat 6.0 which is confgured through 
> Intellij Idea . My objective was to run Jconsole to see it in action . 
> Basically I didn't tinker with the catalina.bat file(whatever comes 
> bundled with Tomcat) at all . Intellij uses the catalina.bat as a startup 
> and and as shutdown script . So nowhere I set the "
> -Dcom.sun.management.jmxremote" parameter that needs to be used in order 
> to attach the JMX agent to the Java app in order to get some results using 
> the Jconsole. But when I run tomcat through Intellij Idea and when I start 
> Jconsole , it is detecting " org.apache.catalina.startup.Bootstrap start " 
> as one of the local process 
> 
> Who is setting the "-Dcom.sun.management.jmxremote" parameter in my case ? 
No-one. com.sun.management.jmxremote=true by default. See
http://java.sun.com/javase/6/docs/technotes/guides/management/agent.html

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]



Re: [TOMCAT] Internal Tomcat Server error (HTTP Status 500): NoClassDefFound

2008-09-29 Thread Jon Haitz Legarreta Gorroño

Hi there,
thanks for the suggestion David.
I am pretty new to all these Web technologies, so I hope I understood 
well your mail.


1. I've got two versions of the StrutsPageLifecycleFactory and 
DefaultStrutsPageLifeCycleFactory classes: the first ones located in the 
folder


C:\Program 
Files\JDeveloper\adfc\src\adf-controllersrc.zip\oracle\adf\controller\struts\actions


and the other ones in

C:\Program 
Files\JDeveloper\adfc\src\adf-controllersrc.zip\oracle\adf\controller\v2\struts\lifecycle


(I work under XP and my IDE is Oracle JDeveloper 10g version 10.1.3.0.4)

On my previous mail I had a look at the first ones, so therefore, and a 
you suggested, I was not looking at the one being used when the stack 
trace is being produced, which is the one contained in the second path.


The method yielding the problem is the following one:

private static PageLifecycleFactory getDefaultInstance()
  {
 if (defaultInstance == null)
 {
defaultInstance = new DefaultStrutsPageLifecycleFactory();
 }

 return defaultInstance;

  }

And line 68 is where the new defaulsInstance is created: defaultInstance 
= new DefaultStrutsPageLifecycleFactory();



2. As for the question whether they exist only once in Tomcat, in my 
Tomcat folder (C:\Tomcat\common\lib), none of them exists; the jars I've 
got are:


ant
ant-launcher
commons-collentions-3.1
commons-colletions-dbcp-1.2.1
commons-el
commons-pool-1.2
jasper-compiler
jasper-runtime
jasp-api
naming-common
naming-factory
naming-java
naming-resources
servelt-api
tools

And C:\Tomcat\common\classes is empty.

In the WEB-INF\classes folder of my project, the above-mentioned classes 
(StrutsPageLifecycleFactory and DefaultStrutsPageLifeCycleFactory) do 
not exist.

In the WEB-INF\lib folder of my project, the jars I've got are:
adf-controller
commons-beanutils
commons-collections
commons-digester
commons-fileupload
commons-lang
commons-logging
commons-validator
DBF_JDBC30
jakarta-oro
jmf
log4j-1.2.15
mediaplayer
mysql-connector-java-3.1.10-bin
struts

I've found that if I remove the library "ADF Controller Runtime" from 
the project properties (the WEB-INF\lib folder has no longer 
adf-controller), the Web page shows

HTTP Status 404: The servelt Action is not available
And the localhostlog of Tomcat shows
2008-09-29 12:32:25 StandardWrapperValve[action]: The Servlet action is 
not available in this moment


So, due to my lack of expertise, to be sincere, I don't know whether I 
am giving the right clues. Sorry in that case.

And I don't know where the problem may come from.

I would appreciate any help.

Thanks,
JON HAITZ








--

Jon Haitz Legarreta Gorroño
Laguntzaile zientifikoa / Colaborador científico / Scientific collaborator

VICOMTech - Visual Interaction and Communication Technologies Center
Mikeletegi Pasealekua, 57 - Parque Tecnológico
E-20009 Donostia - San Sebastián, Spain
Tel: +[34] 943 30 92 30
Fax: +[34] 943 30 93 93
e-mail: [EMAIL PROTECTED]
http://www.vicomtech.org

*** member of INI-GraphicsNet 
http://www.inigraphics.net
*** member of IK4 Research Alliance 
http://www.ik4.es

-
VICOMTech is an ISO 9001:2000 certified institute
-


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



Servlet url mapping work incorrect when many servlets have one code

2008-09-29 Thread Druzhiinin Mihail

Dear users,

We have 2 servlets with one code and different init parameters mapped to
different url. On high load requests to first servlet handled by second 
servlet. I different servlets by init params. It apparent when second servlet 
was called.
What I do illegal?

web.xml:


http://java.sun.com/xml/ns/j2ee";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

  


   
   ybs
   

   
Main servlet
YellowBoxServlet
YellowBoxServlet
rcbd.nbilling.yb.YellowBoxServlet
   
   Идентификатор оператора, от которого будет осуществляться 
прием платежей
   operator_id
   9000
   
   
   ybs
   
   
   
   
  
   

4Play servlet
YellowBoxServlet_PS
YellowBoxServlet_PS
rcbd.nbilling.yb.YellowBoxServlet
   
   Идентификатор оператора, от которого будет осуществляться 
прием платежей
   operator_id
   9001
   
   
   ybs
   
   
   
   

YellowBoxServlet
/ybs
   
   
   

YellowBoxServlet_PS
/ps
   




-
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] Internal Tomcat Server error (HTTP Status 500): NoClassDefFound

2008-09-29 Thread Jon Haitz Legarreta Gorroño
I forgot to mention that the application works fine when launched from 
my IDE.

Sorry.
Thanks in advance,
JON HAITZ

--

Jon Haitz Legarreta Gorroño
Laguntzaile zientifikoa / Colaborador científico / Scientific collaborator

VICOMTech - Visual Interaction and Communication Technologies Center
Mikeletegi Pasealekua, 57 - Parque Tecnológico
E-20009 Donostia - San Sebastián, Spain
Tel: +[34] 943 30 92 30
Fax: +[34] 943 30 93 93
e-mail: [EMAIL PROTECTED]
http://www.vicomtech.org

*** member of INI-GraphicsNet 
http://www.inigraphics.net
*** member of IK4 Research Alliance 
http://www.ik4.es

-
VICOMTech is an ISO 9001:2000 certified institute
-


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



Sharing Application Code Between Contexts

2008-09-29 Thread Richard Sayre
Is it possible to have several contexts pointing to the same code
base?  If I am hosing an application and other clients would like to
use it, is it possible to set them up a seprate context that points to
one set of JSP/Java Classes?

Are there disadvantages in doing this?

Thank you,

Rich

-
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: Sharing Application Code Between Contexts

2008-09-29 Thread Tim Funk

1) Disk is cheap.
2) Build scripts can easily push the common code out to all your apps in 
a reproducable manner.
3) Seperate code makes regression upgrades easier to do since there is 
always that one app which cant be upgraded


While you may be "sharing code" - all the code will be living in 
different classloaders (one per webapp) so at most - you are saving disk.


-Tim


Richard Sayre wrote:

Is it possible to have several contexts pointing to the same code
base?  If I am hosing an application and other clients would like to
use it, is it possible to set them up a seprate context that points to
one set of JSP/Java Classes?

Are there disadvantages in doing this?



-
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: Sharing Application Code Between Contexts

2008-09-29 Thread Mark Thomas
Richard Sayre wrote:
> Is it possible to have several contexts pointing to the same code
> base?  If I am hosing an application and other clients would like to
> use it, is it possible to set them up a seprate context that points to
> one set of JSP/Java Classes?
Yes. How, depends on your Tomcat version. Look in the docs for shared
classloader.

> Are there disadvantages in doing this?
Yes. Various class-loading issues. Any changes to the common code require a
Tomcat restart. Potential incompatibility of dependencies.

Disk is cheap. Memory is cheap. A simpler solution is to provide the code
in a jar and let each web-app that wants to use it add that jar to WEB-INF lib.

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]



Re: Jconsole working without using any extra System property with Tomcat6.0 started using Intellij Idea 7.0

2008-09-29 Thread Choudhury
Thanks Mark .I got my answer in the the following line in the document 
mentioned by you:

" In other words, any application that is started in the Java SE 6 HotSpot 
VM is detected automatically by JConsole, and does not need to be started 
using the above command-line option." 

Regards,

Subhrajyoti 
Mobile: +919830079545
Mail: [EMAIL PROTECTED]
Web: www.labware.com

LabWare LIMS Solutions - Results Count



Mark Thomas <[EMAIL PROTECTED]> 
09/29/2008 04:36 PM
Please respond to
"Tomcat Users List" 


To
Tomcat Users List 
cc

Subject
Re: Jconsole working without using any extra System property with 
Tomcat6.0  started using Intellij Idea 7.0






[EMAIL PROTECTED] wrote:
> Hi Guys,
> I am running tomcat 6.0 which is confgured through 
> Intellij Idea . My objective was to run Jconsole to see it in action . 
> Basically I didn't tinker with the catalina.bat file(whatever comes 
> bundled with Tomcat) at all . Intellij uses the catalina.bat as a 
startup 
> and and as shutdown script . So nowhere I set the "
> -Dcom.sun.management.jmxremote" parameter that needs to be used in order 

> to attach the JMX agent to the Java app in order to get some results 
using 
> the Jconsole. But when I run tomcat through Intellij Idea and when I 
start 
> Jconsole , it is detecting " org.apache.catalina.startup.Bootstrap start 
" 
> as one of the local process 
> 
> Who is setting the "-Dcom.sun.management.jmxremote" parameter in my case 
? 
No-one. com.sun.management.jmxremote=true by default. See
http://java.sun.com/javase/6/docs/technotes/guides/management/agent.html

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]




Re: Sharing Application Code Between Contexts

2008-09-29 Thread Richard Sayre
Are there any tools that would help with building different .war files
for each context?

On Mon, Sep 29, 2008 at 8:58 AM, Tim Funk <[EMAIL PROTECTED]> wrote:
> 1) Disk is cheap.
> 2) Build scripts can easily push the common code out to all your apps in a
> reproducable manner.
> 3) Seperate code makes regression upgrades easier to do since there is
> always that one app which cant be upgraded
>
> While you may be "sharing code" - all the code will be living in different
> classloaders (one per webapp) so at most - you are saving disk.
>
> -Tim
>
>
> Richard Sayre wrote:
>>
>> Is it possible to have several contexts pointing to the same code
>> base?  If I am hosing an application and other clients would like to
>> use it, is it possible to set them up a seprate context that points to
>> one set of JSP/Java Classes?
>>
>> Are there disadvantages in doing this?
>
>
> -
> 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: Sharing Application Code Between Contexts

2008-09-29 Thread Richard Sayre
What I mean is building a different WAR files, which has all the same
code, but different deployment descriptors.

-
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: Sharing Application Code Between Contexts

2008-09-29 Thread Tim Funk
ANT should easily be able to do this. Then you should be able either use 
either of

1) properties
2) target

To build one or more apps a time. If your shared code are versioned 
well, maven might be a good fit too. (Since it has more dependency 
handling methodology in place)


-Tim

Richard Sayre wrote:

Are there any tools that would help with building different .war files
for each context?

On Mon, Sep 29, 2008 at 8:58 AM, Tim Funk <[EMAIL PROTECTED]> wrote:

1) Disk is cheap.
2) Build scripts can easily push the common code out to all your apps in a
reproducable manner.
3) Seperate code makes regression upgrades easier to do since there is
always that one app which cant be upgraded

While you may be "sharing code" - all the code will be living in different
classloaders (one per webapp) so at most - you are saving disk.



-
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: Sharing Application Code Between Contexts

2008-09-29 Thread Mikolaj Rydzewski

Richard Sayre wrote:

Are there any tools that would help with building different .war files
for each context?
  

Do you build wars by hand or use Ant, Maven, etc?

--
Mikolaj Rydzewski <[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] Internal Tomcat Server error (HTTP Status 500): NoClassDefFound

2008-09-29 Thread David Smith
Have you looked at any of the log files for messages that occur when you 
webapp starts? 


--David

Jon Haitz Legarreta Gorroño wrote:

Hi there,
thanks for the suggestion David.
I am pretty new to all these Web technologies, so I hope I understood 
well your mail.


1. I've got two versions of the StrutsPageLifecycleFactory and 
DefaultStrutsPageLifeCycleFactory classes: the first ones located in 
the folder


C:\Program 
Files\JDeveloper\adfc\src\adf-controllersrc.zip\oracle\adf\controller\struts\actions 



and the other ones in

C:\Program 
Files\JDeveloper\adfc\src\adf-controllersrc.zip\oracle\adf\controller\v2\struts\lifecycle 



(I work under XP and my IDE is Oracle JDeveloper 10g version 10.1.3.0.4)

On my previous mail I had a look at the first ones, so therefore, and 
a you suggested, I was not looking at the one being used when the 
stack trace is being produced, which is the one contained in the 
second path.


The method yielding the problem is the following one:

private static PageLifecycleFactory getDefaultInstance()
  {
 if (defaultInstance == null)
 {
defaultInstance = new DefaultStrutsPageLifecycleFactory();
 }
 return defaultInstance;
  }

And line 68 is where the new defaulsInstance is created: 
defaultInstance = new DefaultStrutsPageLifecycleFactory();



2. As for the question whether they exist only once in Tomcat, in my 
Tomcat folder (C:\Tomcat\common\lib), none of them exists; the jars 
I've got are:


ant
ant-launcher
commons-collentions-3.1
commons-colletions-dbcp-1.2.1
commons-el
commons-pool-1.2
jasper-compiler
jasper-runtime
jasp-api
naming-common
naming-factory
naming-java
naming-resources
servelt-api
tools

And C:\Tomcat\common\classes is empty.

In the WEB-INF\classes folder of my project, the above-mentioned 
classes (StrutsPageLifecycleFactory and 
DefaultStrutsPageLifeCycleFactory) do not exist.

In the WEB-INF\lib folder of my project, the jars I've got are:
adf-controller
commons-beanutils
commons-collections
commons-digester
commons-fileupload
commons-lang
commons-logging
commons-validator
DBF_JDBC30
jakarta-oro
jmf
log4j-1.2.15
mediaplayer
mysql-connector-java-3.1.10-bin
struts

I've found that if I remove the library "ADF Controller Runtime" from 
the project properties (the WEB-INF\lib folder has no longer 
adf-controller), the Web page shows

HTTP Status 404: The servelt Action is not available
And the localhostlog of Tomcat shows
2008-09-29 12:32:25 StandardWrapperValve[action]: The Servlet action 
is not available in this moment


So, due to my lack of expertise, to be sincere, I don't know whether I 
am giving the right clues. Sorry in that case.

And I don't know where the problem may come from.

I would appreciate any help.

Thanks,
JON HAITZ











-
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: Sharing Application Code Between Contexts

2008-09-29 Thread Richard Sayre
I use ant.  I am using Netbeans IDE for everything.  Basically I
always have to change the context.xml and web.xml for every
environment that I set up.  Everything else remains the same.

On Mon, Sep 29, 2008 at 9:46 AM, Mikolaj Rydzewski <[EMAIL PROTECTED]> wrote:
> Richard Sayre wrote:
>>
>> Are there any tools that would help with building different .war files
>> for each context?
>>
>
> Do you build wars by hand or use Ant, Maven, etc?
>
> --
> Mikolaj Rydzewski <[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]



Re: Sharing Application Code Between Contexts

2008-09-29 Thread Mikolaj Rydzewski

Richard Sayre wrote:

I use ant.  I am using Netbeans IDE for everything.  Basically I
always have to change the context.xml and web.xml for every
environment that I set up.  Everything else remains the same.
  
What kind of information do you pass through context.xml and web.xml? 
JNDI resources? If so, you can define them in server.xml and leave 
context.xml and web.xml untouched.


--
Mikolaj Rydzewski <[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: Sharing Application Code Between Contexts

2008-09-29 Thread Richard Sayre
I specify a JNDI resources (connection pool) and an Authentication
Realm.  Each application authenticates from a different database, and
has a seprate connetion pool  there is a seprate database for each
app.

On Mon, Sep 29, 2008 at 10:43 AM, Mikolaj Rydzewski <[EMAIL PROTECTED]> wrote:
> Richard Sayre wrote:
>>
>> I use ant.  I am using Netbeans IDE for everything.  Basically I
>> always have to change the context.xml and web.xml for every
>> environment that I set up.  Everything else remains the same.
>>
>
> What kind of information do you pass through context.xml and web.xml? JNDI
> resources? If so, you can define them in server.xml and leave context.xml
> and web.xml untouched.
>
> --
> Mikolaj Rydzewski <[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]



Re: Sharing Application Code Between Contexts

2008-09-29 Thread Mikolaj Rydzewski

Richard Sayre wrote:

I specify a JNDI resources (connection pool) and an Authentication
Realm.  Each application authenticates from a different database, and
has a seprate connetion pool  there is a seprate database for each
app.
  
Define all environment specific details in server.xml (while declaring 
resources) and you can use the same context.xml and web.xml in any 
environment.


--
Mikolaj Rydzewski <[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] Internal Tomcat Server error (HTTP Status 500): NoClassDefFound

2008-09-29 Thread Jon Haitz Legarreta Gorroño
Sorry for my ignorance, but what do you mena by "the log files for 
messages that occur when your webapp starts"?

Where can I look for them?
Thanks for your patience and support,
JON HAITZ




David Smith escribió:
Have you looked at any of the log files for messages that occur when 
you webapp starts?

--David

Jon Haitz Legarreta Gorroño wrote:

Hi there,
thanks for the suggestion David.
I am pretty new to all these Web technologies, so I hope I understood 
well your mail.


1. I've got two versions of the StrutsPageLifecycleFactory and 
DefaultStrutsPageLifeCycleFactory classes: the first ones located in 
the folder


C:\Program 
Files\JDeveloper\adfc\src\adf-controllersrc.zip\oracle\adf\controller\struts\actions 



and the other ones in

C:\Program 
Files\JDeveloper\adfc\src\adf-controllersrc.zip\oracle\adf\controller\v2\struts\lifecycle 



(I work under XP and my IDE is Oracle JDeveloper 10g version 10.1.3.0.4)

On my previous mail I had a look at the first ones, so therefore, and 
a you suggested, I was not looking at the one being used when the 
stack trace is being produced, which is the one contained in the 
second path.


The method yielding the problem is the following one:

private static PageLifecycleFactory getDefaultInstance()
  {
 if (defaultInstance == null)
 {
defaultInstance = new DefaultStrutsPageLifecycleFactory();
 }
 return defaultInstance;
  }

And line 68 is where the new defaulsInstance is created: 
defaultInstance = new DefaultStrutsPageLifecycleFactory();



2. As for the question whether they exist only once in Tomcat, in my 
Tomcat folder (C:\Tomcat\common\lib), none of them exists; the jars 
I've got are:


ant
ant-launcher
commons-collentions-3.1
commons-colletions-dbcp-1.2.1
commons-el
commons-pool-1.2
jasper-compiler
jasper-runtime
jasp-api
naming-common
naming-factory
naming-java
naming-resources
servelt-api
tools

And C:\Tomcat\common\classes is empty.

In the WEB-INF\classes folder of my project, the above-mentioned 
classes (StrutsPageLifecycleFactory and 
DefaultStrutsPageLifeCycleFactory) do not exist.

In the WEB-INF\lib folder of my project, the jars I've got are:
adf-controller
commons-beanutils
commons-collections
commons-digester
commons-fileupload
commons-lang
commons-logging
commons-validator
DBF_JDBC30
jakarta-oro
jmf
log4j-1.2.15
mediaplayer
mysql-connector-java-3.1.10-bin
struts

I've found that if I remove the library "ADF Controller Runtime" from 
the project properties (the WEB-INF\lib folder has no longer 
adf-controller), the Web page shows

HTTP Status 404: The servelt Action is not available
And the localhostlog of Tomcat shows
2008-09-29 12:32:25 StandardWrapperValve[action]: The Servlet action 
is not available in this moment


So, due to my lack of expertise, to be sincere, I don't know whether 
I am giving the right clues. Sorry in that case.

And I don't know where the problem may come from.

I would appreciate any help.

Thanks,
JON HAITZ











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




--

Jon Haitz Legarreta Gorroño
Laguntzaile zientifikoa / Colaborador científico / Scientific collaborator

VICOMTech - Visual Interaction and Communication Technologies Center
Mikeletegi Pasealekua, 57 - Parque Tecnológico
E-20009 Donostia - San Sebastián, Spain
Tel: +[34] 943 30 92 30
Fax: +[34] 943 30 93 93
e-mail: [EMAIL PROTECTED]
http://www.vicomtech.org

*** member of INI-GraphicsNet 
http://www.inigraphics.net
*** member of IK4 Research Alliance 
http://www.ik4.es

-
VICOMTech is an ISO 9001:2000 certified institute
-


-
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: Sharing Application Code Between Contexts

2008-09-29 Thread Richard Sayre
Ok, thanks everyone for the help.  I will look into all suggestions.

Thanks,

Rich

On Mon, Sep 29, 2008 at 11:15 AM, Mikolaj Rydzewski <[EMAIL PROTECTED]> wrote:
> Richard Sayre wrote:
>>
>> I specify a JNDI resources (connection pool) and an Authentication
>> Realm.  Each application authenticates from a different database, and
>> has a seprate connetion pool  there is a seprate database for each
>> app.
>>
>
> Define all environment specific details in server.xml (while declaring
> resources) and you can use the same context.xml and web.xml in any
> environment.
>
> --
> Mikolaj Rydzewski <[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]



Re: [TOMCAT] Internal Tomcat Server error (HTTP Status 500): NoClassDefFound

2008-09-29 Thread David Smith
Tomcat maintains log files in it's logs directory.  All the log files 
are just plain old text files, typically with timestamps.  Just take a 
read through it for the moment in time when your webapp is deployed and 
see if there are any error messages.  Because you work on a Windows 
environment, you may have to make a copy of the log file before opening 
it for reading.  Either that or stop Tomcat and then read the file.


--David

Jon Haitz Legarreta Gorroño wrote:
Sorry for my ignorance, but what do you mena by "the log files for 
messages that occur when your webapp starts"?

Where can I look for them?
Thanks for your patience and support,
JON HAITZ




David Smith escribió:
Have you looked at any of the log files for messages that occur when 
you webapp starts?

--David

Jon Haitz Legarreta Gorroño wrote:

Hi there,
thanks for the suggestion David.
I am pretty new to all these Web technologies, so I hope I 
understood well your mail.


1. I've got two versions of the StrutsPageLifecycleFactory and 
DefaultStrutsPageLifeCycleFactory classes: the first ones located in 
the folder


C:\Program 
Files\JDeveloper\adfc\src\adf-controllersrc.zip\oracle\adf\controller\struts\actions 



and the other ones in

C:\Program 
Files\JDeveloper\adfc\src\adf-controllersrc.zip\oracle\adf\controller\v2\struts\lifecycle 



(I work under XP and my IDE is Oracle JDeveloper 10g version 
10.1.3.0.4)


On my previous mail I had a look at the first ones, so therefore, 
and a you suggested, I was not looking at the one being used when 
the stack trace is being produced, which is the one contained in the 
second path.


The method yielding the problem is the following one:

private static PageLifecycleFactory getDefaultInstance()
  {
 if (defaultInstance == null)
 {
defaultInstance = new DefaultStrutsPageLifecycleFactory();
 }
 return defaultInstance;
  }

And line 68 is where the new defaulsInstance is created: 
defaultInstance = new DefaultStrutsPageLifecycleFactory();



2. As for the question whether they exist only once in Tomcat, in my 
Tomcat folder (C:\Tomcat\common\lib), none of them exists; the jars 
I've got are:


ant
ant-launcher
commons-collentions-3.1
commons-colletions-dbcp-1.2.1
commons-el
commons-pool-1.2
jasper-compiler
jasper-runtime
jasp-api
naming-common
naming-factory
naming-java
naming-resources
servelt-api
tools

And C:\Tomcat\common\classes is empty.

In the WEB-INF\classes folder of my project, the above-mentioned 
classes (StrutsPageLifecycleFactory and 
DefaultStrutsPageLifeCycleFactory) do not exist.

In the WEB-INF\lib folder of my project, the jars I've got are:
adf-controller
commons-beanutils
commons-collections
commons-digester
commons-fileupload
commons-lang
commons-logging
commons-validator
DBF_JDBC30
jakarta-oro
jmf
log4j-1.2.15
mediaplayer
mysql-connector-java-3.1.10-bin
struts

I've found that if I remove the library "ADF Controller Runtime" 
from the project properties (the WEB-INF\lib folder has no longer 
adf-controller), the Web page shows

HTTP Status 404: The servelt Action is not available
And the localhostlog of Tomcat shows
2008-09-29 12:32:25 StandardWrapperValve[action]: The Servlet action 
is not available in this moment


So, due to my lack of expertise, to be sincere, I don't know whether 
I am giving the right clues. Sorry in that case.

And I don't know where the problem may come from.

I would appreciate any help.

Thanks,
JON HAITZ











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



XP/Vista/Office 2007/IE Compatibility Question

2008-09-29 Thread ifafjc
Good afternoon. My company, Centocor, is in the process of upgrading 
its operating System from Windows 2000 to XP/Vista and its Office 2000 
to Office 2007. They have installed on, I'm not sure how many, some 
computers Apache Tomcat, version 5.5. Please answer the following 
questions at your earliest convenience:




1) Is the software compatible with XP? If not, what is the compatible 
version and what are the costs involved in upgrading?


2) Is the software compatible with Vista? If not, what is the 
compatible version and what are the costs involved in upgrading?


3) If the software is not independent of Office 2007, is it compatible 
with it? If not, what is the compatible version and what are the costs 
involved in upgrading?


4) If the software is not independent of IE, what versions of it are 
compatible?






Thanks,







Isabel





  


-
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 JVM not releasing deleted files (lsof show delete inodes taking up disk space)

2008-09-29 Thread Chad Kellerman
Tomcat Users,

Just wondering if anyone else has run into this problem.

First let's get the specifics out of the way:

Tomcat: 5.5.25
Java:  Sun JDK 1.5.0_13
Linux RHEL 5

The Tomcat server is situated on it's own file system, with the applications
on another.  I got a page this weekend, saying that the disk space was at
95% on the application file system.  Yet when I did a 'du' on the
directories, it only showed about 4% used.  But when I did a lsof I saw the
rest of the used files in a "(deleted)" state.  I tried a 'sync' to see if
that would write the changes to disk, but the files were still listed as
"deleted" and the disk space (df) was still at 95%.  I had to resort to
restarting the tomcat server.  Everything freed up and the disk usage was
back to normal.  To get a better understanding... the application indexes
uploaded files, the indexing process creates the temporary files then
removes them.

I am wondering if anyone has seen this before (on Tomcat, I've seen this
with databases where the only this to do is restart the server, but never
with Tomcat) and what they have done to help alleviate the issue.


Thanks,
-- sunckell


Ldap authentication half working...

2008-09-29 Thread Jasper Floor
I have a strange problem. I have a simple app that needs to
authenticate via ldap.

I am using:
 tomcat 6.0.16.
 eclipse 3.3
 Debian  (etch in production, lenny on development)

On my development machine I have no problems. I run tomcat from eclipse 3.3.

The production server is a virtual machine. The strange part is that
it is authenticating people logging in but not authorising them. We
have 2 posix groups in ldap which are supposed to define the roles.
That must be where it is failing because I can log in but immediately
get 403 forbidden error.

this is my realm definition from server.conf



I've tried substituting {1} in the roleSearch, I've tried it with and
without parentheses. I've restarted every single server that might
have anything to do with anything.

To make it stranger I can tell you that this has also worked. We had
GroupOfUniqueNames first. The problems didn't start with switching to
Posix Groups however. The Posix Groups were made because of sysadmin
random decision. It still shouldn't matter as it works on development
with either configuration.

any help would be appreciated.

mvg,
Jasper

-
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: XP/Vista/Office 2007/IE Compatibility Question

2008-09-29 Thread David kerber

[EMAIL PROTECTED] wrote:
Good afternoon. My company, Centocor, is in the process of upgrading 
its operating System from Windows 2000 to XP/Vista and its Office 2000 
to Office 2007. They have installed on, I'm not sure how many, some 
computers Apache Tomcat, version 5.5. Please answer the following 
questions at your earliest convenience:




1) Is the software compatible with XP? If not, what is the compatible 
version and what are the costs involved in upgrading?
It runs beautifully on XP.  I have it running with identical settings on 
Win2k and XP (my development machine is XP, and the production server is 
2k).




2) Is the software compatible with Vista? If not, what is the 
compatible version and what are the costs involved in upgrading?
Yes it can run on Vista, but I have no personal experience as to what 
settings adjustments may need to be made, if any.




3) If the software is not independent of Office 2007, is it compatible 
with it? If not, what is the compatible version and what are the costs 
involved in upgrading?
It neither knows nor cares what versions of office or IE are installed; 
there is no connection between Tomcat and office or IE.




4) If the software is not independent of IE, what versions of it are 
compatible?

D



-
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: Jconsole working without using any extra System property withTomcat6.0 started using Intellij Idea 7.0

2008-09-29 Thread Caldarale, Charles R
> From: Mark Thomas [mailto:[EMAIL PROTECTED]
> Subject: Re: Jconsole working without using any extra System
> property withTomcat6.0 started using Intellij Idea 7.0
>
> No-one. com.sun.management.jmxremote=true by default.

Minor corrections:

1) The plain com.sun.management.jmxremote does not take a value; =true (or 
=false or any other setting) does not alter the behavior of JRE components that 
look at that system property.  Only its existence (or non-existence) matters.  
Most extensions of com.sun.management.jmxremote do take values, such as those 
for setting port numbers or security.

2) Even in JDK 6, setting com.sun.management.jmxremote enables additional MBean 
capabilities that are not present when that system property does not exist.  In 
particular, application MBeans are made accessible to JMX programs, such as 
JConsole.  (I believe - but have not verified - that this happens because with 
con.sun.management.jmxremote set initially, the agent in the target JVM is 
loaded at startup and is thereby available to monitor MBean registrations; when 
loaded after startup by JConsole or other JMX program, the agent has missed the 
MBean registrations.)

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Jconsole working without using any extra System property withTomcat6.0 started using Intellij Idea 7.0

2008-09-29 Thread Mark Thomas
Caldarale, Charles R wrote:
>> From: Mark Thomas [mailto:[EMAIL PROTECTED]
>> Subject: Re: Jconsole working without using any extra System
>> property withTomcat6.0 started using Intellij Idea 7.0
>>
>> No-one. com.sun.management.jmxremote=true by default.
> 
> Minor corrections:
> 
> 1) The plain com.sun.management.jmxremote does not take a value;
That does not agree with the docs:
http://java.sun.com/javase/6/docs/technotes/guides/management/agent.html

Given that you are usually right about this sort of stuff where are you
getting your info from? I'd like to read whatever source you are reading.

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]



RE: XP/Vista/Office 2007/IE Compatibility Question

2008-09-29 Thread Martin Gainty

> 
> Good afternoon. My company, Centocor, is in the process of upgrading 
> its operating System from Windows 2000 to XP/Vista and its Office 2000 
> to Office 2007. They have installed on, I'm not sure how many, some 
> computers Apache Tomcat, version 5.5. Please answer the following 
> questions at your earliest convenience:
MG>answers prefixed with MG> 
> 
> 
> 1) Is the software compatible with XP? If not, what is the compatible 
> version and what are the costs involved in upgrading?
MG>TC does not have compatibility issues as long as you stay with basic 
java -jar bootstrap.jar functionality
MG>If you are using windows binaries such as jsvc and or Windows installer to 
execute windows startup binaries MG>(such as windows startup services) which 
modify registry you will have to resolve each issue on as needed MG>basis More 
information is available at
MG>http://tomcat.apache.org/tomcat-5.5-doc/setup.html
> 
> 2) Is the software compatible with Vista? If not, what is the 
> compatible version and what are the costs involved in upgrading?
MG>As this question has been answered before and I encourage you to read this 
response
MG>http://www.mail-archive.com/users@tomcat.apache.org/msg30394.html
MG>unfortunately as Vista is cost prohibitively expensive for the majority of 
TC developers many of us cannot
MG>help you with that specific requirement ..keep in mind
MG>Vista is in charge of resources e.g. how Users are created ,who has access 
to what Folder, Sockets
MG>when vista sees an external process (especially Java.exe) it may disallow 
MG>access to that socket (port 8080 may be blocked by Vista firewall)
MG>access to the binaries ..Vista may be disallowing access to java.exe or jspc 
binaries
MG>access to the folder %CATALINA_HOME% may be blocked by Vista
MG>the security issues of  will need to be 
addressed

> 3) If the software is not independent of Office 2007, is it compatible 
> with it? If not, what is the compatible version and what are the costs 
> involved in upgrading?
MG>the way TC handles Microsoft Compound Documents such as XLS and DOC files 
are thru POI Apache interface
MG>http://www.apachenews.org/archives/001180.html
MG>This common POI interface allows access to HSSF (binary file format, .xls) 
and XSSF (ooxml file format, .xlsx)
MG>i think its safe to assume POI access to legacy .doc Documents and .xls 
Spreadsheets is assumed
MG>in other words read access to POI docs is almost assured..write capability 
is another matter

> 4) If the software is not independent of IE, what versions of it are 
> compatible?
MG>TC by itself is not dependent on any IE version but uses IE for browsing 
HTML 
MG>The question you may want to ask is which version MSXML capabilities will I 
get with MS Office 07?
MG>http://en.wikipedia.org/wiki/MSXML
MG>as you can see you have a choice of only use MXML 5 for Office-07 or use the 
universally accepted MSXML6
MG>again TC developers use (MSXML) capabilities -generally for XMLHttpRequest 
transmissions for Ajax
MG>but you may want to consult with certified "Microsoft Office" technicians 
who do these installations day in and MG>day out for any incompatibilities 
between (a specific version of) IE and (a specific version of) Microsoft Office

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

_
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

Re: [TOMCAT] Internal Tomcat Server error (HTTP Status 500): NoClassDefFound

2008-09-29 Thread Jon Haitz Legarreta Gorroño

Hi all,
first of all, sorry for posting here the complete stack trace, but I 
don't know which other information may be of use...


The log files I am looking in Tomcat are three:

1. stdout - Edited each time I restart tomcat (I stop tomcat before 
superseding my old webapp version). Apparently OK, no error messages:



29-sep-2008 17:48:42 org.apache.coyote.http11.Http11Protocol init
INFO: Inicializando Coyote HTTP/1.1 en puerto http-8080
29-sep-2008 17:48:42 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 969 ms
29-sep-2008 17:48:43 org.apache.catalina.core.StandardService start
INFO: Arrancando servicio Catalina
29-sep-2008 17:48:43 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
29-sep-2008 17:48:43 org.apache.catalina.core.StandardHost start
INFO: Desactivada la validación XML
29-sep-2008 17:48:43 org.apache.catalina.startup.ContextConfig 
applicationConfig
INFO: Falta el archivo web.xml de la aplicaciónb. Utilizando los 
parámetros por defecto 
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/fotos]

29-sep-2008 17:48:43 org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
29-sep-2008 17:48:43 org.apache.catalina.core.StandardHostDeployer install
INFO: Procesando URL de archivo de configuración de Contexto 
file:C:\Tomcat\conf\Catalina\localhost\admin.xml

29-sep-2008 17:48:43 org.apache.struts.util.PropertyMessageResources 
INFO: Initializing, config='org.apache.struts.util.LocalStrings', 
returnNull=true

29-sep-2008 17:48:43 org.apache.struts.util.PropertyMessageResources 
INFO: Initializing, config='org.apache.struts.action.ActionResources', 
returnNull=true

29-sep-2008 17:48:43 org.apache.struts.util.PropertyMessageResources 
INFO: Initializing, 
config='org.apache.webapp.admin.ApplicationResources', returnNull=true

29-sep-2008 17:48:45 org.apache.catalina.core.StandardHostDeployer install
INFO: Procesando URL de archivo de configuración de Contexto 
file:C:\Tomcat\conf\Catalina\localhost\balancer.xml

29-sep-2008 17:48:45 org.apache.catalina.core.StandardHostDeployer install
INFO: Procesando URL de archivo de configuración de Contexto 
file:C:\Tomcat\conf\Catalina\localhost\manager.xml
INFO: Instalando aplicaciones web en trayectoria de contexto /ADMPAC 
desde URL file:C:/Tomcat/webapps/ADMPAC

29-sep-2008 17:48:47 org.apache.catalina.core.StandardHostDeployer install
INFO: Instalando aplicaciones web en trayectoria de contexto 
/jsp-examples desde URL file:C:\Tomcat\webapps\jsp-examples

29-sep-2008 17:48:48 org.apache.catalina.core.StandardHostDeployer install
INFO: Instalando aplicaciones web en trayectoria de contexto  desde URL 
file:C:\Tomcat\webapps\ROOT

29-sep-2008 17:48:48 org.apache.catalina.core.StandardHostDeployer install
INFO: Instalando aplicaciones web en trayectoria de contexto 
/servlets-examples desde URL file:C:\Tomcat\webapps\servlets-examples

29-sep-2008 17:48:48 org.apache.catalina.core.StandardHostDeployer install
INFO: Instalando aplicaciones web en trayectoria de contexto 
/tomcat-docs desde URL file:C:\Tomcat\webapps\tomcat-docs

29-sep-2008 17:48:48 org.apache.catalina.core.StandardHostDeployer install
INFO: Instalando aplicaciones web en trayectoria de contexto /webdav 
desde URL file:C:\Tomcat\webapps\webdav

29-sep-2008 17:48:48 org.apache.coyote.http11.Http11Protocol start
INFO: Arrancando Coyote HTTP/1.1 en puerto http-8080
29-sep-2008 17:48:48 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
29-sep-2008 17:48:48 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16  config=C:\Tomcat\conf\jk2.properties
29-sep-2008 17:48:48 org.apache.catalina.startup.Catalina start
INFO: Server startup in 5953 ms
29-sep-2008 17:49:01 org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080



2. The file jakarta_service_[currentDate] is created each time I Tomcat 
is started. Always empty.


3. The file localhost_log.[currentDate] is the one I've been looking at 
since I got the error: the stack trace I posted in the very first post 
was taken from there.


2008-09-29 17:57:12 StandardContext[/ADMPAC]StandardWrapper.Throwable
java.lang.NoClassDefFoundError
   at 
oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getDefaultInstance(StrutsPageLifecycleFactory.java:68)
   at 
oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getInstance(StrutsPageLifecycleFactory.java:58)
   at 
oracle.adf.controller.v2.struts.actions.DataActionMapping.freeze(DataActionMapping.java:73)
   at 
org.apache.struts.config.impl.ModuleConfigImpl.freeze(ModuleConfigImpl.java:503)

   at org.apache.struts.action.ActionServlet.init(ActionServlet.java:474)
   at javax.servlet.GenericServlet.init(GenericServlet.java:211)
   at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
   at 
org.apache.catalina.core.

Tomcat outputs php to stderr

2008-09-29 Thread Serge Fonville
Hi,
I am developing a ticket system which should use servlets to connect to the
various resources.
Currently I am a php developer and busy to learn JSP/TLD/Servlets
I installed Tomcat 6.0.18 with PHP 5.2.6 on Windows Vista Business (the
production server will be running either Gentoo or CentOS).

Installation went fine, no errors. just one thing I couldn't resolve.
All output generated by php goes directly to the stderr log file instead of
the browser (JSP and servlets work fine)

I used
http://blog.taragana.com/index.php/archive/running-php-5x-on-windows-using-tomcat-4x-or-5x/
 and http://wiki.apache.org/tomcat/UsingPhp to configure the two.

I started reading about listeners, log4j and servlet mappings.
This seemed over the top to me, so I decided to just ask the  question here.

Any help is greatly appreciated


RE: Jconsole working without using any extra System property withTomcat6.0 started using Intellij Idea 7.0

2008-09-29 Thread Caldarale, Charles R
> From: Mark Thomas [mailto:[EMAIL PROTECTED]
> Subject: Re: Jconsole working without using any extra System
> property withTomcat6.0 started using Intellij Idea 7.0
>
> That does not agree with the docs:
> http://java.sun.com/javase/6/docs/technotes/guides/management/agent.html

Note that none of the examples show any value for the plain .jmxremote property 
(whereas .jmxremote.port, .jmxremote.access, do have values).  The table about 
half way down the page is the only place that mentions true/false for the base 
property, and it appears to be in error.

Experimentation with Tomcat using -Dcom.sun.management.jmxremote=false shows 
that the Agent is loaded at startup, and all internal Tomcat MBeans are 
accessible via local JConsole.  LambdaProbe shows that the property in question 
has a value of false.

> where are you getting your info from? I'd like to read whatever
> source you are reading.

jdk-6u7-fcs-src-b06-linux-10_jun_2008/j2se/src/share/classes/sun/management/Agent.java

If you browse through there, you'll see all the references to the plain 
.jmxremote property are just for null or non-null; the value string itself is 
not examined.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Jconsole working without using any extra System property withTomcat6.0 started using Intellij Idea 7.0

2008-09-29 Thread Caldarale, Charles R
> From: Caldarale, Charles R
> Subject: RE: Jconsole working without using any extra System
> property withTomcat6.0 started using Intellij Idea 7.0
>
> jdk-6u7-fcs-src-b06-linux-10_jun_2008/j2se/src/share/classes/s
> un/management/Agent.java
>
> If you browse through there, you'll see all the references to
> the plain .jmxremote property are just for null or non-null;
> the value string itself is not examined.

It is a bit disconcerting that there doesn't appear to be any way to actually 
disable JMX anymore...

 - 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 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 JVM not releasing deleted files (lsof show delete inodes taking up disk space)

2008-09-29 Thread Caldarale, Charles R
> From: Chad Kellerman [mailto:[EMAIL PROTECTED]
> Subject: Tomcat JVM not releasing deleted files (lsof show
> delete inodes taking up disk space)
>
> the application indexes uploaded files, the indexing process
> creates the temporary files then removes them.

Sounds like your "indexing process" is hanging onto some form of reference to 
the temporary files, thereby keeping the busy counts for the inodes up.  Space 
for a file won't be released until its busy count goes go zero, even if it is 
unlinked.

Look for places in your code that hang on to references to objects of the type 
File, RandomAccessFile, some form of InputStream or OutputStream, etc.  Not 
nulling out those references may keep the underlying inode busy.  A heap 
profiler might help in tracking down those specific object types.

 - 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 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 JVM not releasing deleted files (lsof show delete inodes taking up disk space)

2008-09-29 Thread Johnny Kewl


- Original Message - 
From: "Chad Kellerman" <[EMAIL PROTECTED]>

To: 
Sent: Monday, September 29, 2008 4:39 PM
Subject: Tomcat JVM not releasing deleted files (lsof show delete inodes 
taking up disk space)




Tomcat Users,

Just wondering if anyone else has run into this problem.

First let's get the specifics out of the way:

Tomcat: 5.5.25
Java:  Sun JDK 1.5.0_13
Linux RHEL 5

The Tomcat server is situated on it's own file system, with the 
applications

on another.  I got a page this weekend, saying that the disk space was at
95% on the application file system.  Yet when I did a 'du' on the
directories, it only showed about 4% used.  But when I did a lsof I saw 
the

rest of the used files in a "(deleted)" state.  I tried a 'sync' to see if
that would write the changes to disk, but the files were still listed as
"deleted" and the disk space (df) was still at 95%.  I had to resort to
restarting the tomcat server.  Everything freed up and the disk usage was
back to normal.  To get a better understanding... the application indexes
uploaded files, the indexing process creates the temporary files then
removes them.

I am wondering if anyone has seen this before (on Tomcat, I've seen this
with databases where the only this to do is restart the server, but never
with Tomcat) and what they have done to help alleviate the issue.


Thanks,
-- sunckell


Chad, not sure my linux is really stale now, but I think you have answered 
it... the code is not releasing the file.
Something like you up load the file, start the index in a thread, it deletes 
the file, but the thread is still holding a ref to the original file 
handle... the app is holding the file open somewhere.
If you have a windows dev box around, get someone to run it from there... XP 
gets really upset if that happens and you'll probably find it.


You disk usage is skew because linux is reporting that space available... 
but it cant let the file go, because something in the code is hanging on.


... I think... hope its your code ;)

---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---






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



iis/tomcat

2008-09-29 Thread Frank Uccello


I see the tomcat link of
http://tomcat.apache.org/connectors-doc-archive/jk2/jk/iishowto.html#Ins
tallation

But it just seem over ny head is there a very simple step by step
direction to test, configure, and setup tomcat with iis.




Re: iis/tomcat

2008-09-29 Thread Mark Thomas
Frank Uccello wrote:
> 
> I see the tomcat link of
> http://tomcat.apache.org/connectors-doc-archive/jk2/jk/iishowto.html#Ins
> tallation
> 
> But it just seem over ny head is there a very simple step by step
> direction to test, configure, and setup tomcat with iis.

1. Don't use mod_jk2. It has been unsupported for quite some time.

2. Try this: http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html

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]



RE: iis/tomcat

2008-09-29 Thread Frank Uccello
I look at that url totally confusing please help to simplify it



-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 29, 2008 1:58 PM
To: Tomcat Users List
Subject: Re: iis/tomcat

Frank Uccello wrote:
> 
> I see the tomcat link of
>
http://tomcat.apache.org/connectors-doc-archive/jk2/jk/iishowto.html#Ins
> tallation
> 
> But it just seem over ny head is there a very simple step by step
> direction to test, configure, and setup tomcat with iis.

1. Don't use mod_jk2. It has been unsupported for quite some time.

2. Try this:
http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html

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: iis/tomcat

2008-09-29 Thread Mark Thomas
Frank Uccello wrote:
> I look at that url totally confusing please help to simplify it

Start at the beginning and ask a specific question when you reach a point
you don't understand. You should also answer the following:
- what OS are you using?
- what version of IIS are you using?
- what version of mod_jk are you using?
- what version of Tomcat are you using?

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]



RE: iis/tomcat

2008-09-29 Thread Frank Uccello
I am using windows 2003 server with iis6 
Mod_jdk version 1.2.23 and tomcat 5.5


I have installed tomcat it is started and  I have point iss to the
redirctor but I can not get any web pages to work when I look at the how
to instruction tomcat iis I just do not get it how I am to install and
configure this thing.


I use to easier steps --- some of the terms of the howto document I do
not understand it is not any logical order. I find this document really
hard to understand


I usually have no problems but they usually from Microsoft much more
logical and easier to understand

(i.e step1 go to iis manager, setp2 open default web property, so on
easy step by step on exactly how to configure it. I would like on how I
can get this to work as easy and simply as possible please



Thanks


Frank


-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 29, 2008 3:09 PM
To: Tomcat Users List
Subject: Re: iis/tomcat

Frank Uccello wrote:
> I look at that url totally confusing please help to simplify it

Start at the beginning and ask a specific question when you reach a
point
you don't understand. You should also answer the following:
- what OS are you using?
- what version of IIS are you using?
- what version of mod_jk are you using?
- what version of Tomcat are you using?

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: iis/tomcat

2008-09-29 Thread Mark Thomas
Frank Uccello wrote:
> I am using windows 2003 server with iis6 
> Mod_jdk version 1.2.23 and tomcat 5.5
> 
> 
> I have installed tomcat it is started and  I have point iss to the
> redirctor but I can not get any web pages to work when I look at the how
> to instruction tomcat iis I just do not get it how I am to install and
> configure this thing.
> 
> 
> I use to easier steps --- some of the terms of the howto document I do
> not understand it is not any logical order. I find this document really
> hard to understand
> 
> 
> I usually have no problems but they usually from Microsoft much more
> logical and easier to understand
> 
> (i.e step1 go to iis manager, setp2 open default web property, so on
> easy step by step on exactly how to configure it. I would like on how I
> can get this to work as easy and simply as possible please

Again, you need to ask *specific* questions. No-one here is going to sit
down and re-write that installation document just for you. Start at the
"Configuring the ISAPI Redirector" section and ask when you get stuck.

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]



Re: Tomcat outputs php to stderr

2008-09-29 Thread Gabe Wong

Hi Serge,
Besides using PHP/Apache, the next best thing is Quercus. More info 
could be found here:

http://quercus.caucho.com/
Regards
Serge Fonville wrote:

Hi,
I am developing a ticket system which should use servlets to connect to the
various resources.
Currently I am a php developer and busy to learn JSP/TLD/Servlets
I installed Tomcat 6.0.18 with PHP 5.2.6 on Windows Vista Business (the
production server will be running either Gentoo or CentOS).

Installation went fine, no errors. just one thing I couldn't resolve.
All output generated by php goes directly to the stderr log file instead of
the browser (JSP and servlets work fine)

I used
http://blog.taragana.com/index.php/archive/running-php-5x-on-windows-using-tomcat-4x-or-5x/
 and http://wiki.apache.org/tomcat/UsingPhp to configure the two.

I started reading about listeners, log4j and servlet mappings.
This seemed over the top to me, so I decided to just ask the  question here.

Any help is greatly appreciated

  



--
Regards

Gabe Wong
NGASI AppServer Manager
JAVA AUTOMATION and SaaS Enablement for Cloud Computing
http://www.ngasi.com
NEW! FREE Developer account for Hosted version on Amazon EC2


-
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: XP/Vista/Office 2007/IE Compatibility Question

2008-09-29 Thread Johnny Kewl


- Original Message - 
From: <[EMAIL PROTECTED]>

To: 
Sent: Monday, September 29, 2008 4:33 PM
Subject: XP/Vista/Office 2007/IE Compatibility Question


Good afternoon. My company, Centocor, is in the process of upgrading its 
operating System from Windows 2000 to XP/Vista and its Office 2000 to 
Office 2007. They have installed on, I'm not sure how many, some computers 
Apache Tomcat, version 5.5. Please answer the following questions at your 
earliest convenience:




1) Is the software compatible with XP? If not, what is the compatible 
version and what are the costs involved in upgrading?


2) Is the software compatible with Vista? If not, what is the compatible 
version and what are the costs involved in upgrading?


3) If the software is not independent of Office 2007, is it compatible 
with it? If not, what is the compatible version and what are the costs 
involved in upgrading?


4) If the software is not independent of IE, what versions of it are 
compatible?


Isabel

You not going to have any problems with the above... except that Vista is 
alergic to a hell of a lot of good stuff... if you can, try stay on XP... 
nothing to do with Tomcat... Vista sucks...


http://www.iexbeta.com/wiki/index.php/Windows_Vista_RC_1_Software_Compatibility_List

Have Fun..

---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
--- 



-
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 outputs php to stderr

2008-09-29 Thread Johnny Kewl


- Original Message - 
From: "Serge Fonville" <[EMAIL PROTECTED]>

To: 
Sent: Monday, September 29, 2008 6:00 PM
Subject: Tomcat outputs php to stderr



Hi,
I am developing a ticket system which should use servlets to connect to 
the

various resources.
Currently I am a php developer and busy to learn JSP/TLD/Servlets
I installed Tomcat 6.0.18 with PHP 5.2.6 on Windows Vista Business (the
production server will be running either Gentoo or CentOS).

Installation went fine, no errors. just one thing I couldn't resolve.
All output generated by php goes directly to the stderr log file instead 
of

the browser (JSP and servlets work fine)

I used
http://blog.taragana.com/index.php/archive/running-php-5x-on-windows-using-tomcat-4x-or-5x/
and http://wiki.apache.org/tomcat/UsingPhp to configure the two.

I started reading about listeners, log4j and servlet mappings.
This seemed over the top to me, so I decided to just ask the  question 
here.


Any help is greatly appreciated



Dont do it this way... run PHP on Apache httpd... its the PHP container... 
and do your servlet stuff in TC... its a good servlet container.
Then put Apache httpd in front of TC... read up on the JK connector... and 
then to the browser its *one system*

Thats how they do it ;)

If you insist on wanting the Java PHP layer... Resin is probably the best... 
they not calling into a PHP engine, they rewrote it in Java... whether they 
up to date with all modules is the question?


Anyway... just trying to show you that you dont have to change a thing... 
join em ;)


Have fun..

---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
--- 



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



Is deployOnStartup broken?

2008-09-29 Thread Erwin Hogeweg

Hi,

I am trying to re-deploy a war file on a RHES 5.2/Tomcat 6.0.16  
server, but the war file does not expand when Tomcat is restarted.


I have set the host variable deployOnStartup to "true", but even  
though the war file has a newer timestamp that the deployed folder the  
file is not re-deployed.
The file IS redeployed when I 'touch' the war file while Tomcat is  
running, or when the expanded folder does not exist.
The catalina.out log file shows Deploying MyWar.war, but nothing  
really happens.


Is there any specific debug logging that I can enable which shows me  
what is going on?


Your help is highly appreciated,

Regards,

Erwin

-
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 Logging and URL rewrite

2008-09-29 Thread Mohit Anchlia
Is it possible to rewrite URL in tomcat like apache web server. I need
to convert abc.com/A to abc.com/B.

Also catalina.out is just writing infomation at level INFO. I changed
the level to ALL in logging.properties but still I don't see DEBUG
logs. Is there a way to debug this problem?

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