Cannot access precompiled JSP
My application contains several JSP working correctly, but after I choose to precompile my JSP files (putting the compiled classes in classpath). The server return a 404 indicating cannot find the JSP pages.
It seems like the
RequestDispatcher dispatcher=request.getRequestDispatcher("xxx.jsp");
can no longer find the JSP page anymore. What should I put there instead? Moreover, I will still use JSP for faster development and debugging purposes, can I write it so that the same code runs for both raw JSP pages and precompiled JSP?
Any suggestion will be appreciated!
Thanks for your info on the creation of web.xml fragment, it really helps. I am using Ant to precompile the JSP to deploy on Jetty.
But, the webxml and webinc attribute just does not output any file as specified. However, when I tried it with the task like this:
<java classname="org.apache.jasper.JspC" fork="true" failonerror="true">
<arg line="-l -d ${web}/WEB-INF/work -webinc ${web}/jspc.xml -webapp ${web}"/>
it seems to create the webinc, however, the JSPC just doesn't work as it says
org.xml.sax.SAXException: Internal Error: File /javax/servlet/resources/web-app_2_3.dtd not found
Now both ways seems unworkable, do you or anyone have any idea?
Similar Messages
-
Error: cannot access directory oracle\jsp\runtime
I got this error when try to add a existing project to JDeveloper 9.0.3.4
Error: cannot access directory oracle\jsp\runtime; verify that directory is reachable from classpath and/or sourcepath
can someone help me?
thanksXinwei -
Make sure you have added the correct libraries to your project; adding JSP Runtime to your project should alleviate this error.
Hope this helps,
Lynn
Java Tools Team -
Hello,
where is now oracle\jsp\runtime\HttpJsp.class located?
thanks.
Oleg.Same problem,
Error: cannot access class oracle.jsp.runtime.HttpJsp; file oracle\jsp\runtime\HttpJsp.class not found
Thanks
aldo -
500 error while accessing a jsp using tiles tags
Hi all,
when im trying to access a jsp which makes use of tiles tags, im getting the following error.
status 500:
org.apache.jasper.JasperException: The absolute uri: http://struts.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this application
what might be the problem?
Thanks in advance.asp,
1. this is a java forum, and that's a jsp/struts question... you'll do better on the jsp forum.... or maybe a struts forum.
2. it can't find http://struts.apache.org/tags-tiles ... but you knew that already didn't you... and where in the wide world might that uri be? maybe in struts generated xml? maybe in the schema declatation?
keith. -
500 error while trying to access a jsp which makes use of tiles tags
Hi all,
when im trying to access a jsp which makes use of tiles tags, im getting the following error.
status 500:
org.apache.jasper.JasperException: The absolute uri: http://struts.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this application
what might be the problem?
Thanks in advance.Hi all,
sorry...got the reason for the above error..missed to include the tld file in WEB-INF. -
Precompiled JSP Compatibility Problem
I am a developer in the Cross Applications Unlimited group. We are experiencing a problem with precompiled jsps in a ADF web application that we have developed. Any help that you can provide with this problem would be much appreciated. Neither Oracle forums nor the internet have yielded any leads to us so far. Here are the specifics of our problem.
In our application, we precompile our JSPs when the EAR is built. The application was initially developed in JDeveloper 10.1.3.2 and worked without problems when deployed to OAS 10.1.3.2. However, our application server MTR recently shifted to OAS 10.1.3.3. We migrated our workspace and projects to JDeveloper 10.1.3.3 and rebuilt our EAR file in JDeveloper 10.1.3.3. We are getting "500 Internal Server Errors" when this new ear file is deployed to OAS 10.1.3.3. The error does not always manifest when running the application. We can login and navigate to JSPs linked directly from our navigation menu (our first level pages). However, in these first level pages are buttons that navigate to second level pages. The error is being seen whenever we try to access one of these second level pages. Everything else about the application works fine. When we don't precompile our JSPs and deploy, the application works fine.
This is the error we find reported in our application logs...
EWCoreViewController: Servlet error
javax.faces.el.PropertyNotFoundException: Error testing property 'inputValue' in bean of type null
at com.sun.faces.el.PropertyResolverImpl.isReadOnly(PropertyResolverImpl.java:274)
at oracle.adfinternal.view.faces.model.FacesPropertyResolver.isReadOnly(FacesPropertyResolver.java:124)
at com.sun.faces.el.impl.ArraySuffix.isReadOnly(ArraySuffix.java:236)
at com.sun.faces.el.impl.ComplexValue.isReadOnly(ComplexValue.java:209)
at com.sun.faces.el.ValueBindingImpl.isReadOnly(ValueBindingImpl.java:266)
Enabling enhanced java logging yields these logs...
<record>
<date>2008-04-09T11:27:25</date>
<millis>1207762045495</millis>
<sequence>258943</sequence>
<logger>com.sun.faces.application.ViewHandlerImpl</logger>
<level>FINE</level>
<class>com.sun.faces.application.ViewHandlerImpl</class>
<method>renderView</method>
<thread>14</thread>
<message>Found no URL patterns mapping to FacesServlet </message>
</record>
<record>
<date>2008-04-09T11:27:25</date>
<millis>1207762045495</millis>
<sequence>258944</sequence>
<logger>com.sun.faces.taglib.jsf_core.ViewTag</logger>
<level>FINE</level>
<class>com.sun.faces.taglib.jsf_core.ViewTag</class>
<method>doStartTag</method>
<thread>14</thread>
<message>Can't leverage base class</message>
<exception>
<message>java.lang.IllegalStateException</message>
<frame>
<class>com.sun.faces.taglib.jsf_core.ViewTag</class>
<method>getComponentType</method>
<line>253</line>
</frame>
Any information anyone can provide would be greatly appreciated.
ThanksHi Ian,
Add this jar file to classpath...use either web interface or directly edit jvm12.conf to modify classpath..
Raj -
ORA-12705: Cannot access NLS data files or invalid environment specified
Hi,
I am using Oracle 10g Express, ojdbc14.jar , apache tomcat 5 server on Linux (Fedora 6).
In CustDisp.JSP I have following code:
<%
try {
Class.forName ("oracle.jdbc.driver.OracleDriver").newInstance();
out.println("JDBC driver loaded.<br>");
catch (ClassNotFoundException e) {
%>
error :<br>
<%=e.toString() %>
<%
String sql = "SELECT custid, fname, lname FROM customers";
try {
Connection con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","myid", "mypassword");
out.println("Connection made.<br><br>");
Statement s = con.createStatement();
ResultSet rs = s.executeQuery(sql);
%>
When Itry to access http://localhost:8080/jsps/CustDisp.jsp,I get following error:
java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1 ORA-12705: Cannot access NLS data files or invalid environment specified.
When I display enviorenment parameters in this JSP, I get follwing:
JDBC driver loaded.
Oracle Home = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server
Language = en_US.UTF8
NLS Language = AMERICAN_AMERICA.AL32UTF8
Path = /usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin
Class Path = /usr/lib/jvm/java/lib/tools.jar:/usr/share/tomcat5/bin/bootstrap.jar:/usr/share/tomcat5/bin/commons-logging-api.jar:/usr/share/java/mx4j/mx4j-impl.jar:/usr/share/java/mx4j/mx4j-jmx.jar
Charset = null
Home = /usr/share/tomcat5
Log Name = tomcat
LD LIB PATH = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/nls/data/ojdbc14.jar:
Locale = en_US
nls data directory : /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/nls/data
I have checked permissions for nls data folder, they are :
Owner: Oracle
Folder Access: Create and delete files
Group: Dba
Folder Access: Access files
Others
Folder Access: Access files
Execute: Allow executing file as program.
I have written a java program and used same drivers,customers table and connection i.e
Class.forName ("oracle.jdbc.driver.OracleDriver").newInstance();
String sql = "SELECT custid, fname, lname FROM customers";
Connection con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","myid", "mypassword");
it works fine and displays customers.
Only when I try to access my CustDisp.JSP, I get
java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1 ORA-12705: Cannot access NLS data files or invalid environment specified. Error.
Can some one please help me sorting out this problem?
Thanks in advance.
AQKHi,
Relevant code for CustDisp.JSP is given below:
<%@ page session="false" %>
<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="oracle.jdbc.*" %>
<%
try {
Class.forName ("oracle.jdbc.driver.OracleDriver").newInstance();
out.println("JDBC driver loaded.<br>");
catch (ClassNotFoundException e) {
%>
error :
<%=e.toString() %>
<%
String sql = "SELECT custid, fname, lname FROM customers";
try {
Connection con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","myid", "mypassword");
out.println("Connection made.<br><br>");
Statement s = con.createStatement();
ResultSet rs = s.executeQuery(sql);
%>
Permissions for nls data folder
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/nls/data/
are :
Owner: Oracle
Folder Access: Create and delete files
Group: tomcat
Folder Access: Access files
Others
Folder Access: Access files
Execute: Allow executing file as program.
In CustDisp.JSP I have following code which accesses ojdbc14.jar
// Check access to the nls data files.
cfile = "";
try{
File myfile = new File("/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/nls/data/ojdbc14.jar");
if (myfile.exists() == true){
cfile="ojdbc14.jar exists in the data directory. Its length is "+ myfile.length()+" It can be read =" myfile.canRead() " , can be written = " + myfile.canWrite();
}else{
cfile="ojdbc14.jar does not exist.";
catch (Exception er){
%>
error in reading file:<br>
<%=er.toString() %>
<%
This code gives following output:
File ojdbc14.jar exists in the data directory. Its length is 1536979 It can be read =true , can be written = false
Every things seems to be OK but when I try to access http://localhost:8080/jsps/CustDisp.jsp, Iget:
Sql Error:
java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1 ORA-12705: Cannot access NLS data files or invalid environment specified
Best regards.
AQK -
Help!
Error: (0) cannot access directory oracle\jbo\common\appmgr; verify that directory is reachable from classpath and/or sourcepath.
hi,
I am Yun Dai P.R.China nanchang
[email protected]
when I compile the *.jsp, I always get this error message,
My software settings:
Jdeveloper 3.1;
Oracle 8i RDBMS;
Win2000 server (sp1);
how can I solve this problem?
featureBean.java and feature.jsp:
feature.jsp:
<%@ page contentType="text/html;charset=WINDOWS-1252"%>
<%@ page language = "java" errorPage="errorpage.jsp" import = "java.util.*, oracle.jbo.*, javax.naming.*, oracle.jdeveloper.html.*, oracle.jbo.common.appmgr.*, oracle.jbo.html.databeans.*" %>
<%
// make sure the application is registered
oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPropertyFile(session, "package1_Package1Module");
%>
<html>
<head>
<LINK REL=STYLESHEET TYPE="text/css" HREF="<%=session.getValue("CSSURL")%>">
<title>Welcome to JDeveloper Auctions</title>
</head>
<body bgcolor="#FFFFFF" TEXT="black" BGCOLOR="#FFFFFF" LINK="#336699" ALINK="#6699CC" >
<p><br>
<table BORDER=0 CELLSPACING=0 CELLPADDING=4 WIDTH="100%" >
<tr><td BGCOLOR="#336699"><b><font face="Arial" color="#FFFFFF" >Today's Featured Items</font></b></td></tr>
</table>
<br>
<center>
<!-- Features Begin -->
<jsp:useBean class="auctionbeans.featureBean" id="features" scope="request" >
<%
features.initialize(application,session, request,response,out,"package1_Package1Module.srchItemsView");
features.render();
%>
</jsp:useBean>
<!-- Features End -->
</center>
</body> </html>
featureBean.java
package auctionbeans;
import java.io.*;
import oracle.jbo.*;
import oracle.jdeveloper.html.*;
public class featureBean extends oracle.jdeveloper.html.DataWebBeanImpl {
public void render() {
try
out.println( "<td> <!-- left panel featured items -->");
out.println( "");
out.println( "<font face=verdana,arial,helvetica size=-1><b>Today's Featured Items...</b></font>");
out.println( "<br clear=left>");
out.println( "");
out.println( "");
out.println( "<!-- item 1 -->");
out.println( "");
out.println( "<p>");
out.println( "<A href=\"srch_results.jsp?QRY=cat_id=10\">");
out.println( "<font face=verdana,arial,helvetica size=-1><b>In Software</b></font><br>");
out.println( "</a>");
out.println( "<strong><font face=verdana,arial,helvetica color=#cc6600> Oracle JDeveloper 3.0</font></strong><br>");
out.println( "");
out.println( "");
out.println( "");
out.println( "<table border=0 align=left cellpadding=0 cellspacing=0>");
out.println( "<tr>");
out.println( "<td>");
out.println( "<A href=\"BidsView_Browse.jsp?ITEMROWINDEX=39\">");
out.println( "<IMG border=0 src=\"/bc4jauctions/webapp/images/jdevlogo.gif\"></a>");
out.println( "</td></tr><tr><td><center><font face=verdana,arial,helvetica size=-2>");
out.println( "");
out.println( "<A href=\"BidsView_Browse.jsp?ITEMROWINDEX=39\">Details</a>");
out.println( "");
out.println( "</font></center>");
out.println( "</td></tr></table>");
out.println( "");
out.println( "<b>Oracle JDeveloper Suite 3.0</b> provides a complete and integrated Java development and deployment environment for");
out.println( "creating enterprise-scale, high performance e-bus iness applications.");
out.println( "<br>");
out.println( "<br>");
out.println( "Go to <A href=\"srch_results.jsp?QRY=cat_id=10\">Software</a>");
out.println( "<br clear=left>");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "<!-- item 3 --></p>");
out.println( "<p>");
out.println( "<font face=verdana,arial,helvetica size=-1><b>");
out.println( "<A href=\"srch_results.jsp?QRY=cat_id=1\">");
out.println( "In");
out.println( " Automotive</b></font><br></A>");
out.println( "<strong><font face=verdana,arial,helvetica color=#cc6600> 2000 BMW Z8</font></strong><br>");
out.println( "");
out.println( "");
out.println( "");
out.println( "<table border=0 align=left cellpadding=0 cellspacing=0><tr><td>");
out.println( "<A href=\"BidsView_Browse.jsp?ITEMROWINDEX=1\">");
out.println( "<IMG alt=\"\" border=0 src=\"/bc4jauctions/webapp/images/z8-sm.gif\" ></a>");
out.println( "</td></tr><tr><td><center><font face=verdana,arial,helvetica size=-2>");
out.println( "");
out.println( "<A href=\"BidsView_Browse.jsp?ITEMROWINDEX=1\">Details</a>");
out.println( "");
out.println( "</font></center>");
out.println( "</td></tr></table> <b>A 2000 BMW Z8 Featured in the new James Bond Thriller,");
out.println( "<a href=\"BidsView_Browse.jsp?ITEMROWINDEX=14\">'The World is Not Enough'</a></b> is now available! Are you looking for the");
out.println( " quintessence, the ultimate passion for driving? The");
out.println( " answer to this is: The BMW 8 Series coup? This");
out.println( " exquisite sports coupe turns mobility into an exhilarating");
out.println( " experience. The 8 Series is fascinating as a design");
out.println( " object, and is an impressive carrier of state-of-the-art");
out.println( " technology.</p>");
out.println( "<p>");
out.println( "");
out.println( "");
out.println( "");
out.println( "Go to <A href=\"srch_results.jsp?QRY=cat_id=1\">Automotive</a>");
out.println( "<br clear=left>");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "<!-- item 3 --></p>");
out.println( "<p>");
out.println( "<font face=verdana,arial,helvetica size=-1><b>");
out.println( "<A href=\"srch_results.jsp?QRY=cat_id=1\">");
out.println( "In");
out.println( " Automotive</b></font><br></A>");
out.println( "<strong><font face=verdana,arial,helvetica color=#cc6600> 1998 Acura NSX</font></strong><br>");
out.println( "");
out.println( "");
out.println( "");
out.println( "<table border=0 align=left cellpadding=0 cellspacing=0><tr><td>");
out.println( "<A href=\"BidsView_Browse.jsp?ITEMROWINDEX=2\">");
out.println( "<IMG alt=\"BidsView_Browse.jsp?ITEMROWINDEX=2\" border=0 src=\"/bc4jauctions/webapp/images/acura-sm.jpg\" ></a>");
out.println( "</td></tr><tr><td><center><font face=verdana,arial,helvetica size=-2>");
out.println( "");
out.println( "<A href=\"BidsView_Browse.jsp?ITEMROWINDEX=2\">Details</a>");
out.println( " ");
out.println( "</font></center>");
out.println( "</td></tr></table><b>A 1998 Acura NSX");
out.println( " has been put up for auction!</b> <br>A vehicle like the NSX comes along perhaps once in a generation. It");
out.println( "represents everything that motivates a passionate driver to get into cars.");
out.println( "It's the chance to design an exotic car from the ground up.</p>");
out.p rintln( "<p> ");
out.println( " ");
out.println( " ");
out.println( "");
out.println( "Go to <A href=\"srch_results.jsp?QRY=cat_id=1\">Automotive</a>");
out.println( "<br clear=left>");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "<!-- item 2 --></p>");
out.println( "");
out.println( "<p>");
out.println( "<A href=\"srch_results.jsp?QRY=cat_id=12\">");
out.println( "<font face=verdana,arial,helvetica size=-1><b>In Miscellaneous</b></font><br>");
out.println( "</a>");
out.println( "<strong><font face=verdana,arial,helvetica color=#cc6600> Lion King BroadWay Show Tickets</font></strong><br>");
out.println( "");
out.println( "");
out.println( "");
out.println( "<table border=0 align=left cellpadding=0 cellspacing=0><tr><td>");
out.println( "<A href=\"BidsView_Browse.jsp?ITEMROWINDEX=45\">");
out.println( "<IMG alt=\"\" border=0 src=\"/bc4jauctions/webapp/images/lking-sm.jpg\" ></a>");
out.println( "</td></tr><tr><td><center><font face=verdana,arial,helvetica size=-2>");
out.println( "");
out.println( "<A href=\"BidsView_Browse.jsp?ITEMROWINDEX=45\">Details</a>");
out.println( "");
out.println( "</font></center>");
out.println( "</td></tr></table><b>Act now to get Lion King BroadWay Show Tickets!</b> <br>We have Lion King broadway tickets for the orchestra, mezzanine and balcony sections available");
out.println( " for delivery today! The lion king has been the hottest broadway show ticket since it opened, and");
out.println( " the demand has not let down since winning six Tony award nominations. The lion king on");
out.println( " broadway is a fantastic show that you must see to appreciate.");
out.println( "");
out.println( "<p>");
out.println( "Go to <A href=\"srch_results.jsp?QRY=cat_id=12\"><U><FONT");
out.println( " color=#0000ff>Miscellaneous</FONT></U></a>");
out.println( "<br clear=left>");
out.println( "");
out.println( "");
out.println( "<br>");
out.println( "<br>");
out.println( "<center>");
out.println( "<img src=\"/bc4jauctions/webapp/images/bc4jvisa.gif\">");
out.println( "</center>");
out.println( "<br>");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "</td>");
out.println( "");
out.println( "");
out.println( "");
out.println( "");
out.println( "<!-- Left panel end -->");
out.println( "");
} catch(Exception ex)
throw new RuntimeException(ex.getMessage());
null<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by sarantos:
I had the same problem!What you have to do is to remove this statement from the import of every jsp (in the very first tag).<HR></BLOCKQUOTE>
I tried to do what you propose, it been compiled, but works not properly
null -
Dear Forum,
we are developing portlets for Portal 3.0.9.8. We use the default JPDK version, that comes with the standalone Oracle OC4J 9.0.4 bundled with PDK.
We want to improve our portlet by check the userid of the portal user. Therefore, we want to use oracle.portal.provider.v2.ProviderUser.getUser().getName()
in a JSP.
First - even before the method call - we included
<%@ page import="oracle.portal.provider.v2.http.ServletProviderUser" %>
But even this 1 statement gives in JDeveloper 9.0.4 with the libs pdkjava and ptlshare from the OC4J the following error:
Error: cannot access class oracle.security.jazn.realm.RealmUser; file oracle\security\jazn\realm\RealmUser.class not found
What is wrong here? What missing library we must include?
Thank You in advanceProblem solved. Need to include jazn.jar in project's lib-paths.
-
Error: cannot access class oracle.security.jazn.realm.RealmUser
Hi,
I try to compile this simple jsp, which use jpdkv2, with jdeveloper 9i.
But I obtain this error:
Error: cannot access class oracle.security.jazn.realm.RealmUser; file oracle\security\jazn\realm\RealmUser.class not found
Someone has an idea ?
Source code of my jsp:
<%@ page contentType="text/html;charset=windows-1252"%>
<%@page import = "oracle.portal.provider.v2.render.PortletRenderRequest" %>
<%@page import = "oracle.portal.provider.v2.http.HttpCommonConstants" %>
<%
PortletRenderRequest portletRequest = (PortletRenderRequest)
request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
%>
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<TITLE>
Hello World
</TITLE>
</HEAD>
<BODY>
<H2>
The current time is:
</H2>
<P>
<% out.println((new java.util.Date()).toString()); %>
</P>
<P>Hello: <%= portletRequest.getUser().getName() %></P>
</BODY>
</HTML>Please check if jazn.jar is available under your <YOUR_OC4J_PATH>\j2ee\home folder.
This library files contains all the security related classes required by jpdkv2 providers. -
I cannot access the Camera RAW dialogue box in PSE8 in windows 7. Is it possible?
I cannot access the Camera Raw Dialogue Box in PSE8 in windows 7. Is it possible?
I have PSEv.8 & WIN 7. I installed Camera raw three or four days ago without a problem, and it works just fine. Detailed directions are here:
http://www.adobe.com/support/downloads/detail.jsp?ftpID=4810 -
Cannot access directory javax/servlet
I am having a problem getting started here with Borland JBuilder 8 SE.
I have Tomcat installed and it runs fine with the servlets/jsp pages I ran from the index page when you first install Tomcat.
I am running windows 2000. When I installed JBuilder the Java 2 SDK v1.4.1 was installed with it. I have run applets... java.exe is located in the jbuilder folder, don't know if this is a problem. I have set my JAVA_HOME environment variable to point to the bin folder in the 1.4.1 java.exe location.
I am following a book that works with servlets and jsp primarily. When I typed in my first servlet that I copied from the book, JBuilder gives me a document location error:
cannot access directory: javax/servlet at line...
it is pointing to my import statement: "import javax.servlet.*;" and "import javax.servlet.http.*;".
I have tried to add the servlet.jar file to my project but the results are the same.
Can anybody give me a hand?
thanks,
RobThe fastest way for JBuilder to see it is just to create a library for servlet.jar and add it to the project.
Tools->Configure Libraries->New
Then browse to the location of the servlet.jar and call the library SERVLET.
Project->Project Settings->Required Libraries
Then add this library and try to build your project.
JBuilder will automatically add it to the classpath when it compiles the project that way. -
Hi,
We are trying to do this:
- precompile foo.jsp to foo.class offline;
- copy foo.class and foo.jsp into a machine weblogic is running,
maintain their timestamp when they are compiled and generated;
- when accessing foo.jsp, we hope weblogic will load the precompiled
foo.class, instead of recompile the foo.jsp again.
This works well if foo.jsp has not been access (not loaded into
weblogic yet). BUT, if foo.jsp is accessed before (loaded into
weblogic), the new foo.jsp is always recompiled.
We can hot deploy the compiled foo.class using servlet hot deploy,
but we do not want to use the console. (Is there a command line thing
to do servlet hot deploy)?
Is there any other way to do this? The goal -- precompile .jsp,
server reload the changed .class, never compile .jsp on server.
We are using WebLogic 5.1.0 with service pack3.
Any help appreciated.
Thanks,
-- JinThis is a good question. I will ask the developers.
Thanks,
Michael
Michael Girdley
Product Manager, WebLogic Server & Express
BEA Systems Inc
Jin Hong <[email protected]> wrote in message news:[email protected]..
>
Hi,
We are trying to do this:
- precompile foo.jsp to foo.class offline;
- copy foo.class and foo.jsp into a machine weblogic is running,
maintain their timestamp when they are compiled and generated;
- when accessing foo.jsp, we hope weblogic will load the precompiled
foo.class, instead of recompile the foo.jsp again.
This works well if foo.jsp has not been access (not loaded into
weblogic yet). BUT, if foo.jsp is accessed before (loaded into
weblogic), the new foo.jsp is always recompiled.
We can hot deploy the compiled foo.class using servlet hot deploy,
but we do not want to use the console. (Is there a command line thing
to do servlet hot deploy)?
Is there any other way to do this? The goal -- precompile .jsp,
server reload the changed .class, never compile .jsp on server.
We are using WebLogic 5.1.0 with service pack3.
Any help appreciated.
Thanks,
-- Jin -
Hi,
We're using split-directory. Our jsps live inside of WEB-INF to protect them from
direct accessing. Only the Servlet controller can access jsps. A few questions
here:
1. How can I precompile jsps at the compilation time? Appc doesn't work, since
it assumes jsps always live outside of the WEB-INF.
2. Where is the output directory that we should set if we can precompile. Our
jsps are located in WEB-INF/jsps.
3. Right now we leave the server compile them on fly. But where the compiled classes
are stored on the server. We deploy the EAR to the server.
Thanks!Hi,
1) Thanks for pointing this out. Indeed appc & jspc (8.1) don't compile jsps
under WEB-INF and the CR associated with this bug is CR133172. Please
contact [email protected] to obtain a patch for this issue.
2) If appc were used on a split directory ear, the .class files for the
jsps are copied into the destination directory of the split dir (more
specifically into the webapp module's WEB-INF/classes being compiled)
3) When compiled at runtime, the default outputDirectory is under the server
temp dirs : .wlnotdelete/extract/<server-name>_<app/ear-name>_<module-name>/
--Nagesh
"Kelly" <[email protected]> wrote in message
news:40771782$[email protected]..
>
Hi,
We're using split-directory. Our jsps live inside of WEB-INF to protectthem from
direct accessing. Only the Servlet controller can access jsps. A fewquestions
here:
1. How can I precompile jsps at the compilation time? Appc doesn't work,since
it assumes jsps always live outside of the WEB-INF.
2. Where is the output directory that we should set if we can precompile.Our
jsps are located in WEB-INF/jsps.
3. Right now we leave the server compile them on fly. But where thecompiled classes
are stored on the server. We deploy the EAR to the server.
Thanks! -
Class cannot access its superinterface
We're migrating an application from jDeveloper 9 to jDeveloper 10g (10.1.3.5), and have got almost everything working on the new server.
However, one thing is not working: whenever a DataTable is set up with an edittarget (to edit a row in a new webpage, and where state is maintained via a cookie),
I get an error message in the resulting webpage.
Here is an example of such an editable DataTable:
<jbo:DataTable datasource="dsPrisliste" edittarget="ApPristilbudView_Edit.jsp" /> The "intermediate" file, ApPristilbudView_Edit.jsp, essentially does the following:
<%@ page language="java" import="oracle.jbo.html.*, oracle.jbo.http.*" errorPage="errorpage.jsp" contentType="text/html;charset=windows-1252" %>
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<html>
<head>
<META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
</head>
<body>
%>
<jbo:ApplicationModule id="am" configname="myApp.bc.BcModSalgsRapp.BcModSalgsRappLocal" releasemode="Reserved" />
<%
session.setAttribute("ApPristilbud_am", am);
%>
<jbo:DataSource id="ds" appid="am" viewobject="ApPristilbudView" />
<h4>Pristilbud</h4>
<jbo:DataEdit datasource="ds" relativeUrlPath="DataEditApPristilbudComp.jsp" />
<jbo:ReleasePageResources />
</body>
</html> which results in the error message:
<font size="3">
Error Message: class oracle.jbo.http.HttpSessionCookieImpl cannot access its superinterface oracle.jbo.http.BindingListener
</font>
<font size="3" color="blue">
<tt>
Pristilbud
Application Error
Error Message: class oracle.jbo.http.HttpSessionCookieImpl cannot access its superinterface oracle.jbo.http.BindingListener
Ugyldig klasse: oracle.jbo.http.HttpSessionCookieImpl Laster: approd.web.aptest:0.0.0
Kodekilde: /D:/oracle/10.1.3.1/OracleAS/j2ee/OC4J_approd/applications/approd/aptest/WEB-INF/lib/bc4jhtml.jar Konfigurasjon: WEB-INF/lib/ directory in D:\oracle\10.1.3.1\OracleAS\j2ee\OC4J_approd\applications\approd\aptest\WEB-INF\lib
Avhengig klasse: DataEditApPristilbudComp Laster: approd.web.aptest.jsp32124385:0.0.0 Kodekilde: /D:/oracle/10.1.3.1/OracleAS/j2ee/OC4Japprod/application-deployments/approd/aptest/persistence/_pages/
Konfigurasjon: *.jsp in D:\oracle\10.1.3.1\OracleAS\j2ee\OC4J_approd\application-deployments\approd\aptest\persistence\_pages
javax.servlet.jsp.JspTagException: class oracle.jbo.http.HttpSessionCookieImpl cannot access its superinterface oracle.jbo.http.BindingListener
Ugyldig klasse: oracle.jbo.http.HttpSessionCookieImpl
Laster: approd.web.aptest:0.0.0
Kodekilde: /D:/oracle/10.1.3.1/OracleAS/j2ee/OC4J_approd/applications/approd/aptest/WEB-INF/lib/bc4jhtml.jar
Konfigurasjon: WEB-INF/lib/ directory in D:\oracle\10.1.3.1\OracleAS\j2ee\OC4J_approd\applications\approd\aptest\WEB-INF\lib
Avhengig klasse: _DataEditApPristilbudComp
Laster: approd.web.aptest.jsp32124385:0.0.0
Kodekilde: /D:/oracle/10.1.3.1/OracleAS/j2ee/OC4J_approd/application-deployments/approd/aptest/persistence/_pages/
Konfigurasjon: *.jsp in D:\oracle\10.1.3.1\OracleAS\j2ee\OC4J_approd\application-deployments\approd\aptest\persistence\_pages
at oracle.jbo.html.jsp.datatags.ComponentTag.doStartTag(ComponentTag.java:70)
at ApPristilbudView_Edit._jspService(_ApPristilbudView__Edit.java:119)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
</tt></font>
Unfortunately, parts of that is in Norwegian:
Laster = Loading
Ugyldig klasse = invalid class
Avhengig klasse = invalid class
Kodekilde: Code source
What can I try, to fix this problem? Obviously, this is a run-time error (I get no warnings or errors during compilation), so perhaps something is incorrectly configured on the server container instance ("OC4J_approd")?
I should also mention that this (i.e., editing data) works perfectly when I run the application on the local server (from within JDeveloper)...
- j
Edited by: joakim00 on Dec 7, 2012 1:04 AMWe're migrating an application from jDeveloper 9 to jDeveloper 10g (10.1.3.5), and have got almost everything working on the new server.
However, one thing is not working: whenever a DataTable is set up with an edittarget (to edit a row in a new webpage, and where state is maintained via a cookie),
I get an error message in the resulting webpage.
Here is an example of such an editable DataTable:
<jbo:DataTable datasource="dsPrisliste" edittarget="ApPristilbudView_Edit.jsp" /> The "intermediate" file, ApPristilbudView_Edit.jsp, essentially does the following:
<%@ page language="java" import="oracle.jbo.html.*, oracle.jbo.http.*" errorPage="errorpage.jsp" contentType="text/html;charset=windows-1252" %>
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<html>
<head>
<META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
</head>
<body>
%>
<jbo:ApplicationModule id="am" configname="myApp.bc.BcModSalgsRapp.BcModSalgsRappLocal" releasemode="Reserved" />
<%
session.setAttribute("ApPristilbud_am", am);
%>
<jbo:DataSource id="ds" appid="am" viewobject="ApPristilbudView" />
<h4>Pristilbud</h4>
<jbo:DataEdit datasource="ds" relativeUrlPath="DataEditApPristilbudComp.jsp" />
<jbo:ReleasePageResources />
</body>
</html> which results in the error message:
<font size="3">
Error Message: class oracle.jbo.http.HttpSessionCookieImpl cannot access its superinterface oracle.jbo.http.BindingListener
</font>
<font size="3" color="blue">
<tt>
Pristilbud
Application Error
Error Message: class oracle.jbo.http.HttpSessionCookieImpl cannot access its superinterface oracle.jbo.http.BindingListener
Ugyldig klasse: oracle.jbo.http.HttpSessionCookieImpl Laster: approd.web.aptest:0.0.0
Kodekilde: /D:/oracle/10.1.3.1/OracleAS/j2ee/OC4J_approd/applications/approd/aptest/WEB-INF/lib/bc4jhtml.jar Konfigurasjon: WEB-INF/lib/ directory in D:\oracle\10.1.3.1\OracleAS\j2ee\OC4J_approd\applications\approd\aptest\WEB-INF\lib
Avhengig klasse: DataEditApPristilbudComp Laster: approd.web.aptest.jsp32124385:0.0.0 Kodekilde: /D:/oracle/10.1.3.1/OracleAS/j2ee/OC4Japprod/application-deployments/approd/aptest/persistence/_pages/
Konfigurasjon: *.jsp in D:\oracle\10.1.3.1\OracleAS\j2ee\OC4J_approd\application-deployments\approd\aptest\persistence\_pages
javax.servlet.jsp.JspTagException: class oracle.jbo.http.HttpSessionCookieImpl cannot access its superinterface oracle.jbo.http.BindingListener
Ugyldig klasse: oracle.jbo.http.HttpSessionCookieImpl
Laster: approd.web.aptest:0.0.0
Kodekilde: /D:/oracle/10.1.3.1/OracleAS/j2ee/OC4J_approd/applications/approd/aptest/WEB-INF/lib/bc4jhtml.jar
Konfigurasjon: WEB-INF/lib/ directory in D:\oracle\10.1.3.1\OracleAS\j2ee\OC4J_approd\applications\approd\aptest\WEB-INF\lib
Avhengig klasse: _DataEditApPristilbudComp
Laster: approd.web.aptest.jsp32124385:0.0.0
Kodekilde: /D:/oracle/10.1.3.1/OracleAS/j2ee/OC4J_approd/application-deployments/approd/aptest/persistence/_pages/
Konfigurasjon: *.jsp in D:\oracle\10.1.3.1\OracleAS\j2ee\OC4J_approd\application-deployments\approd\aptest\persistence\_pages
at oracle.jbo.html.jsp.datatags.ComponentTag.doStartTag(ComponentTag.java:70)
at ApPristilbudView_Edit._jspService(_ApPristilbudView__Edit.java:119)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
</tt></font>
Unfortunately, parts of that is in Norwegian:
Laster = Loading
Ugyldig klasse = invalid class
Avhengig klasse = invalid class
Kodekilde: Code source
What can I try, to fix this problem? Obviously, this is a run-time error (I get no warnings or errors during compilation), so perhaps something is incorrectly configured on the server container instance ("OC4J_approd")?
I should also mention that this (i.e., editing data) works perfectly when I run the application on the local server (from within JDeveloper)...
- j
Edited by: joakim00 on Dec 7, 2012 1:04 AM
Maybe you are looking for
-
Doubt in concepts and scenarios where used
doubt in differentiating and scenarios for below. statistics Vs document update - i already know the definitions of V1 V2 V3 updates, pls dont give defn links conditions Vs global filters in QD and scenarios btree/bitmap index and s
-
Vendor line item analysis.
Hi, This company enters into a variety of transactions with a vendor, say, it buys materials, pays advance for purchase of asset, buys some services. The user wants to be able to display the vendor line items segregated into (1) materials (2) assets
-
Interactive ALV Heirarchial report!!!
Hi all, In the below program the user command is not working as an error saying 'type conflict with actual and formal parameters' is getting occured. *& Report ZALV_HIERARCHIAL_REPORT * REPORT ZALV_HIERARCHIAL_RE
-
HT1222 I dont know how to register in optional email
Teach me how to register in optional email
-
I've been working in Dreamweaver CS5 for a while now. I've been able to update pages and then sychronizes the new pages without a problem. I have been trying to update a few web pages. I make sure that I'm connected to the remote server, I click on t