[Beginner's Corner] - Compiler error
by Nathan Howe
Nathan Howe [http://community.jboss.org/people/nphowe] created the discussion
"Compiler error"
To view the discussion, visit: http://community.jboss.org/message/634650#634650
--------------------------------------------------------------
We just started getting a compiler error on ur older but until-recently-working Jboss 3.2 server. We have examined the issue endlessly but are admittedly not JBoss or Java experts. Can anyone here give some pointers? The error is below. Thank you.
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
An error occurred at line: 4 in the jsp file: /RBDisplayReport.jsp
Generated servlet error:
C:\jboss-4.0.1sp1\server\default\work\jboss.web\localhost\RB7\org\apache\jsp\RBDisplayReport_jsp.java:48: error: cannot access DOMHandler
thebean = (ReportBuilder.ReportRunner) _jspx_page_context.getAttribute("thebean", PageContext.SESSION_SCOPE);
^
class file for com.summit.utility.DOMHandler not found
An error occurred at line: 4 in the jsp file: /RBDisplayReport.jsp
Generated servlet error:
C:\jboss-4.0.1sp1\server\default\work\jboss.web\localhost\RB7\org\apache\jsp\RBDisplayReport_jsp.java:49: error: bad operand types for binary operator '=='
if (thebean == null){
^
first type: ReportRunner
second type: <null>
An error occurred at line: 4 in the jsp file: /RBDisplayReport.jsp
Generated servlet error:
C:\jboss-4.0.1sp1\server\default\work\jboss.web\localhost\RB7\org\apache\jsp\RBDisplayReport_jsp.java:51: error: no suitable method found for setAttribute(String,ReportRunner,int)
_jspx_page_context.setAttribute("thebean", thebean, PageContext.SESSION_SCOPE);
^
method PageContext.setAttribute(String,Object,int) is not applicable
(actual argument ReportRunner cannot be converted to Object by method invocation conversion)
method PageContext.setAttribute(String,Object) is not applicable
(actual and formal argument lists differ in length)
3 errors
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
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)
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670)
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637)
org.apache.jsp.runInRep_jsp._jspService(runInRep_jsp.java:304)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
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)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
--------------------------------------------------------------------------------
Apache Tomcat/5.0.28
To give more detail, this server has been chugging along for 5+ yearsbut came back up after a 36-hour power outage over the weekend and has been doing this ever since. Thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/634650#634650]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
[Beginner's Corner] - Custom Deployer
by sylvester mauro
sylvester mauro [http://community.jboss.org/people/symauro] created the discussion
"Custom Deployer"
To view the discussion, visit: http://community.jboss.org/message/635162#635162
--------------------------------------------------------------
Hi
first I would like to apologize for the long post. I hvae been trying out different things and doing lot of searches to no avail and getting frustrated. Any help would be really appreciated.
I am a beginner and using JBoss 5.1 I need to write a custome deployer similar to Ear deployer. Experience with ear deployer has been the foll:
1. Does not seem to deploy in the order mentioned in the application.xml (there have been other posts addressing this- but I couldnt figure out whether this is fixed or not).TO make this work do I need to chnage the StructureDeployer.
2. I also see that on failure of one of the modules the whole ear is not undeployed.
is there any way I can write my custom deployer managing the order and register a listener in the event one of the modules being deploed has an exception. To do this which Helper deployer do I need to extend.
I also couldnt figure out the purpose of the AppParsingDeployer.
If I do not add my new suffix in deployer.xml for the JarStructure bean, can I untar and keep copying each moduel manually in the order mention in my descriptor (say application.xml). Or is there a way I can call each sub deployer specifically. This way I can see if there's any error. Adding to the JarStructure seems to explode my ear and the sub modules are deployed automatically.- I would like to control this.
Thanks in advance
Symauro
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/635162#635162]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
[JBoss Tools] - m2e-wtp War Overlay
by brian pickens
brian pickens [http://community.jboss.org/people/bpickens.ibsys] created the discussion
"m2e-wtp War Overlay"
To view the discussion, visit: http://community.jboss.org/message/624553#624553
--------------------------------------------------------------
Hi, I'm hoping Fred Bricon can help me. I wasn't sure where better to post so here it is.
I'm having trouble getting the new War Overlay features to work. I have a standard war dependancy and overlay configured. However it doesn't showup in the /target/m2e-wtp/overlays/ folder. In fact, there is no overlays folder inside the m2e-wtp/ folder. I'm hesitant to create a bug because I think this may be a configuration issue, or some other use error on my part.
<dependency>
<groupId>com.ibsys.toolshed</groupId>
<artifactId>my-web-lib</artifactId>
<version>4.0.0-SNAPSHOT</version>
<type>war</type>
<scope>runtime</scope>
<optional>false</optional>
</dependency>
<overlay>
<groupId>com.ibsys.toolshed</groupId>
<artifactId>my-web-lib</artifactId>
</overlay>
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/624553#624553]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
[Beginner's Corner] - Problem encountered in starting JBoss in Eclipse
by deepak bisht
deepak bisht [http://community.jboss.org/people/dpkbisht87] created the discussion
"Problem encountered in starting JBoss in Eclipse"
To view the discussion, visit: http://community.jboss.org/message/634784#634784
--------------------------------------------------------------
Hi
I am facing the following problem while starting JBoss through Eclipse.
"Server JBoss v5.0 at localhost failed to start."
JAVA_HOME, PATH, CLASSPATH are properly set.
I am using jdk1.6.0_16.
java.lang.NoClassDefFoundError: org/jboss/aop/standalone/PluggableInstrumentor
at org.jboss.aop.asintegration.core.AspectManagerServiceDelegateJDK5.attachTranslator(AspectManagerServiceDelegateJDK5.java:42)
at org.jboss.aop.asintegration.core.AspectManagerServiceDelegate.create(AspectManagerServiceDelegate.java:252)
at org.jboss.aop.deployers.AbstractAspectManager.create(AbstractAspectManager.java:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:319)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:297)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:76)
at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:91)
at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:161)
at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:138)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.jboss.aop.standalone.PluggableInstrumentor from BaseClassLoader@8b8a47{VFSClassLoaderPolicy@1236cd5{name=aop-classloader:0.0.0$MODULE domain=ClassLoaderDomain@1ecfe07{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@ca0b6} roots=[DelegatingHandler(a)12470752[path=jboss-aop-asintegration-core.jar context=file:/D:/WebServices/jboss-5.1.0.GA/lib/ real=file:/D:/WebServices/jboss-5.1.0.GA/lib/jboss-aop-asintegration-core.jar], DelegatingHandler(a)14949315[path=jboss-aop-asintegration-jmx.jar context=file:/D:/WebServices/jboss-5.1.0.GA/lib/ real=file:/D:/WebServices/jboss-5.1.0.GA/lib/jboss-aop-asintegration-jmx.jar], DelegatingHandler(a)31116492[path=jboss-aop-asintegration-mc.jar context=file:/D:/WebServices/jboss-5.1.0.GA/lib/ real=file:/D:/WebServices/jboss-5.1.0.GA/lib/jboss-aop-asintegration-mc.jar], DelegatingHandler(a)29071960[path=jboss-aop-deployers.jar context=file:/D:/WebServices/jboss-5.1.0.GA/lib/ real=file:/D:/WebServices/jboss-5.1.0.GA/lib/jboss-aop-deployers.jar], DelegatingHandler(a)26357574[path=jboss-aop-jboss5.jar context=file:/D:/WebServices/jboss-5.1.0.GA/lib/ real=file:/D:/WebServices/jboss-5.1.0.GA/lib/jboss-aop-jboss5.jar]] delegates=null exported=[, META-INF.maven.org.jboss.aop.jboss-aop-deployers, org.jboss.aop.classpool.ucl, META-INF.maven.org.jboss.aop.jboss-aop-asintegration-mc, META-INF.maven.org.jboss.aop.jboss-aop-asintegration-core, org.jboss.aop.classpool, META-INF, org.jboss.aop.deployers, org.jboss.aop.asintegration.core, org.jboss.aop.domain, META-INF.maven.org.jboss.aop.jboss-aop-asintegration-jmx, org.jboss.aop.asintegration.jboss5, org.jboss.aop.asintegration.jboss4, org.jboss.aop.asintegration, org.jboss.aop.deployment, org.jboss.aop.classpool.jbosscl] <IMPORT-ALL>NON_EMPTY}}
at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 38 more
15:36:14,062 INFO [ServerInfo] Java version: 1.6.0_24,Sun Microsystems Inc.
15:36:14,062 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
15:36:14,062 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 19.1-b02,Sun Microsystems Inc.
15:36:14,062 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
15:36:14,062 INFO [ServerInfo] VM arguments: -Dprogram.name=run.bat -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dfile.encoding=Cp1252
15:36:14,078 INFO [JMXKernel] Legacy JMX core initialized
Failed to boot JBoss:
java.lang.IllegalStateException: Incompletely deployed:
DEPLOYMENTS IN ERROR:
Deployment "AspectManager" is in error due to: java.lang.NoClassDefFoundError: org/jboss/aop/standalone/PluggableInstrumentor
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "JMXCreateDestroyAdvice$AspectBinding" is missing the following dependencies:
Dependency "AspectManager" (should be in state "Installed", but is actually in state "**ERROR**")
Deployment "BeansDeploymentAopMetaDataDeployer" is missing the following dependencies:
Dependency "AspectManager" (should be in state "Installed", but is actually in state "**ERROR**")
Dependency "jboss.kernel:service=Kernel" (should be in state "Installed", but is actually in state "**ERROR**")
Deployment "JMXRegistrationAdvice$AspectBinding" is missing the following dependencies:
Dependency "AspectManager" (should be in state "Installed", but is actually in state "**ERROR**")
Deployment "JMXStartStopAdvice$AspectBinding" is missing the following dependencies:
Dependency "AspectManager" (should be in state "Installed", but is actually in state "**ERROR**")
Deployment "AspectManagerJMXRegistrar" is missing the following dependencies:
Dependency "AspectManager" (should be in state "Installed", but is actually in state "**ERROR**")
Deployment "AOPClassLoaderDeployer" is missing the following dependencies:
Dependency "AspectManager" (should be in state "Installed", but is actually in state "**ERROR**")
Deployment "AOPDeploymentAopMetaDataDeployer" is missing the following dependencies:
Dependency "jboss.kernel:service=Kernel" (should be in state "Installed", but is actually in state "**ERROR**")
Dependency "AspectManager" (should be in state "Installed", but is actually in state "**ERROR**")
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:278)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)
at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:142)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Unknown Source)
15:36:14,984 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
15:36:14,984 INFO [ServerImpl] Shutdown complete
Shutdown complete
Halting VM
please help.
thanks
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/634784#634784]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
[Beginner's Corner] - MessageCount high
by jepper
jepper [http://community.jboss.org/people/jepper] created the discussion
"MessageCount high"
To view the discussion, visit: http://community.jboss.org/message/635055#635055
--------------------------------------------------------------
Hello,
Apologies if this is not the right place to ask. Please advise if this is the case. I'm new to jboss and java, and I could really do with some help.
I'm using jboss 6.1.0 final clustered with hornetq 2.2.5 final, solaris 10. One of our queues is adding to MessageCount, and not going down, despite there not being much activity on the system. Two of the 6 jboss hosts, are unable to completely process their messages, i.e. reach a MessageCount of 0.
I'm running a twiddle script every minute, here's a sample of it - server 1,3,5,6 are Ok it seems (0), while server 2 and 4, never go down.
So, against my 6 servers, I twiddle every minute, and record in a log file
twiddle.sh -o {host} get 'org.hornetq:module=JMS,type=Queue,name="AssetQueue"' MessageCount
20111104-111200,,0,4076,0,704,0,0,
20111104-111300,,0,4086,0,704,0,0,
20111104-111400,,0,4094,0,706,0,0,
20111104-111500,,0,4105,0,709,0,0,
20111104-111600,,0,4125,0,711,0,0,
20111104-111700,,0,4136,0,712,0,0,
I guess, my question needs to be open - how do I troubleshoot this?
My idea was to inspect what those messages, but I'm frankly clueless as to how I can do this. Invoking listMessages in the jmx-console does nothing (I get one line saying "[Ljava.util.Map;@604e9ae5" which means nothing to me). I do not have GUI access to the solaris server, and I'm not allowed to install anything.
Any ideas / help will be much appreciated.
Kind regards
Jepper
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/635055#635055]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month