[Beginners Corner] - Java Error While Trying To Access JBoss Console or The JMX C
by dnvikram
I have installed the Java SDK 5.5 On My Windows XP Pro Desktop..Made sure the classpath,java_home and jboss_home variables are fine.Is it an issue with classpath or something else?The error says cannot find javac..why isnt it?whats missing here?
**************
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: Unable to compile class for JSP
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
root cause
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.26 logs.
Apache Tomcat/5.0.26
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016355#4016355
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016355
19Â years, 2Â months
[Security & JAAS/JBoss] - Problem with java client - rmi over ssl
by brave1975
hello guys,
i have configurated jboss with ssl and it works correctly.
But i have a problem with a jmx sample when i try to connect via rmi + ssl.
i create a mbean with this configuration in
[JBOSS_HOME]\server\default\conf\jboss-service.xml
| <mbean code="org.jboss.invocation.jrmp.server.JRMPInvoker" name="jboss:service=invoker,type=jrmp,socketType=SSL">
| <attribute name="RMIObjectPort">4444</attribute>
| <attribute name="RMIClientSocketFactory">org.jboss.security.ssl.RMISSLClientSocketFactory</attribute>
| <attribute name="RMIServerSocketFactory">org.jboss.security.ssl.RMISSLServerSocketFactory</attribute>
| <attribute name="SecurityDomain">java:/jaas/RMI+SSL</attribute>
| <depends>jboss.security:service=JaasSecurityDomain,domain=RMI+SSL</depends>
| </mbean>
|
the java client is:
| ...
|
| Hashtable props = new Hashtable();
|
| props.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
| props.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
| props.put("java.naming.provider.url","jnp://localhost:1099");
|
| MBeanServerConnection mbsc = (MBeanServerConnection) context.lookup("jmx/invoker/RMIAdaptor");
|
| ObjectName dynMBeanName = new ObjectName("com.sample.jboss.jmx.mbeans:service=FormatDateActually");
|
| ...
|
when i start the server, this error appear:
anonymous wrote :
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: jboss:service=invoker,type=jrmp
| State: NOTYETINSTALLED
| Depends On Me:
| jboss:service=proxyFactory,target=ClientUserTransactionFactory
| jboss:service=proxyFactory,target=ClientUserTransaction
| jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory
| jboss.jca:service=DataSourceBinding,name=DefaultDS
|
| ObjectName: jboss.security:service=JaasSecurityDomain,domain=RMI+SSL
| State: NOTYETINSTALLED
| Depends On Me:
| jboss:service=invoker,type=jrmp,socketType=SSL
|
|
...and when i run the java client :
anonymous wrote :
| javax.naming.NameNotFoundException: invoker not bound
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
| at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
| at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
|
could anybody help me?
thanks a lot!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016354#4016354
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016354
19Â years, 2Â months