Re: Hidden form fields not found in request

2007-10-26 Thread Ognjen Blagojevic

Hi Ashok,

Ashok Venkat wrote:
In the below code, i am submitting a form to itself  in the onload method and changing some hidden form field values. After the form is submitted, the hidden values are not available in the request object.As a result, the page gets into an endless loop. 


Interesting. I treied it, and Firefox stops on JavaScript error in line

  this_form.BrowserType.value = navigator.appName;

so the form never gets submitted. After adding one more hidden field:

  input type='hidden' name='BrowserType' value='unknown!'

everything works fine.


Regards,
Ognjen


 
Thanks for any help


Code: 


//test.jsp

if(request.getParameter( ScreenResolutionHeight ) == null )
{
%
html
head
titlePlease wait one moment.../title
/head
body onload='SubmitOnLoad();'

form method='post' id='ScreenResolutionForm'
input type='hidden' name='ScreenResolutionWidth' value='1024'
input type='hidden' name='ScreenResolutionHeight' value='768'

script
function SubmitOnLoad()
{
var this_form = FindElementById( 'ScreenResolutionForm' );
this_form.ScreenResolutionWidth.value = window.screen.availWidth;
this_form.ScreenResolutionHeight.value = window.screen.availHeight;
this_form.BrowserType.value = navigator.appName;


this_form.submit();
}

function FindElementById( id )
{
if( document.getElementById )
{
return document.getElementById( id );
}
else if (document.layers)
{
return document.layers[id];
}
else if (document.all)
{
return document.all[id];
}

return undefined;
}
/script

/body
/html
%
}else {


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



-
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: Hidden form fields not found in request

2007-10-26 Thread Johnny Kewl


---
HARBOR: http://coolharbor.100free.com/index.htm
Now Tomcat is also a cool application server
---

Hi there What I suggest you do is get FireFox and the FireBug plugin, 
and then debug the script.

Javascript can be extremely tricky.
Alternatively stick alerts in your code so you can see the script invoking.

Just looking at this I cant see the /form close tag.
Also I think its better to stick the script in the Headers, so that you sure 
the browser picks up on it before the onload...


Get a debugger, its the only way to get it right... if you have an old 
version of MS interdev, that will also work.


Good luck...


- Original Message - 
From: Ashok Venkat [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Friday, October 26, 2007 4:49 AM
Subject: Hidden form fields not found in request



Hello,

In the below code, i am submitting a form to itself  in the onload method 
and changing some hidden form field values. After the form is submitted, 
the hidden values are not available in the request object.As a result, the 
page gets into an endless loop.


Thanks for any help

Code:

//test.jsp

if(request.getParameter( ScreenResolutionHeight ) == null )
{
%
html
head
titlePlease wait one moment.../title
/head
body onload='SubmitOnLoad();'

form method='post' id='ScreenResolutionForm'
input type='hidden' name='ScreenResolutionWidth' value='1024'
input type='hidden' name='ScreenResolutionHeight' value='768'

script
function SubmitOnLoad()
{
var this_form = FindElementById( 'ScreenResolutionForm' );
this_form.ScreenResolutionWidth.value = window.screen.availWidth;
this_form.ScreenResolutionHeight.value = window.screen.availHeight;
this_form.BrowserType.value = navigator.appName;


this_form.submit();
}

function FindElementById( id )
{
if( document.getElementById )
{
return document.getElementById( id );
}
else if (document.layers)
{
return document.layers[id];
}
else if (document.all)
{
return document.all[id];
}

return undefined;
}
/script

/body
/html
%
}else {


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 



-
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: Hidden form fields not found in request

2007-10-26 Thread Pid
Ognjen Blagojevic wrote:
 Hi Ashok,
 
 Ashok Venkat wrote:
 In the below code, i am submitting a form to itself  in the onload
 method and changing some hidden form field values. After the form is
 submitted, the hidden values are not available in the request
 object.As a result, the page gets into an endless loop. 
 
 Interesting. I treied it, and Firefox stops on JavaScript error in line
 
   this_form.BrowserType.value = navigator.appName;
 
 so the form never gets submitted. After adding one more hidden field:
 
   input type='hidden' name='BrowserType' value='unknown!'
 
 everything works fine.
 
 
 Regards,
 Ognjen

It looks like a nasty and somewhat unsafe solution to some problem or
other.  Is there a reason you need to submit the page at all?

If you're submitting the page to itself, AND using javascript, why not
just use the scripting to alter the contents of the hidden fields?

They can be uniquely identified on the page if you supply an id
attribute - you could modify them directly...


Alternatively, if you're just testing a concept at this stage, I'd
suggest that you could use an AJAX call to submit the page dimensions to
a backend during onloads execution.


p



 Thanks for any help

 Code:
 //test.jsp

 if(request.getParameter( ScreenResolutionHeight ) == null )
 {
 %
 html
 head
 titlePlease wait one moment.../title
 /head
 body onload='SubmitOnLoad();'

 form method='post' id='ScreenResolutionForm'
 input type='hidden' name='ScreenResolutionWidth' value='1024'
 input type='hidden' name='ScreenResolutionHeight' value='768'

 script
 function SubmitOnLoad()
 {
 var this_form = FindElementById( 'ScreenResolutionForm' );
 this_form.ScreenResolutionWidth.value = window.screen.availWidth;
 this_form.ScreenResolutionHeight.value = window.screen.availHeight;
 this_form.BrowserType.value = navigator.appName;


 this_form.submit();
 }

 function FindElementById( id )
 {
 if( document.getElementById )
 {
 return document.getElementById( id );
 }
 else if (document.layers)
 {
 return document.layers[id];
 }
 else if (document.all)
 {
 return document.all[id];
 }

 return undefined;
 }
 /script

 /body
 /html
 %
 }else {
 

 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com 
 
 
 -
 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: JDBC Realm with case insensitive user name

2007-10-26 Thread Pedro

OK PID then you tell me where the jar goes hey?

Pid wrote:

Pedro wrote:
  

Thanks for stating the obvious Tim, in 5.5 the 'server' directory is
supposed to be the correct place! the question is if the implementation
is valid.



You referred to ClassNotFoundException's - his answer is therefore valid.

Perhaps you can elaborate on when you're getting this exception if we're
to help you.

p




  

Tim Funk wrote:


The dir structure changed from 5.5 to 6 so you need to place your
files in different directories depending on the version. See the
version specific docs details.


-Tim

Pedro wrote:
  

Hi all,

I basically need to implement case insensitive user names, can this
be done with a servlet filter or do I need to subclass JDBC realm:

public class CustomJdbcRealm extends JDBCRealm {

 public CustomJdbcRealm() {
  super();
 }
 public Principal authenticate(String username, String
credentials) {
   return super.authenticate(username.toLowerCase(), credentials);
   }
}

And in server.xml:
Realm className=mypackage.CustomJdbcRealm ...

I tried this approach but get class not found exceptions, I am using
tomcat6 in development and 5.5 in production. I package this class in
a jar and drop it in the $CATALENA_BASE/server/lib folder.
 


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


  



-
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: JDBC Realm with case insensitive user name

2007-10-26 Thread Pedro

Hi Christopher,

I knew that MySql does this, but I am using Postgres for this project 
and don't know if it is possible, the default is case sensitive for 
Postgres. 

The unique key option is out, as it has to be an id field for our 
database beans to work, but a unique constraint is possible I guess... 
maybe worth looking at!


Thanks
Peter

Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Pedro,

Pedro wrote:
  

I basically need to implement case insensitive user names, can this be
done with a servlet filter or do I need to subclass JDBC realm:



Er, before you get too far on this, check to see if your database
already does this without you realizing that it does.

For instance, MySQL does case-insensitive VARCHAR and CHAR lookups
unless the column type is marked BINARY or you cast the type to BINARY
in your SQL query.

For instance, 'chris' = 'CHRIS' in MySQL inder normal circumstances.

Primary and unique keys respect this behavior, too, so I can't have
chris and CHRIS as two separate usernames in my user table where
username is a UNIQUE key.

You might be able to save yourself a lot of trouble.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHIQru9CaO5/Lv0PARAkV6AJ9eBvJFTb8HCA5lL/6iU17AVF4DyQCgoDWg
TA5RHoInDsnxkDSqILJiYvI=
=J3qJ
-END PGP SIGNATURE-

-
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: Help with Tomcat IIS

2007-10-26 Thread myrealbruno
Hi,

I think the mailing list archives are full of people with IIS - or Apache - 
fronting Tomcat.
There is a very good article that explains the technical reasons 
http://people.apache.org/~mturk/docs/article/ftwai.html

Also, there might be cases where the reasons are political, or when the 
environment is very heterogenous, or combinations of the
two.
(The last sentence should be read with a sad tone)

Hope it helps,
b.

- Original Message - 
From: Jacob Rhoden [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, October 25, 2007 12:38 AM
Subject: Re: Help with Tomcat  IIS


 Wow, this is the first time I have heard of someone wanting to use
 Tomcat with IIS. Most IIS people would be using .NET. (I am interested
 to hear from people if its possible and why you would do it)

 Is there a speciffic reason you need to connect it to IIS? Did you know
 that tomcat can be used without Apache or IIS? Simply edit the
 server.xml file so that it listens on port 80 instead of port 8080. This
 makes configuration much easier. However I understand if you do have a
 specific reason to use IIS.

 Best Regards,
 Jacob

 Demetris Zavorotnichenko wrote:
  I have been banging my head about this for a long time and haven't figured
  it out yet.
 
  I have a 64 Bit Machine with Windows Server 2003 (64 bit)
 
 
 
  What version of Tomcat should I install in order to be able to connect it to
  IIS 6
 
 
 
  And
 
 
 
  What Jakata connector version should I use? Which would be compatible with
  all this.
 
 
 
 
 
  Please help me out on this.
 
 
 
  I have been through the tutorials a hundred times and I got confused since
  there are SO many Directories with different Jakata Connectors for different
  versions.
 
 
 
  Please if someone could write down this things (in short) - since I know
  the procedure of setting this up
 
 
 
  Please help me here.
 
 
 
 
 





---AV  Spam Filtering by M+Guardian - Risk Free Email (TM)---


-
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: JDBC Realm with case insensitive user name

2007-10-26 Thread Pid
Pedro wrote:
 OK PID then you tell me where the jar goes hey?

That's a lot of attitude for someone who wants help from the list. Or am
I misreading your tone?

I refer to my previous question:

 Perhaps you can elaborate on when you're getting this exception if we're
 to help you.

(An actual error message would also be useful.)


You say you are using Tomcat 6 for development, and Tomcat 5.5 in
production.  Is the error occurring in development or production?

Which version of Tomcat are you compiling the classes against?  The
internal class structure of Tomcat 6 is not guaranteed to be identical
to Tomcat 5.5, so it's entirely possibly you're using a class that
doesn't exist in 5.5, if you're compiling against 6 and deploying
against 5.5.  (or vice versa).

p


{

The most common reason that a ClassNotFoundException is encountered
while mixing testing/deployment on different versions of Tomcat is that
jars have been placed in the wrong location.

List members usually offer up the obvious solutions first, because
they're the most common solutions.  Especially given that one message is
usually insufficient to determine what the users level of knowledge is.

Fsck knows why I'm bothering to explain that though.

}


 p




  
 Tim Funk wrote:

 The dir structure changed from 5.5 to 6 so you need to place your
 files in different directories depending on the version. See the
 version specific docs details.


 -Tim

 Pedro wrote:
  
 Hi all,

 I basically need to implement case insensitive user names, can this
 be done with a servlet filter or do I need to subclass JDBC realm:

 public class CustomJdbcRealm extends JDBCRealm {

  public CustomJdbcRealm() {
   super();
  }
  public Principal authenticate(String username, String
 credentials) {
return super.authenticate(username.toLowerCase(), credentials);
}
 }

 And in server.xml:
 Realm className=mypackage.CustomJdbcRealm ...

 I tried this approach but get class not found exceptions, I am using
 tomcat6 in development and 5.5 in production. I package this class in
 a jar and drop it in the $CATALENA_BASE/server/lib folder.
  
 
 -
 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]


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



[OT] Re: JDBC Realm with case insensitive user name

2007-10-26 Thread Pid
Peter Stavrinides wrote:
The most common reason...blah blah
 
 You know pid, just because people ask questions doesn't mean they are
 stupid, so why treat them that way? If you can read 'carefully' you can
 notice that the path was given as well as the relevant config in
 server.xml. So If the path was incorrect you could see it immediately, I
 didn't write this because it seemed like a good idea, it was there for a
 purpose.

 That's a lot of attitude for someone who wants help from the list. Or am
 I misreading your tone?
 
 You are not compelled to answer, in-fact it is preferred that you don't
 answer questions if you are going to diverge off the actual problem,
 because it side-tracks serious readers, as is becoming the case with
 this question, and the likelihood of a solution being found is
 diminished... can you understand the irritation??

erm, what?

did or did not the original question end with a query about packaging
and class not found exceptions?

someone had already taken care of the case-sensitivity point, i was
attempting to address the other one, as had Tim previously (who also got
a sharpish response from the OP).

p


 Pid wrote:
 Pedro wrote:
  
 OK PID then you tell me where the jar goes hey?
 

 That's a lot of attitude for someone who wants help from the list. Or am
 I misreading your tone?

 I refer to my previous question:

  
 Perhaps you can elaborate on when you're getting this exception if
 we're
 to help you.
   

 (An actual error message would also be useful.)


 You say you are using Tomcat 6 for development, and Tomcat 5.5 in
 production.  Is the error occurring in development or production?

 Which version of Tomcat are you compiling the classes against?  The
 internal class structure of Tomcat 6 is not guaranteed to be identical
 to Tomcat 5.5, so it's entirely possibly you're using a class that
 doesn't exist in 5.5, if you're compiling against 6 and deploying
 against 5.5.  (or vice versa).

 p


 {

 The most common reason that a ClassNotFoundException is encountered
 while mixing testing/deployment on different versions of Tomcat is that
 jars have been placed in the wrong location.

 List members usually offer up the obvious solutions first, because
 they're the most common solutions.  Especially given that one message is
 usually insufficient to determine what the users level of knowledge is.

 Fsck knows why I'm bothering to explain that though.

 }


  
 p




  
  
 Tim Funk wrote:
   
 The dir structure changed from 5.5 to 6 so you need to place your
 files in different directories depending on the version. See the
 version specific docs details.


 -Tim

 Pedro wrote:
   
 Hi all,

 I basically need to implement case insensitive user names, can this
 be done with a servlet filter or do I need to subclass JDBC realm:

 public class CustomJdbcRealm extends JDBCRealm {

  public CustomJdbcRealm() {
   super();
  }
  public Principal authenticate(String username, String
 credentials) {
return super.authenticate(username.toLowerCase(),
 credentials);
}
 }

 And in server.xml:
 Realm className=mypackage.CustomJdbcRealm ...

 I tried this approach but get class not found exceptions, I am using
 tomcat6 in development and 5.5 in production. I package this
 class in
 a jar and drop it in the $CATALENA_BASE/server/lib folder.
  
 
 -
 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]


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


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

Re: JDBC Realm with case insensitive user name

2007-10-26 Thread Peter Stavrinides

The most common reason...blah blah

You know pid, just because people ask questions doesn't mean they are 
stupid, so why treat them that way? If you can read 'carefully' you can 
notice that the path was given as well as the relevant config in 
server.xml. So If the path was incorrect you could see it immediately, I 
didn't write this because it seemed like a good idea, it was there for a 
purpose.



That's a lot of attitude for someone who wants help from the list. Or am
I misreading your tone?


You are not compelled to answer, in-fact it is preferred that you don't 
answer questions if you are going to diverge off the actual problem, 
because it side-tracks serious readers, as is becoming the case with 
this question, and the likelihood of a solution being found is 
diminished... can you understand the irritation??


Pid wrote:

Pedro wrote:
  

OK PID then you tell me where the jar goes hey?



That's a lot of attitude for someone who wants help from the list. Or am
I misreading your tone?

I refer to my previous question:

  

Perhaps you can elaborate on when you're getting this exception if we're
to help you.
  


(An actual error message would also be useful.)


You say you are using Tomcat 6 for development, and Tomcat 5.5 in
production.  Is the error occurring in development or production?

Which version of Tomcat are you compiling the classes against?  The
internal class structure of Tomcat 6 is not guaranteed to be identical
to Tomcat 5.5, so it's entirely possibly you're using a class that
doesn't exist in 5.5, if you're compiling against 6 and deploying
against 5.5.  (or vice versa).

p


{

The most common reason that a ClassNotFoundException is encountered
while mixing testing/deployment on different versions of Tomcat is that
jars have been placed in the wrong location.

List members usually offer up the obvious solutions first, because
they're the most common solutions.  Especially given that one message is
usually insufficient to determine what the users level of knowledge is.

Fsck knows why I'm bothering to explain that though.

}


  

p




 
  

Tim Funk wrote:
   


The dir structure changed from 5.5 to 6 so you need to place your
files in different directories depending on the version. See the
version specific docs details.


-Tim

Pedro wrote:
 
  

Hi all,

I basically need to implement case insensitive user names, can this
be done with a servlet filter or do I need to subclass JDBC realm:

public class CustomJdbcRealm extends JDBCRealm {

 public CustomJdbcRealm() {
  super();
 }
 public Principal authenticate(String username, String
credentials) {
   return super.authenticate(username.toLowerCase(), credentials);
   }
}

And in server.xml:
Realm className=mypackage.CustomJdbcRealm ...

I tried this approach but get class not found exceptions, I am using
tomcat6 in development and 5.5 in production. I package this class in
a jar and drop it in the $CATALENA_BASE/server/lib folder.
 



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


  
  

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



RE: Help with Tomcat IIS

2007-10-26 Thread Charlie Wingate
Lol,
My whole job is a sad tone as the company can not seem to make up its'
mind about .net or java.  So some stuff is asp and other stuff java;
thus mixed I am left.  :)

~Charlie
 
 
The significant problems we have cannot be solved at the same level of
thinking with which we created them.
  - Albert Einstein

-Original Message-
From: myrealbruno [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 26, 2007 6:23 AM
To: Tomcat Users List
Subject: Re: Help with Tomcat  IIS

Hi,

I think the mailing list archives are full of people with IIS - or
Apache - fronting Tomcat.
There is a very good article that explains the technical reasons
http://people.apache.org/~mturk/docs/article/ftwai.html

Also, there might be cases where the reasons are political, or when the
environment is very heterogenous, or combinations of the
two.
(The last sentence should be read with a sad tone)

Hope it helps,
b.

- Original Message - 
From: Jacob Rhoden [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, October 25, 2007 12:38 AM
Subject: Re: Help with Tomcat  IIS


 Wow, this is the first time I have heard of someone wanting to use
 Tomcat with IIS. Most IIS people would be using .NET. (I am interested
 to hear from people if its possible and why you would do it)

 Is there a speciffic reason you need to connect it to IIS? Did you
know
 that tomcat can be used without Apache or IIS? Simply edit the
 server.xml file so that it listens on port 80 instead of port 8080.
This
 makes configuration much easier. However I understand if you do have a
 specific reason to use IIS.

 Best Regards,
 Jacob

 Demetris Zavorotnichenko wrote:
  I have been banging my head about this for a long time and haven't
figured
  it out yet.
 
  I have a 64 Bit Machine with Windows Server 2003 (64 bit)
 
 
 
  What version of Tomcat should I install in order to be able to
connect it to
  IIS 6
 
 
 
  And
 
 
 
  What Jakata connector version should I use? Which would be
compatible with
  all this.
 
 
 
 
 
  Please help me out on this.
 
 
 
  I have been through the tutorials a hundred times and I got confused
since
  there are SO many Directories with different Jakata Connectors for
different
  versions.
 
 
 
  Please if someone could write down this things (in short) - since I
know
  the procedure of setting this up
 
 
 
  Please help me here.
 
 
 
 
 





---AV  Spam Filtering by M+Guardian - Risk Free Email (TM)---


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




 
 


This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals 
computer viruses.








---
This message is a CONFIDENTIAL communication.  If you are not the intended 
recipient, please do not read, copy, or use it, and do not disclose it to 
others.  Please notify the sender of the delivery error by replying to this 
message, and then delete it from your system.  Thank you.


This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals  computer 
viruses.





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



PKCS#12 type SSL certificate support in Tomcat

2007-10-26 Thread Hitesh Raghav
Dear All,
 
Is there any limitation to support PKCS#12 type SSL certificate in
Tomcat.
 
As per Tomcat User Guide, Tomcat currently operates with JKS, PKCS11 or
PKCS12 format keystores.
http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html
 
But, I'm unable to use PKCS#12 certificate in my Tomcat.
 
It throws:
 
java.io.IOException: Invalid keystore format
at
sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:633)
at
sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)
at java.security.KeyStore.load(KeyStore.java:1185)
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFac
tory.java:287)
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocket
Factory.java:227)
at
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE1
4SocketFactory.java:142)
at
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFac
tory.java:110)
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocke
tFactory.java:89)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.
java:293)
at
org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java
:139)
at
org.apache.catalina.connector.Connector.initialize(Connector.java:1017)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java
:578)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:7
82)
at
org.apache.catalina.startup.Catalina.load(Catalina.java:504)
at
org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
 
Could you please throw some light on PKCS#12 type certificate support.
 
Please let me know in case any details are needed.
 
 
Thanks,
-Hitesh
 


Re: [OT] Re: JDBC Realm with case insensitive user name

2007-10-26 Thread David Smith

Peter -- cool it.  As quoted from the OP below:


I tried this approach but get class not found exceptions, I am using
tomcat6 in development and 5.5 in production. I package this
class in
a jar and drop it in the $CATALENA_BASE/server/lib folder.



Tim Funk actually (and correctly) asked the OP to read the docs.  I 
would add that the dev system should be on the same version as the 
production system.  To cross versions like this between development and 
production is counter-productive.  $CATALINA_BASE/server/lib works for 
5.5, but not for 6.  In tomcat 6, it should be $CATALINA_BASE/lib by 
default.


--David



Pid wrote:


Peter Stavrinides wrote:
 


The most common reason...blah blah
 


You know pid, just because people ask questions doesn't mean they are
stupid, so why treat them that way? If you can read 'carefully' you can
notice that the path was given as well as the relevant config in
server.xml. So If the path was incorrect you could see it immediately, I
didn't write this because it seemed like a good idea, it was there for a
purpose.

   


That's a lot of attitude for someone who wants help from the list. Or am
I misreading your tone?
 


You are not compelled to answer, in-fact it is preferred that you don't
answer questions if you are going to diverge off the actual problem,
because it side-tracks serious readers, as is becoming the case with
this question, and the likelihood of a solution being found is
diminished... can you understand the irritation??
   



erm, what?

did or did not the original question end with a query about packaging
and class not found exceptions?

someone had already taken care of the case-sensitivity point, i was
attempting to address the other one, as had Tim previously (who also got
a sharpish response from the OP).

p


 


Pid wrote:
   


Pedro wrote:

 


OK PID then you tell me where the jar goes hey?
   
   


That's a lot of attitude for someone who wants help from the list. Or am
I misreading your tone?

I refer to my previous question:


 


Perhaps you can elaborate on when you're getting this exception if
we're
to help you.
 
 


(An actual error message would also be useful.)


You say you are using Tomcat 6 for development, and Tomcat 5.5 in
production.  Is the error occurring in development or production?

Which version of Tomcat are you compiling the classes against?  The
internal class structure of Tomcat 6 is not guaranteed to be identical
to Tomcat 5.5, so it's entirely possibly you're using a class that
doesn't exist in 5.5, if you're compiling against 6 and deploying
against 5.5.  (or vice versa).

p


{

The most common reason that a ClassNotFoundException is encountered
while mixing testing/deployment on different versions of Tomcat is that
jars have been placed in the wrong location.

List members usually offer up the obvious solutions first, because
they're the most common solutions.  Especially given that one message is
usually insufficient to determine what the users level of knowledge is.

Fsck knows why I'm bothering to explain that though.

}



 


p






 


Tim Funk wrote:
 
   


The dir structure changed from 5.5 to 6 so you need to place your
files in different directories depending on the version. See the
version specific docs details.


-Tim

Pedro wrote:
 
 


Hi all,

I basically need to implement case insensitive user names, can this
be done with a servlet filter or do I need to subclass JDBC realm:

public class CustomJdbcRealm extends JDBCRealm {

public CustomJdbcRealm() {
 super();
}
public Principal authenticate(String username, String
credentials) {
  return super.authenticate(username.toLowerCase(),
credentials);
  }
}

And in server.xml:
Realm className=mypackage.CustomJdbcRealm ...

I tried this approach but get class not found exceptions, I am using
tomcat6 in development and 5.5 in production. I package this
class in
a jar and drop it in the $CATALENA_BASE/server/lib folder.

   
   


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


   
 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL 

Re: [OT] Re: JDBC Realm with case insensitive user name

2007-10-26 Thread Pid
Pid wrote:
 Peter Stavrinides wrote:
 The most common reason...blah blah
 You know pid, just because people ask questions doesn't mean they are
 stupid, so why treat them that way? If you can read 'carefully' you can
 notice that the path was given as well as the relevant config in
 server.xml. So If the path was incorrect you could see it immediately, I
 didn't write this because it seemed like a good idea, it was there for a
 purpose.

 That's a lot of attitude for someone who wants help from the list. Or am
 I misreading your tone?
 You are not compelled to answer, in-fact it is preferred that you don't
 answer questions if you are going to diverge off the actual problem,
 because it side-tracks serious readers, as is becoming the case with
 this question, and the likelihood of a solution being found is
 diminished... can you understand the irritation??
 
 erm, what?
 
 did or did not the original question end with a query about packaging
 and class not found exceptions?
 
 someone had already taken care of the case-sensitivity point, i was
 attempting to address the other one, as had Tim previously (who also got
 a sharpish response from the OP).

(who i'm now guessing is you)

 p
 
 
 Pid wrote:
 Pedro wrote:
  
 OK PID then you tell me where the jar goes hey?
 
 That's a lot of attitude for someone who wants help from the list. Or am
 I misreading your tone?

 I refer to my previous question:

  
 Perhaps you can elaborate on when you're getting this exception if
 we're
 to help you.
   
 (An actual error message would also be useful.)


 You say you are using Tomcat 6 for development, and Tomcat 5.5 in
 production.  Is the error occurring in development or production?

 Which version of Tomcat are you compiling the classes against?  The
 internal class structure of Tomcat 6 is not guaranteed to be identical
 to Tomcat 5.5, so it's entirely possibly you're using a class that
 doesn't exist in 5.5, if you're compiling against 6 and deploying
 against 5.5.  (or vice versa).

 p


 {

 The most common reason that a ClassNotFoundException is encountered
 while mixing testing/deployment on different versions of Tomcat is that
 jars have been placed in the wrong location.

 List members usually offer up the obvious solutions first, because
 they're the most common solutions.  Especially given that one message is
 usually insufficient to determine what the users level of knowledge is.

 Fsck knows why I'm bothering to explain that though.

 }


  
 p




  
  
 Tim Funk wrote:
   
 The dir structure changed from 5.5 to 6 so you need to place your
 files in different directories depending on the version. See the
 version specific docs details.


 -Tim

 Pedro wrote:
   
 Hi all,

 I basically need to implement case insensitive user names, can this
 be done with a servlet filter or do I need to subclass JDBC realm:

 public class CustomJdbcRealm extends JDBCRealm {

  public CustomJdbcRealm() {
   super();
  }
  public Principal authenticate(String username, String
 credentials) {
return super.authenticate(username.toLowerCase(),
 credentials);
}
 }

 And in server.xml:
 Realm className=mypackage.CustomJdbcRealm ...

 I tried this approach but get class not found exceptions, I am using
 tomcat6 in development and 5.5 in production. I package this
 class in
 a jar and drop it in the $CATALENA_BASE/server/lib folder.
  
 
 -
 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]


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


 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To 

Re: [OT] Re: JDBC Realm with case insensitive user name

2007-10-26 Thread Peter Stavrinides
David, you are also arrogant!! I know what I wrote, and I know where the 
classloader looks for things so Tims answer is irrelevant and so is 
yours given that I have placed the jar in the correct place already and 
configured server.xml correctly. You also lack basic reading skills if 
you cant see this.



David Smith wrote:

Peter -- cool it.  As quoted from the OP below:


I tried this approach but get class not found exceptions, I am using
tomcat6 in development and 5.5 in production. I package this
class in
a jar and drop it in the $CATALENA_BASE/server/lib folder.



Tim Funk actually (and correctly) asked the OP to read the docs.  I 
would add that the dev system should be on the same version as the 
production system.  To cross versions like this between development 
and production is counter-productive.  $CATALINA_BASE/server/lib works 
for 5.5, but not for 6.  In tomcat 6, it should be $CATALINA_BASE/lib 
by default.


--David



Pid wrote:


Peter Stavrinides wrote:
 


The most common reason...blah blah


You know pid, just because people ask questions doesn't mean they are
stupid, so why treat them that way? If you can read 'carefully' you can
notice that the path was given as well as the relevant config in
server.xml. So If the path was incorrect you could see it 
immediately, I
didn't write this because it seemed like a good idea, it was there 
for a

purpose.

  
That's a lot of attitude for someone who wants help from the list. 
Or am

I misreading your tone?


You are not compelled to answer, in-fact it is preferred that you don't
answer questions if you are going to diverge off the actual problem,
because it side-tracks serious readers, as is becoming the case with
this question, and the likelihood of a solution being found is
diminished... can you understand the irritation??
  


erm, what?

did or did not the original question end with a query about packaging
and class not found exceptions?

someone had already taken care of the case-sensitivity point, i was
attempting to address the other one, as had Tim previously (who also got
a sharpish response from the OP).

p


 


Pid wrote:
  

Pedro wrote:



OK PID then you tell me where the jar goes hey?
 
That's a lot of attitude for someone who wants help from the list. 
Or am

I misreading your tone?

I refer to my previous question:




Perhaps you can elaborate on when you're getting this exception if
we're
to help you.
 

(An actual error message would also be useful.)


You say you are using Tomcat 6 for development, and Tomcat 5.5 in
production.  Is the error occurring in development or production?

Which version of Tomcat are you compiling the classes against?  The
internal class structure of Tomcat 6 is not guaranteed to be identical
to Tomcat 5.5, so it's entirely possibly you're using a class that
doesn't exist in 5.5, if you're compiling against 6 and deploying
against 5.5.  (or vice versa).

p


{

The most common reason that a ClassNotFoundException is encountered
while mixing testing/deployment on different versions of Tomcat is 
that

jars have been placed in the wrong location.

List members usually offer up the obvious solutions first, because
they're the most common solutions.  Especially given that one 
message is
usually insufficient to determine what the users level of knowledge 
is.


Fsck knows why I'm bothering to explain that though.

}





p







Tim Funk wrote:
   

The dir structure changed from 5.5 to 6 so you need to place your
files in different directories depending on the version. See the
version specific docs details.


-Tim

Pedro wrote:
 

Hi all,

I basically need to implement case insensitive user names, can 
this
be done with a servlet filter or do I need to subclass JDBC 
realm:


public class CustomJdbcRealm extends JDBCRealm {

public CustomJdbcRealm() {
 super();
}
public Principal authenticate(String username, String
credentials) {
  return super.authenticate(username.toLowerCase(),
credentials);
  }
}

And in server.xml:
Realm className=mypackage.CustomJdbcRealm ...

I tried this approach but get class not found exceptions, I am 
using

tomcat6 in development and 5.5 in production. I package this
class in
a jar and drop it in the $CATALENA_BASE/server/lib folder.

 
- 


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 

RE: Help with Tomcat IIS

2007-10-26 Thread Demetris Zavorotnichenko
Just another question  (not quite on the subject)

I have several websites that I have through IIS 

How can I host the all through a single IP ?

I have assigned separate Header to each but what next ?

How can I browse those pages from another computer on the network ?


-
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: Strante tomcat warning - WARNING: Parameters: Character decoding failed. Parameter skipped.

2007-10-26 Thread TimJowers
Jacob Rhoden jacob at rhoden.id.au writes:

Did you figure this out? 

It is due to a spurious extra % at the end of a link. E.g.
td  
iframe width=900 height=700 src=bugger.jsp?c=%=ch%s=%=sh% %
/iframe
/td

Notice the programmer typed % % when meant %.

The error message:
WARNING: Parameters: Character decoding failed. Parameter skipped.
java.io.CharConversionException: EOF
at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:83)
at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:49)
at org.apache.tomcat.util.http.Parameters.urlDecode(Parameters.java:412)

at org.apache.tomcat.util.http.Parameters.processParameters(Parameters.j
ava:394)
at org.apache.tomcat.util.http.Parameters.processParameters(Parameters.j
ava:510)
at org.apache.tomcat.util.http.Parameters.handleQueryParameters(Paramete
rs.java:267)
at org.apache.catalina.connector.Request.parseParameters(Request.java:24
21)
at org.apache.catalina.connector.Request.getParameter(Request.java:1040)

at org.apache.catalina.connector.RequestFacade.getParameter(RequestFacad
e.java:355)
at org.apache.jsp.buggershowURL_jsp._jspService(buggershowURL_jsp.java:5
7)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

sorta hides the real problem of a malformed URL. Maybe a good case for a nested
Exception message. Or just don't make typos and the problem will not occur.


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



Philamasophical question META-INF

2007-10-26 Thread Johnny Kewl
---
HARBOR: http://coolharbor.100free.com/index.htm
Now Tomcat is also a cool application server
---

Got a little sensitive info that I would like to package with an application.
I noticed that even if the user has say left listing on.. that stuff in 
META-INF is not listed. TC seems to actively block it or ignore it.

What do you think... if I stay away from names like
context.xml
and 
MANIFEST.MF

do you think its an OK to store in META-INF or am I breaking some rule that I 
should know about?

Thanks...




Re: Service on Windows Server 2003

2007-10-26 Thread Dan Armbrust
Finally - I understand most of what is wrong!  I finally got access to
the system again, and after pulling off the debug log from the service
launcher, things became clear.

It turns out that on this system, the command that was actually being
run to register the service was:

%TOMCAT_HOME%\bin\tomcat5.exe //IS//Tomcat5 --StartClass
org.apache.catalina.startup.Bootstrap --StopClass
org.apache.catalina.startup.Bootstrap --StartParams start --StopParams
stop --Startup=auto --StartMode jvm --StopMode jvm --JvmOptions
-Dcatalina.base=%CATALINA_BASE%;-Dcatalina.home=%CATALINA_HOME%;-Djava.rmi.server.hostname=%COMPUTERNAME%;-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed;-Djava.io.tmpdir=%CATALINA_BASE%\temp;
-XX:+UseConcMarkSweepGC;
-XX:+UseParNewGC;-Djava.net.preferIPv4Stack=true --JvmSs 250 --JvmMs
512 --JvmMx 512


Most notably, there was a space in front of the two -XX parameters here:

-Djava.io.tmpdir=%CATALINA_BASE%\temp; -XX:+UseConcMarkSweepGC;
-XX:+UseParNewGC;

Those spaces were causing the tomcat launch to fail - but this is the
really strange part I still don't quite understand - it only fails
Windows Server 2003.

On Windows XP, the register service command appears to strip out those
extra spaces - they aren't there when I look at the result with
tomcat5w.exe.  But, on Windows Server 2003, those spaces get put in
verbatim.

Why would this work on XP, and fail on server 2003?

Thanks,

Dan

-
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: Class loading issue

2007-10-26 Thread Caldarale, Charles R
 From: Tony Fountain [mailto:[EMAIL PROTECTED] 
 Subject: Class loading issue
 
 but when the webapp loads, one of the classes it requires 
 generates an error the first time the webapp is accessed
 via the browser.  

What error?  Do you have an associated stack trace?  Is there anything
in the logs?

Note that common/lib is visible not only to the webapp, but also to the
container classes.  Just speculating, but if the classes in question are
used somehow for something like container-managed connection pooling,
they must be visible to Tomcat as well as the webapp.

 - 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: Class loading issue

2007-10-26 Thread Tony Fountain
Sorry, I should not that the error generated was something about
DocumentBuilderFactoryImpl is not being loaded properly.  This is a
class that is accessed as a part of this product.

Thanks,
Tony

-Original Message-
From: Tony Fountain [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 26, 2007 9:43 AM
To: Tomcat Users List
Subject: Class loading issue

Windows 2003 Server
Apache Tomcat 5.5.23 (running as Windows service) JVM 1.5.0_12b-04 (Sun)
 
In an attempt to have a specific web app load when Apache starts, I
added the following element to the \WEB-INF\web.xml file for the
appropriate servlet - load-on-startup1/load-on-startup.  This works,
but when the webapp loads, one of the classes it requires generates an
error the first time the webapp is accessed via the browser.  The class
is contained in a JAR that resides in the \WEB-INF\lib folder.  This
webapp is not written by us, rather it's a product we purchased.  At the
suggestion of the vendor I moved the JAR file to the \Tomcat\common\lib
folder and everything now works just fine.  I've reviewed the
documentation on class loading in Tomcat 5.5 but this still makes no
sense to me in terms of why this happens and why moving it fixed it.
According to this documentation, the \WEB-INF\lib solution should work
just fine.  Any thoughts?  Note that if I do not attempt to load on
startup then everything works fine (just takes several seconds for the
webapp to load upon the initial access).
 
Thanks,
Tony

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



This Email has been scanned for all viruses by PAETEC Email Scanning
Services, utilizing MessageLabs proprietary SkyScan infrastructure. For
more information on a proactive anti-virus service working around the
clock, around the globe, visit http://www.paetec.com.



This Email has been scanned for all viruses by PAETEC Email Scanning
Services, utilizing MessageLabs proprietary SkyScan infrastructure. For
more information on a proactive anti-virus service working around the
clock, around the globe, visit http://www.paetec.com.


-
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: Help with Tomcat IIS

2007-10-26 Thread Charlie Wingate
Tony,
  When the decisions are made based on an evaluative process and the
best suited is chosen I am all in.  For me it seems platform choice is
mostly based on who thunk up the idea and cast it into requirements
and not on logical rationality.  But hey, it pays the bills.  :)

~Charlie
 
 
The significant problems we have cannot be solved at the same level of
thinking with which we created them.
  - Albert Einstein

-Original Message-
From: Tony Fountain [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 26, 2007 9:22 AM
To: Tomcat Users List; myrealbruno
Subject: RE: Help with Tomcat  IIS

I do not agree with the statement about it being a sad tone.  95% of
our shop is .NET / IIS / MSSQL, however we are intergrating another
product into our applications that is written in Java and requires a
J2EE compliant application server to run, thus here I am :).  I
understand the thoughts and practices of streamlining the technologies
in your shop but being too strict about it also limits your options.
There is valid consideration that needs to be made to the best tool for
the job as well.  We spent about 6 months evaluating a variety of tools
and in this case, the ones that were .NET based fell very short of the
product we ended up choosing.

/soapbox

Tony

-Original Message-
From: myrealbruno [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 26, 2007 6:23 AM
To: Tomcat Users List
Subject: Re: Help with Tomcat  IIS

Hi,

I think the mailing list archives are full of people with IIS - or
Apache - fronting Tomcat.
There is a very good article that explains the technical reasons
http://people.apache.org/~mturk/docs/article/ftwai.html

Also, there might be cases where the reasons are political, or when the
environment is very heterogenous, or combinations of the two.
(The last sentence should be read with a sad tone)

Hope it helps,
b.

- Original Message -
From: Jacob Rhoden [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, October 25, 2007 12:38 AM
Subject: Re: Help with Tomcat  IIS


 Wow, this is the first time I have heard of someone wanting to use
 Tomcat with IIS. Most IIS people would be using .NET. (I am interested
 to hear from people if its possible and why you would do it)

 Is there a speciffic reason you need to connect it to IIS? Did you
know
 that tomcat can be used without Apache or IIS? Simply edit the
 server.xml file so that it listens on port 80 instead of port 8080.
This
 makes configuration much easier. However I understand if you do have a
 specific reason to use IIS.

 Best Regards,
 Jacob

 Demetris Zavorotnichenko wrote:
  I have been banging my head about this for a long time and haven't
figured
  it out yet.
 
  I have a 64 Bit Machine with Windows Server 2003 (64 bit)
 
 
 
  What version of Tomcat should I install in order to be able to
connect it to
  IIS 6
 
 
 
  And
 
 
 
  What Jakata connector version should I use? Which would be
compatible with
  all this.
 
 
 
 
 
  Please help me out on this.
 
 
 
  I have been through the tutorials a hundred times and I got confused
since
  there are SO many Directories with different Jakata Connectors for
different
  versions.
 
 
 
  Please if someone could write down this things (in short) - since I
know
  the procedure of setting this up
 
 
 
  Please help me here.
 
 
 
 
 





---AV  Spam Filtering by M+Guardian - Risk Free Email (TM)---


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



This Email has been scanned for all viruses by PAETEC Email Scanning
Services, utilizing MessageLabs proprietary SkyScan infrastructure. For
more information on a proactive anti-virus service working around the
clock, around the globe, visit http://www.paetec.com.


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




 
 


This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals 
computer viruses.








---
This message is a CONFIDENTIAL communication.  If you are not the intended 
recipient, please do not read, copy, or use it, and do not disclose it to 
others.  Please notify the sender of the delivery error by replying to this 
message, and then delete it from your system.  Thank you.


RE: Help with Tomcat IIS

2007-10-26 Thread Demetris Zavorotnichenko
I have a static IP,

How would I alias them on windows?

-Original Message-
From: Peter Stavrinides [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 26, 2007 4:01 PM
To: Tomcat Users List
Subject: Re: Help with Tomcat  IIS

You need to alias them on windows you would use the hosts file to map 
the IP to host name. The only requirement is a static ip

Demetris Zavorotnichenko wrote:
 Just another question  (not quite on the subject)

 I have several websites that I have through IIS 

 How can I host the all through a single IP ?

 I have assigned separate Header to each but what next ?

 How can I browse those pages from another computer on the network ?


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



Re: Help with Tomcat IIS

2007-10-26 Thread Peter Stavrinides
You need to alias them on windows you would use the hosts file to map 
the IP to host name. The only requirement is a static ip


Demetris Zavorotnichenko wrote:

Just another question  (not quite on the subject)

I have several websites that I have through IIS 


How can I host the all through a single IP ?

I have assigned separate Header to each but what next ?

How can I browse those pages from another computer on the network ?


-
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: Adding NTLM Auth to the Entire tomcat instance

2007-10-26 Thread Peter Kahn
Thanks P.  I followed your advice and it worked.

Here is what I did in case someone else is wrestling with this problem

Overview

1. disabled my Perl::AuthNTLM
2. got mod_jk communication path working between apache and tomcat
3. added auth back in
4. tested

End Point - File contents

in my apache conf   (available-sites/opengrok)
-
# Configure communications between apache and tomcat
LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so

JkWorkersFile /etc/apache2/workers.properties
JkLogFile /var/log/apache2/opengrok_jk.log
JkLogLevel debug
JkMount /* my_tomcat_instance

Location /
 # Define your security here
PerlAthenHandler Apache2::AuthenNTLM

# use NTLM auth
AuthType ntlm

require valid-user
PerlAddVar requiregroup my_access_group

PerlAddVar ntdomain MYDOMAIN pdc_ipaddr
PerlAddVar defaultdomain MYDOMAIN
PerlSetVar splitdomainprefix 1
PerlSetVar ntlmdebug 1
PerlSetVar ntlmauthoritative off
/Location

in my workers properties file  -
worker.list=my_tomcat_instance
worker.my_tomcat_instance.host=127.0.0.1
worker.my_tomcat_instance.port=8180
worker.my_tomcat_instance.type=ajp13

in my tomcat server.xml -
Connector port=8180 protocol=AJP/1.3 tomcatAuthentication=false/



So, as P said, tomcat doesn't authneticate and Apache uses ajp to
communicate with tomcat.  Thus, there is not http proxying going on and the
Perl NTLM auth module continues to work (seeing as it doesn't support
proxy).

Thanks again.
On 10/25/07, Pid [EMAIL PROTECTED] wrote:

 Peter Kahn wrote:
  Can someone let me know how to setup NTLM authentication such that all
  access to tomcat is restricted to users in a specific group?
 
  I have an instance of tomcat and it is serving several opengrok web
 apps.
  Each opengrop app is pointing at a different source tree.  I want to
  restrict access to all of these webapps to a specific group of users.
 
  When I offer php based webapps and restrict them to a group of users, I
 use
  apache2 authentication with a perl based NTLM extension.  Since tomcat
 is
  running on a different port,   I tried binding tomcat to localhost or
  loopback only and then used the proxy directive from apache2 to the
 offer
  the applications to users on my lan.  This worked, but the NTLM auth
 failed
  when I added it in.  I see my options as:
a) get apache auth to work via the proxy
b) forget apache auth and have tomcat handle the authentication.

 If you use the AJP connector with mod_jk (or in Apache 2.2,
 mod_proxy_ajp) you can continue to front your application with HTTPD
 NTLM authentication.

 Set the tomcatAuthentication connector attribute to false, as per:

 http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html

 p


  I looked around the docs, googling here and there but most
 authentication
  appeared to be at the individual web application level and not for the
  entire instance.
- Is authentication at the entire tomcat instance level a practice
 that
  people do?
- Is there a standard way to tie it into NTLM?
 
  So, can you send me links or advice if you happen to know of a good
 resource
  for issue or see that I'm approaching in a needlessly difficult
 way?  Thanks
 
 



-- 
Peter Kahn
[EMAIL PROTECTED]
[EMAIL PROTECTED], [EMAIL PROTECTED]
http://kahnstipation.blogspot.com | http://analogoustendencies.blogspot.com/
Awareness - Intention - Action


Re: PKCS#12 type SSL certificate support in Tomcat

2007-10-26 Thread Lucas Galfaso
Can you post the Connector / configuration that you are using?
- lg

On 10/26/07, Hitesh Raghav [EMAIL PROTECTED] wrote:
 Dear All,

 Is there any limitation to support PKCS#12 type SSL certificate in
 Tomcat.

 As per Tomcat User Guide, Tomcat currently operates with JKS, PKCS11 or
 PKCS12 format keystores.
 http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html

 But, I'm unable to use PKCS#12 certificate in my Tomcat.

 It throws:

 java.io.IOException: Invalid keystore format
 at
 sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:633)
 at
 sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)
 at java.security.KeyStore.load(KeyStore.java:1185)
 at
 org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFac
 tory.java:287)
 at
 org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocket
 Factory.java:227)
 at
 org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE1
 4SocketFactory.java:142)
 at
 org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFac
 tory.java:110)
 at
 org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocke
 tFactory.java:89)
 at
 org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.
 java:293)
 at
 org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java
 :139)
 at
 org.apache.catalina.connector.Connector.initialize(Connector.java:1017)
 at
 org.apache.catalina.core.StandardService.initialize(StandardService.java
 :578)
 at
 org.apache.catalina.core.StandardServer.initialize(StandardServer.java:7
 82)
 at
 org.apache.catalina.startup.Catalina.load(Catalina.java:504)
 at
 org.apache.catalina.startup.Catalina.load(Catalina.java:524)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
 a:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
 Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

 Could you please throw some light on PKCS#12 type certificate support.

 Please let me know in case any details are needed.


 Thanks,
 -Hitesh



-
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: Help with Tomcat IIS

2007-10-26 Thread Tony Fountain
I do not agree with the statement about it being a sad tone.  95% of
our shop is .NET / IIS / MSSQL, however we are intergrating another
product into our applications that is written in Java and requires a
J2EE compliant application server to run, thus here I am :).  I
understand the thoughts and practices of streamlining the technologies
in your shop but being too strict about it also limits your options.
There is valid consideration that needs to be made to the best tool for
the job as well.  We spent about 6 months evaluating a variety of tools
and in this case, the ones that were .NET based fell very short of the
product we ended up choosing.

/soapbox

Tony

-Original Message-
From: myrealbruno [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 26, 2007 6:23 AM
To: Tomcat Users List
Subject: Re: Help with Tomcat  IIS

Hi,

I think the mailing list archives are full of people with IIS - or
Apache - fronting Tomcat.
There is a very good article that explains the technical reasons
http://people.apache.org/~mturk/docs/article/ftwai.html

Also, there might be cases where the reasons are political, or when the
environment is very heterogenous, or combinations of the two.
(The last sentence should be read with a sad tone)

Hope it helps,
b.

- Original Message -
From: Jacob Rhoden [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, October 25, 2007 12:38 AM
Subject: Re: Help with Tomcat  IIS


 Wow, this is the first time I have heard of someone wanting to use
 Tomcat with IIS. Most IIS people would be using .NET. (I am interested
 to hear from people if its possible and why you would do it)

 Is there a speciffic reason you need to connect it to IIS? Did you
know
 that tomcat can be used without Apache or IIS? Simply edit the
 server.xml file so that it listens on port 80 instead of port 8080.
This
 makes configuration much easier. However I understand if you do have a
 specific reason to use IIS.

 Best Regards,
 Jacob

 Demetris Zavorotnichenko wrote:
  I have been banging my head about this for a long time and haven't
figured
  it out yet.
 
  I have a 64 Bit Machine with Windows Server 2003 (64 bit)
 
 
 
  What version of Tomcat should I install in order to be able to
connect it to
  IIS 6
 
 
 
  And
 
 
 
  What Jakata connector version should I use? Which would be
compatible with
  all this.
 
 
 
 
 
  Please help me out on this.
 
 
 
  I have been through the tutorials a hundred times and I got confused
since
  there are SO many Directories with different Jakata Connectors for
different
  versions.
 
 
 
  Please if someone could write down this things (in short) - since I
know
  the procedure of setting this up
 
 
 
  Please help me here.
 
 
 
 
 





---AV  Spam Filtering by M+Guardian - Risk Free Email (TM)---


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



This Email has been scanned for all viruses by PAETEC Email Scanning
Services, utilizing MessageLabs proprietary SkyScan infrastructure. For
more information on a proactive anti-virus service working around the
clock, around the globe, visit http://www.paetec.com.


-
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: Suggestions for connection pooling

2007-10-26 Thread Tony Fountain
Everyone, thanks for the feedback and additional suggestions on clean
coding :).  I think I'm good to go.

Thanks,
Tony

-Original Message-
From: Len Popp [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 25, 2007 5:25 PM
To: Tomcat Users List
Subject: Re: Suggestions for connection pooling

On 10/25/07, Tony Fountain [EMAIL PROTECTED] wrote:
 Now, my goal is to utilize connection pooling.  Does (a) this 
 implementation achieve that and (b) the close statement suffice to 
 return the object to the pool and not actually close the connection?  
 Or do I also need to set conn = null;?

You don't need to set conn = null, but you *do* need to make sure that
the connection is closed in all cases, even when an exception is thrown.
So:

   Connection conn = ds.getConnection();
   try {
   ...do something...
   } finally {
   conn.close();
   }

-- 

Len

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



This Email has been scanned for all viruses by PAETEC Email Scanning
Services, utilizing MessageLabs proprietary SkyScan infrastructure. For
more information on a proactive anti-virus service working around the
clock, around the globe, visit http://www.paetec.com.


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



Class loading issue

2007-10-26 Thread Tony Fountain
Windows 2003 Server
Apache Tomcat 5.5.23 (running as Windows service)
JVM 1.5.0_12b-04 (Sun)
 
In an attempt to have a specific web app load when Apache starts, I
added the following element to the \WEB-INF\web.xml file for the
appropriate servlet - load-on-startup1/load-on-startup.  This works,
but when the webapp loads, one of the classes it requires generates an
error the first time the webapp is accessed via the browser.  The class
is contained in a JAR that resides in the \WEB-INF\lib folder.  This
webapp is not written by us, rather it's a product we purchased.  At the
suggestion of the vendor I moved the JAR file to the \Tomcat\common\lib
folder and everything now works just fine.  I've reviewed the
documentation on class loading in Tomcat 5.5 but this still makes no
sense to me in terms of why this happens and why moving it fixed it.
According to this documentation, the \WEB-INF\lib solution should work
just fine.  Any thoughts?  Note that if I do not attempt to load on
startup then everything works fine (just takes several seconds for the
webapp to load upon the initial access).
 
Thanks,
Tony

-
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: Philamasophical question META-INF

2007-10-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Johnny,

Johnny Kewl wrote:
 Got a little sensitive info that I would like to package with an application.
 I noticed that even if the user has say left listing on.. that stuff in 
 META-INF is not listed. TC seems to actively block it or ignore it.
 
 What do you think... if I stay away from names like
 context.xml
 and 
 MANIFEST.MF
 
 do you think its an OK to store in META-INF or am I breaking some rule that I 
 should know about?

Storing stuff in WEB-INF should be just fine -- I would stick to WEB-INF
instead of META-INF. I'd bet that Tomcat protects WEB-INF the same way.

I have seen lots of projects where all the JSPs go into WEB-INF so they
aren't accidentally accessed directly from a browser, or aren't
accidentally served as source code if the JSP compiler/runner isn't enabled.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHIfdJ9CaO5/Lv0PARAvepAJsFrSwv4lDXEkThWVC2CbUysron1QCgqsc/
Pisks5HYiUk04E26tr++3mo=
=wtPU
-END PGP SIGNATURE-

-
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: Philamasophical question META-INF

2007-10-26 Thread Martin Gainty
Honourable Barrister--

Is/Are there any presumably default configuration options which Tomcat
uses to specifically protect
META-INF from client access?

Martin--
- Original Message -
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, October 26, 2007 10:28 AM
Subject: RE: Philamasophical question META-INF


 From: Christopher Schultz [mailto:[EMAIL PROTECTED]
 Subject: Re: Philamasophical question META-INF

 Storing stuff in WEB-INF should be just fine -- I would stick
 to WEB-INF instead of META-INF.

According to the Servlet spec, both WEB-INF (SRV.9.5) and META-INF
(SRV.9.6) must be protected by the container from being directly served
to clients.  (Based on the wording in the spec, a lawyer could argue
that META-INF is only protected when the app is packaged in a .war file,
if you want to be nit-picky.)

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



-
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: Philamasophical question META-INF

2007-10-26 Thread Caldarale, Charles R
 From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
 Subject: Re: Philamasophical question META-INF
 
 Storing stuff in WEB-INF should be just fine -- I would stick 
 to WEB-INF instead of META-INF.

According to the Servlet spec, both WEB-INF (SRV.9.5) and META-INF
(SRV.9.6) must be protected by the container from being directly served
to clients.  (Based on the wording in the spec, a lawyer could argue
that META-INF is only protected when the app is packaged in a .war file,
if you want to be nit-picky.)

 - 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: Philamasophical question META-INF

2007-10-26 Thread Caldarale, Charles R
 From: Martin Gainty [mailto:[EMAIL PROTECTED] 
 Subject: Re: Philamasophical question META-INF
 
 Is/Are there any presumably default configuration 
 options which Tomcat uses to specifically protect
 META-INF from client access?

Not that I'm aware of.  Since the spec explicity states that META-INF is
protected from direct client access, it's unlikely there's any
configuration for this.

 - 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: Class loading issue

2007-10-26 Thread Tony Fountain
The exact error is this:

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: javax.xml.parsers.FactoryConfigurationError: Provider
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown
Source)
at
org.apache.commons.modeler.util.DomUtil.readXml(DomUtil.java:241)
at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute(Mb
eansDescriptorsDOMSource.java:87)
at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDescri
ptors(MbeansDescriptorsDOMSource.java:77)
at org.apache.commons.modeler.Registry.load(Registry.java:791)
at
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:900)
at
org.apache.commons.modeler.Registry.loadMetadata(Registry.java:267)
at
org.apache.catalina.storeconfig.StoreConfigLifecycleListener.createMBean
(StoreConfigLifecycleListener.java:93)
at
org.apache.catalina.storeconfig.StoreConfigLifecycleListener.lifecycleEv
ent(StoreConfigLifecycleListener.java:58)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:120)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:705)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
... 6 more

That's the entire contents of the stdout log file.  I don't mind moving
the vendor specific jar files to the \common\lib folder, but I would
like to make sense of why it happens as well.  Note that implementing
this product is my first exposure in 15 years of programming to Java /
Apache technologies :).  Not that they (.NET / IIS vs Java / Apache) are
too dissimilar, rather it's the implementation topics like this I
struggle with at the moment.

Thanks,
Tony

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 26, 2007 9:51 AM
To: Tomcat Users List
Subject: RE: Class loading issue

 From: Tony Fountain [mailto:[EMAIL PROTECTED]
 Subject: Class loading issue
 
 but when the webapp loads, one of the classes it requires generates an

 error the first time the webapp is accessed via the browser.

What error?  Do you have an associated stack trace?  Is there anything
in the logs?

Note that common/lib is visible not only to the webapp, but also to the
container classes.  Just speculating, but if the classes in question are
used somehow for something like container-managed connection pooling,
they must be visible to Tomcat as well as the webapp.

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



This Email has been scanned for all viruses by PAETEC Email Scanning
Services, utilizing MessageLabs proprietary SkyScan infrastructure. For
more information on a proactive anti-virus service working around the
clock, around the globe, visit http://www.paetec.com.


-
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: Class loading issue

2007-10-26 Thread Tony Fountain
Per request, I actually don't have a xercesImpl.jar file that is being
used (there is one but it's not being ran).  However, I do have a file
named a_xercesImpl.jar that is being used by the webapp (located in
webapps\webapp\WEB-INF\lib.  I did verify that the a_xercesImpl.jar
file contains the class DocumentBuilderFactoryImpl.

Now for some history that might help explain some of this.  The product
is written in Java 1.4 and shipped with an older version of Tomcat (5.0
I think - it uses procrun 1.0 if that's any help).  Since the product is
supposed to support running under any J2EE compliant application server,
we opted to go with the more stable release of Apache Tomcat 5.5.23 and
JVM 1.5.  And all we did to get the product to run in Apache Tomcat
5.5.23 is moved the webapp folder from the initial installation folder
of Tomcat 5.0 to the webapp folder of Tomcat 5.5.  That included any of
the JAR files in that hiearchy.

Thanks,
Tony

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 27, 2000 11:19 AM
To: Tony Fountain
Subject: Re: Class loading issue

Please post to group where (in tomcat) is your xercesImpl.jar located?

Thx/
M--
- Original Message -
From: Tony Fountain [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, October 26, 2007 11:11 AM
Subject: RE: Class loading issue


The exact error is this:

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: javax.xml.parsers.FactoryConfigurationError: Provider
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown
Source)
at
org.apache.commons.modeler.util.DomUtil.readXml(DomUtil.java:241)
at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute(Mb
eansDescriptorsDOMSource.java:87)
at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDescri
ptors(MbeansDescriptorsDOMSource.java:77)
at org.apache.commons.modeler.Registry.load(Registry.java:791)
at
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:900)
at
org.apache.commons.modeler.Registry.loadMetadata(Registry.java:267)
at
org.apache.catalina.storeconfig.StoreConfigLifecycleListener.createMBean
(StoreConfigLifecycleListener.java:93)
at
org.apache.catalina.storeconfig.StoreConfigLifecycleListener.lifecycleEv
ent(StoreConfigLifecycleListener.java:58)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:120)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:705)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
.. 6 more

That's the entire contents of the stdout log file.  I don't mind moving
the vendor specific jar files to the \common\lib folder, but I would
like to make sense of why it happens as well.  Note that implementing
this product is my first exposure in 15 years of programming to Java /
Apache technologies :).  Not that they (.NET / IIS vs Java / Apache) are
too dissimilar, rather it's the implementation topics like this I
struggle with at the moment.

Thanks,
Tony

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 26, 2007 9:51 AM
To: Tomcat Users List
Subject: RE: Class loading issue

 From: Tony Fountain [mailto:[EMAIL PROTECTED]
 Subject: Class loading issue
 
 but when the webapp loads, one of the classes it requires generates an

 error the first time the webapp is accessed via the browser.

What error?  Do you have an associated stack trace?  Is there anything
in the logs?

Note that common/lib is visible not only to the webapp, but also to the
container classes.  Just speculating, but if the classes in question are
used somehow for something like container-managed connection pooling,
they must be visible to Tomcat as well as the webapp.

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



This Email has been scanned for all viruses by PAETEC Email Scanning
Services, utilizing MessageLabs proprietary SkyScan infrastructure. For
more information on a proactive anti-virus service working around the
clock, 

Tomcat 5x SSI

2007-10-26 Thread Samik Basu
  I am running Apache-Tomcat 5.5.25 - plugged into Eclipse. I have updated
the web.xml and renamed the renametojar files  in server/lib/ to allow cgi
and ssi.  A tomcat project named TomcatProject is created in Eclipse and
the server.xml is updated with the context information as follows:

  Context path=/Tomcat
docBase=My location of TomcatProject
debug=0
reloadable=true
   /Context

In my TomcatProject/WEB-INF I have created a cgi directory inside which all
my cgi files exist. Everything is working okay - for example I can see
correct results for
http://localhost:8080/Tomcat/cgi-bin/test.cgi
and
http://localhost:8080/Tomcat/test.shtml

However, there is one small problem. When I try to execute a cgi program
from shtml file using the following directive:
!-#include virtual=/cgi-bin/test.cgi--
it says that the context for /cgi-bin/test.cgi is not found.
If I use
!--#include virtual=/Tomcat/cgi-bin/test.cgi--
It rightly says that the file is not found.
I have tried out (I think) all possible ways to execute the program - using
exec cgi=, exec virtual=,

Interestingly, when I do !--#include virtual=/Tomcat/test.jsp-- it works
fine i.e. I can include any other types of files.

Can anyone provide some insights. Thanks.


Re: Philamasophical question META-INF

2007-10-26 Thread Johnny Kewl


---
HARBOR: http://coolharbor.100free.com/index.htm
Now Tomcat is also a cool pojo application server
---
- Original Message - 
From: Christopher Schultz [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, October 26, 2007 4:18 PM
Subject: Re: Philamasophical question META-INF



-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Johnny,

Johnny Kewl wrote:
Got a little sensitive info that I would like to package with an 
application.

I noticed that even if the user has say left listing on.. that stuff in
META-INF is not listed. TC seems to actively block it or ignore it.

What do you think... if I stay away from names like
context.xml
and
MANIFEST.MF

do you think its an OK to store in META-INF or am I breaking some rule 
that I should know about?


Storing stuff in WEB-INF should be just fine -- I would stick to WEB-INF
instead of META-INF. I'd bet that Tomcat protects WEB-INF the same way.

I have seen lots of projects where all the JSPs go into WEB-INF so they
aren't accidentally accessed directly from a browser, or aren't
accidentally served as source code if the JSP compiler/runner isn't 
enabled.


Thanks Chris,  nice to know its being done.
Looks like if I stay away from context.xml, and these 
http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html

ie
MANIFEST.MF
INDEX.LIST
x.SF
x.DSA
services/

... its ok... well maybe not coz ejb has

ejb-jar.xml
application.xml

a little more searching shows Jboss doing stuff like this
META-INF/application.xml
META-INF/ejb-jar.xml
META-INF/ibm-ejb-jar-bnd.xmi
META-INF/ibm-ejb-jar-ext.xmi
META-INF/jboss.xml
META-INF/MANIFEST.MF
META-INF/orion-ejb-jar.xml
META-INF/sun-ejb-jar.xml
META-INF/sun-j2ee-ri.project
META-INF/weblogic-ejb-jar.xml

 its busy, or potentially busy

Seems like the right place to store this stuff... because the stuff I want 
to put there is things like certificates, private keys, and some security 
config, which is not too far removed from what Sun seem to be using it for.


Suppose theres a spec somewhere governing all these entries, just hope my 
files dont clash with anything..


Thanks



- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHIfdJ9CaO5/Lv0PARAvepAJsFrSwv4lDXEkThWVC2CbUysron1QCgqsc/
Pisks5HYiUk04E26tr++3mo=
=wtPU
-END PGP SIGNATURE-

-
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: Virtual Host with Different IP Address

2007-10-26 Thread Hassan Schroeder
On 10/26/07, banderson [EMAIL PROTECTED] wrote:

 Now:
   server1 - mydomain.com
   server2 - 123.123.123.123
 End result:
   server1 - mydomain.com
   server2 - sub.mydomain.com

This is not a Tomcat issue, this is a DNS issue.

Assign sub.mydomain.com to 123.123.123.123.

-- 
Hassan Schroeder  [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: Virtual Host with Different IP Address

2007-10-26 Thread banderson

So this can't be done with Tomcat?  I don't have access to the DNS server,
are there any other workarounds?


Hassan Schroeder-2 wrote:
 
 On 10/26/07, banderson [EMAIL PROTECTED] wrote:
 
 Now:
   server1 - mydomain.com
   server2 - 123.123.123.123
 End result:
   server1 - mydomain.com
   server2 - sub.mydomain.com
 
 This is not a Tomcat issue, this is a DNS issue.
 
 Assign sub.mydomain.com to 123.123.123.123.
 
 -- 
 Hassan Schroeder  [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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Virtual-Host-with-Different-IP-Address-tf4698153.html#a13430607
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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: Virtual Host with Different IP Address

2007-10-26 Thread banderson

Assuming my domain is hosted with godaddy, they should be able to take care
of this?  I'm not familiar with DNS issues, and it would be nice to know
what I'm asking for %-|

Thanks for the response! 


Hassan Schroeder-2 wrote:
 
 On 10/26/07, banderson [EMAIL PROTECTED] wrote:

 So this can't be done with Tomcat?  I don't have access to the DNS
 server,
 are there any other workarounds?
 
 If it's only for your personal use, put the name in your hosts file. Or
 run your own name server.
 
 The point is that *your client browser* needs a way to resolve the
 name sub.mydomain.com to an IP address. This is not something
 that Tomcat is in any way involved in.
 
 -- 
 Hassan Schroeder  [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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Virtual-Host-with-Different-IP-Address-tf4698153.html#a13430956
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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: Turning off jsessionid

2007-10-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ken,

Ken Bowen wrote:
 Is there a way to tell Tomcat to never rewrite urls?  I.e., to never add
 jsessid ?

Do you want to completely disable sessions, or just always require cookies?

While the servlet specification does not require containers to provide
URL-rewriting, they are nearly useless without that capability.

This post from July 2004 includes a suggestion for a workaround when you
/really/ don't want url rewriting to ever occur:

http://mail-archives.apache.org/mod_mbox/tomcat-users/200407.mbox/[EMAIL 
PROTECTED]

I'm not sure why you'd ever want to do this, though. I'd love to hear
your reason for doing it, though.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHIhgg9CaO5/Lv0PARArw0AJ0Uzmwq/lLT1IWHxn/xADxiZLzpgACfUrep
qUM56Ih/0NPu9XWeK5LE1ws=
=s4JG
-END PGP SIGNATURE-

-
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: Hidden form fields not found in request

2007-10-26 Thread Propes, Barry L
I wonder if the name or value params require double quotes? I seem to have had 
a similar issue one time.



-Original Message-
From: Ashok Venkat [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 25, 2007 9:50 PM
To: users@tomcat.apache.org
Subject: Hidden form fields not found in request


Hello, 

In the below code, i am submitting a form to itself  in the onload method and 
changing some hidden form field values. After the form is submitted, the hidden 
values are not available in the request object.As a result, the page gets into 
an endless loop. 
 
Thanks for any help

Code: 

//test.jsp

if(request.getParameter( ScreenResolutionHeight ) == null )
{
%
html
head
titlePlease wait one moment.../title
/head
body onload='SubmitOnLoad();'

form method='post' id='ScreenResolutionForm'
input type='hidden' name='ScreenResolutionWidth' value='1024'
input type='hidden' name='ScreenResolutionHeight' value='768'

script
function SubmitOnLoad()
{
var this_form = FindElementById( 'ScreenResolutionForm' );
this_form.ScreenResolutionWidth.value = window.screen.availWidth;
this_form.ScreenResolutionHeight.value = window.screen.availHeight;
this_form.BrowserType.value = navigator.appName;


this_form.submit();
}

function FindElementById( id )
{
if( document.getElementById )
{
return document.getElementById( id );
}
else if (document.layers)
{
return document.layers[id];
}
else if (document.all)
{
return document.all[id];
}

return undefined;
}
/script

/body
/html
%
}else {


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
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: Class loading issue

2007-10-26 Thread Tony Fountain
Thanks for the response.  However, that does not clarify for me why it
only happens when I attempt to set the load-on-startup element in the
webapps web.xml file but if I do not autoload the class, it works just
fine.  As far as the JAVA_OPTS go, I do not see where I have this set at
all.  I'm running Apache Tomcat 5.5.23 as a windows service.  In the
properties under Java, I am setting these options: 

-Dcatalina.home=C:\Apache\Tomcat
-Dcatalina.base=C:\Apache\Tomcat
-Djava.endorsed.dirs=C:\Apache\Tomcat\common\endorsed
-Djava.io.tmpdir=C:\Apache\Tomcat\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=C:\Apache\Tomcat\conf\logging.properties

Thanks,
Tony

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 26, 2007 12:18 PM
To: Tomcat Users List
Subject: RE: Class loading issue

 From: Tony Fountain [mailto:[EMAIL PROTECTED]
 Subject: RE: Class loading issue
 
 Caused by: javax.xml.parsers.FactoryConfigurationError: Provider 
 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found

It looks like you must have the system property
javax.xml.parsers.DocumentBuilderFactory set to point to
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl (e.g., via JAVA_OPTS).
This forces all XML scanning to go through that class, including any
done by Tomcat itself.  Consequently, the above class must be made
visible to the Tomcat internal classes, so putting the jar into
common/lib is required.

I'm not sure if there's any means of specifying a webapp-local XML
parser rather than a global one; others may have more experience here.

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



This Email has been scanned for all viruses by PAETEC Email Scanning
Services, utilizing MessageLabs proprietary SkyScan infrastructure. For
more information on a proactive anti-virus service working around the
clock, around the globe, visit http://www.paetec.com.


-
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: Hidden form fields not found in request

2007-10-26 Thread Ashok Venkat
I want to save the dimensions. After the form is posted i call a servlet to 
save the dimensions. I will look into using Ajax.

Appreciate the help.

- Original Message 
From: Pid [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, October 26, 2007 1:35:23 AM
Subject: Re: Hidden form fields not found in request

Ognjen Blagojevic wrote:
 Hi Ashok,
 
 Ashok Venkat wrote:
 In the below code, i am submitting a form to itself  in the onload
 method and changing some hidden form field values. After the form is
 submitted, the hidden values are not available in the request
 object.As a result, the page gets into an endless loop. 
 
 Interesting. I treied it, and Firefox stops on JavaScript error in line
 
  this_form.BrowserType.value = navigator.appName;
 
 so the form never gets submitted. After adding one more hidden field:
 
  input type='hidden' name='BrowserType' value='unknown!'
 
 everything works fine.
 
 
 Regards,
 Ognjen

It looks like a nasty and somewhat unsafe solution to some problem or
other.  Is there a reason you need to submit the page at all?

If you're submitting the page to itself, AND using javascript, why not
just use the scripting to alter the contents of the hidden fields?

They can be uniquely identified on the page if you supply an id
attribute - you could modify them directly...


Alternatively, if you're just testing a concept at this stage, I'd
suggest that you could use an AJAX call to submit the page dimensions to
a backend during onloads execution.


p



 Thanks for any help

 Code:
 //test.jsp

 if(request.getParameter( ScreenResolutionHeight ) == null )
 {
 %
 html
 head
 titlePlease wait one moment.../title
 /head
 body onload='SubmitOnLoad();'

 form method='post' id='ScreenResolutionForm'
 input type='hidden' name='ScreenResolutionWidth' value='1024'
 input type='hidden' name='ScreenResolutionHeight' value='768'

 script
 function SubmitOnLoad()
 {
 var this_form = FindElementById( 'ScreenResolutionForm' );
 this_form.ScreenResolutionWidth.value = window.screen.availWidth;
 this_form.ScreenResolutionHeight.value = window.screen.availHeight;
 this_form.BrowserType.value = navigator.appName;


 this_form.submit();
 }

 function FindElementById( id )
 {
 if( document.getElementById )
 {
 return document.getElementById( id );
 }
 else if (document.layers)
 {
 return document.layers[id];
 }
 else if (document.all)
 {
 return document.all[id];
 }

 return undefined;
 }
 /script

 /body
 /html
 %
 }else {
 

 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com 
 
 
 -
 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]

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Virtual Host with Different IP Address

2007-10-26 Thread banderson

Assuming my domain is hosted with godaddy, they should be able to take care
of this?  I'm not familiar with DNS issues, and it would be nice to know
what I'm asking for %-|

Thanks for the response!



Matt Bockol wrote:
 
 
 You could run both apps under the same domain but still on different
 hosts, such that:
 
 app1 is at mydomain.com
 app2 is at mydomain.com/app2
 
 If you run tomcat behind apache httpd this is pretty simple to set up (via
 mod_proxy_ajp or mod_jk or ... )
 
 For sub.mydomain.com you need to make a DNS change as Brian says. 
 Alternatively, you could place the following line in your /etc/hosts file:
 
 123.123.123.123  sub.mydomain.com
 
 The only problem there is convincing everyone else in the world to do so
 as well :p
 
 Matt
 
 
 - Original Message -
 From: banderson [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Friday, October 26, 2007 11:24:21 AM (GMT-0600) America/Chicago
 Subject: Re: Virtual Host with Different IP Address
 
 
 So this can't be done with Tomcat?  I don't have access to the DNS server,
 are there any other workarounds?
 
 
 Hassan Schroeder-2 wrote:
 
 On 10/26/07, banderson [EMAIL PROTECTED] wrote:
 
 Now:
   server1 - mydomain.com
   server2 - 123.123.123.123
 End result:
   server1 - mydomain.com
   server2 - sub.mydomain.com
 
 This is not a Tomcat issue, this is a DNS issue.
 
 Assign sub.mydomain.com to 123.123.123.123.
 
 -- 
 Hassan Schroeder  [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]
 
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/Virtual-Host-with-Different-IP-Address-tf4698153.html#a13430607
 Sent from the Tomcat - User mailing list archive at Nabble.com.
 
 
 -
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Virtual-Host-with-Different-IP-Address-tf4698153.html#a13430933
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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: Virtual Host with Different IP Address

2007-10-26 Thread Matthew A. Bockol

You could run both apps under the same domain but still on different hosts, 
such that:

app1 is at mydomain.com
app2 is at mydomain.com/app2

If you run tomcat behind apache httpd this is pretty simple to set up (via 
mod_proxy_ajp or mod_jk or ... )

For sub.mydomain.com you need to make a DNS change as Brian says.  
Alternatively, you could place the following line in your /etc/hosts file:

123.123.123.123  sub.mydomain.com

The only problem there is convincing everyone else in the world to do so as 
well :p

Matt


- Original Message -
From: banderson [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Friday, October 26, 2007 11:24:21 AM (GMT-0600) America/Chicago
Subject: Re: Virtual Host with Different IP Address


So this can't be done with Tomcat?  I don't have access to the DNS server,
are there any other workarounds?


Hassan Schroeder-2 wrote:
 
 On 10/26/07, banderson [EMAIL PROTECTED] wrote:
 
 Now:
   server1 - mydomain.com
   server2 - 123.123.123.123
 End result:
   server1 - mydomain.com
   server2 - sub.mydomain.com
 
 This is not a Tomcat issue, this is a DNS issue.
 
 Assign sub.mydomain.com to 123.123.123.123.
 
 -- 
 Hassan Schroeder  [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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Virtual-Host-with-Different-IP-Address-tf4698153.html#a13430607
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Turning off jsessionid

2007-10-26 Thread Ken Bowen

Hi All,

Is there a way to tell Tomcat to never rewrite urls?  I.e., to never add 
jsessid ?


Thanks,
Ken Bowen

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



SSI regular expression patterns

2007-10-26 Thread Samik Basu
I am trying to see how regular expressions can be used in SSI if exprs. For
example

However, the following:
!--#set var=my_var value=hello there--
!--#if expr=$my_var = /hello/--
This is in the if-partbr/
!--#else--
This is in the else-partbr/
!--#endif--

always goes to the else part. Is there any specific format/operator to have
regular expression matching in SSI?


Re: Tomcat 6 clustering without mulicast

2007-10-26 Thread Filip Hanik - Dev Lists
it is absolutely possible, but now when you mention it, the ability to 
not start the multicasting piece has not been exposed. The rest has.


But there is a simple workaround for you, you can create an interceptor, 
that traps the start call, and removes the option to start multicasting


it could look like this

package org.apache.catalina.ha.tcp;

import org.apache.catalina.tribes.group.ChannelInterceptorBase;
import org.apache.catalina.tribes.ChannelException;
import org.apache.catalina.tribes.Channel;

public class DisableMcastInterceptor extends ChannelInterceptorBase {
   public DisableMcastInterceptor() {
   super();
   }

   public void start(int svc) throws ChannelException {
   svc = (svc  (~Channel.MBR_TX_SEQ));
   super.start(svc);
   }
}

and then, you can have the static membership interceptor to hearbeats 
over TCP instead.


Filip

SANCHEZ, Michel wrote:

Hi all

I would like to know if it is possible to do tomcat 6 clustering  without 
multicast IP.
In other words by defining a full static cluster in which all the heartbeat 
stuff is done by unicast.

If yes please coluld you tel me how to configure it.
I tried a SimpleTcpCluster without McastService declaration and with two 
StaticMemberShipInterceptors but my nodes always sends multicast messages on 
default address  228.0.0.4.45564

Thanks for help.
Michel



This e-mail is intended only for the above addressee. It may contain privileged 
information.
If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. 
If you have received it in error please delete it and immediately notify the sender.

Security Notice: all e-mail, sent to or from this address, may be accessed by 
someone other than the recipient, for system management and security reasons. 
This access is controlled under Regulation of security reasons.
This access is controlled under Regulation of Investigatory Powers Act 2000, 
Lawful Business Practises.



-
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: Turning off jsessionid

2007-10-26 Thread Len Popp
On 10/26/07, Christopher Schultz [EMAIL PROTECTED] wrote:
 Ken,

 Ken Bowen wrote:
  Is there a way to tell Tomcat to never rewrite urls?  I.e., to never add
  jsessid ?

 Do you want to completely disable sessions, or just always require cookies?

If the site doesn't need to use sessions at all, make sure the app
never calls request.getSession() and put [EMAIL PROTECTED] session=false% in
all the JSPs.

 This post from July 2004 includes a suggestion for a workaround when you
 /really/ don't want url rewriting to ever occur:

 http://mail-archives.apache.org/mod_mbox/tomcat-users/200407.mbox/[EMAIL 
 PROTECTED]

and here's another link with code snippets:
http://mail-archives.apache.org/mod_mbox/struts-user/200311.mbox/[EMAIL 
PROTECTED]

Keep in mind that if you go this route, your site will require users
to have session cookies enabled.

 I'm not sure why you'd ever want to do this, though. I'd love to hear
 your reason for doing it, though.

Actually, you have heard a reason for it before. :-)
http://mail-archives.apache.org/mod_mbox/tomcat-users/200612.mbox/browser
-- 
Len

-
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: Virtual Host with Different IP Address

2007-10-26 Thread Hassan Schroeder
On 10/26/07, banderson [EMAIL PROTECTED] wrote:

 So this can't be done with Tomcat?  I don't have access to the DNS server,
 are there any other workarounds?

If it's only for your personal use, put the name in your hosts file. Or
run your own name server.

The point is that *your client browser* needs a way to resolve the
name sub.mydomain.com to an IP address. This is not something
that Tomcat is in any way involved in.

-- 
Hassan Schroeder  [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: Class loading issue

2007-10-26 Thread Caldarale, Charles R
 From: Tony Fountain [mailto:[EMAIL PROTECTED] 
 Subject: RE: Class loading issue
 
 Caused by: javax.xml.parsers.FactoryConfigurationError: Provider
 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found

It looks like you must have the system property
javax.xml.parsers.DocumentBuilderFactory set to point to
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl (e.g., via JAVA_OPTS).
This forces all XML scanning to go through that class, including any
done by Tomcat itself.  Consequently, the above class must be made
visible to the Tomcat internal classes, so putting the jar into
common/lib is required.

I'm not sure if there's any means of specifying a webapp-local XML
parser rather than a global one; others may have more experience here.

 - 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: Philamasophical question META-INF

2007-10-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Johnny,

Johnny Kewl wrote:
 Looks like if I stay away from context.xml, and these:

[removed long list of files in META-INF with special meaning to app servers]

This is another reason to avoid putting anything in META-INF: you can
never predict what application servers are going to use as special files
in there. Using WEB-INF basically limits you from using these specific
paths:

WEB-INF/web.xml
WEB-INF/classes
WEB-INF/lib

... that's about it. Again, I highly recommend WEB-INF over META-INF.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHIhIp9CaO5/Lv0PARAhDjAKC84Ds70BxuhpQIAPjOC7IHrojhnQCgppe2
wm3XHP/qH0SBo+NtbjSQqPU=
=0zrH
-END PGP SIGNATURE-

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



Virtual Host with Different IP Address

2007-10-26 Thread banderson

I'm kind of new to this, so try to hear me out...  I am running tomcat on two
separate machines.  Each server has a different application running on it. 
Through my web browser, one server is accessed by domain mydomain.com, and
the other doesn't have a domain name, so I can only access it via the ip
address.  I would like to know if tomcat can create a virtual host (or some
other solution) on the server with mydomain.com so that the other server can
run as a subdomain.  For clarification, see the following:

Now: 
  server1 - mydomain.com
  server2 - 123.123.123.123
End result:
  server1 - mydomain.com
  server2 - sub.mydomain.com

Thank you for your help, I look forward to learning and participating in
these discussions.
-- 
View this message in context: 
http://www.nabble.com/Virtual-Host-with-Different-IP-Address-tf4698153.html#a13430102
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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: Hidden form fields not found in request

2007-10-26 Thread David kerber

Propes, Barry L wrote:

I wonder if the name or value params require double quotes? I seem to have had 
a similar issue one time.
  
That would be the first thing to try; I *always* use them for the name 
and value attributes...





-Original Message-
From: Ashok Venkat [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 25, 2007 9:50 PM
To: users@tomcat.apache.org
Subject: Hidden form fields not found in request


Hello, 

In the below code, i am submitting a form to itself  in the onload method and changing some hidden form field values. After the form is submitted, the hidden values are not available in the request object.As a result, the page gets into an endless loop. 
 
Thanks for any help


Code: 


//test.jsp

if(request.getParameter( ScreenResolutionHeight ) == null )
{
%
html
head
titlePlease wait one moment.../title
/head
body onload='SubmitOnLoad();'

form method='post' id='ScreenResolutionForm'
input type='hidden' name='ScreenResolutionWidth' value='1024'
input type='hidden' name='ScreenResolutionHeight' value='768'

script
function SubmitOnLoad()
{
var this_form = FindElementById( 'ScreenResolutionForm' );
this_form.ScreenResolutionWidth.value = window.screen.availWidth;
this_form.ScreenResolutionHeight.value = window.screen.availHeight;
this_form.BrowserType.value = navigator.appName;


this_form.submit();
}

function FindElementById( id )
{
if( document.getElementById )
{
return document.getElementById( id );
}
else if (document.layers)
{
return document.layers[id];
}
else if (document.all)
{
return document.all[id];
}

return undefined;
}
/script

/body
/html
%
}else {


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-
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: Hidden form fields not found in request

2007-10-26 Thread Hassan Schroeder
On 10/26/07, Ashok Venkat [EMAIL PROTECTED] wrote:
 I want to save the dimensions. After the form is posted i call a servlet to 
 save the dimensions. I will look into using Ajax.

For something like this, check out DWR -- Direct Web Remoting --
at  http://getahead.org/dwr

-- 
Hassan Schroeder  [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: Virtual Host with Different IP Address

2007-10-26 Thread Ken Bowen

The question is:   Do you want

sub.mydomain.com

to be visible to the entire internet, or are you only interested in accessing
that system from your own personal browser. In the latter case, you don't have
to get involved with dealing with godaddy.  As Matt suggested earlier, you
only have to put the line

123.123.123.123  sub.mydomain.com

into the hosts file on the machine running your browser.  On  *nix systems, 
this is usually /etc/hosts, and on windows, it is typically


C:\Windows\System32\Dirvers\Etc\Hosts

Cheers,
Ken Bowen


banderson wrote:

Assuming my domain is hosted with godaddy, they should be able to take care
of this?  I'm not familiar with DNS issues, and it would be nice to know
what I'm asking for %-|

Thanks for the response! 



Hassan Schroeder-2 wrote:
  

On 10/26/07, banderson [EMAIL PROTECTED] wrote:


So this can't be done with Tomcat?  I don't have access to the DNS
server,
are there any other workarounds?
  

If it's only for your personal use, put the name in your hosts file. Or
run your own name server.

The point is that *your client browser* needs a way to resolve the
name sub.mydomain.com to an IP address. This is not something
that Tomcat is in any way involved in.

--
Hassan Schroeder  [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: Turning off jsessionid

2007-10-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ken,

Ken Bowen wrote:
 But all this leads to the obvious question (which I asked): If I'm not
 going to allow jsessionid's to slip out, can I suppress
 their creation totally?

The creation of the id is implicit in the creation the session: the
session simply /has/ an id. You're try trying to avoid appending it to
the URL in all cases. The filter you referenced should do that.

 Now, having said all that, I'm more than open to hearing alternative
 ways of dealing the with problem, namely that search
 engines penalize you for the presence of jesessionid's.

The filter will prevent the session from appearing in URLs. Just note
that if a cookie-less spider (that's pretty much all of 'em) hits your
website and you use sessions without url rewriting, then every single
request from the spider will generate a new session (yikes!).

You may want to be careful about even creating sessions when you detect
a search spider.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHIibn9CaO5/Lv0PARAqM4AJ9VRThAQdqHp4xaN3E5XRVTccWq1gCgi7nT
0BetvQ/E81m5lzaKDRngjzs=
=Ddap
-END PGP SIGNATURE-

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



Cannot access database with remote shared web hosting

2007-10-26 Thread Mike LI


Dear Team,

I'm new with Tomcat  Hibernate. We have a weird
problem: When I test our website locally with Tomcat  MySQL,
everything is OK. But after I copy our webapp under Tomcat to remote
web hosting, I can only access the JSP pages, not able to access data
from database.


The error on page is below,
Data Access Failure
JDBC exception on Hibernate data access; nested exception is 
org.hibernate.exception .SQLGrammarException: could not insert: 
[com.cmn.model.User] 

I did Google search and someone said the hibernate mapping maybe not good. In 
my local Tomcat, I can see bunch of *
hbm.xml under 
work/Catalina/localhost/cmnweb /loader/com/cmn/model/
But I'm not sure the remote Tomcat since it's a shared hosting.

My questions:
1) Any idea about above Hibernate Data Access Failure?

2) How does Tomcat decide to load *hbm.xml from my lib cmnweb-dao.jar, but not 
all .jar in WEB-INF/lib/ ?

Thanks a lot!
-Mike







__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Virtual Host with Different IP Address

2007-10-26 Thread banderson

The site needs to be available to all of the internet.


Ken Bowen wrote:
 
 The question is:   Do you want
 
 sub.mydomain.com
 
 to be visible to the entire internet, or are you only interested in
 accessing
 that system from your own personal browser. In the latter case, you don't
 have
 to get involved with dealing with godaddy.  As Matt suggested earlier, you
 only have to put the line
 
 123.123.123.123  sub.mydomain.com
 
 into the hosts file on the machine running your browser.  On  *nix
 systems, 
 this is usually /etc/hosts, and on windows, it is typically
 
 C:\Windows\System32\Dirvers\Etc\Hosts
 
 Cheers,
 Ken Bowen
 
 
 banderson wrote:
 Assuming my domain is hosted with godaddy, they should be able to take
 care
 of this?  I'm not familiar with DNS issues, and it would be nice to know
 what I'm asking for %-|

 Thanks for the response! 


 Hassan Schroeder-2 wrote:
   
 On 10/26/07, banderson [EMAIL PROTECTED] wrote:
 
 So this can't be done with Tomcat?  I don't have access to the DNS
 server,
 are there any other workarounds?
   
 If it's only for your personal use, put the name in your hosts file. Or
 run your own name server.

 The point is that *your client browser* needs a way to resolve the
 name sub.mydomain.com to an IP address. This is not something
 that Tomcat is in any way involved in.

 -- 
 Hassan Schroeder  [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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Virtual-Host-with-Different-IP-Address-tf4698153.html#a13432270
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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: Class loading issue

2007-10-26 Thread Caldarale, Charles R
 From: Tony Fountain [mailto:[EMAIL PROTECTED] 
 Subject: RE: Class loading issue
 
 However, that does not clarify for me why it only 
 happens when I attempt to set the load-on-startup 
 element in the webapps web.xml file

Don't have a real answer for that, at least not yet (but see below for
speculation).  Might need a classloader trace to figure that out, and
it's probably not worth the trouble.

 As far as the JAVA_OPTS go, I do not see where I 
 have this set at all.

That's fine; JAVA_OPTS isn't used for the Windows service.

 -Djava.endorsed.dirs=C:\Apache\Tomcat\common\endorsed

Is there anything in the above directory?  If so, it may be involved.

The parser class name can also be specified in a .jar via a service
provider configuration file:
META-INF/services/javax.xml.parsers.DocumentBuilderFactory

If such a jar file is seen before or during the call to
DocumentBuilderFactory.newInstance(), it would appear to apply globally.
Not sure what happens if the jar file is encountered after the
newInstance() call, or if multiple jar files have conflicting settings.

 - 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: Virtual Host with Different IP Address

2007-10-26 Thread Hassan Schroeder
On 10/26/07, banderson [EMAIL PROTECTED] wrote:

 The site needs to be available to all of the internet.

Then your system needs a DNS entry.

-- 
Hassan Schroeder  [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: Class loading issue

2007-10-26 Thread Tony Fountain
Chuck,

There is nothing in the endorsed directory.  It's the default
installation of Apache Tomcat 5.5.23 (selected the FULL option).  As far
as the comment regarding the parser class... I'll admit, you totally
lost me :).  I don't see a META-INF folder anywhere in the installation
path.

Thanks,
Tony

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 26, 2007 1:46 PM
To: Tomcat Users List
Subject: RE: Class loading issue

 From: Tony Fountain [mailto:[EMAIL PROTECTED]
 Subject: RE: Class loading issue
 
 However, that does not clarify for me why it only happens when I 
 attempt to set the load-on-startup element in the webapps web.xml 
 file

Don't have a real answer for that, at least not yet (but see below for
speculation).  Might need a classloader trace to figure that out, and
it's probably not worth the trouble.

 As far as the JAVA_OPTS go, I do not see where I have this set at all.

That's fine; JAVA_OPTS isn't used for the Windows service.

 -Djava.endorsed.dirs=C:\Apache\Tomcat\common\endorsed

Is there anything in the above directory?  If so, it may be involved.

The parser class name can also be specified in a .jar via a service
provider configuration file:
META-INF/services/javax.xml.parsers.DocumentBuilderFactory

If such a jar file is seen before or during the call to
DocumentBuilderFactory.newInstance(), it would appear to apply globally.
Not sure what happens if the jar file is encountered after the
newInstance() call, or if multiple jar files have conflicting settings.

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



This Email has been scanned for all viruses by PAETEC Email Scanning
Services, utilizing MessageLabs proprietary SkyScan infrastructure. For
more information on a proactive anti-virus service working around the
clock, around the globe, visit http://www.paetec.com.


-
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: Virtual Host with Different IP Address

2007-10-26 Thread Hassan Schroeder
On 10/26/07, banderson [EMAIL PROTECTED] wrote:

 Assuming my domain is hosted with godaddy, they should be able to take care
 of this?  I'm not familiar with DNS issues, and it would be nice to know
 what I'm asking for %-|

Who owns the netblock where this currently nameless IP resides?

It sounds to me like a little independent study on DNS would be a
good investment of your time :-)

FWIW,
-- 
Hassan Schroeder  [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: Turning off jsessionid

2007-10-26 Thread Ken Bowen

Chris,

a) Yes, I plan to always require cookies, because of ...
b) It's the search engine issue:  They are cookie-less, and one gets 
(severely?) penalized by letting the jsessionid's slip out.
While I'm using UrlRewriteFilter to provide an abstraction to the site's 
urls (and it works great),  I didn't seem to be able
to use it to suppress all url rewriting.   I use 
http://validator.w3.org/checklink to check out how things are behaving.


So what I've done is use the filter described in 
http://randomcoder.com/articles/jsessionid-considered-harmful   .  This
is short and sweet, and appears to do the job, and is the solution 
recommended by the link you sent -- thanks for that.


What I haven't done yet is to check whether the browser is supporting 
cookies, and if the answer is no, make sure that
we raise an alert in fromt of the user to the effect that the site won't 
work right without cookies.


But all this leads to the obvious question (which I asked): If I'm not 
going to allow jsessionid's to slip out, can I suppress

their creation totally?

Now, having said all that, I'm more than open to hearing alternative 
ways of dealing the with problem, namely that search

engines penalize you for the presence of jesessionid's.

Cheers,
Ken

Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ken,

Ken Bowen wrote:
  

Is there a way to tell Tomcat to never rewrite urls?  I.e., to never add
jsessid ?



Do you want to completely disable sessions, or just always require cookies?

While the servlet specification does not require containers to provide
URL-rewriting, they are nearly useless without that capability.

This post from July 2004 includes a suggestion for a workaround when you
/really/ don't want url rewriting to ever occur:

http://mail-archives.apache.org/mod_mbox/tomcat-users/200407.mbox/[EMAIL 
PROTECTED]

I'm not sure why you'd ever want to do this, though. I'd love to hear
your reason for doing it, though.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHIhgg9CaO5/Lv0PARArw0AJ0Uzmwq/lLT1IWHxn/xADxiZLzpgACfUrep
qUM56Ih/0NPu9XWeK5LE1ws=
=s4JG
-END PGP SIGNATURE-

-
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: Cannot access database with remote shared web hosting

2007-10-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mike,

Mike LI wrote:
 Data Access Failure JDBC exception on Hibernate data access; nested
 exception is org.hibernate.exception .SQLGrammarException: could not
 insert: [com.cmn.model.User]

Can you post more of this stack trace? I wonder if the real problem is
cannot connect to database, and not SQL syntax error, as suggested
by the exception class.

Can you verify that you can reach the hibernate database from your app
server? There may be a firewall or other barrier between the two machines.

 2) How does Tomcat decide to load *hbm.xml from my lib
 cmnweb-dao.jar, but not all .jar in WEB-INF/lib/ ?

Tomcat loads JAR files whenever a class is requested that resides in
the JAR file. They might not all be processed at once.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHIi/a9CaO5/Lv0PARAtedAJ0bKrCMSazZTalpfmH145kOrwsStACfb2Co
OTMS4tdR9ATaX/HeFmPZtss=
=3rG9
-END PGP SIGNATURE-

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



SSL Help - keystore problem

2007-10-26 Thread Susan Richards
Last year, I was learning how to install an SSL cert on Tomcat 5.0.  The matter 
was confused by the fact that we needed 2 certs because we had a live site and 
test site on the same server but the live system was going to be moved to 
another server.  We managed to screw up the test SSL certificate and never got 
it installed.  We did successfully install the live cert.  We had tried to 
create 2 separate keystores.  The live site is now on another server.
 
Anyway, I finally got back to replacing the test SSL cert.  I decided to move 
all the old keystore and cert files to an oldSSL directory.  Everything but the 
-trustcacerts file moved.  Then I proceeded to create a new keystore, using the 
default of .keystore.  I ordered the certificate, and installed the 
intermediate cert and the new cert.  No problems.  The .keystore was updated in 
my home directory, but I copied it to /home/x
When I startup the web server, I get this error in the catalina.out:  
 
SEVERE: Catalina.start:
LifecycleException:  service.getName(): Catalina;  Protocol handler start 
failed: java.io.FileNotFoundException: /home/x/keystore (No such file or 
directory (errno:2))
 
The old keystore was called keystore, but the new one is called .keystore.  
When I change the conf file to look for .keystore, I get this error:
 
SEVERE: Catalina.start:
LifecycleException:  service.getName(): Catalina;  Protocol handler start 
failed: java.io.IOException: Keystore was tampered with, or password was 
incorrect
 
I tried specifying the password, but that didn't work either.  Does anyone know 
what went wrong here?
 
 
 
 
 


Re: Class loading issue

2007-10-26 Thread Konstantin Kolinko
Tony,

have you seen

http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html

In general, implementing classloader hierarchies, as the one in tomcat
5.5, is not a simple matter.

Citing from those pages:
As mentioned above, the web application class loader diverges from
the default Java 2 delegation model (in accordance with the
recommendations in the Servlet Specification, version 2.3, section
9.7.2 Web Application Classloader)

Thus sometimes there are issues.

Even there may be bugs somewhere.

As for XML parsing:
My speculation is that the XML parsing library registers itself as
JAXP parser in the JVM, for the whole JVM, for the whole server. Thus,
wrecking the configuration. Because it cannot be used outside of the
web app.

 However, that does not clarify for me why it
 only happens when I attempt to set the load-on-startup element in the
 webapps web.xml file but if I do not autoload the class, it works just
 fine.

It runs fine just until there is a need to parse xml files somewhere
outside of your web app. At the moment this parsing happens (sooner or
later, as there are a plenty of configuration files), you will
encounter the issue.  E.g. try to deploy a second war file, and you
may see the issue.

Placing the parser jar into common/lib does work, if you consider the
classloaders hierarchy.

Nevertheless, the official path to provide a custom XML parsing
library is to use the endorsing mechanism. See XML Parsers and J2SE
1.4, XML Parsers and JSE 5 chapters in class-loader-howto.html

Chuck wrote:
 I'm not sure if there's any means of specifying a webapp-local XML
 parser rather than a global one; others may have more experience here.

Best regards,
- Konstantin.

2007/10/26, Tony Fountain [EMAIL PROTECTED]:
 Thanks for the response.  However, that does not clarify for me why it
 only happens when I attempt to set the load-on-startup element in the
 webapps web.xml file but if I do not autoload the class, it works just
 fine.  As far as the JAVA_OPTS go, I do not see where I have this set at
 all.  I'm running Apache Tomcat 5.5.23 as a windows service.  In the
 properties under Java, I am setting these options:

 -Dcatalina.home=C:\Apache\Tomcat
 -Dcatalina.base=C:\Apache\Tomcat
 -Djava.endorsed.dirs=C:\Apache\Tomcat\common\endorsed
 -Djava.io.tmpdir=C:\Apache\Tomcat\temp
 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
 -Djava.util.logging.config.file=C:\Apache\Tomcat\conf\logging.properties

 Thanks,
 Tony

 -Original Message-
 From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 26, 2007 12:18 PM
 To: Tomcat Users List
 Subject: RE: Class loading issue

  From: Tony Fountain [mailto:[EMAIL PROTECTED]
  Subject: RE: Class loading issue
 
  Caused by: javax.xml.parsers.FactoryConfigurationError: Provider
  org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found

 It looks like you must have the system property
 javax.xml.parsers.DocumentBuilderFactory set to point to
 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl (e.g., via JAVA_OPTS).
 This forces all XML scanning to go through that class, including any
 done by Tomcat itself.  Consequently, the above class must be made
 visible to the Tomcat internal classes, so putting the jar into
 common/lib is required.

 I'm not sure if there's any means of specifying a webapp-local XML
 parser rather than a global one; others may have more experience here.

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



Cookies

2007-10-26 Thread Ken Bowen

Hi All,

There are sites that I frequent which I believe to be powered by java 
servlets,

and which seem to recognize me immediately when I first connect after
an absence (Welcome back, Ken).  So is it the case that if browser B has
previously set a cookie at site S (at url uuu), then when B returns to uuu
(say after many days but before the cookie for uuu has expired), B sends
the cookies for uuu in the /first/ request?

Thanks,
Ken


-
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: Class loading issue

2007-10-26 Thread Caldarale, Charles R
 From: Tony Fountain [mailto:[EMAIL PROTECTED] 
 Subject: RE: Class loading issue
 
 There is nothing in the endorsed directory.

Good, that says no confusion is being introduced from there.

 As far as the comment regarding the parser class...
 I'll admit, you totally lost me :).

By default, a JVM instance uses the following class as its XML parser
factory:
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl

This can be overridden in multiple ways, notably:

1) setting the system property javax.xml.parsers.DocumentBuilderFactory

2) with the properties file lib/jaxp.properties

3) by a services property file:
META-INF/services/javax.xml.parsers.DocumentBuilderFactory

I expect you'll find the last in the a_xercesImpl.jar you spoke of
earlier.

You can set the system property jaxp.debug=true to see lots of info
about XML processing.

 - 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: Cookies

2007-10-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ken,

Ken Bowen wrote:
 So is it the case that if browser B has
 previously set a cookie at site S (at url uuu), then when B returns to uuu
 (say after many days but before the cookie for uuu has expired), B sends
 the cookies for uuu in the /first/ request?

That's the idea: the cookie in this case is sent even with the first
request.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHIjd49CaO5/Lv0PARAkkKAKDAhqqj4YHYtbyWJJ8VK7cqkHb03QCZAUEl
2ykBEqJop6It0K7RVytPqwA=
=Onik
-END PGP SIGNATURE-

-
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: Cookies

2007-10-26 Thread Caldarale, Charles R
 From: Ken Bowen [mailto:[EMAIL PROTECTED] 
 Subject: Cookies
 
 So is it the case that if browser B has previously set a 
 cookie at site S (at url uuu), then when B returns to uuu
 (say after many days but before the cookie for uuu has 
 expired), B sends the cookies for uuu in the /first/ request?

That's the whole idea.  To quote from RFC 2965:

3.3.4  Sending Cookies to the Origin Server

   When it sends a request to an origin server, the user agent
   includes a Cookie request header if it has stored cookies
   that are applicable to the request, based on
  * the request-host and request-port;
  * the request-URI;
  * the cookie's age.

 - 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: Class loading issue

2007-10-26 Thread Caldarale, Charles R
 From: Konstantin Kolinko [mailto:[EMAIL PROTECTED] 
 Subject: Re: Class loading issue
 
 Nevertheless, the official path to provide a custom XML parsing
 library is to use the endorsing mechanism. See XML Parsers and J2SE
 1.4, XML Parsers and JSE 5 chapters in class-loader-howto.html

That doc is somewhat incorrect, in particular this statement:

In previous versions of Tomcat 5, you could simply replace the XML
parser in the $CATALINA_HOME/common/lib directory to change the parser
used by all web applications. However, this technique will not be
effective when you are running on J2SE 1.4, because the usual class
loader delegation process will always choose the implementation inside
the JDK in preference to this one.

It ignores the ability to override the JRE/JDK implementation by using
the appropriate system property or the JAR Service Provider mechanism.
I suspect the latter is why placing the oddly named a_xercesImpl.jar in
common/lib allows things to work.

Setting -Djaxp.debug=true might generate some light on the issue.

 - 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: Perl Permissions on Tomcat

2007-10-26 Thread Li Ye Chen
Yes, I have added debug code to the Perl program, and where it stalls seems to 
be the following line:

$myDatabase = new Win32::ODBC($data_source);

It just keeps hanging at that line. If I go to Windows Task Manager, I see 
perl.exe running, but at a fixed memory space (no changes). Also, forcing 
perl.exe off the Task Manager unstalls the CGI program and it just prints all 
the debug comments up to the code I wrote above.

Someone suggested that I switch to another JDK but our workplace uses only Sun 
JDK for production servers...any insights to resolving this other than writing 
a whole new module in Java?

-Original Message-

 Date: Sun Oct 14 18:29:57 EDT 2007
 From: Mark Thomas [EMAIL PROTECTED]
 Subject: Re: Perl Permissions on Tomcat
 To: Tomcat Users List users@tomcat.apache.org

 Li Ye Chen wrote:
  Script A (the problem script) continues to run after 2 minutes (with 
  partial output some of the time). But script A ran under the command line 
  (as opposed to the browser/Tomcat) is very fast -- under a second and gives 
  full output. Script B runs under less than a second and gives full output.
 
 Sounds like you need to add some debugging to your script to figure
 out where the problem is.
 
 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: Cannot access database with remote shared web hosting

2007-10-26 Thread Mike LI
Thank Chris for help. I have questions embedded below.

 Data Access Failure JDBC exception on Hibernate data access; nested
 exception is org.hibernate.exception .SQLGrammarException: could not
 insert: [com.cmn.model.User]

Can you post more of this stack trace? I wonder if the real problem is
cannot connect to database, and not SQL syntax error, as suggested
by the exception class.
[Mike] It's a shared web hosting, thus I cannot see the whole stack trace. If 
it's a cannot connect to database problem, which file or settings do you 
suggest to look at?

Can you verify that you can reach the hibernate database from your app
server? There may be a firewall or other barrier between the two machines.
[Mike] The Tomcat and MySQL run on same machine. Can you suggest an easy sample 
code to verify the connection between both?

Thanks!
-Mike

Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED 
MESSAGE-
Hash: SHA1

Mike,

Mike LI wrote:
 Data Access Failure JDBC exception on Hibernate data access; nested
 exception is org.hibernate.exception .SQLGrammarException: could not
 insert: [com.cmn.model.User]

Can you post more of this stack trace? I wonder if the real problem is
cannot connect to database, and not SQL syntax error, as suggested
by the exception class.

Can you verify that you can reach the hibernate database from your app
server? There may be a firewall or other barrier between the two machines.

 2) How does Tomcat decide to load *hbm.xml from my lib
 cmnweb-dao.jar, but not all .jar in WEB-INF/lib/ ?

Tomcat loads JAR files whenever a class is requested that resides in
the JAR file. They might not all be processed at once.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHIi/a9CaO5/Lv0PARAtedAJ0bKrCMSazZTalpfmH145kOrwsStACfb2Co
OTMS4tdR9ATaX/HeFmPZtss=
=3rG9
-END PGP SIGNATURE-

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



 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Buy a Tomcat Server for Commercial purpose site

2007-10-26 Thread Bruno Vilardo
Sathees,

As far as I know Tomcat is an OpenSource software. So go to the tomcat
website, download, install and have fun.

Regards,

Bruno


On 10/26/07, satheeskumar Ramasamy [EMAIL PROTECTED] wrote:

 Hi Team,

 I need to use a Tomcat as my Web Server for my Commercial Site, Please
 send
 me the details to buy a tomcat and use it in my site, Please respond as
 soon
 as possible to start to work on from my side, Thank you,


 --
 Thanks
 Sathees



Re: Buy a Tomcat Server for Commercial purpose site

2007-10-26 Thread Partha Goswami
yes It is a open source software..

On 10/27/07, Bruno Vilardo [EMAIL PROTECTED] wrote:

 Sathees,

 As far as I know Tomcat is an OpenSource software. So go to the tomcat
 website, download, install and have fun.

 Regards,

 Bruno


 On 10/26/07, satheeskumar Ramasamy [EMAIL PROTECTED] wrote:
 
  Hi Team,
 
  I need to use a Tomcat as my Web Server for my Commercial Site, Please
  send
  me the details to buy a tomcat and use it in my site, Please respond as
  soon
  as possible to start to work on from my side, Thank you,
 
 
  --
  Thanks
  Sathees
 




-- 
Regards
Partha Goswami
Solaris/Open solaris User Group
www.solaris-user-group.org


Re: Cannot access database with remote shared web hosting

2007-10-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mike,

Mike LI wrote:
 Christopher Schultz wrote:
 
 Can you post more of this stack trace? I wonder if the real problem
 is cannot connect to database, and not SQL syntax error, as
 suggested by the exception class.
 
 [Mike] It's a shared web hosting, thus I cannot see the whole stack
 trace. If it's a cannot connect to database problem, which file or
 settings do you suggest to look at?

That's unfortunate. You can't even see your own tomcat logs? I would
look at all log files.

 Can you verify that you can reach the hibernate database from your
 app server? There may be a firewall or other barrier between the two
 machines. 

 [Mike] The Tomcat and MySQL run on same machine. Can you
 suggest an easy sample code to verify the connection between both?

Sorry, I misread your original post: I thought you were moving just the
database, not deploying to another server.

My guess is that your database is called something else on the remote
server. Check that your URL to connect to the database makes sense for
the environment (as well as the username and password).

You might want to look into the SQLGrammarException, too: it's possible
that this isn't a connection problem, but a legitimate query problem
(which would be weird, since it's the same web application in both
cases). Are you sure the versions of the database servers are the same
in both environments?

Something simple like this would work (as a JSP, for ease of deployment,
etc.):

%! imports and stuff %

%
Connection conn = null;
PreparedStatement ps = null;
ResultSet rs = null;

try
{
conn = DriverManager.getConnection(dbURL, username, password);

ps = conn.prepareStatement(SELECT 1);

rs = ps.executeQuery();

if(rs.next())
{
%test passed%
}
else
{
%test failed%
}
}
finally
{
if(null != rs) try { rs.close(); } catch (SQLException)
{ %cannot close ResultSet% }

if(null != ps) try { ps.close(); } catch (SQLException)
{ %cannot close PreparedStatement% }

if(null != conn) try { conn.close(); } catch (SQLException)
{ %cannot close Connection% }
}
%
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHIme+9CaO5/Lv0PARAoETAJsFYc9oHlnB+ukpCLYOUPk9yG4r4ACfW7aV
g4DWU0DWlNMjgj2K9YsuofQ=
=Ps+R
-END PGP SIGNATURE-

-
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 5x SSI

2007-10-26 Thread Mark Thomas
Samik Basu wrote:
 Interestingly, when I do !--#include virtual=/Tomcat/test.jsp-- it works
 fine i.e. I can include any other types of files.

Have you tried setting isVirtualWebappRelative ?

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: Class loading issue

2007-10-26 Thread Mark Thomas
Tony Fountain wrote:
 Thanks for the response.  However, that does not clarify for me why it
 only happens when I attempt to set the load-on-startup element in the
 webapps web.xml file but if I do not autoload the class, it works just
 fine.

It might be related to
http://issues.apache.org/bugzilla/show_bug.cgi?id=29936

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 5x SSI

2007-10-26 Thread Samik Basu
Yes, I have tried it out but turning it on in Web.xml. However it did not
help. For example - this variable is set to 1 and then I invoked
/Tomcat/cgi-bin/test.cgi
/cgi-bin/test.cgi   - error is context not found
../cgi-bin/test.cgi   (assume that the shtml file just under the root of the
project directory) - error is file not found
I cannot give ../WEB-INF/cgi/test,cgi as that will just show the cgi
program - not the result of its execution.
I am sure I am missing something simple. Please post if I can provide some
more info.


On 10/26/07, Mark Thomas [EMAIL PROTECTED] wrote:

 Samik Basu wrote:
  Interestingly, when I do !--#include virtual=/Tomcat/test.jsp-- it
 works
  fine i.e. I can include any other types of files.

 Have you tried setting isVirtualWebappRelative ?

 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]




Tomcat 6.0 with SSL uploads file slowly with IE6 browser

2007-10-26 Thread Lilia
I have a tomcat server on windows 2003 platform, using java servlet to upload 
file. 
It has been working well until one or two months ago. 
Now this Tomcat 6.0 + HTTPS + Oreilly MultiPartRequest uploads file slowly with 
IE6 browser.

For testing, I create a 10M zip file and try to upload it on different browsers.

Tomcat 6.0.14 + HTTP:
IE6: ~5sec
IE7: ~3sec
FireFox: ~3sec

Tomcat 6.0.14 + HTTPS:
IE6: ~230ec
IE7: ~4sec
FireFox: ~4sec

Obviously, there is something wrong with Tomcat 6.0 + HTTPS + OReilly 
MultiPartRequest servlet.
After some analysis, we find the server delays when responding to client. 
The data snapshot pictures are put on 
http://picasaweb.google.com/bearcatlilia/ServerProblem now.
Please take a look. 

In IE6, the normal response (from server to client) only takes less than 
0.01 second, but the problem response takes 0.21875 second (and it happens 
every four responses).
But in IE7 or firefox, maximum response time is about 0.01 second, and it 
happens rarely (maybe because of network loading, I think it can be ignored).
All the problem responses have a win=64622, but the normal responses all have 
win=65535.

My Tomcat SSL setting is listed below:
Connector port=443 
 SSLEnabled=true  
 protocol=org.apache.coyote.http11.Http11Protocol 
 scheme=https 
 secure=true 
 clientAuth=false
 sslProtocol=TLS
 keystoreFile=* 
 keystorePass=*** 
 keystoreType=JKS 
 maxThreads=150 
 minSpareThreads=25
 maxSpareThreads=75  
 maxPostSize=0 
 acceptCount=100
 enableLookups=false
 disableUploadTimeout=true /

Do I make mistake in my SSL setting?

P.S. 
It happens in Tomcat 5.5 too. I used Tomcat 5.5 before, but file uploads slowly 
in pure HTTP as it does in HTTPS with IE6 (When I use other browser, everything 
is ok.),
so I decided to upgrade Tomcat to 6.0. However, it still has a bad speed with 
HTTPS. The delay time is always from server to client.

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]