File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Jboss 6 + Jsp +Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss 6 + Jsp +Struts" Watch "Jboss 6 + Jsp +Struts" New topic
Author

Jboss 6 + Jsp +Struts

velgapudi suresh
Ranch Hand

Joined: Aug 11, 2006
Posts: 32
Dear All,

In my jsp have <html select > tag. In this i am adding
<htmlption value="0">-Select-</htmlption>

when i run my jsp unable to run getting error.Using Jboss 6.0.0 Final version.

At the same time i changed hidden property style
<html:hidden property="userId" value='<%=request.getParameter("userId")%>'/>
so for <html:select> how we can manage.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9927
    
158

What error? Post the relevant details including any exception stacktraces.

[My Blog] [JavaRanch Journal]
velgapudi suresh
Ranch Hand

Joined: Aug 11, 2006
Posts: 32
Hi Kiran,

I am getting below error.
org.apache.jasper.JasperException: org.apache.jasper.JasperException: Unable to compile class for JSP
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:480)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:333)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)


If i put like this

<htmlption value="0"></htmlption> then my page will be run. But i need like this
<htmlption value="0">-Select-</htmlption> and also after this i am adding some options from db those also getting same error.

Is this of Jboss 6 AS bcz same page run in Jboss 4.2.3
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9927
    
158

That's the full stacktrace and nothing more than that?
velgapudi suresh
Ranch Hand

Joined: Aug 11, 2006
Posts: 32
The whole error i am kepted here.

HTTP Status 500 -

type Exception report

message

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

exception

javax.servlet.ServletException: org.apache.jasper.JasperException: org.apache.jasper.JasperException: Unable to compile class for JSP
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

root cause

org.apache.jasper.JasperException: org.apache.jasper.JasperException: Unable to compile class for JSP
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:480)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:333)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

root cause

org.apache.jasper.JasperException: Unable to compile class for JSP
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:619)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

root cause

java.lang.NullPointerException
org.apache.jasper.compiler.Parser.parseBody(Parser.java:1598)
org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:976)
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1247)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1421)
org.apache.jasper.compiler.Parser.parseBody(Parser.java:1633)
org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:976)
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1247)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1421)
org.apache.jasper.compiler.Parser.parseBody(Parser.java:1633)
org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:976)
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1247)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1421)
org.apache.jasper.compiler.Parser.parseBody(Parser.java:1633)
org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:976)
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1247)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1421)
org.apache.jasper.compiler.Parser.parse(Parser.java:130)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:196)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:358)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:338)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:325)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:607)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

note The full stack trace of the root cause is available in the JBoss Web/3.0.0-CR1 logs.
velgapudi suresh
Ranch Hand

Joined: Aug 11, 2006
Posts: 32
Hi Kiran,

As i informed for hidden field like
<html:select>
<htmlption> also any format changes is there.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9927
    
158

The NullPointerException appears to be this bug https://issues.jboss.org/browse/JBAS-8579 which is fixed in 6.1.0. Upgrade to 6.1.0, which has been released a few months back.
velgapudi suresh
Ranch Hand

Joined: Aug 11, 2006
Posts: 32
Hi JaiKrian,

Thanks for your reply, i will download AS 6.1.0 . My main concern is my webpage doesn't have HTML:select component then there is no problem. And also if i have
html:hidden then we need to change the format of value instead of "" to '' then page will be compile and run.

Like the above cases i hope in AS 6.1.0 will not occur.


thanks
Suresh.V>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jboss 6 + Jsp +Struts
 
Similar Threads
enable/disable drop down
How to make <html:select dynamic
Passing data from servlet to JSP to servlet
Using SELECTED in an html:option tag
Moving ArrayList of Objects from JSP to Action