From Tomcat-Apache to OC4J
I4m migrating an application from Tomcat-Apache to OC4J. I have a problem whith a taglib in a Servlet call a JSP that use a taglib.
In the JSP call a taglib whith:
<%@ taglib uri="/oficios" prefix="portalOficios"%>
<jsp:useBean id="resultado" scope="session" class="com.npevolution.util.SQLResult" />
<portalOficios:iteracion nombres="codigo" tipo="String" group="<%= resultado%>">
<% String campoCodProv = (String)pageContext.getAttribute("campo0");%>
<%String campoNombProv =(String)pageContext.getAttribute("campo1");%>
</portalOficios:iteracion>
thank you;
Esther
I looked at the code after a jsp compiled to a servlet. The
jspService method of "EditTmpForm.jsp" is about 801 KB. But for another jsp "EditOperation.jsp", the jspService method is about 236 KB.
Both are much greater than 64 K, but why it runs okay for "EditOperation.jsp" but gives me error for "EditTmpForm.jsp"?
Furthermore, since the HTML form is long, so the HTML code itself is bigger than 64 K, how can you prevent your _jspService method so that is is shorter than 64K?
Thanks for your help!
James
Similar Messages
-
JSPX Migration from Tomcat to OC4J
We are migrating the web tier of our application from Tomcat 5 to OC4J 10.1.3.0.0. We are having a problem in our jspx files. The code below works in Tomcat but not in oc4j.
<gc3:viewFieldText name="invoice/invoice_xid" valueIndicator="invoice/indicator">
<jsp:attribute name="label">
<x:when select="$mainNode/invoice_type = 'B'">field.invoice/bill_xid</x:when>
<x:otherwise>field.invoice/invoice_xid</x:otherwise>
</x:choose>
</jsp:attribute>
</gc3:viewFieldText>
We are trying to dynamically set the label attribute of one of our custom tags using <jsp:attribute> and the jstl xtags. mainNode is a variable bound in the request and based on the result of the XPath expression, we want to dynamically set the label attribute. The XPath expression is correctly evaluated, however instead of passing the text within the x:when or x:otherwise to our custom tag, it just writes it out to the screen.
If I remove the xtags from the code and hard code the label it works as shown below.
<gc3:viewFieldText name="invoice/invoice_xid" valueIndicator="invoice/indicator">
<jsp:attribute name="label">
field.invoice/bill_xid
</jsp:attribute>
</gc3:viewFieldText>
Let me know if you need any further information.Chad,
10.1.3.0.0 was buggy.
Try 10.1.3.1.0 or the latest: 10.1.3.2.0
(Just a suggestion.)
Good Luck,
Avi. -
Upgrade from tomcat to OC4J 10.1.3 jsp parser exception in tag lib
i have problem in oc4j jsp parser
but it work ok on tomcat as tomcat using jasper-compiler.jar
when run on oc4j it give me the exception
OracleJSP: oracle.jsp.parse.JspParseException: /jsp/layouts/elec/pageheading.jsp: Line # 3, <aa:h1 wrapped="true" labelKey="${heading1BundleKey}"/>
Error: Errors parsing tag :h1 oracle.jsp.parse.JspParseException: /jsp/layouts/elec/pageheading.jsp: Line # 3, <aa:h1 wrapped="true" labelKey="${heading1BundleKey}"/>
Error: oracle.jsp.provider.JspCompileException: <H3>Errors compiling:E:\oc4j\j2ee\home\application-deployments\default\sc40\persistence\_tagfiles\_oracle\_jsp\_tag\_aacom\_h1_2e_tag.java</H3><TABLE BORDER=1 WIDTH=100%><TR><TH ALIGN=CENTER>Line #</TH><TH ALIGN=CENTER>Error</TH></TR><TR><TD WIDTH=7% VALIGN=TOP><P ALIGN=CENTER>191</TD><TD> non-static variable _jspFragWriter cannot be referenced from a static context
_jspFragWriter = null;
-------------------------------------------------------->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
and i have problem in web.xml
as i using jsp servlet in jasper-compiler.jar in tomcat package
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
<init-param>
------------------------------------>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
i try to use this package in oc4j but i can not
i put this servlet in global-web-application.xml instead of
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>oracle.jsp.runtimev2.JspServlet</servlet-class>
------------------>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
to make oc4j depend on tomcat parser it give me
classnotfound mean that (oc4j can not found package) this printed in global-application.log
i make
<library path="E:/oc4j/j2ee/home/applib/jasper-compiler.jar"/>
and still have problem
any 1 have idea using tomcat parser in oc4j
or have idea solve this problem
thanx
Message was edited by:
[email protected]
Message was edited by:
[email protected]
Message was edited by:
[email protected]
Message was edited by:
[email protected]OC4J 10.1.3 does support JSP 2.0, as well as custom tag libraries (including JSTL 1.1).
There are two approaches to configuring a custom tag library for use in JSPs served by OC4J:
1) Package the JSTL or custom tag library with your application:
i. include the necessary JAR file in your web app's /WEB-INF/lib folder
ii. include the relevant Tag Library Descriptor (TLD) file(s) in your web app's /WEB-INF folder
iii. for each TLD, add a <tag-lib> element to web.xml referencing the TLD file's location and taglib URI
2) Place the JSTL or custom tag library in an Application Server instance-level directory ($ORACLE_HOME/j2ee/home/jsp/lib/taglib) to make them available to multiple applications (in all OC4Js installed in the Oracle Home)
For example, if you'd like to use the JSTL 1.1 Core and Internationalization Tag Libraries, do one of the following:
1) Package the JSTL or custom tag library with your application:
i. Obtain an implementation of JSTL (e.g. Jakarta Taglibs) and include the standard.jar and jstl.jar files in your web module's /WEB-INF/lib directory
ii. From the JSTL implementation you're using, also copy the c.tld and fmt.tld Tag Library Descriptors to your web module's /WEB-INF/lib directory
iii. Add the following elements to your web module's web.xml file:
<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/fmt.tld</taglib-location>
</taglib>
</jsp-config>
OR
2) Copy the standard.jar and jstl.jar libraries from the JSTL implementation you're using to $ORACLE_HOME/j2ee/home/jsp/lib/taglib -
UNSUPPORTED : The way it works Apache with OC4J via AJPV13 with mod_jk
RDBMS Version: 8.1.7.x
Operating System and Version: SUSE Linux 7.2 / Win NT/2k/XP
Product (i.e., OAS, IAS, etc): 9ias 1.0.2.2 OC4J 9.0.2.0.0
Product Version:
JDK Version: 1.3.1
Error number:
UNSUPPORTED : The way it works Apache with OC4J via AJPV13 with mod_jk
We dont want to use the lame and old mod_jserv so we want to use oc4j but in connection with Apache.
This is like mod_oc4j in the Oracle 9ias Release 2
This guide is for advanced users !
Step-by-Step :
1) get Tomcat 3.3 for linux or nt with Apache module mod_jk
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/bin/
2) add mod_jk module to httpd.conf (9ias) and comment all mod_jserv, dms, oproc, ojsp ....
LoadModule jk_module libexec/mod_jk.so
Include mod_jk.conf
3) edit mod_jk.conf
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13 JkMount /servlets/* ajp13
<Location "/WEB-INF/"> AllowOverride None
deny from all
</Location>
3) edit workers.properties
workers.tomcat_home=/opt/oracle/ias/oc4j/j2ee/home
workers.java_home=/usr/java
worker.list=ajp13
worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13
4) edit http-web-site.xml (oc4j)
<web-site host="localhost" port="8009" protocol="ajp13" display-name="Oracle9iAS Containers for J2EE HTTP Web Site">
5) start oc4j
java -verbose -jar oc4j.jar
6) start apache (look in error_log)
apachectl startssl
7) try to request a jsp page or servlet ..
http://localhost:7777/test.jsp
8) good luck it works fine .. !!
Matthias Roth
Technical Manager
Z|rich Investmentgesellschaft mbH
[email protected]Thanks for the tip Mathias, it's always good to see people trying out experimental things with the products.
We're providing a new module (mod_oc4j) with our Oracle9iAS Release2 product to do this directly from the Oracle HTTP Server (Apache). We've re-written bits and pieces of the module to improve it's performance. Likewise, we've also integrated mod_oc4j with our HA story so it will be notified when new OC4J instances are brought online or if existing ones go down, enabling it to actively route requests around the available OC4J instances.
Thanks again!
-steve0 -
Jakarta Tomcat Connectors (JK) + OC4J setup questions
hi
i'd like to use Apache 2.0 for dispatching requests to OC4J. i've been doing some experimenting and i was able to setup Apache and Jakarta Tomcat Connectors (JK) v1.2 to route requests to OC4J. this seems to be working fine in my development environment but how well supported or reliable is this setup?
the requests are now being dispatched to JDeveloper 10.1.3 embedded OC4J instance. the only way i managed to do this was by modifying the embedded-oc4j/config/default-web-site.xml file and changing the web-site element protocol attribute value to "ajp13". this setup has the drawback that now direct http connections don't work anymore. is there a way to have both ajp13 and http connectors working simultaneously in the embedded OC4J?Sure there is. Add another web site configuration file, say, myHttp-web-site.xml, which is a copy > of the original default-web-site.xml with http protocol and a different port.
..after retrying this it seems to be working now. thanks.
Can you share how you use the Jakarta Tomcat Connectors v1.2 here?sure, here you go:
build JK
# download JK v1.2.15 from http://tomcat.apache.org/download-connectors.cgi
tar zxf jakarta-tomcat-connectors-1.2.15-src.tar.gz
cd jakarta-tomcat-connectors-1.2.15-src/jk/native
./configure --with-apxs=/foo/bar/apache2055/bin/apxs
make
make install
Configure Apache + JK
# add the following lines to Apache httpd.conf
LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkMount /<myctxroot>/* oc4j
JkLogFile logs/mod_jk.log
JkLogLevel debug
# create conf/workers.properties with the following lines
worker.list=oc4j
worker.oc4j.port=8009
worker.oc4j.host=localhost
worker.oc4j.type=ajp13
configure JDev OC4J
cd $OC4J_HOME/embedded-oc4j/config
cp default-web-site.xml ajp-web-site.xml
# modify web-site element protocol attribute value to "ajp13" in ajp-web-site.xml
# add the following line in embedded-oc4j/config/server.xml
<web-site default="false" path="./ajp-web-site.xml" />
# restart OC4J
# restart Apache -
Hi all,
I'm a newbie (of java EE and Sun forum).
I have a problem.
I followed this tutorial: http://technology.amis.nl/blog/1368/connecting-to-an-ejb-30-remote-sessionbean-from-tomcat
using Netbeans 6.8, Tomcat 6.0.20, Glassfish v3.
The deploy of EJB on Glassfish is OK.
The deploy of WebApp on Tomcat is OK.
But when I access to the servlet using the browser I receive this exception.
javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.enterprise.naming.SerialInitContextFactory [Root exception is java.lang.ClassNotFoundException: com.sun.enterprise.naming.SerialInitContextFactory]
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at web.MyServlet.processRequest(MyServlet.java:51)
at web.MyServlet.doGet(MyServlet.java:75)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:619)
I know that I must copy *.jar files in Tomcat dir and App libraries (https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#Step_3._Include_appserv-rt.jar_and), but it doesn't work.
What are my mistakes?
Thank you for your help.
Servlet code:
package web;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Properties;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import testbean.MySessionBeanRemote;
* @author Stefano
public class MyServlet extends HttpServlet {
* Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
Properties props = new Properties();
props.setProperty("java.naming.factory.initial", "com.sun.enterprise.naming.SerialInitContextFactory");
props.setProperty("java.naming.factory.url.pkgs", "com.sun.enterprise.naming");
props.setProperty("java.naming.factory.state", "com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
props.setProperty("org.omg.CORBA.ORBInitialHost", "localhost");
props.setProperty("org.omg.CORBA.ORBInitialPort", "3700");
try {
out.println("<html>");
out.println("<head>");
out.println("<title>Servlet MyServlet</title>");
out.println("</head>");
out.println("<body>");
out.println(MySessionBeanRemote.class.getName());
try {
InitialContext ic = new InitialContext(props);
MySessionBeanRemote mySessionRemote = (MySessionBeanRemote) ic.lookup("pippo");
out.println(mySessionRemote.getOK());
} catch (NamingException ex) {
ex.printStackTrace();
out.println("</body>");
out.println("</html>");
} finally {
out.close();Yes, I did.
I'm not sure about the right actions to do.
For example: the Glassfish FAQ told me to add gf-client*.jar to the Tomcat folder, not appserv-rt.jar , with v3.
I tried with both files. I restarted Tomcat, but nothing work :-( -
Migrate tomcat application to oc4j
hello,
i want to migrate an application built with jsp and structs from tomcat to oc4j.
where can i found documentation about that?
regards,hi
tank you Shay Shmeltzer.
I see http://www.oracle.com/technology/products/adf/learnadf.html.
after make configuration in server.xml (tomcat) i see
http://radio.weblogs.com/0118231/stories/2003/08/08/installingTheBc4jToyStoreOnApacheTomcat4124.html.
When start application in tomcat we have this message :
Failed to checkout SRService application module. Ensure your datasource name is SRDemo [case-sensitive!] and that connection settings are properly defined for a database with the SRDEMO schema installed. See server log for more exception details...
Tank you
Alfredo Queiros -
Problems moving app from tomcat 321 to 4.0
I have serious problems moving an old app from tomcat 321 to 4.0. I tried just moving the entire webapps/<myApp> to the new server, and also using a war-file, but I get a message saying that one of my Beans doesn't exist.
Its a bean in the /WEB-INF/classes subdir, so its in an annonymous package. The jsp-page accessing it uses the
<jsp:useBean id="dateBean" class="DateBean" scope="session" />
tag.
Error message from jsp-page says: org.apache.jsp.DateBean not found.
Seems my tomcat4 doesn�t use the web-inf/classes in its classpath???
regards
MarkusI don't believe the current Servlet specs allow for anonymous packages. Try moving your class into its own package (under WEB-INF/classes/packagename/) and see if that fixes the problem. Also be sure to change the <jsp:useBean> tag to give the full classname in the class attribute.
-
How to download midlet in SDK from tomcat server on localhost
how to download midlet OVER THE AIR in Java ME SDK 3 from tomcat server running on localhost
THANKS!Hi,
The most important thing is that you need to ensure that WebLogic is start the Java command with debugging options. This is in the JDev documentation in the topic "Starting a Java Process in Debug Mode".
If you have JSP's and servlets you have other steps as well. I have included the generic steps for any application server. We have plans to post a 'How to remote debug JSP's deployed on Weblogic' in the near future. Keep posted.
1. You need to replace WebLogic's JSP engine with OJSP and you need to
setup debugging parameters for OJSP. This is not specifically in the JDev documentation, but you may be able to apply the information found in the topic "Remote Debugging in OC4J".
Here are some tips:
A. You'll probably need to specify the following jars in some WebLogic config file. The jar files are all located in <jdev_install>/lib/
xmlparserv2.jar
ojc.jar
jdev-rt.jar
ojsp.jar
ojsputil.jar
B. Add these jar files to the VM's classpath
C. The OJSP class name is oracle.jsp.runtimev2.JspServlet. You will need to specify this class where you configure your JSP engine information.
D. You need to pass the following debug parameters. Again this is set up in the app server configuration file(s):
debu[i]Long postings are being truncated to ~1 kB at this time. -
Upgraded from Tomcat 3.3.1 to Tomcat 4.0.4 receiving Stack
I moved my war file into my new Tomcat 4.0.4 webapps directory since I
need to upgrade in order to use some 'other' tags and I'm receiving
the following stacktrace when I try to hit the first page in my
application....
Any ideas as to why this is occurring?
StackTrace Below:
Application Error
javax.servlet.ServletException: Invalid request - request handler
"VoyagerLogin"
not found
at
com.iplanet.jato.ApplicationServletBase.onRequestHandlerNotFound(Appl
icationServletBase.java:1153)
at
com.iplanet.jato.ApplicationServletBase.fireRequestHandlerNotFoundEve
nt(ApplicationServletBase.java:977)
at
com.iplanet.jato.ApplicationServletBase.getViewBeanInstance(Applicati
onServletBase.java:717)
at
com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationSer
vletBase.java:429)
at
com.iplanet.jato.ApplicationServletBase.doPost(ApplicationServletBase
.java:312)
at
com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.
java:282)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve
.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
r.java:1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
va:1125)
at java.lang.Thread.run(Thread.java:536)There's definitely something wrong with my application directory or
the .war file because I can run the JatoSample and the JatoTutorial
applications fine from within Tomcat-4.0.4.....
--- In SunONE-JATO@y..., "Craig V. Conover" <craig.conover@s...>
wrote:
Send me the war file with source. I'll see if I can run it on mymachine
or figure out what the issue is.
send to: craig.conover@s...
craig
chubbykidd wrote:
Total disaster. My application will not work. I've closed all
instances of Netscape and even logged off the SunRay I'm working on
and I still get the same error. I then took your advice and
downloaded
Resin and installed it. Now when I hit the following URL...
http://localhost:8080/Voyager/voyagermodule/VoyagerLogin I receivean
'Application Error' page which states "Invalid request - request
handler VoyagerLogin not found"
I don't know what to do, I'm running out of possiblities...
Help :-/
--- In SunONE-JATO@y..., "Craig V. Conover" <craig.conover@s...>
wrote:
This will happen if the browser was already running, but you say
you
closed your browsers first. Make sure all instances of the browser
are
closed. For IE, when you launch one IE instance from another
(Ctrl-N),
they share the same process space.
For Netscape, all instances always share the same process space.
This
includes the Mail client, so be sure all of them have been closed.
I might suggest test running in Resin from Caucho (www.caucho.com)
to
make sure it's not a Tomcat bug or setup/install issue. Resin
installs
with just an unzip, and drop the war file in the webapps dir, and
start
the server.
c
chubbykidd wrote:
I deleted my jakarta-tomcat-3.3.1 directory and now I'm getting a
different error when I try to hit the first page in my
application:
>>>>
The URL of my app is:
http://localhost:8080/Voyager/voyagermodule/VoyagerLogin
StackTrace below.... I've restarted tomcat after this stack was
thrown
and I've also closed my browsers and started over and I keep
getting
the same outcome....
javax.servlet.ServletException: This session has timed out
at
com.iplanet.jato.ApplicationServletBase.onSessionTimeout(ApplicationServletBas\
e.java:1075)
>>>
>>>
at
com.iplanet.jato.ApplicationServletBase.fireSessionTimeoutEvent(ApplicationSer\
vletBase.java:941)
>>>
>>>
at
com.iplanet.jato.ApplicationServletBase.fireSessionEvents(ApplicationServletBa\
se.java:649)
>>>
>>>
at
com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.\
java:427)
>>>
>>>
at
com.iplanet.jato.ApplicationServletBase.doPost(ApplicationServletBase.java:312\
>>>
>>>
at
com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.java:282)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi\
lterChain.java:247)
>>>
>>>
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChai\
n.java:193)
>>>
>>>
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java\
:243)
>>>
>>>
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566\
>>>
>>>
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java\
:190)
>>>
>>>
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566\
>>>
>>>
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246\
>>>
>>>
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564\
>>>
>>>
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566\
>>>
>>>
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.ja\
va:170)
>>>
>>>
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564\
>>>
>>>
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564\
>>>
>>>
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564\
>>>
>>>
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:1\
74)
>>>
>>>
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566\
>>>
>>>
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:10\
27)
>>>
>>>
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:536)
[85] wb138834@s...:
--- In SunONE-JATO@y..., Todd Fast <Todd.Fast@S...> wrote:
This error means the page/ViewBean you requested was not found.
What is the
URL you are using? Also make sure everything is compiled.
Todd
----- Original Message -----
From: "chubbykidd" <bacon33@o...>
Sent: Thursday, August 29, 2002 11:13 AM
Subject: [SunONE-JATO] Upgraded from Tomcat 3.3.1 to Tomcat
4.0.4
>>>>>
>>>>>
>>>>>
>>>>>
receiving
Stack
I moved my war file into my new Tomcat 4.0.4 webapps directory
since I
need to upgrade in order to use some 'other' tags and I'm
receiving
the following stacktrace when I try to hit the first page in my
application....
Any ideas as to why this is occurring?
StackTrace Below:
Application Error
javax.servlet.ServletException: Invalid request - request
handler
"VoyagerLogin"
not found
at
com.iplanet.jato.ApplicationServletBase.onRequestHandlerNotFound(Appl
icationServletBase.java:1153)
at
com.iplanet.jato.ApplicationServletBase.fireRequestHandlerNotFoundEve
nt(ApplicationServletBase.java:977)
at
com.iplanet.jato.ApplicationServletBase.getViewBeanInstance(Applicati
onServletBase.java:717)
at
com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationSer
vletBase.java:429)
at
com.iplanet.jato.ApplicationServletBase.doPost(ApplicationServletBase
.java:312)
at
com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.
java:282)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve
.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
r.java:1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
va:1125)
at java.lang.Thread.run(Thread.java:536)
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp -
How to Bounce Apache or OC4J for OAF Development
hi all,
yesterday i've been trying to get answers as to why the changes i make in an OAF page does not reflect immediately. after doing research i found out that i need to bounce the apache or oc4j everytime i make changes to ui xml or class files.
i then realized that it would be really annoying to bug our dba to bounce the apache or oc4j everytime i make changes. so i came up with this idea where i create a concurrent program and hope that maybe this can bounce the apache or oc4j for me.
i create a shell script with the code below
$INST_TOP/admin/scripts/adapcctl.sh restart
exitunfortunately the script i have doesn't work and returns an error.
01/09/10-11:49:19 :: adapcctl.sh: exiting with status 204
================================================================================
01/09/10-11:57:59 :: adapcctl.sh version 120.7.12010000.2
01/09/10-11:57:59 :: adapcctl.sh: stopping OPMN managed OHS instancei then search for codes on how to restart the apache and found this thread
Bouncing Apache for OAF deployment
Kali V wrote:
Sharwan,
Bouncing the server is different in 11i and R12, Check the following,
To clear HTML cache and bounce Apache at R12 level :
1.
cd $INST_TOP/admin/scripts
dierctory is :
/global/oracle/your_sid/inst/apps/sid_server/admin/scripts
here are the scripts :
adalnctl.sh adexecsql.pl adoafmctl.sh adstrtal.sh jtffmctl.sh
adapcctl.sh adformsctl.sh adopmnctl.sh gsmstart.sh mwactl.sh
adautocfg.sh adformsrvctl.sh adpreclone.pl ieo mwactlwrpr.sh
adcmctl.sh adoacorectl.sh adstpall.sh java.sh
2.
adapcctl.sh stop
3.
To clear HTML cache :
cd $COMMON_TOP/_pages
Direcetory is :
/global/oracle/your_sid/apps/apps_st/comn/_pages
Here are the java classes to clear.
Do rm * in _pages directory after having checked there are only compiled classes in this directory
4.
cd $INST_TOP/admin/scripts
dierctory is :
/global/oracle/your_sid/inst/apps/sid_server/admin/scripts
adapcctl.sh start
Thanks.
With Regards,
Kali.
OSSI.just wanted to know if putting this in my shell script, it will continue the process even though i get disconnected to the EBS Form? one thing i'm assuming is that if the apache is stop, i will have no access to its web / form interface.. so basically after i run the concurrent program i most likely will get disconnected.
can anyone help me with this.
thanks
allenuser12195296 wrote:
Hi A.Sandiego ,
You can use these steps to bounce apache in R12
1) login to your instance with putti or any other software
2) cd $ADMIN_SCRIPTS_HOME
3) adapcctl.sh stop
4) adoacorectl.sh stop
5) adapcctl.sh start
6) adoacorectl.sh start
Every time you bounce apache you need to follow these steps in same sequence.
Try This i am sure this will work
Regards.thank you for your suggestion.
currently my user in the unix box does not have the permission to execute these scripts which is why i went ahead and thought of creating a shell script that executes those lines of codes for me. then i will create a concurrent program in Oracle EBS which executes this script. now my concern is, if i run the program that executes the shell script, most likely i will get disconnected from Oracle EBS. my question is, will the program run in the background even though i have been disconnected from Oracle EBS?
thanks
allen -
Error while starting Tomcat Apache and Jaguar services in AW webview server
hi,
I am facing a problem with AW webview server. I am not able to restart the Tomcat Apache and Jaguar Service after a planned server reboot activity.I am getting the below error.
"Could not start Apache Tomcat service on Local Computer. Error 1069. The service could not start due to log on failure"
The below account has been verified in the Domain controller and confirmed that the account is not Locked out or disabled.
I have AW , HDS and Webview running on the same server.
Can someone advice ...What OS version? This might be a windows problem and not a Apache/Jaguar problem.
david -
Tomcat, Apache, mod_webapp and reloadable
Hi, I'm not sure if this is the best spot to post this, if you know of another group that might be more helpful I'd appreciate the link...
We are currently running Apache and using mod_webapp to connect Tomcat4 to it. We are defining a few applications in mod_webapp.conf, like so:
WebAppConnection conn warp localhost:8008
WebAppDeploy appname conn /appname
Then in the server.xml we define the connector like this:
<Connector className="org.apache.catalina.connector.warp.WarpConnector"
port="8008" minProcessors="5" maxProcessors="75"
enableLookups="true" appBase="/dirname"
acceptCount="10" debug="0"/>
The problem is that new class files are not picked up by Tomcat. There does not seem to be a good place to set the customary "reloadable=true" flag for our development application. Does anybody know how I could accomplish this with our setup?
Thanks!
-EricDid you create a context for the webapp in the tomcat
conf/server.xml
<Context path="/myApp" docBase="myApp"
reloadable="true" debug="0">
</Context>No, we are just using the "appBase" attribute of the Connector element in the server.xml file to reference each application. It seems to me that we should be defining a Context for each application also, though I'm not sure how we would then use those with the WarpConnector to attach to Apache.
In case it will help, here are the server.xml and mod_webapp.conf contents:
===========
server.xml
===========
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Apache">
<Connector className="org.apache.catalina.connector.warp.WarpConnector"
port="8008" minProcessors="5" maxProcessors="75"
enableLookups="true" appBase="/app03/pactsecm"
acceptCount="10" debug="0"/>
<!-- Replace "localhost" with what your Apache "ServerName" is set to -->
<Engine className="org.apache.catalina.connector.warp.WarpEngine"
name="Apache" debug="0">
<!-- Global logger unless overridden at lower levels -->
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="apache_log." suffix=".txt"
timestamp="true"/>
<!-- Because this Realm is here, an instance will be shared globally -->
<Realm className="org.apache.catalina.realm.MemoryRealm" />
</Engine>
</Service>
</server>
============
mod_webapp.conf
============
<IfModule mod_webapp.c>
# Define the connection to Tomcat
WebAppConnection conn warp localhost:8008
WebAppDeploy app conn /app
WebAppInfo /stronghold/webapp-info
</IfModule> -
How to call Sun server from Tomcat
Hi
I have EJB running on SUN J2EE server on different machine. I want to access EJB from Tomcat running on my machine through JSP page.
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
p.put(Context.PROVIDER_URL, "iiop://remote_machine:3700#ejb/ConnEJBBean");
Context ctx = new InitialContext(p);
Object objRef = ctx.lookup("ejb/ConnEJBBean");
%>
objRef type is: <%=objRef.getClass().getName()%>
<%
// Do something with object reference...
ConnEJBRemoteHome conEjbRemoteHome = (ConnEJBRemoteHome)PortableRemoteObject.narrow(objRef, ConnEJBRemoteHome.class);
ConnEJBRemote myConEjb = conEjbRemoteHome.create();
%>
This call rerurn an object of com.sun.corba.se.internal.iiop.CDRInputStream_1_0$1
althought I am expecting of conEjbRemoteHome Stub. Thus it throwas error on line:
ConnEJBRemoteHome conEjbRemoteHome = (ConnEJBRemoteHome)PortableRemoteObject.narrow(objRef, ConnEJBRemoteHome.class);
Which throuws an exception:
java.lang.ClassCastException at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:293) at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
ANy help would be great...
Thanks in advance
BhuwanCouple of suggestions. First double-check that you actually have the RMI-IIOP stubs. Which version of SUN Appserver are you using. With versions 8.x or later, there are no RMI-IIOP stubs generated by default. You'd need to explicitly request that they be generated during deployment of the ejb app ( e.g. by setting the --generatermistubs option when running asadmin deploy).
Also double-check that the stubs are indeed visible within the classpath of your web application. The most common reason for the ClassCastException during PortableRemoteObject.narrow is that the stubs were not found.
--ken -
Problem loading applet from tomcat
I am facing a problem loading the batik applet from tomcat. I have placed all the jar files of batik in ROOT directory in tomcat. Along with the folder containing the batik applet. Still i receive the following exception when trying to load the html page containing batik applet.
Applet tag in html page is:
<applet codebase = "." code="batik_applet.BatikApplet.class" name="myApplet" width="1600" height="1200" hspace="0" vspace="0" align="middle" archive="batik-swing.jar,batik-gvt.jar,batik-bridge.jar,xml-apis-ext.jar,batik-css.jar,batik-util.jar,batik-dom.jar,batik-svg-dom.jar,batik-anim.jar,batik-awt-util.jar,batik-codec.jar,batik-ext.jar,batik-extension.jar,batik-gui-util.jar,batik-parser.jar,batik-script.jar,batik-svggen.jar,batik-transcoder.jar,batik-xml.jar,js.jar,pdf-transcoder.jar,xalan-2.6.0.jar,xerces_2_5_0.jar,xml-apis.jar">
</applet>
I already have a folder named batik_applet containing BatikApplet.class in the ROOT directory.
========Exception===========
network: Connecting http://localhost:8080/servlet/batik_applet/BatikApplet.class with proxy=DIRECT
network: Connecting http://localhost:8080/servlet/batik_applet/BatikApplet.class with cookie "JSESSIONID=1A75299B77372108560B4DF8DC65A3A6"
network: Connecting http://localhost:8080/servlet/batik_applet/BatikApplet/class.class with proxy=DIRECT
network: Connecting http://localhost:8080/servlet/batik_applet/BatikApplet/class.class with cookie "JSESSIONID=1A75299B77372108560B4DF8DC65A3A6"
load: class batik_applet.BatikApplet.class not found.
java.lang.ClassNotFoundException: batik_applet.BatikApplet.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
basic: Exception: java.lang.ClassNotFoundException: batik_applet.BatikApplet.class
Any help would be appreciated.Assuming that your applet is not in a jar file (don't see a value for archive)
you have a file callsed ProcessStatus.class in a folder WEB-INF\classes relative to
the location of the jsp file.
So if the jsp file is in
myJSPFileFolder
the class should be in:
myJSPFileFolder\WEB-INF\classes
If you want to see when the jre is trying to load and where it it trying to load it from you
can inspect a full trace, to turn the full trace on (windows) you can start the java console, to be found here:
C:\Program Files\Java\j2re1.4...\bin\jpicpl32.exe
In the advanced tab you can fill in something for runtime parameters fill in this:
-Djavaplugin.trace=true -Djavaplugin.trace.option=basic|net|security|ext|liveconnect
if you cannot start the java console check here:
C:\Documents and Settings\userName\Application Data\Sun\Java\Deployment\deployment.properties
I think for linux this is somewhere in youruserdir/java (hidden directory)
add or change the following line:
javaplugin.jre.params=-Djavaplugin.trace\=true -Djavaplugin.trace.option\=basic|net|security|ext|liveconnect
for 1.5:
deployment.javapi.jre.1.5.0.args=-Djavaplugin.trace\=true -Djavaplugin.trace.option\=basic|net|security|ext|liveconnect
The trace is here:
C:\Documents and Settings\your user\Application Data\Sun\Java\Deployment\log\plugin...log
I think for linux this is somewhere in youruserdir/java (hidden directory)
The trace should show something like :
Caused by: java.io.FileNotFoundException: http://server/location/filename.class (The system cannot find the path specified)
Maybe you are looking for
-
Dear Friends, I try one program, it import org.apache.xml.serialize.OutputFormat; but I cannot fine it after I google a while. where can I find and download jar file that contain this: org.apache.xml.serialize.OutputFormat I use JDK1.6 Thanks sunny
-
Error 904 calling a db function
Hi to all, On my DB I have written a security package with some procedures and functions. In a php form, I need to use a method in order to validate 2 fields (username and password). In the code of my method I have entered: sc_lookup(ds_users, "SELEC
-
ActionScript 2 need to show graphic when doors open
I had this working at one time but having a problem with adding a graphic display when the door starts to open. A button initiates the door to open, here is the script. the second part is where it fails, anyone help please. Can send fla if needed on
-
How to customize 'default: *' report templates
Hi, where are 'default: *' report templates defined? They are not listed among other templates. What I need is to create a customized template based on 'default: vertical report, look1 (exclude null columns)'. Thanks
-
Error msg VH 777 "Pricing/Euro: Attention: Euro Customising not maintained
While running CO-PA Valuation (KEPM) we are getting error message VH 777 (Pricing/euro:Attention: EURO Customising not maintained). When we have done the previous valuation in Dec 2006, we have not encountered this kind of error. In the error message