Re: Introdution

2016-07-04 Thread Bian Frank
https://github.com/FrankBian/tomcat8.0-source-research 


I compiled the tomcat 8 source code with maven in Intellij IDEA, it may be 
helpful for you










> On Jul 5, 2016, at 1:10 PM, Lahiru Wijewardana  > wrote:
> 
> Hi all,
> 
> I am a 3rd year undergraduate student of Department of Computer
> Engineering, University of Peradeniya,  Sri Lanka. I am interesting in open
> source contribution. I pick Tomcat 8 as my new project.
> 
> I have install Tomcat and used it. I installed the ant 1.9.7 and clone the
> project from the svn repository accoring to the Building Tomcat page. Now I
> am stuck with building. The downloaded lib giving error ecj-4.5.jar can't
> compile and when I try to develop it with eclipse, eclipse say it can't
> read the ecj-4.5.jar file.
> 
> Thank you




Best Regards,
Frank Bian







Introdution

2016-07-04 Thread Lahiru Wijewardana
Hi all,

I am a 3rd year undergraduate student of Department of Computer
Engineering, University of Peradeniya,  Sri Lanka. I am interesting in open
source contribution. I pick Tomcat 8 as my new project.

I have install Tomcat and used it. I installed the ant 1.9.7 and clone the
project from the svn repository accoring to the Building Tomcat page. Now I
am stuck with building. The downloaded lib giving error ecj-4.5.jar can't
compile and when I try to develop it with eclipse, eclipse say it can't
read the ecj-4.5.jar file.

Thank you


Re: Tomcat 7.0.70 War Redeployed every few minutes

2016-07-04 Thread Andrew Moore
Hi Chuck,

It seems you are correct about timestamps. I have no idea why but systemd
was interfering with the directory:

andrew@stbernard01:~$ ls -la /usr/local/tomcat7/webapps/
total 8
drwxr-xr-x 2 andrew   andrew 4096 Jul  5 11:23 .
drwxrwxr-x 8 systemd-timesync   1005 4096 Jul  4 13:38 ..

I have no idea what the real purpose of systemd-timesync is. But I've left
it to the Ubuntu experts and opted for their distribution instead and I
don't see the issue re-occurring.

FYI I had used a fairly generic init.d script that I know works on CentOS
linux and older Ubuntu disties. It simply invokes startup.sh and shutdown.sh

Maybe I need to get my head around some systemd concepts

Regards,
Andrew

On Tue, Jul 5, 2016 at 11:48 AM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:

> > From: Andrew Moore [mailto:andrew.mo...@petcircle.com.au]
> > Subject: Tomcat 7.0.70 War Redeployed every few minutes
>
> > We noticed that we were getting Connection Refused when trying to connect
> > to port 8080 remotely. And then we could see this was being caused by the
> > war redeploying automatically every few minutes.
>
> This can be caused by an inappropriate timestamp on the .war file - one
> that's in the future.  Another possibility is that something is doing a
> touch on .jar or .class files in the expanded directory.  Or maybe the
> timestamps on the files inside the .war are off.
>
> Might want to look at the deployment doc:
>
> http://tomcat.apache.org/tomcat-7.0-doc/deployer-howto.html#Deploying_on_a_running_Tomcat_server
> to see if this is similar to what you see going on.
>
>  - 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
>
>


-- 

*Andrew Moore*

*Pet Circle*

E: andrew.mo...@petcircle.com.au
A: 15 Maddox Street Alexandria NSW 2015
W: https://www.petcircle.com.au/


-- 



Re: Tomcat 7.0.70 War Redeployed every few minutes

2016-07-04 Thread Andrew Moore
It seems deleted the war from /webapps unloads the webapp entirely.

I'm going to use tomcat7 from Ubuntu
sudo apt policy tomcat7
tomcat7:
  Installed: 7.0.68-1
  Candidate: 7.0.68-1

I'll continue to monitor and update later.

On Tue, Jul 5, 2016 at 11:27 AM, Andrew Moore  wrote:

> Hi I've set up a new server with Ubuntu 16.04 and Tomcat 7.0.70 from
> Apache.org
>
> We noticed that we were getting Connection Refused when trying to connect
> to port 8080 remotely. And then we could see this was being caused by the
> war redeploying automatically every few minutes.
>
> I've deleted the .war from webapps and will continue to monitor for the
> time being. If it continues, I'll have no choice but to use the Ubuntu
> repositories (I think they have point release 68)
>
>
> Anybody else has seen this? We've being using the 68 point release
> normally with openjdk on Centos 6. This is the first time trying to use the
> latest Ubuntu with openjdk 8 and tomcat7.
>
>
>


-- 

*Andrew Moore*

*Pet Circle*

E: andrew.mo...@petcircle.com.au
A: 15 Maddox Street Alexandria NSW 2015
W: https://www.petcircle.com.au/


-- 



RE: Tomcat 7.0.70 War Redeployed every few minutes

2016-07-04 Thread Caldarale, Charles R
> From: Andrew Moore [mailto:andrew.mo...@petcircle.com.au] 
> Subject: Tomcat 7.0.70 War Redeployed every few minutes

> We noticed that we were getting Connection Refused when trying to connect
> to port 8080 remotely. And then we could see this was being caused by the
> war redeploying automatically every few minutes.

This can be caused by an inappropriate timestamp on the .war file - one that's 
in the future.  Another possibility is that something is doing a touch on .jar 
or .class files in the expanded directory.  Or maybe the timestamps on the 
files inside the .war are off.

Might want to look at the deployment doc:
http://tomcat.apache.org/tomcat-7.0-doc/deployer-howto.html#Deploying_on_a_running_Tomcat_server
to see if this is similar to what you see going on.

 - 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



Tomcat 7.0.70 War Redeployed every few minutes

2016-07-04 Thread Andrew Moore
Hi I've set up a new server with Ubuntu 16.04 and Tomcat 7.0.70 from
Apache.org

We noticed that we were getting Connection Refused when trying to connect
to port 8080 remotely. And then we could see this was being caused by the
war redeploying automatically every few minutes.

I've deleted the .war from webapps and will continue to monitor for the
time being. If it continues, I'll have no choice but to use the Ubuntu
repositories (I think they have point release 68)


Anybody else has seen this? We've being using the 68 point release normally
with openjdk on Centos 6. This is the first time trying to use the latest
Ubuntu with openjdk 8 and tomcat7.

-- 



Re: [ANN] Apache Tomcat Native 1.2.8 released

2016-07-04 Thread Florian Kleedorfer

Dear Mark,

Thank you for fixing the OCSP bug I reported. I just tried the new 
release and I can confirm it works.


Best regards,

Florian



Am 04.07.2016 um 16:57 schrieb Mark Thomas:

The Apache Tomcat team announces the immediate availability of Apache
Tomcat Native 1.2.8 stable.

The key features of this release are:

- Improved performance with concurrent loads

- Correctly enable and disable OCSP in the binaries for Windows

- Fix a bug in the handling of EAGAIN during non-blocking I/O


Note that users should now be using 1.2.x in preference to 1.1.x.

Please refer to the change log for the complete list of changes:
http://tomcat.apache.org/native-doc/miscellaneous/changelog.html

Downloads:
http://tomcat.apache.org/download-native.cgi

The Apache Tomcat Native Library provides portable API for features
not found in contemporary JDK's. It uses Apache Portable Runtime as
operating system abstraction layer and OpenSSL for SSL networking and
allows optimal performance in production environments.


Thank you,



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



[ANN] Apache Tomcat Native 1.2.8 released

2016-07-04 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache
Tomcat Native 1.2.8 stable.

The key features of this release are:

- Improved performance with concurrent loads

- Correctly enable and disable OCSP in the binaries for Windows

- Fix a bug in the handling of EAGAIN during non-blocking I/O


Note that users should now be using 1.2.x in preference to 1.1.x.

Please refer to the change log for the complete list of changes:
http://tomcat.apache.org/native-doc/miscellaneous/changelog.html

Downloads:
http://tomcat.apache.org/download-native.cgi

The Apache Tomcat Native Library provides portable API for features
not found in contemporary JDK's. It uses Apache Portable Runtime as
operating system abstraction layer and OpenSSL for SSL networking and
allows optimal performance in production environments.


Thank you,
-- 
The Apache Tomcat Team

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



Suggestions for deploying context.xml for different environments?

2016-07-04 Thread Philip Hachey
Hello.  I am seeking some advice for the best ways to deploy Java web 
applications to different Tomcat environments.


In particular, my application requires that a JNDI resource be defined 
for a database, where the database server address and credentials will 
vary depending on the environment the application is deployed to.


* Tomcat: 8.0.36
* OS: varies depending on the environment deployed to

If I include in the WAR file, a META-INF/context.xml that includes the 
Resource element, Tomcat will use that to create the file:

$CATALINA_HOME/conf/engine/host/my-application.xml

The context file my-application.xml can then be modified so that the 
Resource settings are appropriate for the environment.


However, if, for any reason, the application is undeployed and then 
re-deployed, my-application.xml will be recreated with the settings as 
they originally appeared in the WAR file.


The options that seem evident to me are:

1) Create a different WAR file for each environment.  This strikes me as 
a bit onerous.


2) Use environment variables in my-application.xml such as: 
url="${databaseurl}" and then define those environment variables using 
the Environment element in the GlobalNamingResources of Tomcat's server.xml.


Regarding #2, would it be possible to instead use a properties file to 
define the variables?  I assume adding entries to catalina.properties 
would work, but is it possible to define a properties file separate from 
catalina.properties which deals more with system properties rather than 
application properties?


I haven't been able to find a documented standard methodology for Tomcat 
deployments to different environments, but I'm certain there must be 
some common and elegant ways of doing this.  I'm interested in hearing 
what others have done.


Thank you,
Philip

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



Re: How to configure SPNEGO authentication with fallback to FORM auth?

2016-07-04 Thread Andrei Ivanov
Hi Ken,
Would you mind posting the patch? :-)

On Thu, Jun 30, 2016 at 3:52 PM, ken edward  wrote:
> I did get it to work. Simply merged existing spnego and form auth valves
> together, I will try to post later..
>
> On Fri, Jun 24, 2016 at 6:21 PM, Terence M. Bandoian 
> wrote:
>
>> On 6/24/2016 10:45 AM, ken edward wrote:
>>
>>> On Fri, Jun 24, 2016 at 11:26 AM, Mark Thomas  wrote:
>>>
>>> On 24/06/2016 16:17, ken edward wrote:

> On Fri, Jun 24, 2016 at 10:46 AM, Mark Thomas  wrote:
>
> On 24 June 2016 14:22:32 BST, ken edward  wrote:
>>
>>> Hello,
>>>
>>> I have tomcat 8 on linux, configured with kerberos/SPNEGO
>>> authentication.
>>> All works well, but if the client cannot use kerberos to authenticate,
>>> it
>>> will not fallback to FORM authentication.
>>>
>>> I see some references that tomcat 8 does not do fallback negotiation
>>> for
>>> FORM auth. True?
>>>
>> Yes
>>
>> Any workarounds?
>>>
>> Nothing simple. Both SPNEGO and FORM have their complications. You'll
>>
> need

> to code some form of custom solution.
>>
>> Have a look in the archives. This has come up before and I think there
>>
> is

> some sample code that might get you most of the way there.
>>
>>
>>
>> I had already searched the mail archives, and did not see any sample
>
 code.

> If anyone has any insight, please do post some code fragments.
>
 I was thinking of this:
 http://wiki.apache.org/tomcat/SSLWithFORMFallback

 Not quite what you are looking for but it might help.


 I guess I need to extend the SPNEGO valve code in tomcat 8 to handle
>>> fallback to FORM auth, similar to SSLWIthFORMFallback. aaarg. Such a
>>> simple
>>> and essential use case. Perplexing that it is not implemented.
>>>
>>>
>>
>> If you get it working, you might consider submitting a patch.  Doing so
>> might save someone else from cursing under their breath.
>>
>> -Terence Bandoian
>> http://www.tmbsw.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