Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry Push Development

Reply
Developer
anicangu
Posts: 100
Registered: ‎01-13-2011
My Device: Not Specified
Accepted Solution

Problems deploying helper-apps

I can deploy neither pushsdk nor debug-portal apps. Tomcat logs have this error in both cases:

 

SEVERE: Error listenerStart

 

any help?

Developer
massimo_olive
Posts: 235
Registered: ‎11-08-2010
My Device: Not Specified

Re: Problems deploying helper-apps

There has to be more in the error logs that will help us debug your problem.

 

Could the port your chose for Tomcat already be in use?

Developer
anicangu
Posts: 100
Registered: ‎01-13-2011
My Device: Not Specified

Re: Problems deploying helper-apps

Thanks a lot for your response,

 

all the error in catalina logs, when I try to deploy debug-portar app is:

 

31/01/2011 08:13:02 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
31/01/2011 08:13:02 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/debug-portal] startup failed due to previous errors

 

Same error with pushsdk app. But I can succesfully deploy sample-app and browse to its main url page.

 

I also checked and the port is not being used.

Developer
massimo_olive
Posts: 235
Registered: ‎11-08-2010
My Device: Not Specified

Re: Problems deploying helper-apps

That is very unusal that the sample app works but not the debug portal or pushsdk. Ok, so besides the Tomcat logs what is in the Push SDK logs - that should give you the reason for the error.

Developer
anicangu
Posts: 100
Registered: ‎01-13-2011
My Device: Not Specified

Re: Problems deploying helper-apps

Hello and thanks for your help. They are same errors for both debug-portal and pushsdk apps.

 

INFO: Despliegue del archivo debug-portal.war de la aplicación web
02/02/2011 08:10:15 AM org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
02/02/2011 08:10:15 AM org.apache.catalina.core.StandardContext start
GRAVE: Falló en arranque del Contexto [/debug-portal] debido a errores previos
02/02/2011 08:10:15 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
GRAVE: The web application [/debug-portal] registered the JBDC driver [oracle.jdbc.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
02/02/2011 08:10:16 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Despliegue del archivo papnotify.war de la aplicación web
02/02/2011 08:10:25 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Despliegue del archivo pushsdk.war de la aplicación web
02/02/2011 08:10:38 AM org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
02/02/2011 08:10:38 AM org.apache.catalina.core.StandardContext start
GRAVE: Falló en arranque del Contexto [/pushsdk] debido a errores previos
02/02/2011 08:10:38 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Despliegue del archivo sample-app.war de la aplicación web
02/02/2011 08:10:58 AM org.apache.catalina.startup.HostConfig deployWAR

Developer
massimo_olive
Posts: 235
Registered: ‎11-08-2010
My Device: Not Specified

Re: Problems deploying helper-apps

That is a weird error. Haven't seen that before.

 

But again, those are Tomcat logs. Can you look at the Push SDK logs instead? They are in a different directory. You specificed the directory when you installed the SDK.

Developer
massimo_olive
Posts: 235
Registered: ‎11-08-2010
My Device: Not Specified

Re: Problems deploying helper-apps

[ Edited ]

Btw, what version of Tomcat are you using? The SDK ships with 6.0.20.

 

I believe what you are seeing is with newer versions of Tomcat 6.0.24 and above. See this thread:

http://stackoverflow.com/questions/3320400/jdbc-driver-unregisted-when-the-web-application-stops

 

 

Also have you looked in catalina-xxxx.log and localhost.-xxxx.log for any errors that might help track down the problem?

 


 

 

Developer
anicangu
Posts: 100
Registered: ‎01-13-2011
My Device: Not Specified

Re: Problems deploying helper-apps

I did not know I had to configure changing acknowledgement-context.xml and datasource-context.xml, that was initial error. After change them, the new error in pushSDK log is:

feb 02,2011 10:15:22 ERROR - org.springframework.web.context.ContextLoader.initWebApplicationContext()]- Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registerListeners' defined in class path resource [acknowledgement-context.xml]: Invocation of init method failed; nested exception is org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)

... more

Developer
anicangu
Posts: 100
Registered: ‎01-13-2011
My Device: Not Specified

Re: Problems deploying helper-apps

I am using Tomcat 6.0.29, should I donwgrade it?

Developer
massimo_olive
Posts: 235
Registered: ‎11-08-2010
My Device: Not Specified

Re: Problems deploying helper-apps

It's probably ok to keep your Tomcat. You were seeing those errors probably because you didn't have things configured properly for the webapps.

 

Are you using Oracle or MySQL? The latest error you are getting is related to it not being able to find the MySQL driver in your classpath. Make sure you setup PushSDK.properties with the proper database connection parameters for your database and include the proper driver in the classpath /lib directory of the webapp.