divyteja.kasu
Posts: 15
Joined: Tue Jun 26, 2012 9:33 am

NOT OPENING DESKTOP SHORTCUT

hi,

Greeting for day!!!!
MY application is Tomcat web application and total application installing correctly and i gave the environment variables
as
JAVA_HOME = C:\Program Files\Java\jdk1.6.0_11
JRE_HOME = C:\Program Files\Java\jdk1.6.0_11\jre
path= %CATALINA_HOME%\bin


BUT
when i'm opening the shortcut file its showing error like

HTTP Status 500 -

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

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:89)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:375)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
org.apache.jasper.compiler.Jsr199JavaCompiler.compile(Jsr199JavaCompiler.java:200)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:380)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:449)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:620)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:483)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:373)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)


note The full stack trace of the root cause is available in the Apache Tomcat/7.0.11 logs.


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

Apache Tomcat/7.0.11

please help me......
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: NOT OPENING DESKTOP SHORTCUT

Hi,

This seems to be a configuration problem with your web app, not with the installer. Have you tried debugging it outside the installer?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
divyteja.kasu
Posts: 15
Joined: Tue Jun 26, 2012 9:33 am

Re: NOT OPENING DESKTOP SHORTCUT

yes , i started the server manually without installer then my login page is opened without that error
divyteja.kasu
Posts: 15
Joined: Tue Jun 26, 2012 9:33 am

Re: NOT OPENING DESKTOP SHORTCUT

hi,

When i create the .exe application i'm giving the environment variables inside advance installer then i'm getting above error but when i gave environment variables manually without installer i'm able to open my login page without any error on clicking desktop shortcut....

To start tomcat service the JAVA_HOME path should be call.. but the installer is creating the path in environment variables but its not calling JDK i think... please clarify my doubt.. and
i have another doubt like what is exact component should give for variables.. in properties of environment variables in installer
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: NOT OPENING DESKTOP SHORTCUT

Hi,

After the install finishes, and before you launch the application, can you check to see if the variables were created?

Also, please note that you cannot launch the application directly from the installer, as this will not allow your app to see the freshly installed environment variables. It must be launched from a completely different process, i.e. for example by using a shortcut from your desktop.

The component associated with the environment variable has to purpose of triggering the variable install, i.e. if the component is not installed the environment variable will ont be either.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
divyteja.kasu
Posts: 15
Joined: Tue Jun 26, 2012 9:33 am

Re: NOT OPENING DESKTOP SHORTCUT

hi,

Please tell me how to start tomcat services with startup.bat file in advance installer
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: NOT OPENING DESKTOP SHORTCUT

Hello,

To run a .BAT file during the installation you can follow How do I launch a CMD or BAT file? article.
Please keep in mind that you have the Enterprise edition you can use the predefined functionality from the "Tomcat Web Application" project type.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
divyteja.kasu
Posts: 15
Joined: Tue Jun 26, 2012 9:33 am

Re: NOT OPENING DESKTOP SHORTCUT

Hi,

yes i know the tomcat web application has the predefined functionality of starting the service using CATALINA_HOME path but its not starting service when i'm using jasper reports in my application..

During installation after setting the path the service is starting and after completing total installation when i click on desktop shortcut its not opening and showing a error as i mentioned above so i asked how to start tomcat service manually.. i'm facing this problem since last 20 days any one please please please please please please help me.........
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: NOT OPENING DESKTOP SHORTCUT

Hello,

Can you please describe what is your current show stopper when using a .BAT to manually start the service?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
divyteja.kasu
Posts: 15
Joined: Tue Jun 26, 2012 9:33 am

Re: NOT OPENING DESKTOP SHORTCUT

MY application is Tomcat web application and i'm using jasper reports in this and total application installing correctly and i gave the environment variables
as
JAVA_HOME = C:\Program Files\Java\jdk1.6.0_11
JRE_HOME = C:\Program Files\Java\jdk1.6.0_11\jre
path= %CATALINA_HOME%\bin


BUT
when i'm opening the shortcut file its showing error like

HTTP Status 500 -

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

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:89)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:375)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
org.apache.jasper.compiler.Jsr199JavaCompiler.compile(Jsr199JavaCompiler.java:200)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:380)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:449)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:620)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:483)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:373)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)


note The full stack trace of the root cause is available in the Apache Tomcat/7.0.11 logs.


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

Apache Tomcat/7.0.11

and is showing in tomcat logs/localhost/
like



Jul 5, 2012 5:55:57 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jul 5, 2012 5:55:57 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jul 5, 2012 6:29:09 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Jul 5, 2012 6:29:09 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: NOT OPENING DESKTOP SHORTCUT

Hi,

After the install is finished and you see the above error, can you please got to the install folder of your application and run the BAT manually, to see if the service wills tart like this? If this works can you please create the environment variables manually, before installing the package, and try the setup package again?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”