Error in forwarding to other jsp page
HI ,
I am trying to move from one page to other page by using jsp:forward.
I get the following error. what might be the problem.
java.lang.NullPointerException at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:688) at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:658) at org.apache.jsp.jsp.listing.controller_jsp._jspService(controller_jsp.java:329) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.businessobjects.webutil.encoding.EncodingFilter.doFilter(EncodingFilter.java:24) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595)
>
HI ,
I am trying to move from one page to other page by using jsp:forward. That sounds like a really bad idea, or possibly a misunderstanding of what forwarding means.
I get the following error. what might be the problem.
That the path you are giving to the forward entity is not valid. Forward depends on the target URI being within the same web application and the URI should be a simple path.
Similar Messages
-
Implementing Database codes FAIL /error in parsing data into jsp page
Hi there,
I have this problem trying to build a portal application. I am using the JSPDynPage, jsp page and a bean to build a page.
I have this problem parsing data from JSPDynPage to the beans and to the jsp page.
I tested out the connection between the beans and the jsp page. There is no error parsing information from the beans to the jsp page.
So i tried to test out the codes for the database from the beans.
Will this work? Because it does not display the results i want.
I need an Solution asap to find out wad is wrong also also the correct codes to the database.
public String db(){
try {
InitialContext iC = new InitialContext();
DataSource dataSource = (DataSource)iC.lookup("java:env/jdbc/mySQL");
java.sql.Connection connection = dataSource.getConnection();
PreparedStatement st = connection.prepareStatement("SELECT name FROM test WHERE id='123'");
ResultSet resultSet = st.executeQuery();
while (resultSet.next()){
name = resultSet.getString("name");
name = name.toString();
connection.close();
return name;
} catch(Exception n){
e = "Exception";
return e;
This is the method i put in the beans to test out the database connection.
Thanks Loads
QuatreHi there,
Thanks for the reply, i thought that no one is going to reply me anymore. Thanks loads.
Bean Class name: Bean1
Bean Packeage name: Beans1
Bean id : myBean1
Jsp Codes
<%@ taglib uri="tagLib" prefix="hbj" %>
<jsp:useBean id="myBean1" scope="application" class="Beans1.Bean1" />
<hbj:content id="myContext" >
<hbj:page title="PageTitle">
<hbj:form id="myFormId" >
<hbj:textView id = "ll" text="lalalalalalalalalasasa" />
<%--
<hbj:textView id = "l">
<% l.setName(myBean1.getName());%>
</hbj:textView>
--%>
<hbj:textView
id="appraisal_yr_label"
text="Apprasial Year:">
</hbj:textView>
<hbj:textView id = "la" >
<% la.setText(myBean1.getName());%>
</hbj:textView>
</hbj:form>
</hbj:page>
</hbj:content>
Beans1.java
package Beans1;
import java.io.Serializable;
public class Bean1 implements Serializable{
private String name = new String();
private String e = new String();
private String year = new String();
public void setName(String name){
this.name = name;
public String getName(){
return name;
JSPDynPage
import Beans1.Bean1;
import com.sapportals.htmlb.*;
import com.sapportals.htmlb.enum.*;
import com.sapportals.htmlb.event.*;
import com.sapportals.htmlb.page.*;
import com.sapportals.portal.htmlb.page.*;
import com.sapportals.portal.prt.component.*;
public class testDBv5 extends PageProcessorComponent {
import Beans1.Bean1;
import com.sapportals.htmlb.*;
import com.sapportals.htmlb.enum.*;
import com.sapportals.htmlb.event.*;
import com.sapportals.htmlb.page.*;
import com.sapportals.portal.htmlb.page.*;
import com.sapportals.portal.prt.component.*;
public class testDBv5 extends PageProcessorComponent {
public DynPage getPage(){
return new testDBv5DynPage();
public static class testDBv5DynPage extends JSPDynPage{
private Bean1 myBean1= null;
private String name = new String();
public void doInitialization(){
try{
IntitialContext context = new javax.naming.InitialContext();
DataSource dataSource = (DataSource)context.lookup("java:env/jdbc/appDB");
Connection connection = dataSource.getConnection();
Statement stmt = connection.createStatement();
ResultSet rs = stmt.executeQuery("Select AppraisalYear From tblAppraisal Where AppraisalYear='2007'");
while(rs.next()){
year = rs.getString("AppraisalYear");
rs.close();
stmt.close();
connection.close();
return year;
}catch (Exception n){
n.printStackTrace();
IPortalComponentProfile profile = ((IPortalComponentRequest)getRequest()).getComponentContext().getProfile();
Object o = profile.getValue("myBean1");
if(o==null || !(o instanceof Bean1)){
myBean1 = new Bean1();
profile.putValue("myBean1",myBean1);
} else {
myBean1 = (Bean1) o;
Object value = request.getSession().getValue("myBeans1");
if (value==null || (value instanceof Bean1)){
myBean1 = new Bean1();
request.getSession().putValue("myBean1", Object value);
DataBase cn = new DataBase();
name = cn.dataBaseConnection();
myBean1.setName(name);
//name = "gir";
//myBean1.setName(name);
// IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
//IPortalComponentContext myContext = request.getComponentContext();
//Bean1 myNameContainer = (Bean1) myContext.getValue("myBean1");
//myNameContainer.setName(name);
// fill your bean with data here...
public void doProcessAfterInput() throws PageException {
public void doProcessBeforeOutput() throws PageException {
this.setJspName("testDBv5.jsp");
//testing purpose
public static void main (String[] arg){
testDBv5DynPage ef = new testDBv5DynPage();
ef.doInitialization();
Thanks Loads
Quatre -
Error when I executed my JSP page
Hello,
I have installed in my machine o OracleAS e o OracleDS. I created a JSP page using Reports Builder. When I try run my page, after some time, the following error message is displayed in the browser:
Reports Error Page
Wed Jun 19 10:08:29 BRT 2002
javax.servlet.jsp.JspException: REP-51002: Falha na Ligagco ao Servidor de Relatsrios rep60_mariana
javax.servlet.jsp.JspException: REP-51002: Falha na Ligagco ao Servidor de Relatsrios rep60_mariana
int oracle.reports.jsp.ReportTag.doStartTag()
void MyReport.jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
void com.evermind.util.ThreadPoolThread.run()
Someone could help me?
Thanks.
Carlahello,
this error message is when the report cound not contact the specified report server. since you are saying you are on windows NT i assume you try to run the report using the OC4J instance that comes with iDS.
take a look at the HOW TO article "How to Execute Oracle9iAS Reports Services from Oracle9iDS" in Getting Started with Oracle9i Reports (http://otn.oracle.com/docs/products/reports/htdocs/doc_library/getstart/GettingStarted/whatsnew.html)
it describes the necessary configuration you have to do to run a report there for testing.
regards,
philipp -
Error while trying to run JSP page in Jdev
I have integrated BPEL and business rules and it has a task form so if I am trying to run JSP page in JDeveloper, it gives below
error:
[Starting OC4J using the following ports: HTTP=8989, RMI=23892, JMS=9228.]
D:\Oracle-SaaS\Downloads\jdevstudio10131\jdev\system\oracle.j2ee.10.1.3.39.84\embedded-oc4j\config>
D:\Oracle-SaaS\Downloads\jdevstudio10131\jdk\bin\javaw.exe -client -classpath D:\Oracle-SaaS\Downloads\jdevstudio10131\j2ee\home\oc4j.jar;D:\Oracle-SaaS\Downloads\jdevstudio10131\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config D:\Oracle-SaaS\Downloads\jdevstudio10131\jdev\system\oracle.j2ee.10.1.3.39.84\embedded-oc4j\config\server.xml
[waiting for the server to complete its initialization...]
09/08/05 12:28:20 Error initializing server: At least one valid code-source or import-shared-library element is required for shared-library "global.libraries" in /D:/Oracle-SaaS/Downloads/jdevstudio10131/jdev/system/oracle.j2ee.10.1.3.39.84/embedded-oc4j/config/server.xml.
09/08/05 12:28:20 Fatal error: server exiting
Process exited with exit code 1.Looks lik eyou have not specified the correct shared libraries in your server.xml. Also, ensure that you have added the libraries in the right order in your BPEL Project in JDev.
-
Problem in forwarding to a jsp page
Hi everyBody,
I m forwarding a jsp to another jsp page and i m using
" <jsp:forward page = "searchForm.jsp"/>"
it printing statement that i have written jst before that.
but when it comes to that statement it is giving
"Servlet Exception :Cannot forward after response has been committed "
why so?
can any one help me?
i m also using struts.
thanks in advance
shobhitHi snma,
This is probably happening because you commited the response twice. Maybe you�ve used the ActionForward object, to forward the response and after forward it, you�ve tried to re-forward using the jsp tag.
the HttpServletResponse has a isCommited() method that can check if the response was commited . -
Errors when compiling my first jsp page in JDev. Help please....
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/customizable" prefix="cust"%>
HI everyone in my page.jsp at the line shown above is mark as error and the and the code assists help propose me to:-
1) install jsp tag library
2) Remove unused tag directive
If i do the second i get two more errors. which are
1) OrionHttpJspPage not found in class _untitled1
2) method getPageContext(_untitled1, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, null, boolean, int, boolean) not found in class javax.servlet.jsp.JspFactory
Can anyone help me plz how to do the install jsp tag library and what are the library to install and how to do it thanks a lot
Am really new to ADF and JSF.
Thanks a lot
LutchumayaAdd the Customizable Components Core library to classpath.
To deploy to a web application WAR file add the Customizable Components Core library to WEB-INF/lib. -
Error While Running JasperReport in JSP Page
Dear All
i am running Report JasperReport using JSP and i am sure that i attached jasperreports-3.0.0.jar and i am getting this error
net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:4: package net.sf.jasperreports.engine does not exist
import net.sf.jasperreports.engine.*;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:5: package net.sf.jasperreports.engine.fill does not exist
import net.sf.jasperreports.engine.fill.*;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:18: cannot find symbol
symbol: class JREvaluator
public class PDFReport_1279813100172_968010 extends JREvaluator
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:25: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
private JRFillParameter parameter_REPORT_LOCALE = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:26: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
private JRFillParameter parameter_REPORT_TIME_ZONE = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:27: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
private JRFillParameter parameter_REPORT_VIRTUALIZER = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:28: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
private JRFillParameter parameter_REPORT_FILE_RESOLVER = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:29: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
private JRFillParameter parameter_ReportTitle = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:30: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
private JRFillParameter parameter_REPORT_SCRIPTLET = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:31: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
private JRFillParameter parameter_REPORT_PARAMETERS_MAP = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:32: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
private JRFillParameter parameter_REPORT_CONNECTION = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:33: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
private JRFillParameter parameter_REPORT_CLASS_LOADER = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:34: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
private JRFillParameter parameter_REPORT_DATA_SOURCE = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:35: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
private JRFillParameter parameter_REPORT_URL_HANDLER_FACTORY = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:36: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
private JRFillParameter parameter_IS_IGNORE_PAGINATION = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:37: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
private JRFillParameter parameter_REPORT_FORMAT_FACTORY = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:38: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
private JRFillParameter parameter_REPORT_MAX_COUNT = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:39: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
private JRFillParameter parameter_REPORT_TEMPLATES = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:40: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
private JRFillParameter parameter_REPORT_RESOURCE_BUNDLE = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:41: cannot find symbol
symbol : class JRFillField
location: class PDFReport_1279813100172_968010
private JRFillField field_Publisher = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:42: cannot find symbol
symbol : class JRFillField
location: class PDFReport_1279813100172_968010
private JRFillField field_CatalogId = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:43: cannot find symbol
symbol : class JRFillField
location: class PDFReport_1279813100172_968010
private JRFillField field_Journal = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:44: cannot find symbol
symbol : class JRFillField
location: class PDFReport_1279813100172_968010
private JRFillField field_Edition = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:45: cannot find symbol
symbol : class JRFillField
location: class PDFReport_1279813100172_968010
private JRFillField field_Author = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:46: cannot find symbol
symbol : class JRFillField
location: class PDFReport_1279813100172_968010
private JRFillField field_Title = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:47: cannot find symbol
symbol : class JRFillVariable
location: class PDFReport_1279813100172_968010
private JRFillVariable variable_PAGE_NUMBER = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:48: cannot find symbol
symbol : class JRFillVariable
location: class PDFReport_1279813100172_968010
private JRFillVariable variable_COLUMN_NUMBER = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:49: cannot find symbol
symbol : class JRFillVariable
location: class PDFReport_1279813100172_968010
private JRFillVariable variable_REPORT_COUNT = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:50: cannot find symbol
symbol : class JRFillVariable
location: class PDFReport_1279813100172_968010
private JRFillVariable variable_PAGE_COUNT = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:51: cannot find symbol
symbol : class JRFillVariable
location: class PDFReport_1279813100172_968010
private JRFillVariable variable_COLUMN_COUNT = null;
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:74: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
parameter_REPORT_LOCALE = (JRFillParameter)pm.get("REPORT_LOCALE");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:75: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
parameter_REPORT_TIME_ZONE = (JRFillParameter)pm.get("REPORT_TIME_ZONE");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:76: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
parameter_REPORT_VIRTUALIZER = (JRFillParameter)pm.get("REPORT_VIRTUALIZER");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:77: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
parameter_REPORT_FILE_RESOLVER = (JRFillParameter)pm.get("REPORT_FILE_RESOLVER");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:78: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
parameter_ReportTitle = (JRFillParameter)pm.get("ReportTitle");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:79: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
parameter_REPORT_SCRIPTLET = (JRFillParameter)pm.get("REPORT_SCRIPTLET");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:80: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
parameter_REPORT_PARAMETERS_MAP = (JRFillParameter)pm.get("REPORT_PARAMETERS_MAP");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:81: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
parameter_REPORT_CONNECTION = (JRFillParameter)pm.get("REPORT_CONNECTION");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:82: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
parameter_REPORT_CLASS_LOADER = (JRFillParameter)pm.get("REPORT_CLASS_LOADER");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:83: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
parameter_REPORT_DATA_SOURCE = (JRFillParameter)pm.get("REPORT_DATA_SOURCE");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:84: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
parameter_REPORT_URL_HANDLER_FACTORY = (JRFillParameter)pm.get("REPORT_URL_HANDLER_FACTORY");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:85: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
parameter_IS_IGNORE_PAGINATION = (JRFillParameter)pm.get("IS_IGNORE_PAGINATION");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:86: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
parameter_REPORT_FORMAT_FACTORY = (JRFillParameter)pm.get("REPORT_FORMAT_FACTORY");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:87: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
parameter_REPORT_MAX_COUNT = (JRFillParameter)pm.get("REPORT_MAX_COUNT");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:88: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
parameter_REPORT_TEMPLATES = (JRFillParameter)pm.get("REPORT_TEMPLATES");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:89: cannot find symbol
symbol : class JRFillParameter
location: class PDFReport_1279813100172_968010
parameter_REPORT_RESOURCE_BUNDLE = (JRFillParameter)pm.get("REPORT_RESOURCE_BUNDLE");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:98: cannot find symbol
symbol : class JRFillField
location: class PDFReport_1279813100172_968010
field_Publisher = (JRFillField)fm.get("Publisher");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:99: cannot find symbol
symbol : class JRFillField
location: class PDFReport_1279813100172_968010
field_CatalogId = (JRFillField)fm.get("CatalogId");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:100: cannot find symbol
symbol : class JRFillField
location: class PDFReport_1279813100172_968010
field_Journal = (JRFillField)fm.get("Journal");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:101: cannot find symbol
symbol : class JRFillField
location: class PDFReport_1279813100172_968010
field_Edition = (JRFillField)fm.get("Edition");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:102: cannot find symbol
symbol : class JRFillField
location: class PDFReport_1279813100172_968010
field_Author = (JRFillField)fm.get("Author");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:103: cannot find symbol
symbol : class JRFillField
location: class PDFReport_1279813100172_968010
field_Title = (JRFillField)fm.get("Title");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:112: cannot find symbol
symbol : class JRFillVariable
location: class PDFReport_1279813100172_968010
variable_PAGE_NUMBER = (JRFillVariable)vm.get("PAGE_NUMBER");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:113: cannot find symbol
symbol : class JRFillVariable
location: class PDFReport_1279813100172_968010
variable_COLUMN_NUMBER = (JRFillVariable)vm.get("COLUMN_NUMBER");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:114: cannot find symbol
symbol : class JRFillVariable
location: class PDFReport_1279813100172_968010
variable_REPORT_COUNT = (JRFillVariable)vm.get("REPORT_COUNT");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:115: cannot find symbol
symbol : class JRFillVariable
location: class PDFReport_1279813100172_968010
variable_PAGE_COUNT = (JRFillVariable)vm.get("PAGE_COUNT");
^
C:\Users\ORACLE\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\PDFReport_1279813100172_968010.java:116: cannot find symbol
symbol : class JRFillVariable
location: class PDFReport_1279813100172_968010
variable_COLUMN_COUNT = (JRFillVariable)vm.get("COLUMN_COUNT");
^
57 errors
at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:193)
at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:219)
at jsp_servlet.__catalog._jspService(__catalog.java:84)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:416)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:326)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Edited by: ORA ORA on Jul 22, 2010 1:35 PMWell, apparently the JSP compiler cannot see the japser report files, simple as that. You may want to ask on a Jasper-related forum for how to deploy Jasper Reports libraries to WLS.
John -
JSP on BEA Weblogic: random error when loading a jsp page that uses a Bean
Hi!
I wrote a simple jsp page that stores a String in a JavaBean, and then forwards to another jsp page to display that String. The jsp pages are deployed on a BEA Weblogic 6 Server, but I get a weird behaviour when loading the page into my browser. Usually I get an error message:
/Response.jsp(9): class 'query.jsp.QueryBean' could not be loaded
probably occurred due to an error in /Query.jsp line 9:
<jsp:useBean id = "queryBean" scope = "request" class = "query.jsp.QueryBean" />
But the funny thing is that after reloading the page a few times it eventually works. The bahaviour seems to be totally random - sometimes it works, sometimes it claims not finding the JavaBean class.
Anyone experienced something similar?
Thank you very much,
CharlieIs QueryBean.class located under '<appname>/Web_inf/query/jsp/'?
If it is please try changing the package name to something else like com.myclass or something like that. -
How to forward a jsp page in flex application ( when a button is clicked)
i am a fresher to this FLEX 2.0 , i designed the UI part in
flex, but when i click the submit button it has to forward to the
JSP page to check against the valid user,password , so how to
forward the page to jsp(i mean from flex to jsp) , if u can suggest
me with an example, it will be easy for me, is Flex Data Service 2
is necessary for this
thanks for ur speedy reply, hopping to get the solution for
this issue,
sandeepYour JSP is, as far as Flex is concerned, just a data service
which it will request and read its response. I'd suggest using
<mx:HTTPService>. For example:
<mx:HTTPService id="authorize" url="validate.jsp"
fault="handleFault(event)" result="handleResult(event)">
<mx:request>
<userid>{username.text}</userid>
<password>{password.text}</password>
</mx:request>
</mx:HTTPService>
Flex creates the request:
http://{server}.{port}{context.root}/validate.jsp?userid=fred&password=flintstone
assuming that you have <mx:TextInput id="username" />
and <mx:TextInput id="password" /> components.
Your Submit button then does: authorize.send()
(note: you can also pass the request parameters in the send()
method - check the Flex docs on HTTPService).
Flex will listen for the response from your JSP. Typically a
JSP would respond with an HTML page, but you don't want to do that
for Flex. Your JSP should produce either a simple string ("yes" or
"no" or "error" etc) or an XML document.
The handleResult method can examine the response and do
what's necessary. -
I have an error showing up for my JSP page, where no error should be.
The page looks like:
<%@ page import="atg.servlet.ServletUtil" %>
<%@ taglib uri="dsp" prefix="dsp" %>
<%@ taglib uri="c" prefix="c" %>
<dsp:page>
<dsp:importbean bean="/rh/configurator/service/ProductService"/>
<dsp:importbean bean="/atg/dynamo/droplet/ForEach"/>
<dsp:importbean bean="/rh/configurator/Configuration"/>
<dsp:importbean bean="/rh/configurator/formhandler/ConfiguratorFormHandler"/>
<dsp:importbean bean="/rh/configurator/droplet/PossibleOptionsDroplet"/>
<p>
<dsp:valueof bean="Configuration.question[bean:ProductService.currentSize]"/>
<!-- Current index = <dsp:valueof bean="ProductService.currentIndex"/> -->
</p>
<dsp:form method="post" action="<%= ServletUtil.getDynamoRequest(request).getRequestURI() %>" name="myform" synchronized="/rh/configurator/service/ProductService">
<%-- Use a list box rather than a combo box. --%>
<dsp:select bean="ConfiguratorFormHandler.propertyValue" onchange="document.myform.addPropertyValue.click();" size="20" style="width: 200px">
<dsp:droplet name="PossibleOptionsDroplet">
<dsp:param name="productService" bean="ProductService"/>
<dsp:oparam name="output">
<dsp:droplet name="ForEach">
<dsp:param name="array" param="options"/>
<dsp:param name="sortProperties" value="+value"/>
<dsp:oparam name="outputStart">
<dsp:option value="" selected="<%= true %>">Select...</dsp:option>
</dsp:oparam>
<dsp:oparam name="output">
<dsp:param name="item" param="element"/>
<dsp:option paramvalue="item.id">
<dsp:valueof param="item.value"/>
</dsp:option>
</dsp:oparam>
</dsp:droplet>
</dsp:oparam>
</dsp:droplet>
</dsp:select>
<dsp:input type="submit" name="addPropertyValue" bean="ConfiguratorFormHandler.addPropertyValue" value="Go">
</dsp:form>
</dsp:page>[/code:1:92ab377bb2]
And the error is on the first <dsp:option> tag, where the "Select..." text is.
The error has a tooltip description, but there is no corresponding description in the Problems tab. I copied down the description as the following:
Syntax error on token "}", try expected on this token.
Syntax error, insert "}" to complete MethodBody.
Syntax error, insert "}" to complete Block.
Syntax error, insert "Finally" to complete try statement.
But... well, there's barely any java in this page. I don't know where this error is coming from, or how to find the compiled class associated with it.
Any ideas on how to fix this?
Will ([email protected]).Okay, fixed.
<dsp:input type="submit" name="addPropertyValue" bean="ConfiguratorFormHandler.addPropertyValue" value="Go">[/code:1:703fdcee35]
should have been:
[code:1:703fdcee35]<dsp:input type="submit" name="addPropertyValue" bean="ConfiguratorFormHandler.addPropertyValue" value="Go"/>[/code:1:703fdcee35]
Still a strange error, though. -
Forward to JSP page without using Navigation Model
How can I forward to a JSP page without using the Navigation Model?
It's done in the cardemo example in
ImageMapEventHandler.processAction() Is there a reason
for it there?Ah ... that makes sense.
That code in CarDemo was written before there was such a thing as a NavigationHandler, and we didn't have time to update it to the new approach before the EA4 release. That'll be changed before the next one. In the mean time, I'd recommend that you use the navigation rules mechanism where it works for you, because it encourages good separation of business logic and presentation logic that will lead to more maintainable applications.
Craig -
Retrieving lists from other layer into a JSP page - Design Question
Hi all,
What should be a good design technique in order to allow a JSP page to present some list obtained from other layer of my application. I intend to leave only presentation logic in the JSP layer, while all data access will be in other layer.
For example, I have a JSP page that will show the results of a SQL query originated from an entry form in other JSP page. Let's name them 'search.jsp' and 'result.jsp'
I want that all JDBC access be done in some other layer.
Question 1:
What would be better for this task? A servlet or a bean? (A bean, I suppose?)
Then this bean (?) would have to find some way to pass all the result set into this 'result.jsp'. I think it would be very poor design if I used some Data Object, because it would have to store all rows and pass them at once.
I don't want, either, that the presentation (JSP) layer access directly the data access layer (JDBC, files...). This way, I don't want any JSP page accessing the Resultset object directly.
Question 2:
What do you think could be a good design technique?
I thought of some intermediate layer that provided data objects and data access interfaces. I mean, as my data will come from different sources, like some database (JDBC), some Electronic Document Manager, I thought of having a common access interface, that would provide methods for accessing the resultsets. This could be even a java.util.Enumeration that has a hasMoreElements() method that could be implemented as the next() method from JDBC result sets and the nextElement() method that would actually bring the next row of data.
This way the JSP layer would see only hasMoreElements() and nextElement() methods from the middle layer. On the other hand, the data layer would provide as many different implementations to this access interface (Enumeration?) as there were data sources (JDBC, Files, ...)
Question 3:
What do you think of this design?
Question 4:
Is there any flaw in my approach? Which?
Question 5:
Could you suggest other designs?
I really thank you all, for any kind of answer. I actually use this design for development, however I've never seriously discussed it with someone... this is going to be of great value for me.
Regards,
Filipe FedaltoWell I saw you question and I'll tell you what I do.
I have JSP's which post form data to servlets.
The servlet then calls a factory to produce a ResultContainer (analagous to your lists) which is generated
via JDBC, and/or request parameters etc...
this provides a single point of reference and a "group" of containers (functions really) that can be produced and reused (same container different amount of data)
I also have other static classes which can manipulate the data in the containers
(such as add additional info to the items in the containers) before I forward the container (request attribute)
to the JSP page
Additionally I use Type safe constants for all my HTML form tag names (easier to change and ensure the same name is used everywhere when reading parameters) and again for item statuses
and any other info I need to send along with the page (using Javascript to update the
status to another type safe constant).
I've found that using factories for ResultContainers is very worthwhile and allows you to implement additional servlets extremely quickly (mostly reusing containers that exist) and since the
container is the same for all my JSPs (this may not be the case with you) I can implement JSP's
very quickly as well (just change the view)
btw I refrain from calling my ResultContainer a bean because it is not serializable
I don't know if this will help but at least it gives me a forum to test my ideas
Thanks -
Problem deploying my jsp pages to the BPEL Server
Hi,
I want to invoke a bpel process using a java file that is executed by a jsp page, so I deployed the jsp page and the java file to the bpel server where my bpel processes are, but i get the next error when i execute the jsp page. I use struts to define my pages.
Please help
here is the error in the browser:
500 Internal Server Error
java.lang.NoClassDefFoundError: com/collaxa/common/util/NonSyncStringWriter at com.oracle.bpel.client.ClientResources.sanitizeArgs(ClientResources.java:123) at com.oracle.bpel.client.ClientResources.getString(ClientResources.java:93) at com.oracle.bpel.client.util.BeanRegistry.lookupDomainManagerBean(BeanRegistry.java:232) at com.oracle.bpel.client.auth.DomainAuthFactory.authenticate(DomainAuthFactory.java:83) at com.oracle.bpel.client.Locator.<init>(Locator.java:126) at com.oracle.bpel.client.Locator.<init>(Locator.java:97) at mypackage2.BpelManager.invokeProcess(BpelManager.java:58) at mypackage2.ConstanciaTrabajoAction.execute(ConstanciaTrabajoAction.java:45) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)
here the strut.config:
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<action-mappings>
<action path="/constanciaTrabajoAction" type="mypackage2.ConstanciaTrabajoAction" input="/constanciaTrabajo.jsp" scope="request" validate="true">
<forward name="OK" path="/exito.jsp"/>
<forward name="FALLO" path="/fracaso.jsp"/>
</action>
</action-mappings>
<message-resources parameter="mypackage2.ApplicationResources"/>
</struts-config>
the jsp file:
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ page import="java.util.*"%>
<%@ page contentType="text/html;charset=windows-1252"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>untitled</title>
</head>
<body>
<html:link action="/constanciaTrabajoAction">Constancia de Trabajo</html:link></body>
</html>
here the java files:
* ConstanciaTrabajoAction.java
package mypackage2;
import java.util.Map;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import java.io.IOException;
import javax.servlet.ServletException;
public class ConstanciaTrabajoAction extends Action
* This is the main action called from the Struts framework.
* @param mapping The ActionMapping used to select this instance.
* @param form The optional ActionForm bean for this request.
* @param request The HTTP Request we are processing.
* @param response The HTTP Response we are processing.
* @throws javax.servlet.ServletException
* @throws java.io.IOException
* @return
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
String xml = "<ConcatRequest xmlns='http://xmlns.oracle.com/Concat'>"
+"<input><Solicitud><SolicitudData><tipoSolicitud>Constancia Trabajo</tipoSolicitud>"
+"</SolicitudData><Solicitante><ID>vcuello</ID><Nombre>Veronica</Nombre><Apellido>Cuello"
+"</Apellido><Email>[email protected]</Email></Solicitante><Supervisor><ID>rperez</ID>"
+"<Nombre>Roberto</Nombre><Apellido>Perez</Apellido><Email>[email protected]</Email>"
+"</Supervisor><Gerente><ID>asanchez</ID><Nombre>Alfredo</Nombre> <Apellido>Sanchez</Apellido>"
+"<Email>[email protected]</Email></Gerente><Datos><Dato><Nombre>dato</Nombre>"
+"<Valor>valor</Valor></Dato></Datos><exito><notificacionCons>false</notificacionCons>"
+"<docManager><imprimir>false</imprimir><firmar>false</firmar></docManager></exito></Solicitud>"
+"</input>"
+ "</ConcatRequest>";
String oxml = "<ConcatResponse xmlns='http://xmlns.oracle.com/Concat'>"
+ "<result></result>"
+ "</ConcatResponse>";
BpelManager.invokeProcess("ConstanciaTrabajo","initiate",xml);
Map res = BpelManager.requestProcess("ConstanciaTrabajo","onResult",oxml);
return mapping.findForward("OK");
* [i]BpelManager.java
package mypackage2;
import com.oracle.bpel.client.Locator;
import com.oracle.bpel.client.NormalizedMessage;
import com.oracle.bpel.client.ServerException;
import com.oracle.bpel.client.delivery.IDeliveryService;
import com.oracle.bpel.client.util.WhereCondition;
import com.oracle.services.bpel.task.ITask;
import com.oracle.services.bpel.task.IWorklistService;
import java.util.Map;
import java.util.Properties;
public class BpelManager
static Locator locator = null;
static String bpelDomain = "default";
static String bpelDomainPassword = "bpel";
static String orabpelPlatform = "oc4j_10g";
static String javaNamingFactoryInitial = "com.evermind.server.rmi.RMIInitialContextFactory";
static String javaNamingProviderUrl = "ormi://develc15:23791";
static String javaNamingSecurityPrincipal = "admin";
static String javaNamingSecurityCredentials = "welcome";
static String dedicatedRmiContext = "true";
public static String bpelProcessName = "ConstanciaTrabajo";
public static void invokeProcess(String processName, String operationName, String sXml)
try
Properties props = new java.util.Properties();
props.setProperty("orabpel.platform",orabpelPlatform);
props.setProperty("java.naming.factory.initial",javaNamingFactoryInitial);
props.setProperty("java.naming.provider.url",javaNamingProviderUrl);
props.setProperty("java.naming.security.principal",javaNamingSecurityPrincipal);
props.setProperty("java.naming.security.credentials",javaNamingSecurityCredentials);
props.setProperty("dedicated.rmicontext", dedicatedRmiContext);
locator = new Locator(bpelDomain,bpelDomainPassword,props);
/*IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME);
// construct the normalized message and send to Oracle BPEL Process Manager
NormalizedMessage nm = new NormalizedMessage( );
nm.addPart("payload", sXml);
deliveryService.post(processName, operationName, nm);*/
} catch (Exception r)
r.printStackTrace();
public static Map requestProcess(String processName, String operationName, String sXml)
try
IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME);
//IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
// construct the normalized message and send to Oracle BPEL Process Manager
NormalizedMessage nm = new NormalizedMessage( );
nm.addPart("payload", sXml );
NormalizedMessage res = deliveryService.request(processName, operationName, nm);
Map payload = res.getPayload();
return payload;
} catch (Exception r)
r.printStackTrace();
return null;
public static ITask[] queryWorklistService(String arg)
// Lookup the worklist service.
IWorklistService worklist =
(IWorklistService)locator.lookupService( IWorklistService.SERVICE_NAME );
try
ITask[] tasks = worklist.listTasksByAssignee(arg);
return tasks;
} catch (ServerException s)
s.printStackTrace();
return null;
public static ITask[] queryWorklistServiceByCondition(WhereCondition cond)
// Lookup the worklist service.
IWorklistService worklist =
(IWorklistService)locator.lookupService( IWorklistService.SERVICE_NAME );
try
ITask[] tasks = worklist.listTasks(cond);
return tasks;
} catch (ServerException s)
s.printStackTrace();
return null;
public static void updateTask(ITask task)
// Lookup the worklist service.
IWorklistService worklist =
(IWorklistService)locator.lookupService( IWorklistService.SERVICE_NAME );
try
worklist.updateTask(task);
} catch (ServerException s)
s.printStackTrace();
public static void completeTask(ITask task)
// Lookup the worklist service.
IWorklistService worklist =
(IWorklistService)locator.lookupService( IWorklistService.SERVICE_NAME );
try
worklist.completeTask(task);
} catch (ServerException s)
s.printStackTrace();
public static ITask lookupTask(String taskId)
// Lookup the worklist service.
IWorklistService worklist =
(IWorklistService)locator.lookupService( IWorklistService.SERVICE_NAME );
System.out.println("Entro a Cargo tarea");
try
ITask task = worklist.lookupTask(taskId);
System.out.println("Cargo tarea");
return task;
} catch (ServerException s)
System.out.println("La boto");
s.printStackTrace();
return null;
public void setLocator(Locator locator)
this.locator = locator;
public Locator getLocator()
return locator;
public void setBpelDomain(String bpelDomain)
this.bpelDomain = bpelDomain;
public String getBpelDomain()
return bpelDomain;
public void setBpelDomainPassword(String bpelDomainPassword)
this.bpelDomainPassword = bpelDomainPassword;
public String getBpelDomainPassword()
return bpelDomainPassword;
public void setOrabpelPlatform(String orabpelPlatform)
this.orabpelPlatform = orabpelPlatform;
public String getOrabpelPlatform()
return orabpelPlatform;
public void setJavaNamingFactoryInitial(String javaNamingFactoryInitial)
this.javaNamingFactoryInitial = javaNamingFactoryInitial;
public String getJavaNamingFactoryInitial()
return javaNamingFactoryInitial;
public void setJavaNamingProviderUrl(String javaNamingProviderUrl)
this.javaNamingProviderUrl = javaNamingProviderUrl;
public String getJavaNamingProviderUrl()
return javaNamingProviderUrl;
public void setJavaNamingSecurityPrincipal(String javaNamingSecurityPrincipal)
this.javaNamingSecurityPrincipal = javaNamingSecurityPrincipal;
public String getJavaNamingSecurityPrincipal()
return javaNamingSecurityPrincipal;
public void setJavaNamingSecurityCredentials(String javaNamingSecurityCredentials)
this.javaNamingSecurityCredentials = javaNamingSecurityCredentials;
public String getJavaNamingSecurityCredentials()
return javaNamingSecurityCredentials;
public void setDedicatedRmiContext(String dedicatedRmiContext)
this.dedicatedRmiContext = dedicatedRmiContext;
public String getDedicatedRmiContext()
return dedicatedRmiContext;
public void setBpelProcessName(String bpelProcessName)
this.bpelProcessName = bpelProcessName;
public String getBpelProcessName()
return bpelProcessName;
}hi,
I fix it, thanx
static Locator locator = null;
// public static IWorklistService worklist = null;
static String bpelDomain = "default";
static String bpelDomainPassword = "bpel";
static String orabpelPlatform = "oc4j_10g";
static String javaNamingFactoryInitial = "com.evermind.server.rmi.RMIInitialContextFactory";
static String javaNamingProviderUrl = "ormi://myserver:23791/orabpel"; /*this was wrong
static String javaNamingSecurityPrincipal = "admin";
static String javaNamingSecurityCredentials = "welcome";
static String dedicatedRmiContext = "true";
static{
try{
Properties props = new java.util.Properties();
props.setProperty("orabpel.platform",orabpelPlatform);
props.setProperty("java.naming.factory.initial",javaNamingFactoryInitial);
props.setProperty("java.naming.provider.url",javaNamingProviderUrl);
props.setProperty("java.naming.security.principal",javaNamingSecurityPrincipal);
props.setProperty("java.naming.security.credentials",javaNamingSecurityCredentials);
props.setProperty("dedicated.rmicontext", dedicatedRmiContext);
locator = new Locator(bpelDomain, bpelDomainPassword, props);
} catch (ServerException se){se.printStackTrace();}
} -
Error Compilation When I browse JSP with bean, please Help Me
Hello,
I am new in EJB. I have a problem that I am not understand. please help me.
I have write my bean and deploy it using JRUN server. The name is SpellCheck.jar
But when I called the bean from JSP page, always error. Here is my JSP page.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<jsp:useBean id="help" scope="request" class="projsp.SpellCheck"/>
<jsp:setProperty name="help" property="*"/>
<html>
<head>
<title>Untitled</title>
</head>
<body>
You Entered the input,
<b>
<%= request.getParameter("word") %>
</b>
<br>
The processed output is:<br>
<%= integer.parseInt(request.getparameter("mode"))==1 ?help.reverse():""+help.check() %>
</body>
</html>
and the error messages is:
Compilation error occured:
allaire.jrun.scripting.DefaultCFE:
Errors reported by compiler:Compilation of file 'C:\Program Files\Allaire\JRun\servers\default\veronika\WEB-INF\jsp\jrun__wordpro2ejspc.java' failed with no errors. Please check that your compiler is a working compiler.
at allaire.jrun.scripting.JavaCompilerService.compile(../scripting/JavaCompilerService.java:100)
at allaire.jrun.jsp.Translator.compilePage(../jsp/Translator.java:247)
at allaire.jrun.jsp.Translator.translate(../jsp/Translator.java:399)
at allaire.jrun.jsp.Translator.translate(../jsp/Translator.java:92)
at allaire.jrun.jsp.JSPTranslator.translate(../jsp/JSPTranslator.java:75)
at allaire.jrun.jsp.JSPTranslator.translate(../jsp/JSPTranslator.java:67)
at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:216)
at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:196)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416)
at allaire.jrun.session.JRunSessionService.service(../session/JRunSessionService.java:1082)
at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270)
at allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDispatcher.java:89)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542)
at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364)
at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115)
at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)
but if I delete the syntax for calling Bean (usebean, setProperty, and request.getParameter) the browser run properly. Can anybody help me, please?
thanks
VeronikaHi Veronika,
The <jsp:usebean> is used for only javabeans not EJB (Enterprise javabean). You said that you have deployed SpellCheck.jar to the JRun server. So that must be an EJB. Where are you accessing this EJB from in your JSP? ARe you doing it inside the projsp.SpellCheck javabean? If yes, can you post some code from the javabean.
Cheers
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<jsp:useBean id="help" scope="request" class="projsp.SpellCheck"/>
<jsp:setProperty name="help" property="*"/>
<html>
<head>
<title>Untitled</title>
</head>
<body>
You Entered the input,
<b>
<%= request.getParameter("word") %>
</b>
<br>
The processed output is:<br>
<%= integer.parseInt(request.getparameter("mode"))==1 ?help.reverse():""+help.check() %>
</body>
</html> -
Error in processing [/useradmin/index.jsp]
In our PI system 7.1, when we try the below url
http://hostname.xx.xxx.com:50000/useradmin/index.jsp
we are getting the below error
"500 Internal Server Error
SAP NetWeaver Application Server 7.11 / AS Java 7.11
Error: "Error in processing [/useradmin/index.jsp] in application [sap.com/com.sap.security.core.admin]."
Troubleshooting Guide https://sdn.sap.com/irj/sdn/wiki?path=/display/jsts/home
Details: "The WebApplicationException log ID is [AA4FB520760500F20000000000AC0064]."
the Default trace file has the below error message:
#2.#2011 10 10 16:23:19:399#0-400#Error#com.sap.engine.services.servlets_jsp.ISE500#
com.sap.ASJ.web.000500#BC-JAS-SEC-UME#sap.com/com.sap.security.core.admin#AA4FB520760500EF0000000300AC0064#4047350000000004#sap.com/com.sap.security.core.admin#com.sap.engine.services.servlets_jsp.ISE500#J2EE_GUEST#0##B15C71CBF37D11E0C7CC0000003DC1F6#b15c71cbf37d11e0c7cc0000003dc1f6#b15c71cbf37d11e0c7cc0000003dc1f6#0#Thread[HTTP Worker [@501859437],5,Dedicated_Application_Thread]#Plain##
500 Internal Server Error is returned for HTTP request [http://hostname.xx.xxxx.com:50000/useradmin/index.jsp]:
component [jsp],
web module [useradmin],
application [sap.com/com.sap.security.core.admin],
DC name [sap.com/com.sap.security.core.admin],
CSN component[BC-JAS-SEC-UME],
problem categorization [com.sap.ASJ.web.000137],
internal categorization [-1555343295].
[EXCEPTION]
com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException: Internal error occurred while parsing the jsp page [/usr/sap/P1X/DVEBMGS00/j2ee/cluster/apps/sap.com/com.sap.security.core.admin/servlet_jsp/useradmin/root/index.jsp].
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:200)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:140)
at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:37)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:486)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:298)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:397)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:48)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:83)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:243)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:78)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:43)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:428)
at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:247)
at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:45)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:327)
Caused by: com.sap.engine.services.servlets_jsp.jspparser_api.exception.JspParseException: [/usr/sap/P1X/DVEBMGS00/j2ee/cluster/apps/sap.com/com.sap.security.core.admin/servlet_jsp/useradmin/root/index.jsp]
at com.sap.engine.services.servlets_jsp.jspparser_api.JspParser.generateJspClass(JspParser.java:160)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:192)
... 37 more
Has anyone faced this issue?
Regards
SenthilHi,
Please check with your Basis Team if User Management services and applications are running. It is under Operations Managemenr -> Systems -> Start & Stop.
Regards,
Jenny
Maybe you are looking for
-
Volume button not working on my iPad. Have tried reset but still no joy. Also have checked that the mute function.
-
CS3 Version Cue not loading in Bridge
I'm trying to access a version cue server in bridge, but there is no button to access version cue in bridge. i know there is supposed to be a button in the favorites panel, but its not there, and there is no way to 'check it' in preferences. its chec
-
Ipad not getting ON, what to do ?
I bought Apple Ipad from India last year on 1st November 2012. Now I am in Pittsburgh, PA 15213 and suddenly my Ipad is not getting ON, last night it was working fine, but now its not getting even ON though i Put on charging for 2-3 hours
-
My itunes software crashes when accessing the music downloads. I use window 8.1
Is there a fix for itunes crashing when accessing the music download. I use windows 8.1?
-
Processkeys in 2LIS_02_SGR wrong?
Hi, can anybody please confirm some processkeys of DataSource 2LIS_02_SGR? Following situation in our system: Posting 1: goods receipt with movement type 101 Posting 2: goods return to vendor with movement type 122 sent to BW with 2LIS_02_SGR as: REC