How to use tld files in iPlanet

Hai Friends,

I don't know basic stuff of iPlanet. plz help me. I have developed one application in tomcat. Now i need to move that application from tomcat to iPlanet 6.0(Solaris). When i deployed it in iPlanet i am geting following exceptions plz guide me

[02/May/2006:17:40:18] failure (26802): Internal error: servlet service function had thrown ServletException (uri=/ACM/jsp/bottom_pa

ge1.jsp): org.apache.jasper.compiler.ParseException: /user3/acm/iplanet/servers/ACM/jsp/bottom_page1.jsp(2,0) Page directive: Invali

d attribute, pageEncoding, stack: org.apache.jasper.compiler.ParseException: /user3/acm/iplanet/servers/ACM/jsp/bottom_page1.jsp(2,0

) Page directive: Invalid attribute, pageEncoding

at org.apache.jasper.compiler.JspUtil.checkAttributes(JspUtil.java:237)

at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:194)

at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)

at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)

at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:218)

at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadJSP(JspServlet.java: 193)

at org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$4(JspServlet.java :167)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:477)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:589)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletR unner.java:897)

at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1065 )

at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.j ava:959)

, root cause:

[02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element tag-class in tag

[02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element body-content in tag

[02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element variable in tag

[02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element variable in tag

[02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element variable in tag

[02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element variable in tag

[02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element variable in tag

[02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element variable in tag

[02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element tag-class in tag

[02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element body-content in tag

[02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element variable in tag

[02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element variable in tag

[02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element variable in tag

[02/May/2006:17:40:18] failure (26802): Internal error: servlet service function had thrown ServletException (uri=/ACM/jsp/header.js

p): org.apache.jasper.compiler.CompileException: /user3/acm/iplanet/servers/ACM/jsp/header.jsp(101,0) Unable to load class null, sta

ck: org.apache.jasper.compiler.CompileException: /user3/acm/iplanet/servers/ACM/jsp/header.jsp(101,0) Unable to load class null

at org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:128)

at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspParse EventListener.java:753)

at org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventList ener.java:132)

at org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEventLi stener.java:903)

at org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener .java:188)

at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:825)

at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)

at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)

at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:218)

at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadJSP(JspServlet.java: 193)

at org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$4(JspServlet.java :167)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:477)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:589)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletR unner.java:897)

at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1065 )

at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.j ava:959)

, root cause:

(END)

[5142 byte] By [srvadali] at [2007-11-26 6:55:10]
# 1
iPlanet 6.0 does not support JSP version >= 1.2...The pageEncoding attribute is available only from JSP version 1.2 onwards.Try using iPlanet 6.1 SP6, it should work.
123javahardcore at 2007-7-6 15:27:30 > top of Java-index,Web & Directory Servers,Web Servers...
# 2

Thank u Very much.

And small doubt again. I am writing one custom tag in my application for that we need one tld file. In tomcat i wrote like this

<tag>

<name>Menu</name>

<tag-class>com.citigroup.acm.taglib.MenuTag</tag-class>

<body-content>JSP</body-content>

<variable><name-given>parentId</name-given></variable>

</tag>

but in iPlanet i modified(insted of tag-class i used tagclass) like the following, b'coz i got some exceptions

<tag>

<name>Menu</name>

<tagclass>com.citigroup.acm.taglib.MenuTag</tagclass>

<body-content>JSP</body-content>

<variable><name-given>parentId</name-given></variable>

</tag>

Now i am getting error at <variable> how to handle that plz help me

srvadali at 2007-7-6 15:27:30 > top of Java-index,Web & Directory Servers,Web Servers...
# 3

Hi,

Can u help in knowing how to use the jsp in iPlanet server. I am very new to iPlanet server.

iPlanet server version is 6.1sp6. I want to know the following...

1. Where I have to place the jsp files? like in tomcat do we have a defined location to place the jsp files?

2. how do i compile or get the class files of the jsp file? Do I require to add anything new in the classpath? any other pre-requisites?

sandy_23 at 2007-7-6 15:27:30 > top of Java-index,Web & Directory Servers,Web Servers...
# 4

Hi Sandy

If you only have a few jsp file, you may put them in docroot directory.

If you develop your jsp as a web application, you better package them in war fromat. You can easily deploy the web application to webserver using commandline or admin GUI. You don't even need to care about the jsp location because system will handle it dynamicly. you only need to remember your conntext root for the application.

wyb2005 at 2007-7-6 15:27:30 > top of Java-index,Web & Directory Servers,Web Servers...