• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem in jsp only with bea weblogic

 
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi ,

i am using
bea weblogic 8.1
servlet specifications 2.3
and struts

Following JSP works fine in Apache Tomcat 5.5.23 and JBOSS
application server 4.2


<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %>


<html>

<head>
<title>Login</title>
</head>
<body>
<html:form action="/login">
<table align="center" width="50%">
<table align="center" width="50%">
<tr>
<td>
User Name
</td>
<td>
<html:text property="userName" value="" />
</td>
</tr>
<tr>
<td>
Password
</td>
<td>
<html assword property="password" value=""/>
</td>
</tr>
</table>
<table align="center" width="50%">
<tr align="center" width="50%">
<td align="center" width=25%>
<input type="submit" value="login"/>
</td>
</tr>
</table>
</table>
</html:form>
</body>
</html>


similarly web.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>


<servlet>
<servlet-name>action</servlet-name>
<servlet-class>
org.apache.struts.action.ActionServlet
</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>

<session-config>
<session-timeout>30</session-timeout>
</session-config>

<taglib>
<taglib-uri>/WEB-INF/tld/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/tld/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/tld/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location>
</taglib>

<welcome-file-list>
<welcome-file>/WEB-INF/views/common/login.jsp</welcome-file>
</welcome-file-list>

</web-app>






but when i deployed this application on bea weblogic 8.1
weblogic console gives me following exception


<May 16, 2007 6:17:58 PM IST> <Warning> <HTTP> <BEA-101248> <[C:\bea\user_projects\domains\mydomain\sc.war]: Deployment descriptor
"web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: The content of element type "web-app" must match "(
icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session
-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,s
ecurity-role*,env-entry*,ejb-ref*,ejb-local-ref*)". (line 44, column 11).>

<May 16, 2007 6:17:58 PM IST> <Warning> <HTTP> <BEA-101247> <C:\bea\user_projects\domains\mydomain\lesson1.war: Public ID referenc
es the old version of the Servlet DTD. You must change the public ID in web.xml file to "-//Sun Microsystems, Inc.//DTD Web Applic
ation 2.3//EN".>
<May 16, 2007 6:17:58 PM IST> <Warning> <HTTP> <BEA-101248> <[C:\bea\user_projects\domains\mydomain\lesson1.war]: Deployment descr
iptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: The content of element type "web-app" must mat
ch "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,se
ssion-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-conf
ig?,security-role*,env-entry*,ejb-ref*)". (line 19, column 11).>
log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).
log4j:WARN Please initialize the log4j system properly.
<May 16, 2007 6:17:58 PM IST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "myserver" for domain "mydomai
n" running in Development Mode>
<May 16, 2007 6:17:58 PM IST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
<May 16, 2007 6:17:58 PM IST> <Notice> <WebLogicServer> <BEA-000355> <Thread "ListenThread.Default" listening on port 7001, ip add
ress *.*>
<May 16, 2007 6:19:12 PM IST> <Error> <HTTP> <BEA-101020> <[ServletContext(id=14763676,name=sc,context-path=/sc)] Servlet failed w
ith Exception
weblogic.servlet.jsp.JspException: (line 1): Error in using tag library uri='/WEB-INF/tld/struts-bean.tld' prefix='bean': The Tag
class 'org.apache.struts.taglib.bean.IncludeTag' has no setter method corresponding to TLD declared attribute 'name', (JSP 1.1 spe
c, 5.4.1)
at weblogic.servlet.jsp.StandardTagLib.tld_jspException(StandardTagLib.java:1245)

at weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:1373)
at weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.java:1271)
at weblogic.servlet.jsp.StandardTagLib.<init>(StandardTagLib.java:292)
at weblogic.servlet.jsp.TagLibHelper.loadTagLib(TagLibHelper.java:314)
at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:145)
at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:5004)
at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4842)
at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4688)
at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2093)
at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1879)
at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1752)
at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:962)
at weblogic.servlet.jsp.JspParser.doit(JspParser.java:105)
at weblogic.servlet.jsp.JspParser.parse(JspParser.java:228)
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:120)
at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:258)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:364)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:220)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:172)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:504)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:349)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:431)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6310)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>




can any one give me solution for it
[ May 16, 2007: Message edited by: ganesh pol ]
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why do you import in your jsp if you don't use it in your jsp?

Kind regards,
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic