[Beginners Corner] - A possible bug on tomcat, does it still exists in JBoss 4.2.
by anthon.r
I'm using
servlets 2.5 jstl 1.2
jboss 4.2.3.GA
My web.xml declares i'm using servlets 2.5
I receive
| type Exception report
|
| message
|
| description The server encountered an internal error () that prevented it from fulfilling this request.
|
| exception
|
| org.apache.jasper.JasperException: /index.jsp(33,3) According to TLD or attribute directive in tag file, attribute items does not accept any expressions
| org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
| org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
| org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
| org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1172)
| org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:819)
| org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
| org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
| org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2388)
| org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2394)
| org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
| org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
| org.apache.jasper.compiler.Validator.validate(Validator.java:1737)
| org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:178)
| org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
| org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
| org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
| org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
| org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
| org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
| org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
| note The full stack trace of the root cause is available in the JBossWeb/2.0.1.GA logs.
This scenario is very similar to the posted bug at apache.org
https://issues.apache.org/bugzilla/show_bug.cgi?id=40913
Is this bug resolved on embedded tomcat in Jboss 4.2.3.GA? or am I forgetting something?
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169167#4169167
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169167
17 years, 10 months
[Beginners Corner] - Monitor user sessions in JBoss
by mrgordonz
Hi there,
I provide application hosting for a particular J2EE application (Saba), and as part of my service I want to provide my customers with a monthly report that gives them visibility into how the users use the application.
I have been evaluating a number of monitoring systems (Hyperic, Nagios, Zenoss, and AdventNet Applications Manager) and so far I have not been able to find one which will poll JBoss to find out how many active user sessions there are. Most of them seem to have no problem monitoring things like:
Application up time
Application down time (apart from scheduled outages)
CPU and memory usage, JVM memory usage, etc
This is all useful info for my report, but I REALLY NEED to know about user sessions: average, peak, etc.
The technology stack is:
Windows Server 2003
JBoss 4.0.5
Apache 2.0.58
SQL Server 2005
Can anyone suggest how I can do this? Please note - I know very little about the "guts" of JBoss. I have seen a number of posts in various forums refer to "jmx-console" but I don't know what this is or how to use it.
Cheers,
Paul
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169164#4169164
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169164
17 years, 10 months
[Tomcat, HTTPD, Servlets & JSP] - JBoss 4.0.5-GA default Tomcat5 webapp (ROOT.war) not accessi
by kjh21
I'm running JBoss 4.0.5-GA and the default Tomcat5 webapp (ROOT.war) is not accessible from the root context on the default port (http://hostname:8080/) or any other I that I try. On startup the server log shows several iterations of the following
17:01:10,437 DEBUG [MainDeployer] trying to deploy with new deployer: ROOT.war
17:01:10,437 DEBUG [MainDeployer] Starting deployment of package: file:/E:/jboss/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/
17:01:10,437 DEBUG [MainDeployer] Starting deployment (init step) of package at: file:/E:/jboss/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/
17:01:10,437 DEBUG [MainDeployer] No deployer found for url: file:/E:/jboss/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/
17:01:10,437 DEBUG [MainDeployer] deployment waiting for deployer: file:/E:/jboss/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/
17:01:10,437 DEBUG [MainDeployer] Deployment of package: file:/E:/jboss/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/ is waiting for an appropriate deployer.
and eventually the following. Is there any way to confirm whether it has been deployed and, if so, under what context?
17:01:19,890 DEBUG [RepositoryClassLoader] Added url: file:/E:/jboss/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/, to ucl: org.jboss.mx.loading.UnifiedClassLoader3@12d8ecd{ url=file:/E:/jboss/server/default/deploy/jbossweb-tomcat55.sar/ ,addedOrder=11}
17:01:19,890 DEBUG [MainDeployer] found 0 subpackages of file:/E:/jboss/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/
17:01:19,890 DEBUG [MainDeployer] create step for deployment file:/E:/jboss/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/
17:01:19,890 DEBUG [DeployerInterceptorJSE] create: file:/E:/jboss/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/
17:01:19,890 DEBUG [Tomcat5] create, ROOT.war
17:01:19,890 DEBUG [ServiceController] Creating service jboss.web.deployment:war=ROOT.war,id=-1218467592
17:01:19,890 DEBUG [ServiceController] adding depends in ServiceController.register: []
17:01:19,890 DEBUG [WebModule] Creating jboss.web.deployment:war=ROOT.war,id=-1218467592
17:01:19,890 DEBUG [WebModule] Created jboss.web.deployment:war=ROOT.war,id=-1218467592
17:01:19,890 DEBUG [ServiceController] Creating dependent components for: jboss.web.deployment:war=ROOT.war,id=-1218467592 dependents are: []
17:01:19,900 DEBUG [MainDeployer] Done with create step of deploying ROOT.war
17:01:19,900 DEBUG [MainDeployer] Begin deployment start file:/E:/jboss/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/
17:01:19,900 DEBUG [DeployerInterceptorJSE] start: file:/E:/jboss/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/
17:01:19,900 DEBUG [ServiceController] starting service jboss.web.deployment:war=ROOT.war,id=-1218467592
17:01:19,900 DEBUG [WebModule] Starting jboss.web.deployment:war=ROOT.war,id=-1218467592
17:01:19,900 DEBUG [TomcatDeployer] webContext: null
17:01:19,900 DEBUG [TomcatDeployer] warURL: file:/E:/jboss/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/
17:01:19,900 DEBUG [TomcatDeployer] webAppParser: org.jboss.web.AbstractWebDeployer$DescriptorParser@190725e
17:01:19,900 DEBUG [WebPermissionMapping] Qualified url patterns: {/=PatternInfo[pattern=/,type=3,isOverriden=false,qualifiers=[]]}
17:01:19,910 DEBUG [TomcatDeployer] deploy root context=/ROOT
17:01:19,910 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
17:01:19,910 DEBUG [TomcatDeployer] AbstractWebContainer.parseWebAppDescriptors, Begin
17:01:19,910 DEBUG [TomcatDeployer] Creating ENC using ClassLoader: java.net.FactoryURLClassLoader@44a013
17:01:19,910 DEBUG [TomcatDeployer] ..org.jboss.mx.loading.UnifiedClassLoader3@12d8ecd{ url=file:/E:/jboss/server/default/deploy/jbossweb-tomcat55.sar/ ,addedOrder=11}
17:01:19,910 DEBUG [TomcatDeployer] ..org.jboss.system.server.NoAnnotationURLClassLoader@5d173
17:01:19,910 DEBUG [TomcatDeployer] ..sun.misc.Launcher$AppClassLoader@92e78c
17:01:19,910 DEBUG [TomcatDeployer] ..sun.misc.Launcher$ExtClassLoader@9fbe93
17:01:19,910 DEBUG [TomcatDeployer] Bound java:comp/ORB
17:01:19,910 DEBUG [TomcatDeployer] Linked java:comp/UserTransaction to JNDI name: UserTransaction
17:01:19,910 DEBUG [TomcatDeployer] addEnvEntries
17:01:19,910 DEBUG [TomcatDeployer] linkResourceEnvRefs
17:01:19,910 DEBUG [TomcatDeployer] linkResourceRefs
17:01:19,910 DEBUG [TomcatDeployer] linkMessageDestinationRefs
17:01:19,910 DEBUG [TomcatDeployer] linkEjbRefs
17:01:19,910 DEBUG [TomcatDeployer] linkEjbLocalRefs
17:01:19,910 DEBUG [TomcatDeployer] linkServiceRefs
17:01:19,910 DEBUG [TomcatDeployer] linkSecurityDomain
17:01:19,910 DEBUG [TomcatDeployer] No security-domain given, using default: java:/jaas/other
17:01:19,910 DEBUG [TomcatDeployer] Linking security/securityMgr to JNDI name: java:/jaas/other
17:01:19,920 DEBUG [TomcatDeployer] AbstractWebContainer.parseWebAppDescriptors, End
17:01:20,201 DEBUG [TomcatDeployer] Using session cookies default setting
17:01:20,371 DEBUG [ReplyHeaderFilter] Adding header name: X-Powered-By='Servlet 2.4; JBoss-4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)/Tomcat-5.5'
17:01:20,391 DEBUG [TomcatDeployer] Initialized: {WebApplication: /E:/jboss/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/, URL: file:/E:/jboss/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/, classLoader: java.net.FactoryURLClassLoader@44a013:4497427} jboss.web:j2eeType=WebModule,name=//localhost/,J2EEApplication=none,J2EEServer=none
17:01:20,391 DEBUG [WebModule] Started jboss.web.deployment:war=ROOT.war,id=-1218467592
17:01:20,391 DEBUG [ServiceController] Starting dependent components for: jboss.web.deployment:war=ROOT.war,id=-1218467592 dependent components: []
17:01:20,531 DEBUG [MainDeployer] End deployment start on package: ROOT.war
17:01:20,531 DEBUG [MainDeployer] Deployed package: file:/E:/jboss/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169155#4169155
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169155
17 years, 10 months
[Beginners Corner] - Problem sending email
by chkiron
Hi all!
I have a problem and perhaps you can help me. I wrote a class to send email in my application using commons-email. Here is the code:
import org.apache.commons.mail.SimpleEmail;
|
| (...)
|
| SimpleEmail email = new SimpleEmail();
| try {
| email.setHostName(smtp);
| email.setAuthentication(user, pwd);
| email.addTo(to, aliasTo);
| email.setFrom(from, aliasFrom);
| email.setSubject(subject");
| email.setMsg(message);
| email.send();
| } catch (Exception e) {
| e.printStackTrace();
| }
It works fine when I use it outside JBOSS, running it as a Java Application (and a main()).
But, when I invoke the class through JBOSS, all international characters go scrambled and the subject gets lost!
Does anyone have some idea to help me ? I am searching thru a lot of code, googling since yesterday, but I got stuck :(
Thank you in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169147#4169147
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169147
17 years, 10 months
[JBossMQ] - Re: Slight problem still regarding the fix for bug JBAS-1489
by kevinjm
We are experiencing a very similar problem, and I was hoping on clarification on whether or not there is a bug here, and if it has been fixed. Or if there is a way to debug this issue.
The server is 4.0.3SP1 jboss server on a linux box. The client is 4.0.2.
Our JMS client has a topic connection that has a listener. The listener sets a flag, and another thread will [very quickly] clean up and then reconnect when it sees the flag set.
The problems began when there was a network outage.
Since then, we've been in a cycling loop of reconnects. The client gets a "no pong received". The onException is invoked. The thread cleans up and reconnects. Messages are transferred from the client to the server, and from the server to the client. A minute later, we get a "no pong received" exception - repeat.
2008-08-06 09:46:01,416 WARN [TopicConnectionManager] the connection to the management server was broken: org.jboss.mq.SpyJMSException: No pong received; - nested throwable: (java.io.IOException: ping timeout.)
| 2008-08-06 09:46:02,112 WARN [TopicConnectionManager] successfully established a connection to the management server
| 2008-08-06 09:47:01,416 WARN [TopicConnectionManager] the connection to the management server was broken: org.jboss.mq.SpyJMSException: No pong received; - nested throwable: (java.io.IOException: ping timeout.)
| 2008-08-06 09:47:02,459 WARN [TopicConnectionManager] successfully established a connection to the management server
| 2008-08-06 09:48:01,420 WARN [TopicConnectionManager] the connection to the management server was broken: org.jboss.mq.SpyJMSException: No pong received; - nested throwable: (java.io.IOException: ping timeout.)
| 2008-08-06 09:48:01,811 WARN [TopicConnectionManager] successfully established a connection to the management server
| 2008-08-06 09:49:01,424 WARN [TopicConnectionManager] the connection to the management server was broken: org.jboss.mq.SpyJMSException: No pong received; - nested throwable: (java.io.IOException: ping timeout.)
| 2008-08-06 09:49:02,152 WARN [TopicConnectionManager] successfully established a connection to the management server
| 2008-08-06 09:50:01,424 WARN [TopicConnectionManager] the connection to the management server was broken: org.jboss.mq.SpyJMSException: No pong received; - nested throwable: (java.io.IOException: ping timeout.)
| 2008-08-06 09:50:01,500 WARN [TopicConnectionManager] successfully established a connection to the management server
| 2008-08-06 09:51:01,428 WARN [TopicConnectionManager] the connection to the management server was broken: org.jboss.mq.SpyJMSException: No pong received; - nested throwable: (java.io.IOException: ping timeout.)
Here's what the debug log shows.
2008-08-06 10:20:01,476 DEBUG [TopicConnectionManager] exception reported on topic connection
| org.jboss.mq.SpyJMSException: No pong received; - nested throwable: (java.io.IOException: ping timeout.)
| at org.jboss.mq.Connection$PingTask.run(Connection.java:1323)
| at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.java:364)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: java.io.IOException: ping timeout.
| ... 3 more
We have seen the same exact problem on many clients on different machines, connected to the same server. The log file shows a "no pong received" exception delivered every 60 seconds, apparently forever.
There are no huge messages, or large numbers of exceptions. This is verified with tcpdump.
Since JMS seems like its otherwise working - server sees what the client published, client sees what the server published - this looks like some sort of JBoss issue.
Can anyone help? I'm not sure what else it would be helpful to know.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169143#4169143
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169143
17 years, 10 months