Help coderanch get a
new server
by contributing to the fundraiser

Kenneth Tang

Greenhorn
+ Follow
since Sep 04, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Kenneth Tang

Hi,

I got some error (listed below) when I try to use weblogic.jspc to compile jsps.
My jsps use some taglibs and I have references in web.xml. I
have the tld files put in WEB-INF/tld and tag library jar files in WEB-INF/lib.
I believe the locations of tld files and tab library jar files are correct because when I put jsp files into web application directly, weblogic can compile the jsp files without any problem. However, when I try to compile use the command line, I get the error saying that it can't find the taglibs. The command I use, taglib references in web.xml and the error message are the followings.
Any help is appreciated.
Thanks,
Ken


# command I use for precompile jsps #
---------------------------------------------------------------------------
java weblogic.jspc -d [WEB_APP]/WEB-INF/classes -classpath [classpath] -webapp [WEB_APP] -compileAll
---------------------------------------------------------------------------
# tag library reference in web.xml #
------------------------------------------------------------------------
<taglib>
<taglib-uri>http://jakarta.apache.org/taglibs/core</taglib-uri>;
<taglib-location>/WEB-INF/tld/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://jsptags.com/tags/navigation/pager</taglib-uri>;
<taglib-location>/WEB-INF/tld/pager-taglib.tld</taglib-location>
</taglib>
-------------------------------------------------------------------------
# error I got
-------------------------------------------------------------------------
[java] [jspc] parsing /ConfigAgentMgr.jsp:
[java] Error: translation of /ConfigAgentMgr.jsp failed: weblogic.servlet.j
sp.JspException: (line 3): Could not parse deployment descriptor: java.io.IOExce
ption: cannot resolve 'http://java.sun.com/jstl/core' into a valid tag library
[java] Error: [jspc]: 1 file(s) failed:
[java] /ConfigAgentMgr.jsp
[java] weblogic.servlet.jsp.JspException: (line 3): Could not parse deploym
ent descriptor: java.io.IOException: cannot resolve 'http://java.sun.com/jstl/co
re' into a valid tag library
[java] at weblogic.servlet.jsp.JspLexer.jspException(JspLexer.java:856)
[java] at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer
.java:4610)
[java] at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java
:4434)
[java] at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4281)
[java] at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2
167)
[java] at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1978)
[java] at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1860)
[java] at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1100)
[java] at weblogic.servlet.jsp.JspParser.doit(JspParser.java:89)
[java] at weblogic.servlet.jsp.JspParser.parse(JspParser.java:192)
[java] at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
[java] at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.
java:255)
[java] at weblogic.jspc.runBodyInternal(jspc.java:290)
[java] at weblogic.jspc.runBody(jspc.java:169)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:79)
[java] at weblogic.jspc.main(jspc.java:398)
[java] Java Result: 1
20 years ago
Mike,

Thanks for your reply. That's what I did. I used jspc command tools from IAS to create precompiled JSP classes in "WEB-INF/compiled_jsp/jsp/APPS/web-module" in another machine (not productive machine). I followed the processes in the document in "iPlanet Application Server 6.5 Developer's Guide" - "http://docs.sun.com/source/816-5786-10/jpgjsp.htm#36857". I also checked the precompiled java files, the package setting is correct. My problem is that IAS does not try to read from "WEB-INF/compiled_jsp/jsp/APPS/web-module" at all. It only tried to read the .jsp files which I already took away, which of course, give me 404 error page. I think there are some IAS settings in Windows registry that I should set to tell IAS to load the precompiled JSP classes directoy instead. However, I cannot find anything about that in sun/iplanet documentation website "http://docs.sun.com/db?p=coll/S1_ipappsrvree65_en" .
Can you tell me more information about David Ogren's book? Or any idea is good to me.
Thanks,
Ken
21 years ago
Hi,
I m using IAS 6.5. I want to use the precompiled JSP classes instead of the original JSP files. I used the jspc tools from 6.5 to create the classes. However, when I take away the original JSP files and just put the precompiled jspc classes there. IAS still looks for the original JSP files and give me 404 error. How do I notify IAS to look at the precompiled JPS classes instead of the original JSP files? There must be some settings that I have missed. Please give me light if you know anything.
Thanks in advance.
Ken
21 years ago
Hi all,
I am using 6.5 App Server. I wonder if anyone see this before. I use deployment tool to deploy it and there is no error but when I access it in a browser. I got this message. Please in advance.
Ken
[27/Sep/2002 15:06:45:2] info: --------------------------------------
[27/Sep/2002 15:06:45:2] info: init: init
[27/Sep/2002 15:06:45:2] info: --------------------------------------
2002-09-27 15:06:45,231 INFO [Thread-39] util.InitServlet - Init Servlet Sarted
...
[27/Sep/2002 15:06:45:2] error: Exception: SERVLET-execution_failed: Error in ex
ecuting servlet JSPRunnerSticky: java.lang.NoClassDefFoundError
[27/Sep/2002 15:06:45:2] error: APPLOGIC-caught_exception: Caught Exception:
java.lang.ClassCastException: java.lang.NoClassDefFoundError
at com.netscape.server.servlet.servletrunner.ServletRunner.reportError(U
nknown Source)
at com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
wn Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at java.lang.Thread.run(Thread.java:484)
21 years ago
Thanks for your reply, David. It turned out that I also need to set the logging option in Adminstration tools in order to make the log files appeared in the IAS_HOME directory.
21 years ago
Hi,
I am new at working with Iplanet (Sun one). I am using Sun One App Server 6.5. I got error while deploying our application to it.
I want to ask question -- Where is the log files for the App Server? I can find the access and error log from Sun One Web Server easily (Under IAS_HOME\Servers\logs) but it does not tell much. Just have "gxrequest.cpp:gxrequest() reports: End req /NASApp/prime/Login.jsp" when I got the error 500 pages from browser. I even did a search under IAS_HOME for any file names which have "log", "access" or "error" in it but it just returns some garbage. Please tell me where it is if you know.
Thanks in advance.
Ken
21 years ago
Hi,
I just install a war file on my default server (Websphere Advanced Single Server 4.0) thru the administrator console. I have used the websphere Assembly tools to check war file's structure and the syntax of web.xml, it does not complain anything. There is no error msg when I go thry the installation process. However, when I try to run it, it has "The application cannot be run" msg on the top. And there is no log entry about the reason in neither logs nor logs\trace directory. Can anybody help me on this? Thanks in advance.
Ken
22 years ago