Bug#775505: tomcat7: NullPointerException with catalina*.jar from package - datasource

2016-12-07 Thread Emmanuel Bourg
Hi Ralf,

If you are still affected by this issue, could you try upgrading the to
the version of tomcat7 in the jessie-backports repository please? Let me
know if it works better.

Regards,

Emmanuel Bourg

__
This is the maintainer address of Debian's Java team
. 
Please use
debian-j...@lists.debian.org for discussions and questions.


Bug#775505: Re: Bug#775505: tomcat7: NullPointerException with catalina*.jar from package - datasource

2015-02-17 Thread Ralf Hauser
Hi Emmanuel,

Unfortunately, your request from last Wednesday didn't make it into my
inbox.
So, I only saw your request now.

Regards 

  Ralf

Out of the server.xml
...
Resource name=jdbc/privasphere auth=Container
type=javax.sql.DataSource driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://127.0.0.1:3306/privalope?autoReconnect=trueamp;autoReconn
ectForPools=trueamp;amp;useUnicode=trueamp;characterEncoding=UTF-8amp;co
nnectTimeout=30amp;socketTimeout=30amp;gatherPerfMetrics=trueamp;
reportMetricsIntervalMillis=180amp;logSlowQueries=trueamp;serverTimezo
ne=Europe/Zurichamp;removeAbandoned=trueamp;logAbandoned=trueamp;
username=someUser password=somePw
maxActive=15 maxIdle=15
maxWait=1 factory=org.apache.commons.dbcp.BasicDataSourceFactory
initialSize=2
validationQuery=SELECT 1 testWhileIdle=true
loginTimeout=10 minIdle=4 poolPreparedStatements=false
timeBetweenEvictionRunsMillis=100
testOnBorrow=false /
ResourceParams ...
...
Resource name=jdbc/privasphereExtraDomSig auth=Container
type=javax.sql.DataSource driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/psconf?useSSL=falseamp;requireSSL=falseam
p;autoReconnect=trueamp;autoReconnectForPools=trueamp;amp;useUnicode=true
amp;characterEncoding=UTF-8amp;removeAbandoned=trueamp;logAbandoned=true
amp;
username=someUser password=somePw
maxActive=4 maxIdle=4 maxWait=1
factory=org.apache.commons.dbcp.BasicDataSourceFactory initialSize=2
validationQuery=SELECT 1 testWhileIdle=true
loginTimeout=10 minIdle=4 poolPreparedStatements=false
timeBetweenEvictionRunsMillis=100
/
ResourceParams name=jdbc/privasphereExtraDomSig
parameter...
...

__
This is the maintainer address of Debian's Java team
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers. 
Please use
debian-j...@lists.debian.org for discussions and questions.


Bug#775505: tomcat7: NullPointerException with catalina*.jar from package

2015-02-11 Thread Emmanuel Bourg
Hi Ralf,

Could you post the configuration of your datasource please?

Emmanuel Bourg

__
This is the maintainer address of Debian's Java team
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers. 
Please use
debian-j...@lists.debian.org for discussions and questions.


Bug#775505: Re: Bug#775505: tomcat7: NullPointerException with catalina*.jar from package

2015-02-10 Thread Ralf Hauser
Hi Emmanuel,

Yesterday, the debian stable package manager updated my tomcat7/7.0.56

The problem re-occurred   :(

Regards 

  Ralf

Feb 10, 2015 6:35:33 PM org.apache.tomcat.jdbc.pool.ConnectionPool init
SEVERE: Unable to create initial connections of pool.
java.sql.SQLException
at
org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnec
tion.java:254)
at
org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:1
82)
at
org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.j
ava:701)
at
org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.j
ava:635)
at
org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:486)
at
org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:144)
at
org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool(DataSourceProxy.java
:116)
at
org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.java:
103)
at
org.apache.tomcat.jdbc.pool.DataSourceFactory.createDataSource(DataSourceFac
tory.java:554)
at
org.apache.tomcat.jdbc.pool.DataSourceFactory.getObjectInstance(DataSourceFa
ctory.java:242)
at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.
java:141)
at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)
at org.apache.naming.NamingContext.lookup(NamingContext.java:842)
at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
at org.apache.naming.NamingContext.lookup(NamingContext.java:830)
at org.apache.naming.NamingContext.lookup(NamingContext.java:167)
at
com.privasphere.privalope.db.DBSystem.getDataSourceViaJndi(DBSystem.java:221
8)
at
com.privasphere.privalope.db.extraSvc.DatabaseDomSig.doInit1(DatabaseDomSig.
java:212)
at
com.privasphere.privalope.db.extraSvc.DatabaseDomSig.doInit(DatabaseDomSig.j
ava:196)
at
com.privasphere.privalope.db.extraSvc.DatabaseDomSig.init(DatabaseDomSig.jav
a:139)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
at
org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:12
84)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:11
97)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
5231)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:
5518)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:15
75)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:15
65)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11
42)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6
17)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:344)
at
org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnec
tion.java:246)
... 32 more

__
This is the maintainer address of Debian's Java team
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers. 
Please use
debian-j...@lists.debian.org for discussions and questions.


Bug#775505: tomcat7: NullPointerException with catalina*.jar from package

2015-02-06 Thread Emmanuel Bourg
Hi Christian,

Could you try again with the version 7.0.56-1~bpo70+3 in wheezy-backports?

Thank you,

Emmanuel Bourg

__
This is the maintainer address of Debian's Java team
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers. 
Please use
debian-j...@lists.debian.org for discussions and questions.


Bug#775505: tomcat7: NullPointerException with catalina*.jar from package

2015-01-16 Thread Christian Renner
Package: tomcat7
Version: 7.0.56-1~bpo70+2
Severity: important
Tags: patch

Dear Maintainer,

When using the catalina*.jar's provided by the debian package (in 
/usr/share/tomcat7/lib/) our tomcat dies with java.lang.NullPointerException.
When I replace the jar's with the jar's provided by the original uptstream 
tomcat package 
(https://archive.apache.org/dist/tomcat/tomcat-7/v7.0.56/bin/apache-tomcat-7.0.56.tar.gz)
 tomcat starts normally as expected.

Same problem has been reportet in numerous places, e.g.: 
https://forums.alfresco.com/comment/145885#comment-145885

Regards
Christian

-- System Information:
Debian Release: 7.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=UTF-8 (charmap=locale: Cannot set LC_CTYPE 
to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages tomcat7 depends on:
ii  adduser3.113+nmu3
ii  debconf [debconf-2.0]  1.5.49
ii  tomcat7-common 7.0.56-1~bpo70+2
ii  ucf3.0025+nmu3

Versions of packages tomcat7 recommends:
ii  authbind  2.1.1

Versions of packages tomcat7 suggests:
pn  libtcnative-1 none
pn  tomcat7-admin none
pn  tomcat7-docs  none
pn  tomcat7-examples  none
pn  tomcat7-user  none

-- Configuration Files:
/etc/init.d/tomcat7 changed [not included]
/etc/tomcat7/catalina.properties changed [not included]
/etc/tomcat7/context.xml changed [not included]
/etc/tomcat7/server.xml changed [not included]
/etc/tomcat7/web.xml changed [not included]

-- debconf information:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = en_US:en,
LC_ALL = (unset),
LC_CTYPE = UTF-8,
LANG = en_US.UTF-8
are supported and installed on your system.
perl: warning: Falling back to the standard locale (C).
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
  tomcat7/groupname: tomcat7
  tomcat7/username: tomcat7
  tomcat7/javaopts: -Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC

__
This is the maintainer address of Debian's Java team
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers. 
Please use
debian-j...@lists.debian.org for discussions and questions.


Bug#775505: tomcat7: NullPointerException with catalina*.jar from package

2015-01-16 Thread Emmanuel Bourg
Hi Christian,

Thank you for the report. Could you show the full stacktrace please?

Emmanuel Bourg

__
This is the maintainer address of Debian's Java team
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers. 
Please use
debian-j...@lists.debian.org for discussions and questions.