Page 1 of 2

Problems with admin

Posted: Fri Aug 17, 2012 9:27 am
by satishkn
Hi,

My environment is: windows XP
Java & jdk is properly installed in the system.
Java: java version "1.6.0_32"

I followed the instructions as provided in:
http://docs.broadleafcommerce.org/curre ... arted.html

The demo site is up, however the admin site (http://localhost:8080/-> got directed to: https://localhost:8444/admin/blcadmin/login.jsp ) is having some issues.

Here is the stack trace.

HTTP ERROR 500

Problem accessing /admin/blcadmin/login.jsp. Reason:

PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required

Caused by:

org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:92)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:378)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:119)
at org.apache.jasper.compiler.Jsr199JavaCompiler.compile(Jsr199JavaCompiler.java:208)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:384)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:453)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:625)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:643)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1302)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:182)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:144)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1302)
at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:147)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1302)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:448)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1067)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:377)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1001)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
at org.eclipse.jetty.server.Server.handle(Server.java:360)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:890)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:944)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77)
at org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:191)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:622)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)
at java.lang.Thread.run(Unknown Source)



.....................................


I would really appreciate if you can shed some light and help me figure out why I could be facing the issue. I googled, but it was of no help.

Thx,
-Satish Krishnaraj

Re: Problems with admin

Posted: Fri Aug 17, 2012 3:23 pm
by csrinivasrao
Update your JAVA_HOME to JDK instead of JRE.

Re: Problems with admin

Posted: Sat Aug 18, 2012 3:12 am
by vaidyanathan
I'm facing the same problem with eclipse on UBUNTU as well.
Please update if you have solved this issue

Re: Problems with admin

Posted: Sat Aug 18, 2012 4:58 pm
by vaidyanathan
Ok, solved
Download your jdk and point JAVA_HOME to this jdk.
Inside this folder you will find ./bin and ./jre/bin
Copy the javac from ./bin and paste it in ./jre/bin [remember copy not cut]

Now in eclipse, Run->External-Tools->External-Tools-Configurations
Select the build.xml for the admin project in the left pane and click on the JRE tab in the right pane.
Click on installed JREs and add the jdk in the previous step.
Once done, select this new JRE (jdk1.6.0_31) as the 'Separate JRE', click on apply at the bottom and run.

Re: Problems with admin

Posted: Mon Nov 26, 2012 6:08 am
by sam
Hi Vaidyanathan ,

I have applied same process but problem still persist, could you elaborate again step by step

OS: Win XP Professional
Java : jdk1.6.0_37
Eclipse: Helios Service Release 2
workspace: DemoSite-2.0.2-GA-eclipse-workspace.zip
MAVEN_HOME: E:\apache-maven-3.0.4
JAVA_HOME: E:\Java\jdk1.6.0_37
ANT_HOME: D:\apache-ant-1.8.2


*************************************************************************

HTTP ERROR 500
Problem accessing /admin/blcadmin/login.jsp. Reason:
PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required
Caused by:
org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:92) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:378) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:119) at org.apache.jasper.compiler.Jsr199JavaCompiler.compile(Jsr199JavaCompiler.java:208) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:384) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:453)

*****************************************************

Re: Problems with admin

Posted: Wed Jan 16, 2013 1:50 pm
by jhavera
I am getting the same "PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required" issue; however, I am using JDK 7. Here are my variables:

OS: Win 7
Java : jdk1.7.0_07
Eclipse: Indigo
workspace: DemoSite-2.0.2-GA-eclipse-workspace.zip
MAVEN_HOME: C:\java\apache-maven-3.0.4
JAVA_HOME: C:\Program Files\Java\jdk1.7.0_07

Seriously, what could be the problem? Surely JDK 7 is not it, because others are having the same with JDK 6. What vaidyanathan suggest should not be the solution either, even if it does work. It has got to be a configuration setting in Eclipse or a property file.

Re: Problems with admin

Posted: Mon Feb 18, 2013 9:32 am
by sunil
Hi All

@vaidyanathan solution working

I faced the same problem and solve it using the above solutions

Thanks
sunil

Re: Problems with admin

Posted: Wed Feb 20, 2013 8:43 am
by alluchandrasekhar
Hi ,


I am getting same problem in admin .

Problem accessing /admin/blcadmin/login.jsp. Reason:

PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required

Caused by:

org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:92)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:378)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:119)
at org.apache.jasper.compiler.Jsr199JavaCompiler.compile(Jsr199JavaCompiler.java:208)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:384)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:453)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:625)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

Re: Problems with admin

Posted: Wed Feb 20, 2013 2:55 pm
by phillipuniverse
The solution is that you are not referencing the full JDK. Ensure that that is correctly installed and your problem will go away.

Re: Problems with admin

Posted: Thu Feb 21, 2013 2:18 am
by alluchandrasekhar
hi,

Cant we used same java 6 for site and admin modules?

i am using before is java 6, i installed java 7 for admin. and i set JAVA_HOME also. In eclipse indigo i changed run configurations for
site build.xml -- > java6
admin build.xml --> java7.

Still i am getting same problem ...

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project admin: Compilation failure
[artifact:mvn] [ERROR] Unable to locate the Javac Compiler in:
[artifact:mvn] [ERROR] C:\Program Files\Java\jre7\..\lib\tools.jar
[artifact:mvn] [ERROR] Please ensure you are using JDK 1.4 or above and
[artifact:mvn] [ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
[artifact:mvn] [ERROR] In most cases you can change the location of your Java
[artifact:mvn] [ERROR] installation by setting the JAVA_HOME environment variable.
[artifact:mvn] [ERROR] -> [Help 1]
[artifact:mvn] [ERROR]
[artifact:mvn] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[artifact:mvn] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[artifact:mvn] [ERROR]
[artifact:mvn] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[artifact:mvn] [ERROR] [Help 1] http://cwiki.apache.org/confluence/disp ... eException
[artifact:mvn] Java Result: 1


Please help me. what i did wrong .

Thanks
Chandu allu