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
Contributor
GOODYES
Posts: 14
Registered: ‎01-19-2012
My Carrier: nd

How to make work the Push, step Tomcat, JVM.dll HOW TO STARTTTT TOMCATT ON WIN 7 WITH IIS

 

Hi,

I'm trying to try the Push service from Blackberry.

Seems an horror movie.

 

Im with the manual Push_Service_SDK-Getting_Started_Guide--1590931-0622013208-001-1.1.0.16-US

 

In the machine where it is installed and i need to work with, i have Windows 7 running IIS as a web server with a Ms.SQL server

 

I downloaded the software, that installs mysql and a directory for tomcat-6.0.32., etc ..

First trouble with mysql was resolved, now i have a trouble with tomcat.

 

Tomcat cannot start !

 

Following Push service started guide, localhost:8080 show nothing, IE show that cannot display page

 

Somewhere i read some about jikarta, but i were totally unable to install on win7

 

finally i try some note as exposed in http://www.coderanch.com/t/555548/Tomcat/Tomcat-not-running-windows, as to run cmd,and i get:

 

"Error: no 'server' JVM at 'C\Program Files (x86)\Java\jre6\bin\server\jvm.dll' "

 

Then i research and notice that this file and directory are not present, and that i need to copy from /java/jdk/jre1.7.0_01/bin/server .. (that server dir only have 3 files; classes.jsa, jvm.dll, xusage.txt)

 

Then when i run cmd i get:

 

"Error loading: C\Program Files (x86)\Java\jre6\bin\server\jvm.dll"

 

 

I dont know how can start Tomcat, how to resolve that !!

Help !

 

 

 

It is all blackberry as complicated, it it java as 1000 times more complicated than microsoft and or other languages ?

 

 

 

 

 

 

 

 

 

 

Please use plain text.
Contributor
GOODYES
Posts: 14
Registered: ‎01-19-2012
My Carrier: nd

Re: How to make work the Push, step Tomcat, JVM.dll HOW TO STARTTTT TOMCATT ON WIN 7 WITH IIS

BLACKBERRY JAVA IS HORRIBLE

 

i Downloaded Tomcat 7 and succesfull insyalled and run ok in windows 7, ok localhot:8080

 

BUT

 

Https or 8443 port does not work

 

Do i need to spend a month to implement https or port by doing this: http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html

 

 

I copy sample-push-initiator/ and pushsdk/ from Blackberry installed tomcat v6 to new installed tomcat v7

AND NOTHING HAPPENS

 

I put sample-push-initiator/ inside the ROOR folder of tomcat 7 and when i run i get sometimes:

Estado HTTP 500 - La uri absoluta: http://java.sun.com/jstl/core_rt no puede resolverse o en web.xml o el los archivos jar desplegados con esta aplicación


OOPS : BUTT http://java.sun.com/products/jsp/jstl/core_rt  NOT EXISTS !!

 

 

WHATS HAPPENS ¿????

 

 

 

Please use plain text.
Developer
crispyoz
Posts: 223
Registered: ‎10-01-2011

Re: How to make work the Push, step Tomcat, JVM.dll HOW TO STARTTTT TOMCATT ON WIN 7 WITH IIS

OK first this has nothing to do with Blackberry Java.

 

Start by forgetting about tomcat 7, remove it from your system and go back to your BPSS installation which is Tomcat 6.

 

You need JRE 1.6 install on your system, I pefer to put it in a root directory like c:\jre6  so it is easy to find and don't have to worry about  c:\Program Files    which has spaces in it, causing path issues. 

 

Assuming you installed the BPSS in c:\BPSS, open a command prompt and start it like this:

 

cd:\BPSS\apache-tomcat-6.0.32\bin

set JRE_HOME=c:\jre6

set PATH=%PATH%;c:\jre6\bin

catalina run

 

Chris

 

 

------------------------------------------------------

if I helped you press LIKE button

 

 

 

 

Please use plain text.
Contributor
GOODYES
Posts: 14
Registered: ‎01-19-2012
My Carrier: nd

Re: How to make work the Push, step Tomcat, JVM.dll HOW TO STARTTTT TOMCATT ON WIN 7 WITH IIS

 

4 line, catalina run gives me unknow command, program or executable batch file

 

I run cd /bin, then startup and finally the cmd show me 

INFO: Server startup in 45694 ms

 

Now if i go to: localhost:8080 i get ERROR HTTP 403 with that string "El recurso requerido () no está disponible." that means something like: the resource requested () is not available

 

Catalina.2012-06-29.log

 

 

29-jun-2012 9:26:43 org.apache.catalina.core.AprLifecycleListener init
INFO: La biblioteca nativa de Apache Tomcat basada en ARP que permite un rendimiento óptimo en entornos de desarrollo no ha sido hallada en java.library.path: c:\jre6\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\PROGRA~1\MATROX~1\System64;C:\PROGRA~1\MATROX~1\System32;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Windows\system32\gs\gs7.05\bin;C:\Program Files (x86)\Common Files\DivX Shared\;R:\Program Files (x86)\QuickTime\QTSystem\;D:\Program Files (x86)\Autodesk\Backburner\;C:\Program Files (x86)\Common Files\Autodesk Shared\;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\LabPacks\DotNET\Bin;C:\Program Files (x86)\VisioForge Video Capture SDK .Net\Redist\FFMPEG;C:\Program Files (x86)\VisioForge Video Capture SDK .Net\Redist\RTSP;C:\Program Files (x86)\Common Files\Avid;C:\Program Files\Common Files\Avid;C:\Program Files (x86)\CineForm\Tools;C:\Program Files\Java\jdk1.7.0_01\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Java\jdk1.7.0_01\bin;c:\jre6\bin;.
29-jun-2012 9:26:43 org.apache.coyote.http11.Http11Protocol init
INFO: Inicializando Coyote HTTP/1.1 en puerto http-8080
29-jun-2012 9:26:44 org.apache.coyote.http11.Http11Protocol init
INFO: Inicializando Coyote HTTP/1.1 en puerto http-8443
29-jun-2012 9:26:44 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2152 ms
29-jun-2012 9:26:44 org.apache.catalina.core.StandardService start
INFO: Arrancando servicio Catalina
29-jun-2012 9:26:44 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
29-jun-2012 9:26:44 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Desplieque del descriptor de configuración ROOT.xml
29-jun-2012 9:26:44 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Despliegue del directorio debug-portal de la aplicación web
29-jun-2012 9:26:59 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Despliegue del directorio docs de la aplicación web
29-jun-2012 9:27:08 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Despliegue del directorio examples de la aplicación web
29-jun-2012 9:27:09 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Despliegue del directorio host-manager de la aplicación web
29-jun-2012 9:27:09 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Despliegue del directorio manager de la aplicación web
29-jun-2012 9:27:09 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Despliegue del directorio pushsdk de la aplicación web
29-jun-2012 9:27:20 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Despliegue del directorio sample-push-initiator de la aplicación web
29-jun-2012 9:27:29 org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
29-jun-2012 9:27:29 org.apache.catalina.core.StandardContext start
GRAVE: Falló en arranque del Contexto [/sample-push-initiator] debido a errores previos
29-jun-2012 9:27:29 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
GRAVE: The web application [/sample-push-initiator] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
29-jun-2012 9:27:29 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
GRAVE: The web application [/sample-push-initiator] registered the JDBC 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.
29-jun-2012 9:27:29 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
GRAVE: The web application [/sample-push-initiator] appears to have started a thread named [Replication Thread] but has failed to stop it. This is very likely to create a memory leak.
29-jun-2012 9:27:29 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
GRAVE: The web application [/sample-push-initiator] appears to have started a thread named [Replication Thread] but has failed to stop it. This is very likely to create a memory leak.
29-jun-2012 9:27:29 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
GRAVE: The web application [/sample-push-initiator] appears to have started a thread named [Replication Thread] but has failed to stop it. This is very likely to create a memory leak.
29-jun-2012 9:27:29 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
GRAVE: The web application [/sample-push-initiator] appears to have started a thread named [Replication Thread] but has failed to stop it. This is very likely to create a memory leak.
29-jun-2012 9:27:29 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
GRAVE: The web application [/sample-push-initiator] appears to have started a thread named [Replication Thread] but has failed to stop it. This is very likely to create a memory leak.
29-jun-2012 9:27:29 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
GRAVE: The web application [/sample-push-initiator] appears to have started a thread named [Replication Thread] but has failed to stop it. This is very likely to create a memory leak.
29-jun-2012 9:27:29 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
GRAVE: The web application [/sample-push-initiator] appears to have started a thread named [Replication Thread] but has failed to stop it. This is very likely to create a memory leak.
29-jun-2012 9:27:29 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
GRAVE: The web application [/sample-push-initiator] appears to have started a thread named [Replication Thread] but has failed to stop it. This is very likely to create a memory leak.
29-jun-2012 9:27:29 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
GRAVE: The web application [/sample-push-initiator] appears to have started a thread named [Replication Thread] but has failed to stop it. This is very likely to create a memory leak.
29-jun-2012 9:27:29 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
GRAVE: The web application [/sample-push-initiator] appears to have started a thread named [Replication Thread] but has failed to stop it. This is very likely to create a memory leak.
29-jun-2012 9:27:30 org.apache.coyote.http11.Http11Protocol start
INFO: Arrancando Coyote HTTP/1.1 en puerto http-8080
29-jun-2012 9:27:30 org.apache.coyote.http11.Http11Protocol start
INFO: Arrancando Coyote HTTP/1.1 en puerto http-8443
29-jun-2012 9:27:30 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
29-jun-2012 9:27:30 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/27 config=null
29-jun-2012 9:27:30 org.apache.catalina.startup.Catalina start
INFO: Server startup in 45694 ms

 

 

 

 

Please use plain text.
Developer
crispyoz
Posts: 223
Registered: ‎10-01-2011

Re: How to make work the Push, step Tomcat, JVM.dll HOW TO STARTTTT TOMCATT ON WIN 7 WITH IIS

Ok good.

The tomcat you have is just a very minimal configuration, that's fine, but just entering 8080 won't show you the tomcat admin page because the admin app is not deployed.

Just acess the blackberry app urls now.

----------------------------------------------
If I helped you press LIKE button
Please use plain text.
Contributor
GOODYES
Posts: 14
Registered: ‎01-19-2012
My Carrier: nd

Re: How to make work the Push, step Tomcat, JVM.dll HOW TO STARTTTT TOMCATT ON WIN 7 WITH IIS

No, no url work, all localhost on port 8080 or the ones used in https port do not work

i get ERROR HTTP 403 with
that string "El recurso requerido () no está disponible. "
that means something like:

the resource requested () is not available

Seems that are several error in the log listed above, i dont understand

Please use plain text.
Contributor
GOODYES
Posts: 14
Registered: ‎01-19-2012
My Carrier: nd

Re: How to make work the Push, step Tomcat, JVM.dll HOW TO STARTTTT TOMCATT ON WIN 7 WITH IIS

 
Please use plain text.
Developer
crispyoz
Posts: 223
Registered: ‎10-01-2011

Re: How to make work the Push, step Tomcat, JVM.dll HOW TO STARTTTT TOMCATT ON WIN 7 WITH IIS

Post your log file so I can see
Please use plain text.
Contributor
GOODYES
Posts: 14
Registered: ‎01-19-2012
My Carrier: nd

Re: How to make work the Push, step Tomcat, JVM.dll HOW TO STARTTTT TOMCATT ON WIN 7 WITH IIS

Thats the above one, on my post at 9:37AM.
Below the line Catalina.2012-06-29.log
Please use plain text.