- This topic has 9 replies, 2 voices, and was last updated 20 years, 1 month ago by Riyad Kalla.
-
AuthorPosts
-
robinsinghMemberENVIRONMENT DETAILS:
I have configured myEclipse with jboss 4.0 Final
on windows XP professional(SP2) using Java[TM] 2 Platform
jdk version(build 1.4.2_05-b04)I m trying to deploy(port) the classic Dukebank application at Sun’s site from Sun Ap. server to jboss 4.0 using myEclipse 3.8.2
Im following the getting started doc posted at
http://jboss.org/docs/index for jboss4.0
chapter 4I am doing everything rite till deployment
deployement gives the folowing successfull deployement message .Can anyone in the forum point me to the error ,
as of wat’s missing, (i have added jstl.jar and standard.jar into the required locations as well.)Code:
12:17:11,819 INFO [EARDeployer] Init J2EE application: file:/E:/jboss4/server/d
efault/deploy/JBossDukesBank.ear
12:17:13,501 INFO [EjbModule] Deploying CustomerBean
12:17:13,541 INFO [EjbModule] Deploying AccountBean
12:17:13,571 INFO [EjbModule] Deploying TxBean
12:17:13,581 INFO [EjbModule] Deploying AccountControllerBean
12:17:13,671 INFO [EjbModule] Deploying CustomerControllerBean
12:17:13,681 INFO [EjbModule] Deploying TxControllerBean
12:17:14,332 INFO [EJBDeployer] Deployed: file:/E:/jboss4/server/default/tmp/de
ploy/tmp29023JBossDukesBank.ear-contents/bank-ejb.jar
12:17:14,573 INFO [TomcatDeployer] deploy, ctxPath=/bank, warUrl=file:/E:/jboss
4/server/default/tmp/deploy/tmp29023JBossDukesBank.ear-contents/web-client-exp.w
ar/
12:17:14,833 INFO [EARDeployer] Started J2EE application: file:/E:/jboss4/serve
r/default/deploy/JBossDukesBank.earBut When i open the following link in the browser
as instructed in the tutorial::Code:
http://localhost:8080/bank/main
the appserver window starts throwing the following messages ::
Code:
12:18:02,692 ERROR [Engine] ApplicationDispatcher[/bank] Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /logon2.jsp(1,1) The absolute uri:
http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files de
ployed with this application
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorH
andler.java:39)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.j
ava:409)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.j
ava:90)
at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java
:339)
at org.apache.jasper.compiler.Parser.addInclude(Parser.java:390)
at org.apache.jasper.compiler.Parser.parse(Parser.java:123)
at org.apache.jasper.compiler.ParserController.doParse(ParserController.
java:220)
at org.apache.jasper.compiler.ParserController.parse(ParserController.ja
va:101)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext
.java:511)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:295)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
92)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:157)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:704)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applica
tionDispatcher.java:474)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
ispatcher.java:409)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
patcher.java:312)
at org.apache.catalina.authenticator.FormAuthenticator.authenticate(Form
Authenticator.java:220)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:504)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:102)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:169)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16
0)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:683)
at java.lang.Thread.run(Thread.java:534)
12:18:02,872 WARN [FormAuthenticator] Unexpected error forwarding to login pageorg.apache.jasper.JasperException: /logon2.jsp(1,1) The absolute uri:
http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files de
ployed with this application
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorH
andler.java:39)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.j
ava:409)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.j
ava:90)
at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java
:339)
at org.apache.jasper.compiler.Parser.addInclude(Parser.java:390)
at org.apache.jasper.compiler.Parser.parse(Parser.java:123)
at org.apache.jasper.compiler.ParserController.doParse(ParserController.
java:220)
at org.apache.jasper.compiler.ParserController.parse(ParserController.ja
va:101)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext
.java:511)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:295)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
92)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:157)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:704)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applica
tionDispatcher.java:474)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
ispatcher.java:409)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
patcher.java:312)
at org.apache.catalina.authenticator.FormAuthenticator.authenticate(Form
Authenticator.java:220)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:504)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:102)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:169)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16
0)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:683)
at java.lang.Thread.run(Thread.java:534)Then when i refresh the page in the browser ::
the following set of exceptions keeps getting thrown over n over
everytime i refresh the page ::any helpful pointers will be greatly appreciated.
Code:
12:28:07,251 WARN [FormAuthenticator] Unexpected error forwarding to login page
org.apache.jasper.JasperException: /logon2.jsp(1,1) The absolute uri: http://jav
a.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files de
ployed with this application
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorH
andler.java:39)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.j
ava:409)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.j
ava:90)
at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java
:339)
at org.apache.jasper.compiler.Parser.addInclude(Parser.java:390)
at org.apache.jasper.compiler.Parser.parse(Parser.java:123)
at org.apache.jasper.compiler.ParserController.doParse(ParserController.
java:220)
at org.apache.jasper.compiler.ParserController.parse(ParserController.ja
va:101)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext
.java:511)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:295)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
92)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:157)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:704)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applica
tionDispatcher.java:474)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
ispatcher.java:409)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
patcher.java:312)
at org.apache.catalina.authenticator.FormAuthenticator.authenticate(Form
Authenticator.java:220)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:504)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:102)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:169)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16
0)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:683)
at java.lang.Thread.run(Thread.java:534)
Riyad KallaMemberYour taglib URIs for the JSTL library is the JSTL 1.1 URI, if you added the JSTL Jars from MyEclipse, they are the JSTL 1.0 and their URI is “http://java.sun.com/jstl/core” and so on. MyEclipse doesn’t support JSTL 1.1 just yet but will soon.
robinsinghMemberwell i tried adding the standard.jar and jstl.jar separately from windows explorer in to the required Classpath ,
(just to make sure i downloaded the latest WebServices Developer pack from Sun’s site,hoping it will have the the latest standard and jstl(1.1) jar files in it)
still the same exceptions occur.
what do u think can be the problem in that case.
regards
robin
Riyad KallaMemberWell I still think that is the problem (as the exception is pretty clear)… can you open up the standard.jar file, and look into the META-INF folder for the c.tld file, if you open it, what is the URI that is at the top of the file? Should be wrapped in URI tags….
robinsinghMemberRiyad,
here go the c.tld contents<?xml version=”1.0″ encoding=”UTF-8″ ?>
<taglib xmlns=”http://java.sun.com/xml/ns/j2ee”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd”
version=”2.0″><description>JSTL 1.1 core library</description>
<display-name>JSTL core</display-name>
<tlib-version>1.1</tlib-version>
<short-name>c</short-name><uri>http://java.sun.com/jsp/jstl/core</uri>
so what do u think now about it.!
robin
Riyad KallaMemberOk so your libraries and URIs match up, but something funky is happening… I wonder if you have another copy of standard.jar and jstl.jar in your server’s classpath somewhere? Maybe in the server’s main library folder? Can you select your root JBOss folder, and do a search for “standard.jar” and see how many copies pop up?
Also from this error:
12:28:07,251 WARN [FormAuthenticator] Unexpected error forwarding to login page
org.apache.jasper.JasperException: /logon2.jsp(1,1) The absolute uri: http://jav
a.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files de
ployed with this applicationCan you open up your login page, and see what the @taglib directive at the top of the page looks like? I’m hoping that something will shine some light on this…
robinsinghMember1)well there are no standard.jar files in the jboss root folder
2) i have tried opening the logon*.jsp pages but there are no taglib directives in them .
well i am not a very seasoned jsp programmer as of now..
i am pasting the logon2.jsp and the web.xml (the ones mentioned in the exceptions being thrown.) for you to have a quick look (for may be something specific to non-suuported jstl version is lying there.<html> <head> <title> <fmt:message key="TitleLogon"/> </title> </head> <%@ include file="/template/banner.jsp" %> <center> <h3><p><fmt:message key="Logon"/> <fmt:message key="Submit"/>.</h3> <br><br><form action="j_security_check" method=post> <table> <tr> <td align="center" > <table border="0"> <tr> <td><b><fmt:message key="CustomerId"/></b></td> <td> <input type="text" size="15" name="j_username"> </td> </tr> <tr> <td><b><fmt:message key="Password"/></b></td> <td> <input type="password" size="15" name="j_password"> </td> </tr> <tr> <td></td> <td align="right"> <input type="submit" value="<fmt:message key="Submit"/>"> </td> </tr> <tr> <td><br></td> </tr> </table> </td> </tr> </table> </form> </center> </html>
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <display-name>JBoss DukesBankWAR</display-name> <context-param> <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> <param-value>WebMessages</param-value> </context-param> <servlet> <display-name>Dispatcher</display-name> <servlet-name>Dispatcher</servlet-name> <servlet-class>com.sun.ebank.web.Dispatcher</servlet-class> </servlet> <servlet-mapping> <servlet-name>Dispatcher</servlet-name> <url-pattern>/accountHist</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>Dispatcher</servlet-name> <url-pattern>/accountList</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>Dispatcher</servlet-name> <url-pattern>/atm</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>Dispatcher</servlet-name> <url-pattern>/atmAck</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>Dispatcher</servlet-name> <url-pattern>/main</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>Dispatcher</servlet-name> <url-pattern>/transferAck</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>Dispatcher</servlet-name> <url-pattern>/transferFunds</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>Dispatcher</servlet-name> <url-pattern>/logoff</url-pattern> </servlet-mapping> <jsp-config> <jsp-property-group> <display-name>bank</display-name> <url-pattern>*.jsp</url-pattern> <el-ignored>false</el-ignored> <scripting-invalid>false</scripting-invalid> <is-xml>false</is-xml> <include-prelude>/template/prelude.jspf</include-prelude> </jsp-property-group> </jsp-config> <security-constraint> <display-name>SecurityConstraint</display-name> <web-resource-collection> <web-resource-name>WRCollection</web-resource-name> <url-pattern>/transferAck</url-pattern> <url-pattern>/main</url-pattern> <url-pattern>/atmAck</url-pattern> <url-pattern>/accountList</url-pattern> <url-pattern>/accountHist</url-pattern> <url-pattern>/transferFunds</url-pattern> <url-pattern>/atm</url-pattern> <http-method>POST</http-method> <http-method>GET</http-method> </web-resource-collection> <auth-constraint> <role-name>bankCustomer</role-name> </auth-constraint> <user-data-constraint> <transport-guarantee>NONE</transport-guarantee> </user-data-constraint> </security-constraint> <login-config> <auth-method>FORM</auth-method> <realm-name>file</realm-name> <form-login-config> <form-login-page>/logon2.jsp</form-login-page> <form-error-page>/logonError.jsp</form-error-page> </form-login-config> </login-config> <security-role> <role-name>bankCustomer</role-name> </security-role> <ejb-ref> <ejb-ref-name>ejb/accountController</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <home>com.sun.ebank.ejb.account.AccountControllerHome</home> <remote>com.sun.ebank.ejb.account.AccountController</remote> </ejb-ref> <ejb-ref> <ejb-ref-name>ejb/customerController</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <home>com.sun.ebank.ejb.customer.CustomerControllerHome</home> <remote>com.sun.ebank.ejb.customer.CustomerController</remote> </ejb-ref> <ejb-ref> <ejb-ref-name>ejb/txController</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <home>com.sun.ebank.ejb.tx.TxControllerHome</home> <remote>com.sun.ebank.ejb.tx.TxController</remote> </ejb-ref> </web-app>
Riyad KallaMemberStrangely enough this all looks fine. I’m going to need to ask you to do some investigation yourself on this, while we have tried to be accommodating in helping you get to know MyEclipse, the others threads we are working with you on are starting to get a somewhat broad focus to them (outside of the scope of MyEclipse) and unfortunately our support team isn’t big enough at this time to pitch in any more help. We will always help out when we can, otherwise we need you to play detective for a bit and see if you can uncover what strangeness is happening. I would suggest trying some fresh installs of JBoss 4.0 Final in parallel to your current install to make sure your environment isn’t tainted.
robinsinghMemberGues waht i have 3 installs on my machine already .
jboss RC2 with hsql db (to make sure the problem works on this )
jboss RC2 with mysql (to make sure they work on mySql)
jboss Final with mysql (as previously pointed by me this has never worked for inside myEclipse,I have already posted a query regarding this ..but didnt get no replies–Its time i just delete this installation)Well u guys are right about the fact that i am getting a li’l out of myEclipse’ scope of issues ,
but still i see a lot of Queries just about in the periphery of your domain being answered and i hope same will
hold good for me too in the future.
Thanks for your help so far. i wll try not to ask you too very code specific problems
but myEclipse specific queries in future.
robin
Riyad KallaMemberThank you for understanding Robin.
-
AuthorPosts