Parsing of JSP file
Parsing of JSP File '/main.jsp' failed:
/main.jsp(1): Could not parse deployment descriptor: java.io.IOException: cannot resolve 'http://java.sun.com/jstl/core' into a valid tag library
probably occurred due to an error in /main.jsp line 1:
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
Sun May 06 18:27:39 GMT+05:30 2007
I got this error when i deployed my application through weblogic...
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
I think its because of this line..can someone help me..its urgent
/Username.jsp(3): Error in using tag library > y uri='/WEB-INF/struts-html.tld' prefix='html':
> cannot find tag class:
> 'org.apache.struts.taglib.html.BaseTag'
> probably occurred due to an error in /Username.jsp
> line 3:
> <%@ taglib uri="/WEB-INF/struts-html.tld"
> prefix="html" %>
Ok, we can tell that the JSP compiler was able to read and parse the TLD file, because it refers to a class name specified in the TLD. That's a good sign. However, after it found the class name, it wasn't able to find the actual class file. You'll need to ensure that the "struts.jar" file is in your "WEB-INF/lib" directory of the application.
If you already have that, or it still doesn't work when you redeploy it with this, then it's possible there is a conflict with another "struts.jar" in the web application classloader context. If that other "struts.jar" is not controlled by you, but is instead controlled by WebLogic, then you may have to specify the "<prefer-web-inf-classes>" element (to specify a "true" value), which will make the web application classloader prefer classes and jars in your WEB-INF directory over classes found elsewhere.
Similar Messages
-
I have many Jsp files already used at WLS51,
when I move to WLS6.0 I get the following error:
Parsing of JSP File '/Ticket/Reservation/ImmigrationSeqNbr.jsp' failed:
/Ticket/Reservation/ImmigrationSeqNbr.jsp(353): scriptlet close brace '}' unbalanced
at line 353 which breaks scope '_base_service_scope_'
probably occurred due to an error in /Ticket/Reservation/ImmigrationSeqNbr.jsp
line 353:
finally{
Can you help me what is the mean of the errro message?
And how to solve that?
Thx
It's telling you there is a syntax error in your JSP. Which would be strange if
it worked fine in 5.1. Please post the JSP.
Mike
"Samuel Pun" <[email protected]> wrote:
>
>I have many Jsp files already used at WLS51,
>when I move to WLS6.0 I get the following error:
>
>Parsing of JSP File '/Ticket/Reservation/ImmigrationSeqNbr.jsp' failed:
>--------------------------------------------------------------------------------
> /Ticket/Reservation/ImmigrationSeqNbr.jsp(353): scriptlet close brace
>'}' unbalanced
>at line 353 which breaks scope '_base_service_scope_'
>probably occurred due to an error in /Ticket/Reservation/ImmigrationSeqNbr.jsp
>line 353:
>finally{
>
>Can you help me what is the mean of the errro message?
>And how to solve that?
>Thx
-
Struts Support: Parsing Portlet JSP File failed
I've manually edited a my .portlet file to contain a strutsContent element (copied
from the struts.porlet in the JSR 168 and Struts Support sample). When I run my
portal I get an error message:
java.lang.RuntimeException: Didn't find TagInfo for tag:strutsContent
Can anyone help?
Thanks in advance,
--AndySubbu,
Thanks for the tip - netuix_taglib.jar was indeed the not the correct version.
Interestingly, this file is not mentioned in the "JSR 168 and Struts Support"
install docs. I have replaced this file and the struts-example webapp now starts
(after setting up an action to forward to the index page).
However, I am having problems with the message bundle properties files ApplicationResources.properties
and AlternateApplicationResources.properties as neither of these files are being
picked up.
These files are located in org/apache/struts/webapp/example in WEB-INF/src and
WEB-INF/classes of my webapp (i.e. <WEBAPP>/WEB-INF - my struts-example resides
in <WEBAPP>/struts-example).
I've also tried adding <init-param>'s to the <WEB-APP>/WEB-INF/web.xml file for
the action servlet as follows:
<servlet>
<servlet-name>action</servlet-name>
<init-param>
<param-name>application</param-name>
<param-value>org.apache.struts.webapp.example.ApplicationResources</param-value>
</init-param>
<init-param>
<param-name>alternate</param-name>
<param-value>org.apache.struts.webapp.example.AlternateApplicationResources</param-value>
</init-param>
</servlet>
When I use the logon action as the starting action for the portlet, I get:
Error opening /struts-example/logon.jsp.
The source of this error is javax.servlet.ServletException: Cannot find message
resources under key alternate at weblogic.servlet.jsp.PageContextImpl.handlePageException...
Any help would be appreciated.
--Andy
Subbu Allamaraju <subbuATbeaDOTcom> wrote:
Andy,
Does this webapp contain the patched versions of netuix_servlet.jar and
netuix_taglib.jar? Also make sure that the patched netuix_system.jar
is
in the system classpath.
Subbu
Andy Hull wrote:
I've manually edited a my .portlet file to contain a strutsContentelement (copied
from the struts.porlet in the JSR 168 and Struts Support sample). WhenI run my
portal I get an error message:
java.lang.RuntimeException: Didn't find TagInfo for tag:strutsContent
Can anyone help?
Thanks in advance,
--Andy -
Parsing of JSP File '/login.jsp' failed
hai all,
iam deploying application from wls7.0 to wls 8.1.when i call this through browser http:\\localhost:7001/dev
.iam getting this error
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
/login.jsp(18): Error in using tag library uri='/WEB-INF/tlds/struts-bean.tld' prefix='bean': For tag 'cookie', cannot load extra info class 'org.apache.struts.taglib.bean.CookieTei'
probably occurred due to an error in /login.jsp line 18:
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
thanks
shyamHi
Can anybody solve this error -
Runtime parsing of policy.file - from source
Hi All
Decided to post here sinceI did not find any similar topic on forums and googling did not solve this.
Is there any way to parse polic.file like input at runtime? PolicyTool. PolicyFile are classes that do that but:
1. all methods are private so it does not give much place to have fun - cant make PolicyFile to read from StringReader for instance.
2. they make immedaite changes to jvm wide Policy object ? without access to installed code sources.
The question is is there a way to parse policy.file like data in a way that all goodies from PolicyFile are considered? - I mean keystore, principials, etc etc.
Or is it perfectly legal to create CodeSource and permissions from what is passed and dont worry about location of keystore or verification of signature?You can work-around this by removing the language="java" altogether. The
default is "java" and I don't expect anything else to be supported for a
very long time to come!
"kethidi" <[email protected]> wrote in message
news:3d5bf557$[email protected]..
> Parsing of JSP File '/jsp/default.jsp' failed:
> /jsp/default.jsp(2): page directive language at /jsp/default.jsp:2
previously defined at /jsp/CheckSession.jsp:1
> probably occurred due to an error in /jsp/default.jsp line 2:
> <%@ page language="java" import="com.pmi.mi.MIxmlbean"%>
>
>
> I am getting this error, when I upgrade from weblogic5.1sp10 to
weblogic7.0. The code is working fine when I use weblogic server 5.1 sp10.
But it displayed the above error, when we convert to weblogc server 7.0.
>
> Thanks,
> kethidi
-
Parsing of JSP failed in WLS 8.1; useBean
I'm receiving a message that says,
Parsing of JSP file '/share/html4login.jsp' failed: /share/html4login.jsp (3)
class 'String' could not be loaded.......
Here is the line it identifies as being in error:
<jsp:useBean id="returnUrl" scope="request" call="String"/>
If I change it to the following it works,
<jsp:useBean id="returnUrl" scope="request" call="java.lang.String"/>
I'm not all that savvy with JSPs, but is this expected behavior??
Thanks
one option is to create a symbolic link called "applications" under your domain directory pointing to the directory under which the wars are kept.
cheers !
Dips -
What is the way to prase a JSP file which is in the local drive using a parser inorder to extract some information?.
For example :
<%@ page info=" hello world " %>
<html>
<head><title>Hello, World</title></head>
<body bgcolor="blue" >
<%@ include file="index.html" %>
<table>
<tr>
<td width=150> </td>
<td width=250 align=right> <h1>Hello, World!</h1> </td>
</tr>
</table>
</body>
</html>
What i want to do is to print the "title" of the page and the "file" which is in the tag <%@ include file="index.html" %>.
Thank you in advance.A JSP file is run, not parsed.Ususally a servlet source is generated from the jsp file, it is compiled, and run. Now in order to turn the jsp file into a servlet (code), it has to be (at least partially) parsed first.
-
Need Jsp file to parse xml dom file
Hai SDN member,
I am new to jsp. I am having one xml dom file with follwing content,
My XMLDOM file
<root>
<dir>
<dirname>Mydir1</dirname>
<file>
<filename>f1</filename>
</file>
<file>
<filename>f2</filename>
</file>
<dir>
<dirname>mydir2</dirname>
<file>
<filename>f1</filename>
</file>
</dir>
</dir>
</root>
This is my XML dom file. I need a sample jsp file which shoule parse the above content.
Pls help meJSTL has an <x:parse> element, doesn't it? At any rate "I need JSP code" sounds very much like a JSP question to me. There's a JSP forum.
-
Error in connecting to database using a datasource in a jsp file
Dear SDN's,
I have a program which retreives Data from the Employee table and displays on portal page.
What i have done is,
I have created a pageprocessor component, with 2 jsp files one is for data insert and other is for retriving the data from the database table.
For inserting the records, i have written the code in the Even handling method of Page Proceessor component.
For retriving the data i have written the following jsp code in the jsp file and this i am calling in PBO of pageprocessor component based on the condition.
When i try to insert the records it is working fine.But i am getting an error when try to execute the retreving the records in other jsp.
Please go through the following code and correct me if anything is wrong here.
<b><%@ page language="java" %>
<%@ page import ="java.lang.*,java.sql.Connection,javax.sql.DataSource,java.sql.Statement,java.sql.ResultSet,javax.naming.InitialContext" %>
<body>
<center>
<table border="1">
<tr cellpadding="1">
<th>Empid</th>
<th>Name</th>
<th>City</th>
</tr>
<%
InitialContext initialContext = new InitialContext();
DataSource ds = (DataSource) initialContext.lookup("jdbc/MyDS");
Connection conn = ds.getConnection();
stmt = conn.createStatement();
ResultSet rs=stmt.executeQuery("select * from EMP_DETAILS");
while(rs.next())
out.println(rs.getString("EMPID"));
out.println(rs.getString("NAME"));
out.println(rs.getString("CITY"));
%>
<tr cellpadding="1">
<td><%=rs.getString("EMPID")%></TD>
<TD><%=rs.getString("NAME")%></td>
<td><%=rs.getString("CITY")%></td>
<br>
</table>
catch (Exception e) {
e.printStackTrace();
out.println("Exception" + e);
}</b>
The error what i am getting is.
Portal Runtime Error
An exception occurred while processing a request for :
iView : JSPdbProject.Empjava
Component Name : JSPdbProject.Empjava
Error occurs during the rendering of jsp component.
Exception id: 04:29_16/11/06_0005_507480350
See the details for the exception ID in the log fileHi Sumathi,
here is the error log.
#1.5#0017087C79D800760000004700001C000004225B24927786#1163674757780#com.sap.portal.portal#sap.com/irj#com.sap.portal.portal#J2EE_ADMIN#10231##OBTDEV15_O50_507480350#J2EE_ADMIN#6afb6760756111dbaf3c0017087c79d8#SAPEngine_Application_Thread[impl:3]_24##0#0#Error#1#/System/Server#Java###Exception ID:04:29_16/11/06_0005_507480350
[EXCEPTION]
#1#com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Resource
Component : JSPdbProject.Empjava
Component class : Empjava
User : J2EE_ADMIN
at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:969)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:444)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:527)
at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:89)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:232)
at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)
at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: com.sapportals.portal.prt.component.PortalComponentException: Error occurs during the compilation of java generated from the jsp
at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:116)
at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:355)
at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:934)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:435)
... 38 more
Caused by: com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: Error occurs during the rendering of jsp component
at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:2189)
at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:81)
at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:140)
at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:291)
at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:141)
... 41 more
Thanks,
sireesha.B -
Deployed Application Missing JSP files
I have deployed an web appliclation Using JDeveloper 10.1.3.3 to a remote Oracle AS When I look at the Deployed Application on the Server I only see the Servlet, the JSP files are missing. I looked at the .ear and .war files and the have all the components in them but the JSPs seem to be missiong from the server. I did not get any error messages from the deployment log
---- Deployment started. ---- Mar 13, 2012 2:19:32 PM
Target platform is Oracle Application Server 10g 10.1.2 (Windows) (bantest).
Wrote WAR file to C:\jdev\jdev\mywork\NJTransit\NJTransit\deploy\njtransit.war
Wrote EAR file to C:\jdev\jdev\mywork\NJTransit\Deployment\deploy\NJTransit.ear
Invoking DCM servlet client...
C:\jdev\jdk\jre\bin\javaw.exe -Djava.protocol.handler.pkgs=HTTPClient -jar C:\jdev\jdev\lib\oc4j_remote_deploy.jar http://207.200.160.20:18100/Oc4jDcmServletAPI/ ias_admin **** redeploy D:\oracle\FRHome_1 C:\jdev\jdev\mywork\NJTransit\Deployment\deploy\NJTransit.ear NJTransit
Initializing log
Servlet interface for OC4J DCM commands
Command timeout defined at 600 seconds
Executing DCM command...
Executing command redeploy D:\oracle\FRHome_1 C:\jdev\jdev\mywork\NJTransit\Deployment\deploy\NJTransit.ear NJTransit UNDEFINEDCommand = REDEPLOY
Reading application's ear file
Ear file was successfully read
Opening connection to Oc4jDcmServlet
Setting userName to ias_admin
Sending command to DCM servlet
HTTP response code = 200, HTTP response msg = OK
Command was successfully sent to Oc4jDcmServlet
Receiving session id from servlet to check command status
Session id = 5e8e9abcf2b84b9639667c4ea36dccf4a8199cf3785755d564948b1e8d096849
Please, wait for command to finish...
Checking command status...
Setting userName to ias_admin
Setting Cookie to JSESSIONID=5e8e9abcf2b84b9639667c4ea36dccf4a8199cf3785755d564948b1e8d096849
Checking command status
HTTP response code = 200, HTTP response msg = OK
Command has finished
Receiving command exit value
Receiving command output
**** No output was received from command
Closing connection to Oc4jDcmServlet
DCM command completed successfully.
Output:
Exit status of DCM servlet client: 0
Elapsed time for deployment: 13 seconds
---- Deployment finished. ---- Mar 13, 2012 2:19:45 PM
The only odd thing I can see is that UNDEFINED statment in the log.
I followed the recipe for Deployment from the tutorial so I don't understand why the JSPs are missing.I have two version's of JDeveloper running on my machine when you pointed out to me that I was using 10.1.3.0 I downloaded 10.1.3.5 and used it instead. However we still have a problem. One our test and production machine we are running Oracle AS 10.1.2 with Java SDK 1.4. Now the documantation says that this supports JSP runtime 2.0 and Servlet Runtime 2.4. My problem is I still have to get this working for Oracle AS 10.1.2 with Java SDK 1.4. Here's what happens when I deployed to that environment.
500 Internal Server Error
java.lang.NullPointerException
at njtranenrll.jspService(_njtranenrll.java:45)
[SRC:/njtranenrll.jsp:15]
at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:575)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:311)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:498)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:402)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:835)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:341)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:816)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:231)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:136)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
12/03/19 23:10:27 Oracle Application Server Containers for J2EE 10g (10.1.2.3.0) initialized
12/03/20 09:17:21 Notification ==> Application Deployer for NJTransit STARTS [ 2012-03-20T09:17:21.865EDT ]
12/03/20 09:17:21 Notification ==> Do not undeploy previous deployment
12/03/20 09:17:21 Notification ==> Copy the archive to D:\oracle\FRHome_1\j2ee\home\applications\NJTransit.ear
12/03/20 09:17:21 Copy file C:\WINDOWS\TEMP\dir51939.tmp\NJTransit.ear to D:\oracle\FRHome_1\j2ee\home\applications\NJTransit.ear
12/03/20 09:17:21 Notification ==> Unpack NJTransit.ear begins...
12/03/20 09:17:21 Auto-unpacking D:\oracle\FRHome_1\j2ee\home\applications\NJTransit.ear... done.
12/03/20 09:17:21 Notification ==> Unpack NJTransit.ear ends...
12/03/20 09:17:21 Notification ==> Initialize NJTransit.ear begins...
12/03/20 09:17:21 Auto-unpacking D:\oracle\FRHome_1\j2ee\home\applications\NJTransit\njtransit.war... done.
12/03/20 09:17:21 Copying default deployment descriptor from archive at D:\oracle\FRHome_1\j2ee\home\applications\NJTransit/META-INF/orion-application.xml
to deployment directory D:\oracle\FRHome_1\j2ee\home\application-deployments\NJTransit...
12/03/20 09:17:21 Notification ==> Initialize NJTransit.ear ends...
12/03/20 09:17:21 Notification ==> Initialize njtransit begins...
12/03/20 09:17:21 Notification ==> Initialize njtransit ends...
12/03/20 09:17:21 Notification ==> Application Deployer for NJTransit COMPLETES [ 2012-03-20T09:17:21.990EDT ]
12/03/20 09:25:31 Error: null
12/03/20 09:25:31 Errors parsing jar:file:/D:/oracle/FRHome_1/j2ee/home/applications/NJTransit/njtransit/WEB-INF/lib/standard.jar!/META-INF/fn.tld
12/03/20 09:25:31 Error: null
12/03/20 09:25:31 Errors parsing jar:file:/D:/oracle/FRHome_1/j2ee/home/applications/NJTransit/njtransit/WEB-INF/lib/standard.jar!/META-INF/*permittedTaglibs.tld*
12/03/20 09:25:31 Error: null
12/03/20 09:25:31 Errors parsing jar:file:/D:/oracle/FRHome_1/j2ee/home/applications/NJTransit/njtransit/WEB-INF/lib/standard.jar!/META-INF/*scriptfree.tld*
12/03/20 09:25:37 Error: null
12/03/20 09:25:37 Error: null
12/03/20 09:25:37 Error: null
12/03/20 09:25:37 Error: loading Tld's into cachedConfigTable: null
12/03/20 09:25:37 Error: loading Tld's into cachedConfigTable: null
12/03/20 09:25:37 Error: loading Tld's into cachedConfigTable: null
notice the error in parsing the jar file this jar file is standard.jar do I need this jar or can I leave it out? -
Hello,
I'm using OracleJSP + XML Parser v2 Java.
I've got the following XML:
<ongletmenu>
<onglet>
<name>Proprietes</name>
<link>proprietes.jsp</link>
</onglet>
<onglet>
<name>Personnes</name>
<link>personnes.jsp</link>
</onglet>
<onglet>
<name>Formations prorposees</name>
<link>formations.jsp</link>
</onglet>
</ongletmenu>
And I want to parse this file with a JSP file:
<%@ page import="java.io.*" %>
<%@ page import="java.net.*" %>
<%@ page import="org.w3c.dom.*" %>
<%@ page import="org.xml.sax.*" %>
<%@ page import="arfopa.XSLT" %>
<%
String retour="";
DOMParser parser = new DOMParser();;
XMLDocument theXMLDoc;
parser.setPreserveWhitespace(true);
parser.setValidationMode(true);
parser.showWarnings(true);
try { parser.parse("onglets_organismes.xml"); }
catch (SAXParseException s) { out.println(s.getMessage()); }
theXMLDoc = parser.getDocument();
NodeList nl = XSLT.select(theXMLDoc, "//onglet");
// Print Out the Names of the Matching Items
int matches = nl.getLength();
for (int i = 0; i < matches; i++ ) {
retour += XSLT.valueOf( nl.item(i), "name");
%>
<%=retour%>
The JSP file doesn't want to parse the file
(parser.parse). Any idea?
Nicolas
nullProblem is that the string you pass the parse() method must be a valid string representation of a URL.
The string "onglets_organismes.xml" isn't. -
How to get the weblogic.httpd.session.timeoutSecs value in a JSP file
Hi,
We are using Weblogic 5.1 SP8. We set weblogic.httpd.session.timeoutSecs=900 in the weblogic.properties file. How can I get this value in a JSP file if I don't use java.util.Properties to parse the properties file?
Can I use session.getValue(sessionName) to get it? If so, what is the session name for this property?
Thanks.
Frank
I think something like this should work:
T3ServicesDef services = T3Services.getT3Services();
services.config().getProperty("weblogic.httpd.session.timeoutSecs");
Frank Yu <[email protected]> wrote:
> Hi,
> We are using Weblogic 5.1 SP8. We set weblogic.httpd.session.timeoutSecs=900 in the weblogic.properties file. How can I get this value in a JSP file if I don't use java.util.Properties to parse the properties file?
> Can I use session.getValue(sessionName) to get it? If so, what is the session name for this property?
> Thanks.
> Frank
Dimitri
-
Problem in executing a JSP file that includes a Custm tag
Hi,
I am very new to JSP,especially custom tags. I tried to run my first custom tag program but i cud not succeed.
I tried to run it using Tomcat as well J2ee1.3. But still cud not c the output.
I have placed jsp file,TLD etc in Web inf of root dir and class file inside classes folder..but i got some error saying tag with prefix not found in the tag library...
i tried in all the ways but all in vain... I will post my code and exact error i faced.. can anyone help me soon to see the output?
WelcomCtag.java
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
public class WelcomeCtag extends TagSupport
private String Name=null;
public String getName()
return Name;
public int doStartTag()
try
JspWriter output=pageContext.getOut();
output.println("Welcome" + getName());
}catch(Exception e)
throw new Error("Encountered an errer");
return SKIP_BODY;
public int doEndTag()
try{}
catch(Exception e)
throw new Error("Encountered an errer");
finally
return SKIP_PAGE;
[u]example.tld[/u]
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>example</shortname>
<info> A small example for usage of the tag library</info>
<tag>
<name> Welcome></name>
<tagclass>WelcomeCtag</tagclass>
<bodycontent>empty</bodycontent>
<info>This tag is an example to display a welcome message</info>
<attribute>
<name>Name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>
[u]WelcomeCustomtag.jsp[/u]
<%@ taglib prefix="example" uri="./example.tld" %>
<html>
<title>Welcome Handler</title>
</head>
<body>
<example: Welcome Name="Panduranga"/>
</body>
</html>
and the error i get while executing is here..........
org.apache.jasper.JasperException: /WelcomeCustomtag.jsp(6,0) No tag "" defined in tag library imported with prefix "example"
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:196)
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1308)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1564)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
when i referred some other tutorials some have stored the tld file inside a folder called tags inside web inf and they have used like this <tags:example> etc and it wrked but if i want to specify some attributes i dunno how to give using <tags> style....
Can anyone help me n tell me the difference in using tag like this <eample> and <tags: example> like this.....
Thanks,
Akshatha1.
Multiple tlds in web.xml
Have multiple taglib elements in your web.xml - see below.
<jsp-config>
<taglib>
<taglib-uri>http://example/taglib</taglib-uri>
<taglib-location>/WEB-INF/example.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://anotherexample/taglib</taglib-uri>
<taglib-location>/WEB-INF/anotherexample.tld</taglib-location>
</taglib>
</jsp-config>The jsp-config element should be just after the servlet-mapping element in servlet 2.3 spec.
For 2.4 spec, you can put it anywhere.
In your jsp, to use the tags from the two tag libraries, use 2 taglib directives
<%@ taglib prefix="example" uri="http://example/taglib" %>
<%@ taglib prefix="anotherexample" uri="http://anotherexample/taglib" %>
<example:tag1.................>
<anotherexample:tag2.................> etc2.
Mutliple tags per tld
Have multiple <tag> elements in your tld.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>j2ee</short-name>
<tag>
<name>tagName</name>
<tag-class>pkgName.classname</tag-class>
<body-content>JSP</body-content>
<display-name>OverlapTag</display-name>
<attribute>
<name>attr1</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>attr2</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>tag_2_Name</name>
<tag-class>pkgName.classname</tag-class>
<body-content>JSP</body-content>
<display-name></display-name>
<attribute>
<name>attr1_2</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>attr2_2</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>
Interesting snippet
If you are using a 3rd party tag library, then the tags would come packaged in a jar file. The MTEA-INF directory of the jar file would contain the tlds and the tld would have an uri element. You can use it directly in the jsp without declaring the tld file in web.xml provided the jar file is in your classpath.
For example, take the struts tag libraries, say the logic tags.
The struts.jar contains, among other things, the tag class files and the tld files (inside /META-INF/tlds)
All you have to do is put Struts.jar in the classpath (easy way to do this is put it in the WEB-INF/lib directory of your web-application).
The jar file has struts-logic-1.1.tld in the META-INF/tlds directory.
This tld file looks like this
<taglib>
<tlibversion>1.2</tlibversion>
<jspversion>1.1</jspversion>
<shortname>logic</shortname>
<uri>http://jakarta.apache.org/struts/tags-logic</uri>
..................Now to use the tags in your jsp, you dont require the tld mappings in web.xml using the uri above in the taglib directive in your jsp
<%@ taglib prefix="example" uri="http://jakarta.apache.org/struts/tags-logic" %> cool, right ? :)
This is how you should pkg your own tags too. The tag classes have to be jarred and the tlds should go into the META-INF of the jar so that other users can simply add the jar to the cp and start using your tags.
cheers,
ram. -
Include a JSP file located in a JAR
how is it possible to include a jsp file which is located in a jar? perhaps someone has already a solution for this hoping
what I already have found out is that jasper parser supports loading JSP files out of JARs, indeed. but when using a <%@import file="foo.jsp"%> directive, this special method is not called. is there some workaround? should I set some special property?
thxDid you ever figure this one out?
-
What's wrong with the JSP files?? Urgent Help Request
I have run some JSP files using Apache Tomcat 4.0 but I see many similar error message for the JSP files when running on the IE. I don't whether I should install some other software or components or just program errors in the JSP files.
The error messages are as follows:
javax.servlet.ServletException: oracle/xml/parser/v2/XMLParseException
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:457)
at org.apache.jsp.edit_0005fquiz_0005flist$jsp._jspService(edit_0005fquiz_0005flist$jsp.java:154)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:536)
root cause
java.lang.NoClassDefFoundError: oracle/xml/parser/v2/XMLParseException
at EntityBase.(EntityBase.java:18)
at QuizGen.(QuizGen.java:16)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:296)
at java.lang.Class.newInstance(Class.java:249)
at java.beans.Beans.instantiate(Beans.java:204)
at java.beans.Beans.instantiate(Beans.java:48)
at org.apache.jsp.edit_0005fquiz_0005flist$jsp._jspService(edit_0005fquiz_0005flist$jsp.java:122)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:536)
And the reference JSP file is:
<%@page language="java" import="java.io.*, java.sql.*, DBSession, QuizGen"%>
<jsp:useBean id="sess" scope="session" class="DBSession"/>
<jsp:useBean id="quizGen" scope="session" class="QuizGen"/>
<%@include file="common.jsp"%>
<%
quizGen.setSession(sess);
quizGen.build();
quizGen.print(new PrintWriter(out), this.getURLPath(request, "edit_quiz_list.xsl"));
%>
another JSP file:
<%@page language="java" import="java.io.*, java.sql.*, eQuizMetadata"%>
<jsp:useBean id="eQuiz" scope="session" class="eQuizMetadata"/>
<%@include file="common.jsp"%>
<%
Integer nextQues = (Integer) session.getAttribute("eQuiz_nextQues");
session.setAttribute("eQuiz_nextQues", new Integer(nextQues.intValue()+1));
if (nextQues.intValue() > 0) {
if (request.getParameter("QueType").equals("F")) {
eQuiz.checkAnswer(request.getParameter("answer"));
else{
if (request.getParameter("QueType").equals("H")) {
eQuiz.checkAnswer(request.getParameter("map"));
else{
if(request.getParameter("QueType").equals("A")) {
String sAns = "";
if (request.getParameter("MAT1") != null) sAns += request.getParameter("MAT1");
if (request.getParameter("MAT2") != null) sAns += request.getParameter("MAT2");
if (request.getParameter("MAT3") != null) sAns += request.getParameter("MAT3");
if (request.getParameter("MAT4") != null) sAns += request.getParameter("MAT4");
eQuiz.checkAnswer(sAns);
else{
if (request.getParameter("Cardinality").equals("S"))
eQuiz.checkAnswer(request.getParameter("MC"));
else {
String sAns = "";
if (request.getParameter("MR1") != null) sAns += request.getParameter("MR1");
if (request.getParameter("MR2") != null) sAns += request.getParameter("MR2");
if (request.getParameter("MR3") != null) sAns += request.getParameter("MR3");
eQuiz.checkAnswer(sAns);
eQuiz.calAbility();
// meet one of the stopping criteria?
if (eQuiz.checkStopQuiz()) {
%>
<jsp:forward page="eQuiz_result.jsp"/>
<%
%>
<html>
<head>
<title>QuizML Management System</title>
</head>
<frameset border="0" rows="30,*">
<frame src="eQuiz_head.jsp" name="head" noresize scrolling="no">
<frame src="eQuiz_detail.jsp" name="detail" scrolling="auto">
</frameset>
</html>root cause
java.lang.NoClassDefFoundError: oracle/xml/parser/v2/XMLParseExceptionYou simply don't have the "oracle.xml.parser.v2.XMLParseException" class in your classpath at run-time.
Maybe you are looking for
-
Hi Guys, I am trying to do a query that shows all the Invoices and Credit Notes Posted from a specific Date. So far I have come up with this, however It is not returning the correct Information and I need to show the document type as either an Invoic
-
Photo folders in Organizer view.
I have Photoshop Elements 12. In organizer view, the file tree in left pane does not match the photo files I have set up in my MS Windows Pictures folder. It just has files by date and not all of them. Can I get it to reflect the files I have made? T
-
Variable Selection Screen - Text issue
Hi, In BEx Query, I have a variable in the Var.selection screen and I cannot have the text displaying corresponding to one of the Variable after providing the value and click the button "Check". - I have checked "Provider-Specific Properties" in RSA1
-
How would i know iphone carrier
i just found iphone 3gs 16gb its 3.1.3 stick with "connect to itunes" masaage, how can i know which carrier it is locked??? thanks
-
Hash Table Misses Are Expensive
I have built several Hash Databases with 80,000 records in them, and indexed on an ascii string (person's name). I am processing their audited history, and each person has several hundred events. At the receiving of a new event I first check to see i