RE: Enabling DEBUG statments

2016-08-17 Thread D, Dwarakesh
Hi Chris,

Log4j.jar was placed under /lib directory and log4j.properties file under 
/classes directory of the application.

Thanks
Dwarak

From: Christopher Schultz [ch...@christopherschultz.net]
Sent: Wednesday, August 17, 2016 5:07 PM
To: Tomcat Users List
Subject: Re: Enabling DEBUG statments

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Dwarak,

On 8/17/16 9:58 AM, D, Dwarakesh wrote:
> Hi Team,
>
> We are trying to enable the DEBUG in one of our application running
> in Tomcat 7(java8) and below is the log4j property file. We are not
> getting the DEBUG statements present in one of the .groovy file.
> Please let me know the process to enable the DEBUG.
>
> # Set the root category to INFO with on appender
> #log4j.rootLogger=ERROR,console log4j.rootLogger=DEBUG,console
>
> # Individual package handling
> log4j.logger.com.googlecode.struts2webflow=DEBUG
> log4j.logger.com.opensymphony.xwork2=DEBUG
> log4j.logger.com.xerox.xcs.cma=TRACE
> log4j.logger.com.xerox.xcs.commons=TRACE
> log4j.logger.org.springframework=DEBUG
> log4j.logger.org.springframework.webflow=DEBUG
> log4j.logger.org.apache.struts2=DEBUG
>
> # Define the console appender using ISO 8601 format
> log4j.appender.console=org.apache.log4j.ConsoleAppender
> log4j.appender.console.layout=org.apache.log4j.PatternLayout
> log4j.appender.console.layout.ConversionPattern=%d [%t] %-5p %c %x
> - %m%n
> ==
==

Where
>
is log4j.jar? Where is log4j.properties?

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJXtOAzAAoJEBzwKT+lPKRYsusQAKvNrQv1HSLUQ1CX0rjz45GF
M/+4n8E/lNxpvWhC2O0MAd/DBegzPL+hPVSmKQghiELFF5VFjJFgLz2x6MMfBcV8
vQ7QNLwlJ1p7rfPiUmWUW2oPcujpJau7DbbS0TtFObID8Sbln8QDL9YbzxGm15Gn
/sMj/iSlrfj151Hrt4u0+aOkJRKr0djeZbZtiFxnsI9zgnSNkaMpY/S3z5h8W0mb
ykCxvkUlSJ6z511021PT1GwQRKoFebQwo+up/WfpddVmKjOXoOk1CGGghPdqBd3O
VBb6T8bdsKCJoMiuRTvi5LGtLPprYUDu0oQqYOW7ucrcHP6FkkG/d2AsCmniHT2K
B/dsxTvUrie0JDi8rMSMhncmLcGJr4dTcaDvfqBGzEhBSorI9cmvgXMZbAqkNy3f
sXh4nk+abToPgczktkK1U8NQUQ3RvKUREhaTTDupD1WeTdAg1+wiV1cv4p0Cgtvy
ldLDNXi5+F611Ja1a0wk7QFP2ixvBcwLxGRwHtjgQD9p5DZxEyHrbAGFnTmKQg+v
PD3iIHWK+lceB+tKvpZDvryg6l3kpgbwkTVk04rwSm4Fp3NOdgehSGSQJ8509sA9
N+itM9BOytEfwQCtUAHfa1J0kVs90ewLUwVA+FheWyZbZXYJccMMkyD8nSXVSUyE
Fv8aJcem0rXvvTZS1bvb
=r5ld
-END PGP SIGNATURE-

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


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



Re: A way for user to specify DH parameter to tomcat !

2016-08-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Utkarsh,

On 8/17/16 4:29 AM, Utkarsh Dave wrote:
> Hi All,
> 
> My project is using tomcat 7.0.70, JDK 1.7.0_101 and is based on
> linux OS We have been using BIO connectors. 1. I need help to find
> out how to provide user specified DH parameter to tomcat.

I'm not sure you can do this with Tomcat 7. With Tomcat 8, using the
APR connector can use the DH parameters from the certificate file itself
.

https://tomcat.apache.org/tomcat-8.0-doc/config/http.html#SSL_Support

Search for "SSLCertificateFile".

If you are able to use Tomcat 8.5, you can use DH params with any kind
of connector.

https://tomcat.apache.org/tomcat-8.5-doc/config/http.html#SSL_Support_-_
Certificate

Look for "certificateFile".

Note you will need Java 8 to run Tomcat 8.5.

> 2. What all ciphers are categorized under modern ciphers ?

See Violeta's response.

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJXtOGvAAoJEBzwKT+lPKRYEuUP/1K2Zs88uKjBBsKAwBRDX1Zk
WUDbTt7c68VK0ahfU0B21DPDHCLa8sN4Ji8yK9pgYzZAE6JfyKOs6hWhO7IgWh0Z
BODN1ux6yHjEc0sZrvkCyUbG9mzp3AYjB7AhqGd48tRJx0QzAmwLpG5HGYjdH/6B
NyCBxADS7k5EOWYe1MmKQPbtgyO2t3wveV6mCTig6EcSm3v4unFgjgHiRNaSZrRc
bvaKvHhPot1gTqZLCoQ1Rpx3RGUse5rqFta8jHsdHf2Tq8aEkyEGk1jggTFOCb8+
lpKNABfdLtFTC4HKSG8VY8c524bisbaJOmzq7fOsXnOIMN7abczQtmGPoEGc+7Vb
gbcGPPuEh0wcvapZGG4L9iYsTB7EIQMGCHAYuhoDHhbEhvJAu5P8xtSkz9flgcJH
3EmNQVqn9IS5CG1Xj8FW/0o34xl86fkMx2lSBT+vRMXX+HwPO2DTnOQh9aKGS9FI
Ayomb97HBnMpgUUDBLjxcF6aKQ+2/CSi/eVdrIcnPU7qgZq8FBRUwUcZ5Q7/sSAN
xsf1Ez1jW+mMAxyX4wIrizDgEXDwnlnr8JCFZtDAKd0x1umX8ZyLzY0gQkacHWV6
1FVy5y62rILOoe+HgTmxhMDRmmcXGz/1FHPjqA+kYo2bjbU8vFdPetDkDO2Liydf
o+jrnbet4VC4hD43fZVJ
=Fkhf
-END PGP SIGNATURE-

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



Re: Enabling DEBUG statments

2016-08-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Dwarak,

On 8/17/16 9:58 AM, D, Dwarakesh wrote:
> Hi Team,
> 
> We are trying to enable the DEBUG in one of our application running
> in Tomcat 7(java8) and below is the log4j property file. We are not
> getting the DEBUG statements present in one of the .groovy file.
> Please let me know the process to enable the DEBUG.
> 
> # Set the root category to INFO with on appender 
> #log4j.rootLogger=ERROR,console log4j.rootLogger=DEBUG,console
> 
> # Individual package handling 
> log4j.logger.com.googlecode.struts2webflow=DEBUG 
> log4j.logger.com.opensymphony.xwork2=DEBUG 
> log4j.logger.com.xerox.xcs.cma=TRACE 
> log4j.logger.com.xerox.xcs.commons=TRACE 
> log4j.logger.org.springframework=DEBUG 
> log4j.logger.org.springframework.webflow=DEBUG 
> log4j.logger.org.apache.struts2=DEBUG
> 
> # Define the console appender using ISO 8601 format 
> log4j.appender.console=org.apache.log4j.ConsoleAppender 
> log4j.appender.console.layout=org.apache.log4j.PatternLayout 
> log4j.appender.console.layout.ConversionPattern=%d [%t] %-5p %c %x
> - %m%n 
> ==
==

Where
> 
is log4j.jar? Where is log4j.properties?

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJXtOAzAAoJEBzwKT+lPKRYsusQAKvNrQv1HSLUQ1CX0rjz45GF
M/+4n8E/lNxpvWhC2O0MAd/DBegzPL+hPVSmKQghiELFF5VFjJFgLz2x6MMfBcV8
vQ7QNLwlJ1p7rfPiUmWUW2oPcujpJau7DbbS0TtFObID8Sbln8QDL9YbzxGm15Gn
/sMj/iSlrfj151Hrt4u0+aOkJRKr0djeZbZtiFxnsI9zgnSNkaMpY/S3z5h8W0mb
ykCxvkUlSJ6z511021PT1GwQRKoFebQwo+up/WfpddVmKjOXoOk1CGGghPdqBd3O
VBb6T8bdsKCJoMiuRTvi5LGtLPprYUDu0oQqYOW7ucrcHP6FkkG/d2AsCmniHT2K
B/dsxTvUrie0JDi8rMSMhncmLcGJr4dTcaDvfqBGzEhBSorI9cmvgXMZbAqkNy3f
sXh4nk+abToPgczktkK1U8NQUQ3RvKUREhaTTDupD1WeTdAg1+wiV1cv4p0Cgtvy
ldLDNXi5+F611Ja1a0wk7QFP2ixvBcwLxGRwHtjgQD9p5DZxEyHrbAGFnTmKQg+v
PD3iIHWK+lceB+tKvpZDvryg6l3kpgbwkTVk04rwSm4Fp3NOdgehSGSQJ8509sA9
N+itM9BOytEfwQCtUAHfa1J0kVs90ewLUwVA+FheWyZbZXYJccMMkyD8nSXVSUyE
Fv8aJcem0rXvvTZS1bvb
=r5ld
-END PGP SIGNATURE-

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



Re: Set up postgresql on tomcat7

2016-08-17 Thread tomcat

With apologies for top-posting,

I believe that this is now getting a bit confusing, in terms of Java and Tomcat versions, 
and in terms of where you want to run this on.
I suggest that you start by looking at which highest version of Java you can install on 
your target machine, and then look at the corresponding highest Tomcat version you can 
install. If your target machine is the Ubuntu one, then use "apt-cache search java" and 
"apt-cache search tomcat" to find these out.

Then refer to : http://tomcat.apache.org/whichversion.html
to see which versions to install (the higher the better), and do it.
Then maybe start a new thread, indicating clearly
- the chosen OS
- the chosen java
- the chosen Tomcat version x.y.z
and re-state your latest questions.

I saw one response in the current thread (by Jason D. Burket) which seemed quite specific 
and detailed. So once you have done the above installation (and before writing again to 
the list), why don't you give that one a try, and come back and report your success or 
failure. And if it fails, paste the corresponding Tomcat log messages.



On 17.08.2016 22:53, André Warnier (tomcat) wrote:

On 17.08.2016 16:15, Andrew Davis wrote:

Its a redhat ..  i don't think tomcat 7 or later will run on this.


Why shouldn't it ? As long as there is a java for it, Tomcat will run on it.
Check out : http://tomcat.apache.org/whichversion.html
But there is a contraduction then between the subject of the mails you have 
been posting,
and the version/documentation which you are using.
And I know that this does not answer your questions.
I was just trying to point out that the closer you are to the current latest 
released
version, the more likely you are to find more people to help you on this list.



On Aug 17, 2016 9:14 AM, "André Warnier (tomcat)"  wrote:


On 17.08.2016 16:06, Andrew Davis wrote:


Thanks for the prompt..

I have been looking at the doc s and have my .jar file for postgres in the
lib folder.

I do not understand where the 
https://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-
examples-howto.html



If your version is Tomcat 7, then maybe you should look at the Tomcat 7
documentation, not the v 6 one.

In any case, even Tomcat 7 is somewhat old now.  Can you upgrade to a
later version ? That might increase your chances of getting help here.



This author has not had success here...

This doesn't inspire confidence  here,  but that's what the documentation
shows...



Sorry, but personally my expertise in these matters is nil, so I hope
someone else here can pick this up now.

Andy


On Aug 17, 2016 4:43 AM, "André Warnier (tomcat)"  wrote:

On 17.08.2016 11:32, Andrew Davis wrote:

Thanks.


I can now deploy my servlets and they work ok, but..

I had hoped to just deploy one copy of the postgres jar to my server and
then be able to consume it inside multiple applications, instead of
having
multiple copies of the jar in multiple apps.

I've been through the JNDI portion of the docs on Tomcat and found it
still
somewhat confusing.

Andy...



I am far from an expert on this kind of thing, but have you looked at
this :

http://tomcat.apache.org/tomcat-8.0-doc/config/globalresources.html

Maybe that is the missing link in your understanding ?




On Aug 17, 2016 4:06 AM, "André Warnier (tomcat)"  wrote:


Andrew,


this list strips most kinds of attachments, so nobody saw your
screenshots
or whatever was in them.
You need to copy/paste that text right into your message to the list
(amd
make sure that you send your message as "plain text", not HTML,
otherwise
it will be unreadable.

On 17.08.2016 02:10, Andrew Davis wrote:

Well,


This has not turned out how I wanted it to .

I have 'a solution' but it isnt what I wanted to do.  I went back and
re
added the .jar file to the 'WEB-INF' folder and then deployed a new WAR
file.

Now things work just 'fine' BUT I suspect that this is not what a real
coder would do and suspect I am still in the realms of hackery..

[image: Inline image 1]

Andy.



On Tue, Aug 16, 2016 at 6:53 PM, Andrew Davis 
wrote:

I found the following in my logs..



from command line in Putty...

cd /var/lib/tomcat7
tail -f logs/catalina.out

[image: Inline image 1]

I do have the jar file located in the following location on the
machine..

/usr/share/tomcat7/lib

https://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howt
o.html#JDBC_Data_Sources  is confusing to me.  It shouldnt but it is..
at
this point..

Andy..



On Tue, Aug 16, 2016 at 3:01 PM, George Sexton <
geor...@mhsoftware.com>
wrote:

The best place to start would be to look at tomcat's logs for
exceptions

or errors.




On 8/16/2016 12:44 PM, Andrew Davis wrote:

Hello,

Im working on getting java servlets to run on my instance of Ububtu

with
tomcat7.

I write my applications in Eclipse.. when i run my apps localhost i
see
everything just fine.

When i export my WAR files i check the 

Re: Set up postgresql on tomcat7

2016-08-17 Thread tomcat

On 17.08.2016 16:15, Andrew Davis wrote:

Its a redhat ..  i don't think tomcat 7 or later will run on this.


Why shouldn't it ? As long as there is a java for it, Tomcat will run on it.
Check out : http://tomcat.apache.org/whichversion.html
But there is a contraduction then between the subject of the mails you have been posting, 
and the version/documentation which you are using.

And I know that this does not answer your questions.
I was just trying to point out that the closer you are to the current latest released 
version, the more likely you are to find more people to help you on this list.




On Aug 17, 2016 9:14 AM, "André Warnier (tomcat)"  wrote:


On 17.08.2016 16:06, Andrew Davis wrote:


Thanks for the prompt..

I have been looking at the doc s and have my .jar file for postgres in the
lib folder.

I do not understand where the 
https://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-
examples-howto.html



If your version is Tomcat 7, then maybe you should look at the Tomcat 7
documentation, not the v 6 one.

In any case, even Tomcat 7 is somewhat old now.  Can you upgrade to a
later version ? That might increase your chances of getting help here.



This author has not had success here...

This doesn't inspire confidence  here,  but that's what the documentation
shows...



Sorry, but personally my expertise in these matters is nil, so I hope
someone else here can pick this up now.

Andy


On Aug 17, 2016 4:43 AM, "André Warnier (tomcat)"  wrote:

On 17.08.2016 11:32, Andrew Davis wrote:

Thanks.


I can now deploy my servlets and they work ok, but..

I had hoped to just deploy one copy of the postgres jar to my server and
then be able to consume it inside multiple applications, instead of
having
multiple copies of the jar in multiple apps.

I've been through the JNDI portion of the docs on Tomcat and found it
still
somewhat confusing.

Andy...



I am far from an expert on this kind of thing, but have you looked at
this :

http://tomcat.apache.org/tomcat-8.0-doc/config/globalresources.html

Maybe that is the missing link in your understanding ?




On Aug 17, 2016 4:06 AM, "André Warnier (tomcat)"  wrote:


Andrew,


this list strips most kinds of attachments, so nobody saw your
screenshots
or whatever was in them.
You need to copy/paste that text right into your message to the list
(amd
make sure that you send your message as "plain text", not HTML,
otherwise
it will be unreadable.

On 17.08.2016 02:10, Andrew Davis wrote:

Well,


This has not turned out how I wanted it to .

I have 'a solution' but it isnt what I wanted to do.  I went back and
re
added the .jar file to the 'WEB-INF' folder and then deployed a new WAR
file.

Now things work just 'fine' BUT I suspect that this is not what a real
coder would do and suspect I am still in the realms of hackery..

[image: Inline image 1]

Andy.



On Tue, Aug 16, 2016 at 6:53 PM, Andrew Davis 
wrote:

I found the following in my logs..



from command line in Putty...

cd /var/lib/tomcat7
tail -f logs/catalina.out

[image: Inline image 1]

I do have the jar file located in the following location on the
machine..

/usr/share/tomcat7/lib

https://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howt
o.html#JDBC_Data_Sources  is confusing to me.  It shouldnt but it is..
at
this point..

Andy..



On Tue, Aug 16, 2016 at 3:01 PM, George Sexton <
geor...@mhsoftware.com>
wrote:

The best place to start would be to look at tomcat's logs for
exceptions

or errors.




On 8/16/2016 12:44 PM, Andrew Davis wrote:

Hello,

Im working on getting java servlets to run on my instance of Ububtu

with
tomcat7.

I write my applications in Eclipse.. when i run my apps localhost i
see
everything just fine.

When i export my WAR files i check the includ source files.

I deploy the WAR file through tomcat manager.

I can see the java classes which i use to insert records into my
postgresql
database. However,  there is nothing happening.  When i attempt  to
run
them, no joy.

I have the postgresql .jar file installed on my headless ubuntu
server
,
but no luck.

Aside from the .jar file is there anything else i need to configure?

Any advice is welcome

Andy


--

George Sexton

*MH Software, Inc.*
Voice: 303 438 9585
http://www.connectdaily.com








-

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







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




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








Re: Set up postgresql on tomcat7

2016-08-17 Thread Andrew Davis
Sorry,
I got confused from yesterday and continued the question on my second
machine without realizing .

I have two machines.  The one I started the question with is:
Machine number 1.
Ubuntu 14.04, Tomcat7 as my web server, I have postgreSQl 9.3 installed as
my dbServer.

java version 1.8.9_91

Machine number 2
RHEL 6, Tomcat6 as web server, postgreSQL 9.3 dbServer.
java version 1.7.0_101

I am focusing my effort on the first machine.  (Ubuntu)..

Andy.




On Wed, Aug 17, 2016 at 12:47 PM, Mark Eggers  wrote:

> Replies at the end:
>
> Andrew:
>
> On 8/17/2016 7:15 AM, Andrew Davis wrote:
> > Its a redhat ..  i don't think tomcat 7 or later will run on this.
> >
> > On Aug 17, 2016 9:14 AM, "André Warnier (tomcat)" 
> > wrote:
> >
> >> On 17.08.2016 16:06, Andrew Davis wrote:
> >>
> >>> Thanks for the prompt..
> >>>
> >>> I have been looking at the doc s and have my .jar file for
> >>> postgres in the lib folder.
> >>>
> >>> I do not understand where the   >>> name="jdbc/postgres..."
> >>>
> >>> Is supposed to go.
> >>>
> >>> Im reading at
> >>> https://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-
> >>> examples-howto.html
> >>>
> >>
> >> If your version is Tomcat 7, then maybe you should look at the
> >> Tomcat 7 documentation, not the v 6 one.
> >>
> >> In any case, even Tomcat 7 is somewhat old now.  Can you upgrade to
> >> a later version ? That might increase your chances of getting help
> >> here.
> >>
> >>
> >>> This author has not had success here...
> >>>
> >>> This doesn't inspire confidence  here,  but that's what the
> >>> documentation shows...
> >>>
> >>>
> >> Sorry, but personally my expertise in these matters is nil, so I
> >> hope someone else here can pick this up now.
> >>
> >> Andy
> >>>
> >>> On Aug 17, 2016 4:43 AM, "André Warnier (tomcat)" 
> >>> wrote:
> >>>
> >>> On 17.08.2016 11:32, Andrew Davis wrote:
> >>>
> >>> Thanks.
> 
>  I can now deploy my servlets and they work ok, but..
> 
>  I had hoped to just deploy one copy of the postgres jar to my
>  server and then be able to consume it inside multiple
>  applications, instead of having multiple copies of the jar in
>  multiple apps.
> 
>  I've been through the JNDI portion of the docs on Tomcat and
>  found it still somewhat confusing.
> 
>  Andy...
> 
> 
> >>> I am far from an expert on this kind of thing, but have you
> >>> looked at this :
> >>>
> >>> http://tomcat.apache.org/tomcat-8.0-doc/config/globalresources.html
> >>>
> >>>
> >>>
> Maybe that is the missing link in your understanding ?
> >>>
> >>>
> >>>
> >>>
> >>> On Aug 17, 2016 4:06 AM, "André Warnier (tomcat)" 
> >>> wrote:
> 
>  Andrew,
> 
> > this list strips most kinds of attachments, so nobody saw
> > your screenshots or whatever was in them. You need to
> > copy/paste that text right into your message to the list
> > (amd make sure that you send your message as "plain text",
> > not HTML, otherwise it will be unreadable.
> >
> > On 17.08.2016 02:10, Andrew Davis wrote:
> >
> > Well,
> >
> >> This has not turned out how I wanted it to .
> >>
> >> I have 'a solution' but it isnt what I wanted to do.  I
> >> went back and re added the .jar file to the 'WEB-INF'
> >> folder and then deployed a new WAR file.
> >>
> >> Now things work just 'fine' BUT I suspect that this is not
> >> what a real coder would do and suspect I am still in the
> >> realms of hackery..
> >>
> >> [image: Inline image 1]
> >>
> >> Andy.
> >>
> >>
> >>
> >> On Tue, Aug 16, 2016 at 6:53 PM, Andrew Davis
> >>  wrote:
> >>
> >> I found the following in my logs..
> >>
> >>
> >>> from command line in Putty...
> >>>
> >>> cd /var/lib/tomcat7 tail -f logs/catalina.out
> >>>
> >>> [image: Inline image 1]
> >>>
> >>> I do have the jar file located in the following location
> >>> on the machine..
> >>>
> >>> /usr/share/tomcat7/lib
> >>>
> >>> https://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howt
> >>>
> >>>
> o.html#JDBC_Data_Sources  is confusing to me.  It shouldnt but it is..
> >>> at this point..
> >>>
> >>> Andy..
> >>>
> >>>
> >>>
> >>> On Tue, Aug 16, 2016 at 3:01 PM, George Sexton <
> >>> geor...@mhsoftware.com> wrote:
> >>>
> >>> The best place to start would be to look at tomcat's logs
> >>> for exceptions
> >>>
> >>> or errors.
> 
> 
> 
>  On 8/16/2016 12:44 PM, Andrew Davis wrote:
> 
>  Hello,
> 
>  Im working on getting java servlets to run on my
>  instance of Ububtu
> > with tomcat7.
> >
> > I write my applications in Eclipse.. when i run my
> > apps localhost i see 

Re: Tomcat 8.5 Resource Setting Says it's being ignored but documentation shows it is supported

2016-08-17 Thread Mark Eggers
On 8/17/2016 10:34 AM, McKenzie, Mitch wrote:
> Seeing the following  warning for all of my datasources when tomcat 8.5.4 
> starts up : Ignoring unknown property: value of "3" for 
> "validationInterval" property
> 
> I see validationInterval in the docs here: 
> https://tomcat.apache.org/tomcat-8.5-doc/jdbc-pool.html
> 
> Here is one of my resource defs:
> 
>  name="jdbc/XYZAPP"
> auth="Container"
> type="javax.sql.DataSource"
> factory="org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory"
> username="?"
> password="?"
> driverClassName="some.driver"
> url="jdbc:xyz://xyzapp:12345/SomeDB"
> initialSize="10"
> maxTotal="100"
> maxIdle="50"
> minIdle="10"
> timeBetweenEvictionRunsMillis="3"
> minEvictableIdleTimeMillis="6"
> testOnBorrow="true"
> testWhileIdle="false"
> testOnReturn="false"
> validationQuery="SELECT 1"
> validationInterval="3"
> validationQueryTimeout="3"/>
> 
> 
> This message has been scanned for malware by Websense. www.websense.com
> 

I believe that the configuration above is for Tomcat's database
connection pooling factory, and not the default repackaged Apache
Commons DBCP 2.x factory.

In order to use the Tomcat factory, you'll have to add the following
line to your context.xml:

factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"

See the following for more information:

https://tomcat.apache.org/tomcat-8.5-doc/jdbc-pool.html

. . . just my two cents
/mde/



signature.asc
Description: OpenPGP digital signature


RE: Tomcat 8.5 Resource Setting Says it's being ignored but documentation shows it is supported

2016-08-17 Thread Caldarale, Charles R
> From: McKenzie, Mitch [mailto:mmcken...@markelcorp.com] 
> Subject: Tomcat 8.5 Resource Setting Says it's being ignored but 
> documentation shows it is supported


> Seeing the following  warning for all of my datasources when tomcat 8.5.4 
> starts up : 
> Ignoring unknown property: value of "3" for "validationInterval" property

As you should.

> factory="org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory"

> I see validationInterval in the docs here: 
> https://tomcat.apache.org/tomcat-8.5-doc/jdbc-pool.html

Which is the doc for org.apache.tomcat.jdbc.pool.  If you're using DBCP2, you 
should be looking at the following doc, which is linked to from at least two 
places in the Tomcat web pages:
http://commons.apache.org/proper/commons-dbcp/configuration.html

 - Chuck


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


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



Re: Set up postgresql on tomcat7

2016-08-17 Thread Mark Eggers
Replies at the end:

Andrew:

On 8/17/2016 7:15 AM, Andrew Davis wrote:
> Its a redhat ..  i don't think tomcat 7 or later will run on this.
> 
> On Aug 17, 2016 9:14 AM, "André Warnier (tomcat)" 
> wrote:
> 
>> On 17.08.2016 16:06, Andrew Davis wrote:
>> 
>>> Thanks for the prompt..
>>> 
>>> I have been looking at the doc s and have my .jar file for
>>> postgres in the lib folder.
>>> 
>>> I do not understand where the  >> name="jdbc/postgres..."
>>> 
>>> Is supposed to go.
>>> 
>>> Im reading at 
>>> https://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource- 
>>> examples-howto.html
>>> 
>> 
>> If your version is Tomcat 7, then maybe you should look at the
>> Tomcat 7 documentation, not the v 6 one.
>> 
>> In any case, even Tomcat 7 is somewhat old now.  Can you upgrade to
>> a later version ? That might increase your chances of getting help
>> here.
>> 
>> 
>>> This author has not had success here...
>>> 
>>> This doesn't inspire confidence  here,  but that's what the
>>> documentation shows...
>>> 
>>> 
>> Sorry, but personally my expertise in these matters is nil, so I
>> hope someone else here can pick this up now.
>> 
>> Andy
>>> 
>>> On Aug 17, 2016 4:43 AM, "André Warnier (tomcat)" 
>>> wrote:
>>> 
>>> On 17.08.2016 11:32, Andrew Davis wrote:
>>> 
>>> Thanks.
 
 I can now deploy my servlets and they work ok, but..
 
 I had hoped to just deploy one copy of the postgres jar to my
 server and then be able to consume it inside multiple
 applications, instead of having multiple copies of the jar in
 multiple apps.
 
 I've been through the JNDI portion of the docs on Tomcat and
 found it still somewhat confusing.
 
 Andy...
 
 
>>> I am far from an expert on this kind of thing, but have you
>>> looked at this :
>>> 
>>> http://tomcat.apache.org/tomcat-8.0-doc/config/globalresources.html
>>>
>>>
>>> 
Maybe that is the missing link in your understanding ?
>>> 
>>> 
>>> 
>>> 
>>> On Aug 17, 2016 4:06 AM, "André Warnier (tomcat)" 
>>> wrote:
 
 Andrew,
 
> this list strips most kinds of attachments, so nobody saw
> your screenshots or whatever was in them. You need to
> copy/paste that text right into your message to the list 
> (amd make sure that you send your message as "plain text",
> not HTML, otherwise it will be unreadable.
> 
> On 17.08.2016 02:10, Andrew Davis wrote:
> 
> Well,
> 
>> This has not turned out how I wanted it to .
>> 
>> I have 'a solution' but it isnt what I wanted to do.  I
>> went back and re added the .jar file to the 'WEB-INF'
>> folder and then deployed a new WAR file.
>> 
>> Now things work just 'fine' BUT I suspect that this is not
>> what a real coder would do and suspect I am still in the
>> realms of hackery..
>> 
>> [image: Inline image 1]
>> 
>> Andy.
>> 
>> 
>> 
>> On Tue, Aug 16, 2016 at 6:53 PM, Andrew Davis
>>  wrote:
>> 
>> I found the following in my logs..
>> 
>> 
>>> from command line in Putty...
>>> 
>>> cd /var/lib/tomcat7 tail -f logs/catalina.out
>>> 
>>> [image: Inline image 1]
>>> 
>>> I do have the jar file located in the following location
>>> on the machine..
>>> 
>>> /usr/share/tomcat7/lib
>>> 
>>> https://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howt
>>>
>>> 
o.html#JDBC_Data_Sources  is confusing to me.  It shouldnt but it is..
>>> at this point..
>>> 
>>> Andy..
>>> 
>>> 
>>> 
>>> On Tue, Aug 16, 2016 at 3:01 PM, George Sexton < 
>>> geor...@mhsoftware.com> wrote:
>>> 
>>> The best place to start would be to look at tomcat's logs
>>> for exceptions
>>> 
>>> or errors.
 
 
 
 On 8/16/2016 12:44 PM, Andrew Davis wrote:
 
 Hello,
 
 Im working on getting java servlets to run on my
 instance of Ububtu
> with tomcat7.
> 
> I write my applications in Eclipse.. when i run my
> apps localhost i see everything just fine.
> 
> When i export my WAR files i check the includ source
> files.
> 
> I deploy the WAR file through tomcat manager.
> 
> I can see the java classes which i use to insert
> records into my postgresql database. However,  there
> is nothing happening.  When i attempt  to run them,
> no joy.
> 
> I have the postgresql .jar file installed on my
> headless ubuntu server , but no luck.
> 
> Aside from the .jar file is there anything else i
> need to configure?
> 
> Any advice is welcome
> 
> Andy

AD: Its a redhat ..  i don't think tomcat 7 or later will run on this.

From your first message, I thought that 

Tomcat 8.5 Resource Setting Says it's being ignored but documentation shows it is supported

2016-08-17 Thread McKenzie, Mitch
Seeing the following  warning for all of my datasources when tomcat 8.5.4 
starts up : Ignoring unknown property: value of "3" for 
"validationInterval" property

I see validationInterval in the docs here: 
https://tomcat.apache.org/tomcat-8.5-doc/jdbc-pool.html

Here is one of my resource defs:




This message has been scanned for malware by Websense. www.websense.com


Re: Set up postgresql on tomcat7

2016-08-17 Thread Jason D. Burkert

On 2016-08-17 5:32 AM, Andrew Davis wrote:

Thanks.

I can now deploy my servlets and they work ok, but..

I had hoped to just deploy one copy of the postgres jar to my server and
then be able to consume it inside multiple applications, instead of having
multiple copies of the jar in multiple apps.


Try placing the postgres JDBC driver in Tomcat's lib directory.
For example: C:\apache-tomcat-7.0.69\lib

Then include your  defining the JDBC data source in Tomcat's 
context.xml

For example: C:\apache-tomcat-7.0.69\conf\context.xml



Attribute driverClassName should reference a JDBC driver class inside 
the postgres jar.
Attribute name is very important and must match the value of 
res-ref-name inside your webapp's web.xml.


For example: C:\apache-tomcat-7.0.69\webapps\yourWebapp\WEB-INF\web.xml


Requires named JNDI data source defined in 
Tomcat's context.xml

jdbc/myPostgresConnection
javax.sql.DataSource
Container


This will allow you to have one copy of the postgres jar deployed in 
Tomcat's lib directory,
and each of your webapps can reference the named connection (i.e. 
jdbc/myPostgresConnection )

within their own web.xml

-Jason



I've been through the JNDI portion of the docs on Tomcat and found it still
somewhat confusing.

Andy...

On Aug 17, 2016 4:06 AM, "André Warnier (tomcat)"  wrote:


Andrew,
this list strips most kinds of attachments, so nobody saw your screenshots
or whatever was in them.
You need to copy/paste that text right into your message to the list (amd
make sure that you send your message as "plain text", not HTML, otherwise
it will be unreadable.

On 17.08.2016 02:10, Andrew Davis wrote:


Well,
This has not turned out how I wanted it to .

I have 'a solution' but it isnt what I wanted to do.  I went back and re
added the .jar file to the 'WEB-INF' folder and then deployed a new WAR
file.

Now things work just 'fine' BUT I suspect that this is not what a real
coder would do and suspect I am still in the realms of hackery..

[image: Inline image 1]

Andy.



On Tue, Aug 16, 2016 at 6:53 PM, Andrew Davis 
wrote:

I found the following in my logs..

from command line in Putty...

cd /var/lib/tomcat7
tail -f logs/catalina.out

[image: Inline image 1]

I do have the jar file located in the following location on the machine..

/usr/share/tomcat7/lib

https://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howt
o.html#JDBC_Data_Sources  is confusing to me.  It shouldnt but it is.. at
this point..

Andy..



On Tue, Aug 16, 2016 at 3:01 PM, George Sexton 
wrote:

The best place to start would be to look at tomcat's logs for exceptions

or errors.



On 8/16/2016 12:44 PM, Andrew Davis wrote:

Hello,

Im working on getting java servlets to run on my instance of Ububtu
with
tomcat7.

I write my applications in Eclipse.. when i run my apps localhost i see
everything just fine.

When i export my WAR files i check the includ source files.

I deploy the WAR file through tomcat manager.

I can see the java classes which i use to insert records into my
postgresql
database. However,  there is nothing happening.  When i attempt  to run
them, no joy.

I have the postgresql .jar file installed on my headless ubuntu server
,
but no luck.

Aside from the .jar file is there anything else i need to configure?

Any advice is welcome

Andy


--

George Sexton
*MH Software, Inc.*
Voice: 303 438 9585
http://www.connectdaily.com





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







smime.p7s
Description: S/MIME Cryptographic Signature


Re: Set up postgresql on tomcat7

2016-08-17 Thread Andrew Davis
Thanks.. sorry bout the top-post.

Andy

On Wed, Aug 17, 2016 at 10:31 AM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:

> > From: Andrew Davis [mailto:drsockmon...@gmail.com]
> > Subject: Re: Set up postgresql on tomcat7
>
> > Its a redhat ..  i don't think tomcat 7 or later will run on this.
>
> Stop top posting; read the rules here:
> http://tomcat.apache.org/lists.html#tomcat-users
>
> The distributor of your OS is completely irrelevant.  What's important is
> the version of the JVM you have installed.  Look at this page to see what
> version of Tomcat will run with your JVM:
> http://tomcat.apache.org/whichversion.html
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail and
> its attachments from all computers.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


RE: Set up postgresql on tomcat7

2016-08-17 Thread Caldarale, Charles R
> From: Andrew Davis [mailto:drsockmon...@gmail.com] 
> Subject: Re: Set up postgresql on tomcat7

> Its a redhat ..  i don't think tomcat 7 or later will run on this.

Stop top posting; read the rules here:
http://tomcat.apache.org/lists.html#tomcat-users

The distributor of your OS is completely irrelevant.  What's important is the 
version of the JVM you have installed.  Look at this page to see what version 
of Tomcat will run with your JVM:
http://tomcat.apache.org/whichversion.html

 - Chuck


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


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



Re: Realm SSHA Code

2016-08-17 Thread George Sexton

Chris,


On 7/31/2016 6:56 AM, Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

George,

On 7/29/16 1:46 PM, George Sexton wrote:

I was looking at the source code for
org.apache.catalina.realm.RealmBase and see that it can handle
salted SHA for passwords. Does anyone have some example code that
demonstrates generating the SSHA value: generating the salt, doing
the digest, and outputting the value so that I could put it in my
Tomcat-Users.xml file? I'm using Tomcat 7, so it looks like the
CredentialHandler which provides a mutate() method wouldn't be
available.

Do you mean a salted digest in general, or specifically the
{SSHA}-prefixed variant?

For the former, just use $CATALINA_HOME/bin/digest.sh to launch
RealmBase's main method from the command-line with the right options.
You can always use a later version of Tomcat just for that purpose,
and use the output with the older versions.

For the latter, you'll have to write some code. The format is fairly
straightforward:

  "{SSHA}" + base64 ( 20 salt bytes + SHA1 ( cleartext ) )


That's not actually how RealmBase is doing it, and that's a big problem 
(I think). Let me explain. From the code, it looks like:


"{SSHA}" + base64 ( SHA1 ( cleartext, 20 salt bytes ) + 20 salt bytes )

Here's the code:

// Need to convert the salt to bytes to apply it to the user's
// digested password.
byte[] serverDigestPlusSaltBytes=
Base64.decodeBase64(serverDigestPlusSalt);
finalintsaltPos=20;
byte[] serverDigestBytes=newbyte[saltPos];
System.arraycopy(serverDigestPlusSaltBytes, 0,
serverDigestBytes, 0, saltPos);

// Generate the digested form of the user provided password
// using the salt
byte[] userDigestBytes;
synchronized(this) {
md.reset();
// User provided password
md.update(userCredentials.getBytes(B2CConverter.ISO_8859_1));
// Add the salt
md.update(serverDigestPlusSaltBytes, saltPos,
serverDigestPlusSaltBytes.length-saltPos);
userDigestBytes=md.digest();
}

If my understanding of the code is correct, it's actually 20 bytes of 
digest followed by 20 bytes of salt. That only works if the algorithm 
produces 20 bytes of digest content. SHA-1 does. SHA-256 produces 32 bytes.


My read of the tomcat realm configuration docs talk about the digest 
attribute in a very non-specific way. My read is that you can specify 
whatever algorithm you want in the digest attribute of the Realm 
configuration entry. Again, if I'm reading this code correctly, that's 
not true. SSHA handling will work ONLY if the algorithm specified is SHA-1.


The implementation should really have put the salt bytes first, and then 
had the digest following it so that the digest length could vary.


I guess this is kind of a moot point since the 8.x CredentialHandlers 
are better implementations anyhow and SSHA is not documented anywhere.




In later versions of Tomcat, the MessageDigestCredentialHandler can
*read* the {SSHA}-formatted output, but it can't generate it directly.

I made a patch a while back that gives web applications access to
their CredentialHandlers, so that applications could call matches()
and mutate() without having to know exactly how the passwords were
being stored. If SSHA is in use, then the output won't match the input.

I see an opportunity for improvement of the
MessageDigestCredentialHandler.

Would you care to try your hand at a patch?


digest.sh in the 8.x series handles generating salted code with 
iterations. I think it's OK.


The one patch I would make is that since (and again, I think) the SSHA 
handling in RealmBase is just fatally flawed, it should be removed.




I think you'd need to add a new option - "output flavor" or something
like that - and then the mutate() method would check that setting
before encoding the result.

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAled9ZcACgkQ9CaO5/Lv0PDxwACcD4c2O5R/ujXq/R5A3rxv8Rry
0ZUAn1r86Bj7bGB/+D54ZXxz42svD4QW
=BfHp
-END PGP SIGNATURE-

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



--
George Sexton
*MH Software, Inc.*
Voice: 303 438 9585
http://www.connectdaily.com


Re: Set up postgresql on tomcat7

2016-08-17 Thread Andrew Davis
Its a redhat ..  i don't think tomcat 7 or later will run on this.

On Aug 17, 2016 9:14 AM, "André Warnier (tomcat)"  wrote:

> On 17.08.2016 16:06, Andrew Davis wrote:
>
>> Thanks for the prompt..
>>
>> I have been looking at the doc s and have my .jar file for postgres in the
>> lib folder.
>>
>> I do not understand where the 
>> >
>> Is supposed to go.
>>
>> Im reading at
>> https://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-
>> examples-howto.html
>>
>
> If your version is Tomcat 7, then maybe you should look at the Tomcat 7
> documentation, not the v 6 one.
>
> In any case, even Tomcat 7 is somewhat old now.  Can you upgrade to a
> later version ? That might increase your chances of getting help here.
>
>
>> This author has not had success here...
>>
>> This doesn't inspire confidence  here,  but that's what the documentation
>> shows...
>>
>>
> Sorry, but personally my expertise in these matters is nil, so I hope
> someone else here can pick this up now.
>
> Andy
>>
>> On Aug 17, 2016 4:43 AM, "André Warnier (tomcat)"  wrote:
>>
>> On 17.08.2016 11:32, Andrew Davis wrote:
>>
>> Thanks.
>>>
>>> I can now deploy my servlets and they work ok, but..
>>>
>>> I had hoped to just deploy one copy of the postgres jar to my server and
>>> then be able to consume it inside multiple applications, instead of
>>> having
>>> multiple copies of the jar in multiple apps.
>>>
>>> I've been through the JNDI portion of the docs on Tomcat and found it
>>> still
>>> somewhat confusing.
>>>
>>> Andy...
>>>
>>>
>> I am far from an expert on this kind of thing, but have you looked at
>> this :
>>
>> http://tomcat.apache.org/tomcat-8.0-doc/config/globalresources.html
>>
>> Maybe that is the missing link in your understanding ?
>>
>>
>>
>>
>> On Aug 17, 2016 4:06 AM, "André Warnier (tomcat)"  wrote:
>>>
>>> Andrew,
>>>
 this list strips most kinds of attachments, so nobody saw your
 screenshots
 or whatever was in them.
 You need to copy/paste that text right into your message to the list
 (amd
 make sure that you send your message as "plain text", not HTML,
 otherwise
 it will be unreadable.

 On 17.08.2016 02:10, Andrew Davis wrote:

 Well,

> This has not turned out how I wanted it to .
>
> I have 'a solution' but it isnt what I wanted to do.  I went back and
> re
> added the .jar file to the 'WEB-INF' folder and then deployed a new WAR
> file.
>
> Now things work just 'fine' BUT I suspect that this is not what a real
> coder would do and suspect I am still in the realms of hackery..
>
> [image: Inline image 1]
>
> Andy.
>
>
>
> On Tue, Aug 16, 2016 at 6:53 PM, Andrew Davis 
> wrote:
>
> I found the following in my logs..
>
>
>> from command line in Putty...
>>
>> cd /var/lib/tomcat7
>> tail -f logs/catalina.out
>>
>> [image: Inline image 1]
>>
>> I do have the jar file located in the following location on the
>> machine..
>>
>> /usr/share/tomcat7/lib
>>
>> https://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howt
>> o.html#JDBC_Data_Sources  is confusing to me.  It shouldnt but it is..
>> at
>> this point..
>>
>> Andy..
>>
>>
>>
>> On Tue, Aug 16, 2016 at 3:01 PM, George Sexton <
>> geor...@mhsoftware.com>
>> wrote:
>>
>> The best place to start would be to look at tomcat's logs for
>> exceptions
>>
>> or errors.
>>>
>>>
>>>
>>> On 8/16/2016 12:44 PM, Andrew Davis wrote:
>>>
>>> Hello,
>>>
>>> Im working on getting java servlets to run on my instance of Ububtu
 with
 tomcat7.

 I write my applications in Eclipse.. when i run my apps localhost i
 see
 everything just fine.

 When i export my WAR files i check the includ source files.

 I deploy the WAR file through tomcat manager.

 I can see the java classes which i use to insert records into my
 postgresql
 database. However,  there is nothing happening.  When i attempt  to
 run
 them, no joy.

 I have the postgresql .jar file installed on my headless ubuntu
 server
 ,
 but no luck.

 Aside from the .jar file is there anything else i need to configure?

 Any advice is welcome

 Andy


 --

 George Sexton
>>> *MH Software, Inc.*
>>> Voice: 303 438 9585
>>> http://www.connectdaily.com
>>>
>>>
>>>
>>>
>>
>>
> -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Set up postgresql on tomcat7

2016-08-17 Thread tomcat

On 17.08.2016 16:06, Andrew Davis wrote:

Thanks for the prompt..

I have been looking at the doc s and have my .jar file for postgres in the
lib folder.

I do not understand where the 
https://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html


If your version is Tomcat 7, then maybe you should look at the Tomcat 7 documentation, not 
the v 6 one.


In any case, even Tomcat 7 is somewhat old now.  Can you upgrade to a later version ? That 
might increase your chances of getting help here.




This author has not had success here...

This doesn't inspire confidence  here,  but that's what the documentation
shows...



Sorry, but personally my expertise in these matters is nil, so I hope someone else here 
can pick this up now.



Andy

On Aug 17, 2016 4:43 AM, "André Warnier (tomcat)"  wrote:

On 17.08.2016 11:32, Andrew Davis wrote:


Thanks.

I can now deploy my servlets and they work ok, but..

I had hoped to just deploy one copy of the postgres jar to my server and
then be able to consume it inside multiple applications, instead of having
multiple copies of the jar in multiple apps.

I've been through the JNDI portion of the docs on Tomcat and found it still
somewhat confusing.

Andy...



I am far from an expert on this kind of thing, but have you looked at this :

http://tomcat.apache.org/tomcat-8.0-doc/config/globalresources.html

Maybe that is the missing link in your understanding ?





On Aug 17, 2016 4:06 AM, "André Warnier (tomcat)"  wrote:

Andrew,

this list strips most kinds of attachments, so nobody saw your screenshots
or whatever was in them.
You need to copy/paste that text right into your message to the list (amd
make sure that you send your message as "plain text", not HTML, otherwise
it will be unreadable.

On 17.08.2016 02:10, Andrew Davis wrote:

Well,

This has not turned out how I wanted it to .

I have 'a solution' but it isnt what I wanted to do.  I went back and re
added the .jar file to the 'WEB-INF' folder and then deployed a new WAR
file.

Now things work just 'fine' BUT I suspect that this is not what a real
coder would do and suspect I am still in the realms of hackery..

[image: Inline image 1]

Andy.



On Tue, Aug 16, 2016 at 6:53 PM, Andrew Davis 
wrote:

I found the following in my logs..



from command line in Putty...

cd /var/lib/tomcat7
tail -f logs/catalina.out

[image: Inline image 1]

I do have the jar file located in the following location on the
machine..

/usr/share/tomcat7/lib

https://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howt
o.html#JDBC_Data_Sources  is confusing to me.  It shouldnt but it is..
at
this point..

Andy..



On Tue, Aug 16, 2016 at 3:01 PM, George Sexton 
wrote:

The best place to start would be to look at tomcat's logs for exceptions


or errors.



On 8/16/2016 12:44 PM, Andrew Davis wrote:

Hello,


Im working on getting java servlets to run on my instance of Ububtu
with
tomcat7.

I write my applications in Eclipse.. when i run my apps localhost i
see
everything just fine.

When i export my WAR files i check the includ source files.

I deploy the WAR file through tomcat manager.

I can see the java classes which i use to insert records into my
postgresql
database. However,  there is nothing happening.  When i attempt  to
run
them, no joy.

I have the postgresql .jar file installed on my headless ubuntu server
,
but no luck.

Aside from the .jar file is there anything else i need to configure?

Any advice is welcome

Andy


--


George Sexton
*MH Software, Inc.*
Voice: 303 438 9585
http://www.connectdaily.com









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







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




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



Re: Set up postgresql on tomcat7

2016-08-17 Thread Andrew Davis
Thanks for the prompt..

I have been looking at the doc s and have my .jar file for postgres in the
lib folder.

I do not understand where the 
https://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html

This author has not had success here...

This doesn't inspire confidence  here,  but that's what the documentation
shows...

Andy

On Aug 17, 2016 4:43 AM, "André Warnier (tomcat)"  wrote:

On 17.08.2016 11:32, Andrew Davis wrote:

> Thanks.
>
> I can now deploy my servlets and they work ok, but..
>
> I had hoped to just deploy one copy of the postgres jar to my server and
> then be able to consume it inside multiple applications, instead of having
> multiple copies of the jar in multiple apps.
>
> I've been through the JNDI portion of the docs on Tomcat and found it still
> somewhat confusing.
>
> Andy...
>

I am far from an expert on this kind of thing, but have you looked at this :

http://tomcat.apache.org/tomcat-8.0-doc/config/globalresources.html

Maybe that is the missing link in your understanding ?




> On Aug 17, 2016 4:06 AM, "André Warnier (tomcat)"  wrote:
>
> Andrew,
>> this list strips most kinds of attachments, so nobody saw your screenshots
>> or whatever was in them.
>> You need to copy/paste that text right into your message to the list (amd
>> make sure that you send your message as "plain text", not HTML, otherwise
>> it will be unreadable.
>>
>> On 17.08.2016 02:10, Andrew Davis wrote:
>>
>> Well,
>>> This has not turned out how I wanted it to .
>>>
>>> I have 'a solution' but it isnt what I wanted to do.  I went back and re
>>> added the .jar file to the 'WEB-INF' folder and then deployed a new WAR
>>> file.
>>>
>>> Now things work just 'fine' BUT I suspect that this is not what a real
>>> coder would do and suspect I am still in the realms of hackery..
>>>
>>> [image: Inline image 1]
>>>
>>> Andy.
>>>
>>>
>>>
>>> On Tue, Aug 16, 2016 at 6:53 PM, Andrew Davis 
>>> wrote:
>>>
>>> I found the following in my logs..
>>>

 from command line in Putty...

 cd /var/lib/tomcat7
 tail -f logs/catalina.out

 [image: Inline image 1]

 I do have the jar file located in the following location on the
 machine..

 /usr/share/tomcat7/lib

 https://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howt
 o.html#JDBC_Data_Sources  is confusing to me.  It shouldnt but it is..
 at
 this point..

 Andy..



 On Tue, Aug 16, 2016 at 3:01 PM, George Sexton 
 wrote:

 The best place to start would be to look at tomcat's logs for exceptions

> or errors.
>
>
>
> On 8/16/2016 12:44 PM, Andrew Davis wrote:
>
> Hello,
>
>> Im working on getting java servlets to run on my instance of Ububtu
>> with
>> tomcat7.
>>
>> I write my applications in Eclipse.. when i run my apps localhost i
>> see
>> everything just fine.
>>
>> When i export my WAR files i check the includ source files.
>>
>> I deploy the WAR file through tomcat manager.
>>
>> I can see the java classes which i use to insert records into my
>> postgresql
>> database. However,  there is nothing happening.  When i attempt  to
>> run
>> them, no joy.
>>
>> I have the postgresql .jar file installed on my headless ubuntu server
>> ,
>> but no luck.
>>
>> Aside from the .jar file is there anything else i need to configure?
>>
>> Any advice is welcome
>>
>> Andy
>>
>>
>> --
>>
> George Sexton
> *MH Software, Inc.*
> Voice: 303 438 9585
> http://www.connectdaily.com
>
>
>


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

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


Enabling DEBUG statments

2016-08-17 Thread D, Dwarakesh
Hi Team,

We are trying to enable the DEBUG in one of our application running in Tomcat 
7(java8) and below is the log4j property file.
We are not getting the DEBUG statements present in one of the .groovy file. 
Please let me know the process to enable the DEBUG.

# Set the root category to INFO with on appender
#log4j.rootLogger=ERROR,console
log4j.rootLogger=DEBUG,console

# Individual package handling
log4j.logger.com.googlecode.struts2webflow=DEBUG
log4j.logger.com.opensymphony.xwork2=DEBUG
log4j.logger.com.xerox.xcs.cma=TRACE
log4j.logger.com.xerox.xcs.commons=TRACE
log4j.logger.org.springframework=DEBUG
log4j.logger.org.springframework.webflow=DEBUG
log4j.logger.org.apache.struts2=DEBUG

# Define the console appender using ISO 8601 format
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n


Thanks,
Dwarak



Re: A way for user to specify DH parameter to tomcat !

2016-08-17 Thread Utkarsh Dave
Thanks.
By DH I mean "Diffie-Hellman parameters (secure DH-Cipher)".


On Wed, Aug 17, 2016 at 3:31 PM, Violeta Georgieva 
wrote:

> Hi,
>
> 2016-08-17 11:29 GMT+03:00 Utkarsh Dave :
> >
> > Hi All,
> >
> > My project is using tomcat 7.0.70, JDK 1.7.0_101 and is based on linux OS
> > We have been using BIO connectors.
> > 1. I need help to find out how to provide user specified DH parameter to
> > tomcat.
> > 2. What all ciphers are categorized under modern ciphers ?
>
> Look at these pages
> http://wiki.apache.org/tomcat/Security/Ciphers
> http://wiki.apache.org/tomcat/HowTo/SSLCiphers
>
> Regards,
> Violeta
>
> >
> > Thanks for your time in advance.
> >
> > -Utkarsh
>


Re: A way for user to specify DH parameter to tomcat !

2016-08-17 Thread Violeta Georgieva
Hi,

2016-08-17 11:29 GMT+03:00 Utkarsh Dave :
>
> Hi All,
>
> My project is using tomcat 7.0.70, JDK 1.7.0_101 and is based on linux OS
> We have been using BIO connectors.
> 1. I need help to find out how to provide user specified DH parameter to
> tomcat.
> 2. What all ciphers are categorized under modern ciphers ?

Look at these pages
http://wiki.apache.org/tomcat/Security/Ciphers
http://wiki.apache.org/tomcat/HowTo/SSLCiphers

Regards,
Violeta

>
> Thanks for your time in advance.
>
> -Utkarsh


Re: Set up postgresql on tomcat7

2016-08-17 Thread tomcat

On 17.08.2016 11:32, Andrew Davis wrote:

Thanks.

I can now deploy my servlets and they work ok, but..

I had hoped to just deploy one copy of the postgres jar to my server and
then be able to consume it inside multiple applications, instead of having
multiple copies of the jar in multiple apps.

I've been through the JNDI portion of the docs on Tomcat and found it still
somewhat confusing.

Andy...


I am far from an expert on this kind of thing, but have you looked at this :

http://tomcat.apache.org/tomcat-8.0-doc/config/globalresources.html

Maybe that is the missing link in your understanding ?




On Aug 17, 2016 4:06 AM, "André Warnier (tomcat)"  wrote:


Andrew,
this list strips most kinds of attachments, so nobody saw your screenshots
or whatever was in them.
You need to copy/paste that text right into your message to the list (amd
make sure that you send your message as "plain text", not HTML, otherwise
it will be unreadable.

On 17.08.2016 02:10, Andrew Davis wrote:


Well,
This has not turned out how I wanted it to .

I have 'a solution' but it isnt what I wanted to do.  I went back and re
added the .jar file to the 'WEB-INF' folder and then deployed a new WAR
file.

Now things work just 'fine' BUT I suspect that this is not what a real
coder would do and suspect I am still in the realms of hackery..

[image: Inline image 1]

Andy.



On Tue, Aug 16, 2016 at 6:53 PM, Andrew Davis 
wrote:

I found the following in my logs..


from command line in Putty...

cd /var/lib/tomcat7
tail -f logs/catalina.out

[image: Inline image 1]

I do have the jar file located in the following location on the machine..

/usr/share/tomcat7/lib

https://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howt
o.html#JDBC_Data_Sources  is confusing to me.  It shouldnt but it is.. at
this point..

Andy..



On Tue, Aug 16, 2016 at 3:01 PM, George Sexton 
wrote:

The best place to start would be to look at tomcat's logs for exceptions

or errors.



On 8/16/2016 12:44 PM, Andrew Davis wrote:

Hello,

Im working on getting java servlets to run on my instance of Ububtu
with
tomcat7.

I write my applications in Eclipse.. when i run my apps localhost i see
everything just fine.

When i export my WAR files i check the includ source files.

I deploy the WAR file through tomcat manager.

I can see the java classes which i use to insert records into my
postgresql
database. However,  there is nothing happening.  When i attempt  to run
them, no joy.

I have the postgresql .jar file installed on my headless ubuntu server
,
but no luck.

Aside from the .jar file is there anything else i need to configure?

Any advice is welcome

Andy


--

George Sexton
*MH Software, Inc.*
Voice: 303 438 9585
http://www.connectdaily.com









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







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



Re: Set up postgresql on tomcat7

2016-08-17 Thread Andrew Davis
Thanks.

I can now deploy my servlets and they work ok, but..

I had hoped to just deploy one copy of the postgres jar to my server and
then be able to consume it inside multiple applications, instead of having
multiple copies of the jar in multiple apps.

I've been through the JNDI portion of the docs on Tomcat and found it still
somewhat confusing.

Andy...

On Aug 17, 2016 4:06 AM, "André Warnier (tomcat)"  wrote:

> Andrew,
> this list strips most kinds of attachments, so nobody saw your screenshots
> or whatever was in them.
> You need to copy/paste that text right into your message to the list (amd
> make sure that you send your message as "plain text", not HTML, otherwise
> it will be unreadable.
>
> On 17.08.2016 02:10, Andrew Davis wrote:
>
>> Well,
>> This has not turned out how I wanted it to .
>>
>> I have 'a solution' but it isnt what I wanted to do.  I went back and re
>> added the .jar file to the 'WEB-INF' folder and then deployed a new WAR
>> file.
>>
>> Now things work just 'fine' BUT I suspect that this is not what a real
>> coder would do and suspect I am still in the realms of hackery..
>>
>> [image: Inline image 1]
>>
>> Andy.
>>
>>
>>
>> On Tue, Aug 16, 2016 at 6:53 PM, Andrew Davis 
>> wrote:
>>
>> I found the following in my logs..
>>>
>>> from command line in Putty...
>>>
>>> cd /var/lib/tomcat7
>>> tail -f logs/catalina.out
>>>
>>> [image: Inline image 1]
>>>
>>> I do have the jar file located in the following location on the machine..
>>>
>>> /usr/share/tomcat7/lib
>>>
>>> https://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howt
>>> o.html#JDBC_Data_Sources  is confusing to me.  It shouldnt but it is.. at
>>> this point..
>>>
>>> Andy..
>>>
>>>
>>>
>>> On Tue, Aug 16, 2016 at 3:01 PM, George Sexton 
>>> wrote:
>>>
>>> The best place to start would be to look at tomcat's logs for exceptions
 or errors.



 On 8/16/2016 12:44 PM, Andrew Davis wrote:

 Hello,
> Im working on getting java servlets to run on my instance of Ububtu
> with
> tomcat7.
>
> I write my applications in Eclipse.. when i run my apps localhost i see
> everything just fine.
>
> When i export my WAR files i check the includ source files.
>
> I deploy the WAR file through tomcat manager.
>
> I can see the java classes which i use to insert records into my
> postgresql
> database. However,  there is nothing happening.  When i attempt  to run
> them, no joy.
>
> I have the postgresql .jar file installed on my headless ubuntu server
> ,
> but no luck.
>
> Aside from the .jar file is there anything else i need to configure?
>
> Any advice is welcome
>
> Andy
>
>
> --
 George Sexton
 *MH Software, Inc.*
 Voice: 303 438 9585
 http://www.connectdaily.com


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


Re: Set up postgresql on tomcat7

2016-08-17 Thread tomcat

Andrew,
this list strips most kinds of attachments, so nobody saw your screenshots or whatever was 
in them.
You need to copy/paste that text right into your message to the list (amd make sure that 
you send your message as "plain text", not HTML, otherwise it will be unreadable.


On 17.08.2016 02:10, Andrew Davis wrote:

Well,
This has not turned out how I wanted it to .

I have 'a solution' but it isnt what I wanted to do.  I went back and re
added the .jar file to the 'WEB-INF' folder and then deployed a new WAR
file.

Now things work just 'fine' BUT I suspect that this is not what a real
coder would do and suspect I am still in the realms of hackery..

[image: Inline image 1]

Andy.



On Tue, Aug 16, 2016 at 6:53 PM, Andrew Davis 
wrote:


I found the following in my logs..

from command line in Putty...

cd /var/lib/tomcat7
tail -f logs/catalina.out

[image: Inline image 1]

I do have the jar file located in the following location on the machine..

/usr/share/tomcat7/lib

https://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howt
o.html#JDBC_Data_Sources  is confusing to me.  It shouldnt but it is.. at
this point..

Andy..



On Tue, Aug 16, 2016 at 3:01 PM, George Sexton 
wrote:


The best place to start would be to look at tomcat's logs for exceptions
or errors.



On 8/16/2016 12:44 PM, Andrew Davis wrote:


Hello,
Im working on getting java servlets to run on my instance of Ububtu with
tomcat7.

I write my applications in Eclipse.. when i run my apps localhost i see
everything just fine.

When i export my WAR files i check the includ source files.

I deploy the WAR file through tomcat manager.

I can see the java classes which i use to insert records into my
postgresql
database. However,  there is nothing happening.  When i attempt  to run
them, no joy.

I have the postgresql .jar file installed on my headless ubuntu server ,
but no luck.

Aside from the .jar file is there anything else i need to configure?

Any advice is welcome

Andy



--
George Sexton
*MH Software, Inc.*
Voice: 303 438 9585
http://www.connectdaily.com









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



A way for user to specify DH parameter to tomcat !

2016-08-17 Thread Utkarsh Dave
Hi All,

My project is using tomcat 7.0.70, JDK 1.7.0_101 and is based on linux OS
We have been using BIO connectors.
1. I need help to find out how to provide user specified DH parameter to
tomcat.
2. What all ciphers are categorized under modern ciphers ?

Thanks for your time in advance.

-Utkarsh