Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Problems with Struts/Taglibs in SunOne WebServer 6.1

Reply
Thread Tools

Problems with Struts/Taglibs in SunOne WebServer 6.1

 
 
spivee@gmail.com
Guest
Posts: n/a
 
      02-03-2006
I have an application that I developed on Tomcat 5.5.9. It works fine
in development. I am trying to port it over to SOWS 6.1sp5 and am
having problems with the standard set of taglibs.

Whenever I attempt to hit a page with any of the standard tags (html,
logic, bean or tiles) I get the following error.. (can post the entire
error if it will do any good).

[03/Feb/2006:15:22:30] failure ( 2403): for host 192.168.0.111 trying
to GET /myapp/bob.do, service-j2ee reports:
StandardWrapperValve[action]: WEB2792: Servlet.service() for servlet
action threw exception org.apache.jasper.JasperException: WEB4083: No
such tag getAsString in the tag library imported with prefix tiles
at
org.apache.jasper.compiler.TagLibraries.isUserDefi nedTag(TagLibraries.java:97)


This happens with any tag. I get the same thing for "No such tag html
in the tag library imported with prefix html" etc.

I have the latest version of struts jars. (1.2. I can open the
struts.jar file and view the tlds and the tags are present.

I call my taglibs in my jsp's like this...

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>

I have tried extracting the tlds from the jar and pointing to them
directly like

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

but that doesn't work. I've also tried setting the struts taglib
entries in the web.xml file and calling the taglibs as follows (again
with no success).

<taglib>
<taglib-uri>http://struts.apache.org/struts-tiles</taglib-uri>
<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
</taglib>

<%@ taglib uri="http://struts.apache.org/struts-tiles" prefix="tiles"
%>

Whenever I do either of the last two, I get ClassCast exceptions..

ports: StandardWrapperValve[action]: WEB2792: Servlet.service() for
servlet action threw exception org.apache.jasper.JasperException:
WEB4000: Unable to compile class for JSP
at
com.iplanet.ias.web.jsp.JspServlet$JspServletWrapp er.loadJSP(JspServlet.java:785)

java.lang.ClassCastException: org.apache.struts.taglib.bean.CookieTei
at
org.apache.jasper.compiler.TagLibraryInfoImpl.crea teTagInfo(TagLibraryInfoImpl.java:39

I'm not sure if this is an issue with WS6.1 or if it's something in my
configuration.

Any ideas?

 
Reply With Quote
 
 
 
 
spivee@gmail.com
Guest
Posts: n/a
 
      02-16-2006
Still fighting with this issue. Thought I'd give the thread a bump..

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
autorestart script for Sunone WS senS Java 0 03-10-2009 06:46 PM
axis2 error on sunone app server 8.1 wenwei.xie@gmail.com Java 0 02-21-2008 09:15 PM
jsf verify on sunone 8.1 bipolide@gmail.com Java 0 02-17-2006 12:09 PM
Problems with WebServer Behavior ! Alex Nitulescu ASP .Net 2 02-15-2005 08:40 AM
Diff of Sun Java System AppServer vs. SunONE Server vs. Sun Java System Web Server ? Ulf Meinhardt Java 0 11-11-2004 09:40 PM



Advertisments