Re: java.lang.NoClassDefFoundError: Could not initialize class net.sf.ehcache.Element

2019-07-10 Thread Paul Carter-Brown
NoClassDefFoundError is not the same as ClassNotFoundException

Typically a NoClassDefFoundError is due to a class failing its static
initialisation when first loaded by the classloader. Can you check in your
logs for any prior errors (even at bootup) relating to class failing to be
loaded

Paul



On Wed, Jul 10, 2019 at 6:42 PM Hua, Gary - Saint Louis, MO - Contractor
 wrote:

> Tomcat Experts:
>
> I have a web application deployed to our DEV Tomcat server
> 9.0.13.   I try to put all the hibernate jars files to version
> Hibernate-3.6.10.  The following is the jar files under WEB-INF/lib:
>
>
> /opt/TomCat/tomcat/webapps/TOPS-WEB/WEB-INF/lib>ls -l
> total 56844
> -rw-r--r-- 1 atadmin atadmin   443432 Feb  8  2012
> antlr-2.7.6.jar
> -rw-r--r-- 1 atadmin atadmin16777 Jun 18 15:58
> asm-attrs.jar
> -rw-r--r-- 1 atadmin atadmin26360 Jun 18 15:58  asm.jar
> -rw-r--r-- 1 atadmin atadmin   281998 Jun 18 15:58
>  cglib-2.1.jar
> -rw-r--r-- 1 atadmin atadmin  4604132 Jun 18 15:58
> com.ibm.ws.webcontainer.jar
> -rw-r--r-- 1 atadmin atadmin   188671 Jun 18 15:58
> commons-beanutils.jar
> -rw-r--r-- 1 atadmin atadmin   559366 Feb  8  2012
> commons-collections-3.1.jar
> -rw-r--r-- 1 atadmin atadmin   165119 Jun 18 16:00
> commons-collections.jar.old
> -rw-r--r-- 1 atadmin atadmin   205318 Mar 19 11:12
> commons-dbcp2-2.6.0.jar
> -rw-r--r-- 1 atadmin atadmin   168446 Jun 18 15:58
> commons-digester.jar
> -rw-r--r-- 1 atadmin atadmin70604 Jun 18 15:58
> commons-fileupload-1.3.3.jar
> -rw-r--r-- 1 atadmin atadmin   214788 Jun 18 15:58
> commons-io-2.6.jar
> -rw-r--r-- 1 atadmin atadmin   207723 Jun 18 15:58
> commons-lang-2.1.jar
> -rw-r--r-- 1 atadmin atadmin   315805 Jun 18 15:58
> commons-lang3-3.1.jar
> -rw-r--r-- 1 atadmin atadmin26388 Jun 18 15:58
> commons-logging.jar
> -rw-r--r-- 1 atadmin atadmin84462 Jun 18 15:58
> commons-validator.jar
> -rw-r--r-- 1 atadmin atadmin  4239628 Jun 18 15:58  db2jcc4.jar
> -rw-r--r-- 1 atadmin atadmin 2068 Jun 18 15:58
> db2jcc_license_cu.jar
> -rw-r--r-- 1 atadmin atadmin  2125577 Jun 18 15:58
> db2jcc_V9FP6.jar
> -rw-r--r-- 1 atadmin atadmin   210432 Jun 18 15:58
> displaytag-1.1.jar
> -rw-r--r-- 1 atadmin atadmin12590 Jun 18 15:58
> displaytag-export-poi-1.1.jar
> -rw-r--r-- 1 atadmin atadmin   312509 Jun 18 16:00
> dom4j-1.5.2.jar.old
> -rw-r--r-- 1 atadmin atadmin   313898 Feb  8  2012
> dom4j-1.6.1.jar
> -rw-r--r-- 1 atadmin atadmin 10237841 Jul  9 12:29
> ehcache-2.10.6.jar
> -rw-r--r-- 1 atadmin atadmin   989884 Jul  9 16:57
> ehcache-core-2.4.2.jar
> -rw-r--r-- 1 atadmin atadmin  4162825 Jul  3 10:43
> hibernate3.jar
> -rw-r--r-- 1 atadmin atadmin  3123360 Jul  9 12:44
> hibernate-core-3.6.10.Final.jar
> -rw-r--r-- 1 atadmin atadmin56287 Jul  9 12:29
> hibernate-ehcache-5.4.3.Final.jar
> -rw-r--r-- 1 atadmin atadmin65425 Jun 18 15:58
>  jakarta-oro.jar
> -rw-r--r-- 1 atadmin atadmin  1979523 Dec 17  2018
> javaee-api-8.0.jar
> -rw-r--r-- 1 atadmin atadmin   633312 Feb  8  2012
>  javassist-3.12.0.GA.jar
> -rw-r--r-- 1 atadmin atadmin   153115 Jun 18 15:58  jdom.jar
> -rw-r--r-- 1 atadmin atadmin64597 Jun 18 15:58
> json-20180813.jar
> -rw-r--r-- 1 atadmin atadmin10899 Feb  8  2012  jta-1.1.jar
> -rw-r--r-- 1 atadmin atadmin   367444 Jun 18 15:58  log4j.jar
> -rw-r--r-- 1 atadmin atadmin  3698857 Jul  6 21:11  ojdbc7.jar
> -rw-r--r-- 1 atadmin atadmin   105355 Jun 18 15:58
> old_lcms-webtools.jar
> -rw-r--r-- 1 atadmin atadmin   795231 Jun 18 15:58
> poi-2.5-final-20040302.jar
> -rw-r--r-- 1 atadmin atadmin55210 Jun 18 15:58
> poi-contrib-2.5-final-20040302.jar
> -rw-r--r-- 1 atadmin atadmin   188942 Jun 18 15:58
> poi-scratchpad-2.5-final-20040302.jar
> -rw-r--r-- 1 atadmin atadmin   475943 Jun 18 15:58
> proxool-0.8.3.jar
> -rw-r--r-- 1 atadmin atadmin25496 Feb  8  2012
> slf4j-api-1.6.1.jar
> -rw-r--r-- 1 atadmin atadmin 7669 Mar 26 20:33
> slf4j-simple-1.6.1.jar
> -rw-r--r-- 1 atadmin atadmin   543706 Jun 18 15:58  struts.jar
> -rw-r--r-- 1 atadmin atadmin   495271 Jun 18 15:58
> Struts-Layout.jar
> -rw-r--r-- 1 atadmin atadmin68046 Jun 18 15:58
> struts-menu-2.4.3.jar
> -rw-r--r-- 1 atadmin atadmin39427 Jun 18 15:58
> taglibs-request.jar
> -rw-r--r-- 1 atadmin atadmin44061 Jun 18 15:58
> USPS-Framework-1.0.8-alpha.jar
> -rw-r--r-- 1 atadmin atadmin   364425 Jun 18 15:58
> usps_tools.jar
> -rw-r--r-- 1 atadmin atadmin   834966 Jun 18 15:58
> xercesImpl.jar
>
>
>
>
> After I started the Tomcat 9.0.13 server,  login as  topsadmin user, our
> Postal TOPS application GUI main page show up.   When I click the "Serach"
> button on the Transportation Search screen after entering the origin and
> destination values, I get the following error:
>
> 81036 [https-jsse-nio-9443-exec-8] ERROR actions.DispatchAction  -
> Dispatch[/TransportationInquiryResults] to method
> 'searchTransportationViewResults' returned an exce

java.lang.NoClassDefFoundError: Could not initialize class net.sf.ehcache.Element

2019-07-10 Thread Hua, Gary - Saint Louis, MO - Contractor
Tomcat Experts:

I have a web application deployed to our DEV Tomcat server 9.0.13.   I 
try to put all the hibernate jars files to version Hibernate-3.6.10.  The 
following is the jar files under WEB-INF/lib:


/opt/TomCat/tomcat/webapps/TOPS-WEB/WEB-INF/lib>ls -l
total 56844
-rw-r--r-- 1 atadmin atadmin   443432 Feb  8  2012  antlr-2.7.6.jar
-rw-r--r-- 1 atadmin atadmin16777 Jun 18 15:58  asm-attrs.jar
-rw-r--r-- 1 atadmin atadmin26360 Jun 18 15:58  asm.jar
-rw-r--r-- 1 atadmin atadmin   281998 Jun 18 15:58   cglib-2.1.jar
-rw-r--r-- 1 atadmin atadmin  4604132 Jun 18 15:58  
com.ibm.ws.webcontainer.jar
-rw-r--r-- 1 atadmin atadmin   188671 Jun 18 15:58  
commons-beanutils.jar
-rw-r--r-- 1 atadmin atadmin   559366 Feb  8  2012  
commons-collections-3.1.jar
-rw-r--r-- 1 atadmin atadmin   165119 Jun 18 16:00  
commons-collections.jar.old
-rw-r--r-- 1 atadmin atadmin   205318 Mar 19 11:12  
commons-dbcp2-2.6.0.jar
-rw-r--r-- 1 atadmin atadmin   168446 Jun 18 15:58  
commons-digester.jar
-rw-r--r-- 1 atadmin atadmin70604 Jun 18 15:58  
commons-fileupload-1.3.3.jar
-rw-r--r-- 1 atadmin atadmin   214788 Jun 18 15:58  
commons-io-2.6.jar
-rw-r--r-- 1 atadmin atadmin   207723 Jun 18 15:58  
commons-lang-2.1.jar
-rw-r--r-- 1 atadmin atadmin   315805 Jun 18 15:58  
commons-lang3-3.1.jar
-rw-r--r-- 1 atadmin atadmin26388 Jun 18 15:58  
commons-logging.jar
-rw-r--r-- 1 atadmin atadmin84462 Jun 18 15:58  
commons-validator.jar
-rw-r--r-- 1 atadmin atadmin  4239628 Jun 18 15:58  db2jcc4.jar
-rw-r--r-- 1 atadmin atadmin 2068 Jun 18 15:58  
db2jcc_license_cu.jar
-rw-r--r-- 1 atadmin atadmin  2125577 Jun 18 15:58  db2jcc_V9FP6.jar
-rw-r--r-- 1 atadmin atadmin   210432 Jun 18 15:58  
displaytag-1.1.jar
-rw-r--r-- 1 atadmin atadmin12590 Jun 18 15:58  
displaytag-export-poi-1.1.jar
-rw-r--r-- 1 atadmin atadmin   312509 Jun 18 16:00  
dom4j-1.5.2.jar.old
-rw-r--r-- 1 atadmin atadmin   313898 Feb  8  2012  dom4j-1.6.1.jar
-rw-r--r-- 1 atadmin atadmin 10237841 Jul  9 12:29  
ehcache-2.10.6.jar
-rw-r--r-- 1 atadmin atadmin   989884 Jul  9 16:57  
ehcache-core-2.4.2.jar
-rw-r--r-- 1 atadmin atadmin  4162825 Jul  3 10:43  hibernate3.jar
-rw-r--r-- 1 atadmin atadmin  3123360 Jul  9 12:44  
hibernate-core-3.6.10.Final.jar
-rw-r--r-- 1 atadmin atadmin56287 Jul  9 12:29  
hibernate-ehcache-5.4.3.Final.jar
-rw-r--r-- 1 atadmin atadmin65425 Jun 18 15:58   jakarta-oro.jar
-rw-r--r-- 1 atadmin atadmin  1979523 Dec 17  2018  
javaee-api-8.0.jar
-rw-r--r-- 1 atadmin atadmin   633312 Feb  8  2012   
javassist-3.12.0.GA.jar
-rw-r--r-- 1 atadmin atadmin   153115 Jun 18 15:58  jdom.jar
-rw-r--r-- 1 atadmin atadmin64597 Jun 18 15:58  
json-20180813.jar
-rw-r--r-- 1 atadmin atadmin10899 Feb  8  2012  jta-1.1.jar
-rw-r--r-- 1 atadmin atadmin   367444 Jun 18 15:58  log4j.jar
-rw-r--r-- 1 atadmin atadmin  3698857 Jul  6 21:11  ojdbc7.jar
-rw-r--r-- 1 atadmin atadmin   105355 Jun 18 15:58  
old_lcms-webtools.jar
-rw-r--r-- 1 atadmin atadmin   795231 Jun 18 15:58  
poi-2.5-final-20040302.jar
-rw-r--r-- 1 atadmin atadmin55210 Jun 18 15:58  
poi-contrib-2.5-final-20040302.jar
-rw-r--r-- 1 atadmin atadmin   188942 Jun 18 15:58  
poi-scratchpad-2.5-final-20040302.jar
-rw-r--r-- 1 atadmin atadmin   475943 Jun 18 15:58  
proxool-0.8.3.jar
-rw-r--r-- 1 atadmin atadmin25496 Feb  8  2012  
slf4j-api-1.6.1.jar
-rw-r--r-- 1 atadmin atadmin 7669 Mar 26 20:33  
slf4j-simple-1.6.1.jar
-rw-r--r-- 1 atadmin atadmin   543706 Jun 18 15:58  struts.jar
-rw-r--r-- 1 atadmin atadmin   495271 Jun 18 15:58  
Struts-Layout.jar
-rw-r--r-- 1 atadmin atadmin68046 Jun 18 15:58  
struts-menu-2.4.3.jar
-rw-r--r-- 1 atadmin atadmin39427 Jun 18 15:58  
taglibs-request.jar
-rw-r--r-- 1 atadmin atadmin44061 Jun 18 15:58  
USPS-Framework-1.0.8-alpha.jar
-rw-r--r-- 1 atadmin atadmin   364425 Jun 18 15:58  usps_tools.jar
-rw-r--r-- 1 atadmin atadmin   834966 Jun 18 15:58  xercesImpl.jar




After I started the Tomcat 9.0.13 server,  login as  topsadmin user, our Postal 
TOPS application GUI main page show up.   When I click the "Serach" button on 
the Transportation Search screen after entering the origin and destination 
values, I get the following error:

81036 [https-jsse-nio-9443-exec-8] ERROR actions.DispatchAction  - 
Dispatch[/TransportationInquiryResults] to method 
'searchTransportationViewResults' returned an except

Re: tomcat-users.xml dynamic changes

2019-07-10 Thread Mark Thomas
On 10/07/2019 17:01, David Cleary wrote:
> Mark,
> 
> I see this feature in the new Tomcat 8.5 release.
> 
> - Add the ability for a UserDatabase to monitor the backing XML file
> for changes and reload the source file if a change in the last
> modified time is detected. This is enabled by default meaning that
> changes to $CATALINA_BASE/conf/tomcat-users.xml will now take
> effect a short time after the file is saved.
> 
> I did some investigation and want to confirm this feature has been in 9.0, so 
> that 9.0.20 already operates that way.

Yes. The feature was added in 9.0.x for 9.0.13 onwards.

Mark

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



tomcat-users.xml dynamic changes

2019-07-10 Thread David Cleary
Mark,

I see this feature in the new Tomcat 8.5 release.

- Add the ability for a UserDatabase to monitor the backing XML file
for changes and reload the source file if a change in the last
modified time is detected. This is enabled by default meaning that
changes to $CATALINA_BASE/conf/tomcat-users.xml will now take
effect a short time after the file is saved.

I did some investigation and want to confirm this feature has been in 9.0, so 
that 9.0.20 already operates that way.

Thanks
Dave



Re: Sporadic proxy timeouts between HTTPd and Tomcat

2019-07-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Michael,

On 7/8/19 15:36, Osipov, Michael wrote:
> Christopher,
> 
> Am 2019-07-08 um 19:55 schrieb Christopher Schultz:
>> Michael,
>> 
>> On 7/8/19 03:58, Osipov, Michael wrote:
>>> Christopher,
>>> 
>>> Am 2019-07-05 um 19:07 schrieb Christopher Schultz:
 -BEGIN PGP SIGNED MESSAGE- Hash: SHA256
 
 Michael,
 
 On 7/5/19 11:00, Osipov, Michael wrote:
> Hi Christopher,
> 
> Am 2019-07-02 um 17:49 schrieb [ext] Osipov, Michael:
>> 
>> [...]
>>> During your ~1min stall, Tomcat is still waiting for
>>> data, right? When the connection fails, Tomcat drops
>>> its error message at the same time, right? Can you post
>>> a stack trace of what the Tomcat thread is doing at
>>> that time? I assume it's blocked on a read of some
>>> kind.
>> 
>> I need to check this with jstack. I'll get back to you as
>> soon as possible.
> 
> So I checked this and was able to get the dump right in the
> moment the request stalled. To my disappointment the
> offending thread did not lock or did not wait for read() on
> the native socket.
> 
> I have noticed this:
>> "http-apr-127.0.1.2-8081-exec-3" #33 daemon prio=5
>> os_prio=15 tid=0x000a68036800 nid=0x188be runnable
>> [0x7fffdd1cc000] java.lang.Thread.State: RUNNABLE at 
>> java.net.PlainSocketImpl.socketConnect(Native Method) at 
>> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImp
l.ja

>> 
va:350)
>> 
>> 
>> 
 - - locked <0x000965edc140> (a java.net.SocksSocketImpl)
>> at 
>> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSo
cket

>> 
Impl.java:206)
>> 
>> 
>> 
 at
>> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.
java

>> 
:188)
>> 
>> 
>> 
 at
 java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>> at java.net.Socket.connect(Socket.java:589) at 
>> java.net.Socket.connect(Socket.java:538) at 
>> java.net.Socket.(Socket.java:434) at 
>> java.net.Socket.(Socket.java:211) at 
>> com.sun.jndi.ldap.Connection.createSocket(Connection.java:375)
>> at 
>> com.sun.jndi.ldap.Connection.(Connection.java:215)
>> at 
>> com.sun.jndi.ldap.LdapClient.(LdapClient.java:137)
>> at 
>> com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1609)
>> at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2749)
>> at com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:319) at 
>> com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:
199)
>>
>>

>> 
at
>> com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java
:217

>> 
)
>> 
>> 
 at
>> com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:
195)
>>
>>

>> 
at
>> com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java
:217

>> 
)
>> 
>> 
 at
>> com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactor
y.ja

>> 
va:156)
>> 
>> 
>> 
 at
>> com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory
.jav

>> 
a:86)
>> 
>> 
>> 
 at
>> javax.naming.spi.NamingManager.getInitialContext(NamingManager.ja
va:6

>> 
84)
>> 
>> 
 at
>> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java
:313

>> 
)
>> 
>> 
 at javax.naming.InitialContext.init(InitialContext.java:244)
>> at
>> javax.naming.InitialContext.(InitialContext.java:216)
>>
>> 
at
>> javax.naming.directory.InitialDirContext.(InitialDirContext
.jav

>> 
a:101)
>> 
>> 
>> 
 at
>> net.sf.michaelo.dirctxsrc.DirContextSource$GSSInitialDirContext.<
init
>
>> 
(DirContextSource.java:115)
>> 
>> 
>> 
 at
>> net.sf.michaelo.dirctxsrc.DirContextSource$1.run(DirContextSource
.jav

>> 
a:606)
>> 
>> 
>> 
 at
>> net.sf.michaelo.dirctxsrc.DirContextSource$1.run(DirContextSource
.jav

>> 
a:583)
>> 
>> 
>> 
 at java.security.AccessController.doPrivileged(Native
 Method)
>> at javax.security.auth.Subject.doAs(Subject.java:422) at 
>> net.sf.michaelo.dirctxsrc.DirContextSource.getGssApiDirContext(Di
rCon

>> 
textSource.java:583)
>> 
>> 
>> 
 at
>> net.sf.michaelo.dirctxsrc.DirContextSource.getDirContext(DirConte
xtSo

>> 
urce.java:692)
>> 
>> 
>> 
 at
>> net.sf.michaelo.tomcat.realm.ActiveDirectoryRealm.open(ActiveDire
ctor

>> 
yRealm.java:321)
>> 
>> 
>> 
 at
>> net.sf.michaelo.tomcat.realm.ActiveDirectoryRealm.getPrincipal(Ac
tive

>> 
DirectoryRealm.java:268)
>> 
>> 
>> 
 at
>> net.sf.michaelo.tomcat.realm.ActiveDirectoryRealm.authentic

Re: [ANN] Apache Tomcat 8.5.43 available

2019-07-10 Thread Thomas Meyer
Am 10. Juli 2019 13:06:50 MESZ schrieb Mark Thomas :

Hi,

>The notable changes since 8.5.42
>include:
>- Update to Tomcat Native 1.2.23 including Windows binaries built
>  with OpenSSL 1.1.1c

Btw. are the prebuild tomcat native libraries are also available from maven 
central?
If not, could they be made available?


With kind regards
Thomas

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



[ANN] Apache Tomcat 8.5.43 available

2019-07-10 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache
Tomcat 8.5.43.

Apache Tomcat 8 is an open source software implementation of the Java
Servlet, JavaServer Pages, Java Unified Expression Language, Java
WebSocket and Java Authentication Service Provider Interface for
Containers technologies.

Apache Tomcat 8.5.x replaces 8.0.x and includes new features pulled
forward from the 9.0.x branch. The notable changes since 8.5.42 include:

- Add the ability for a UserDatabase to monitor the backing XML file
  for changes and reload the source file if a change in the last
  modified time is detected. This is enabled by default meaning that
  changes to $CATALINA_BASE/conf/tomcat-users.xml will now take
  effect a short time after the file is saved.

- Update to Tomcat Native 1.2.23 including Windows binaries built
  with OpenSSL 1.1.1c


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

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

Migration guides from Apache Tomcat 7.x and 8.0.x:
http://tomcat.apache.org/migration.html

Enjoy!

- The Apache Tomcat team

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



[ANN] Apache Tomcat 9.0.22 available

2019-07-10 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache
Tomcat 9.0.22.

Apache Tomcat 9 is an open source software implementation of the Java
Servlet, JavaServer Pages, Java Unified Expression Language, Java
WebSocket and JASPIC technologies.

Apache Tomcat 9.0.22 is a bugfix and feature release. The notable
changes compared to 9.0.21 include:

- Add user buildable optional modules for easier CDI 2 and JAX-RS
  support. Also include a new documentation page describing how to
  use it.

- Update to Tomcat Native 1.2.23 including Windows binaries built
  with OpenSSL 1.1.1c

- Update to Eclipse Complier for Java 4.12

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


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

Migration guides from Apache Tomcat 7.x and 8.x:
http://tomcat.apache.org/migration.html

Enjoy!

- The Apache Tomcat team

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



Re: Tomcat 9 & Port 80

2019-07-10 Thread tomcat

Hi.
Apologies for breaking conventions of this list and top-posting..

It seems that the issue below is more of a question for the Ubuntu list, than 
Tomcat's.

The standard /etc/init.d/tomcat9 startup script included in the Ubuntu tomcat9 package, 
should allow starting tomcat 9 on port 80 without any changes to the tomcat configuration 
or scripts (other than setting the Connector to port 80 in server.xml).
If "it doesn't work", you should consult the Ubuntu user's support list, where you are 
more likely to find appropriate answers.

See here : https://ubuntu.com/support/community-support

At another level : below, you mention trying authbind (which is what the standard Ubuntu 
startup script does), but "I could not get it to work".

Did you check that the settings of authbind are correct, for port 80 ?
See : http://manpages.ubuntu.com/manpages/bionic/man1/authbind.1.html

On 09.07.2019 15:49, Arbelo, Ralph wrote:

Hello,

I have Tomcat 9.0.21 installed (binary distribution) on an Ubuntu 16.04 server. My 
Java version is OpenJDK 11.0.4. I have the JSVC built and run the dameon.sh script 
to start and stop Tomcat via a systemd script. Everything works great, but now I 
need to run it on port 80 & 443. On our old server we have a script we use, but 
it doesn’t work upon startup (due to the needing to use sudo to get privileges to 
bind to port 80). For this new build, I was hoping to streamline the process and 
have Tomcat start upon boot. I’ve been doing a lot of Google searching on binding 
port 80 on Tomcat, but most of what I found was for older versions. Here’s what I 
found:

   *   Use iptables to redirect 8080 to 80
   *   Proxy with NGINX or Apache
   *   Use authbind

I’d rather not use iptables to redirect as (from what I understand) you still 
have to allow direct access to port 8080.

I tried using authbind, but I could not get it to work. All the procedures I 
found were for older versions of Tomcat, so I don’t know if authbind will even 
work with Tomcat 9.

Finally my questions-

   1.  Has anyone successfully used authbind with Tomcat 9?
   2.  Anything I’m missing with getting Tomcat to bind with port 80? Should I 
just bite the bullet and use an HTTP proxy?

Thank you!
Ralph

Ralph Arbelo
Library IT Services - River Campus Libraries
University of Rochester
121B Rush Rhees Library, Rochester, NY 14627
o: 585.275.3449 - f: 585.275.1032





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