Deployment of BC4J/JSP/Struts application to tomcat-4.18
Hi,
I made an application with BC4J/Struts, with embedded OC4J Server the application work fine but when I deploy the application to tomcat-4.18 I get the following error in the Edit page :
javax.servlet.jsp.JspTagException: Illegal to flush within a custom tag
at oracle.jbo.html.jsp.datatags.ComponentTag.doStartTag(ComponentTag.java:75)
at org.apache.jsp.automate_edit_jsp._jspx_meth_jbo_DataEdit_0(automate_edit_jsp.java:421)
at org.apache.jsp.automate_edit_jsp._jspx_meth_uix_rawText_0(automate_edit_jsp.java:395)
at org.apache.jsp.automate_edit_jsp._jspx_meth_uix_contents_0(automate_edit_jsp.java:367)
at org.apache.jsp.automate_edit_jsp._jspx_meth_uix_pageLayout_0(automate_edit_jsp.java:201)
at org.apache.jsp.automate_edit_jsp._jspService(automate_edit_jsp.java:146)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.Long postings are being truncated to ~1 kB at this time.
Please see the online help for deploying JSP web applications. The instructions are under User Guides, Developing Web Applications, Developing JSPs and Servlets...
There are a number of dependency archives that need to be deployed to your webserver in order for the BC4J JSPs to run correctly.
IF you look at the Project Properties for your JSP project, you will see a number of them such as Connection Manager, ORacl e8.1.5 JDBC, etc. EAch of these libraries is based on one or more .jar or .zip files which need to be present in your webserver.
Which ones you deploy somewhat depends on how you have deployed your Business Components app module. The online help provides more details.
The Oracle JDBC classes are all located in <JDEV_HOME>/jdbc/lib/oraclex.x.x/classes111.zip. Where x.x.x is the version of the drivers. 8.1.5 is the default in JDev 2. and 3.0.
Laura
Similar Messages
-
Deploy BC4J/JSP-Struts to IAS
HI,
I'm trying to deploy a BC4J/JSP-Struts application to IAS. This application was developed with JDeveloper 9.0.3.
I can deploy this application to a Standalone OC4J (delivered with JDeveloper 9.0.3) on Windows2000 without problem.
Then I want to deploy this application on Oracle9iAS 9.0.2. For this I create an .EAR file with JDeveloper and I start the OC4J Administrator tools from Oracle9iAS and deploy my application.
I start the application with
http://erbium.int.imd.ch:7778/InvoicesInterface/main.jsp?user=x-XxX
and I become the menu without Problem.
Then I click on the link
http://erbium.int.imd.ch:7778/InvoicesInterface/VInvoiceUsersView1_Browse.do?user=x-XxX
and I become following :
HTTP 500 Internal server error
The page cannot be displayed
Did you have any Ideas ?
Thanks Yves
Configuration:
- Oracle9iAS (9.0.2) on Solaris
- JDeveloper9.0.3Yves -
I am not able to pinpoint the exact error you are having but here are some obervations
a) You are going backwards in versions of OC4J when you deploy to 9iAS 902. If you are using JDev 903, then it is running with a local version of OC4J 903. When you are deploying to 9iAS 902, it's a earlier release of OC4J, so there may be an issue there. There is a 9iAS 903 version available from OTN that would be better to use in this case.
b) Is the struts framework packaged as part of the EAR file you are deploying? i'm not familiar with how BC4J and Struts apps are packaged from JDeveloper, but this is something to check on for sure. The local OC4J running inside of JDeveloper may have the Struts libs configured at the server level.
c) You might want to try and change the show-friendly-error-messages (or something like that) property inside of IE (if you are using it) so that it will display the stack trace the server might be sending. this may be of help to further locate the source of the problem (ClassNotFoundException, etc.).
-steve- -
Error Deploying a BC4J JSP Application on IAS
When I am trying to run a BC4J JSP Application on IAS I have the following message:
Error Message: JBO-30003: The application pool, BC4JDemojsp_BC4JDemo_BC4JDemoModule, failed to checkout an application module instance.
Error Message: JBO-25002: Definition BC4JDemo.BC4JDemoModule of type ApplicationModule not foundGina,
I would recommend checking out the following HowTo's recently posted on OTN by the JDev Team. They may indicate where your problem is occuring and how to fix it:
Set up your Webserver to run BC4J: http://technet.oracle.com:89/ubb/Forum2/HTML/006397.html
Deploy a BC4J JSP Application on iAS and Tomcat: http://technet.oracle.com:89/ubb/Forum2/HTML/006398.html
How to Deploy Multiple BC4J JSP Web Apps to the same Webserver: http://technet.oracle.com:89/ubb/Forum2/HTML/006726.html
Note, if you are deploying on iAS, the Online Orders tutorial application comes with that release, so you might want to refer to the last HowTo to make sure your webserver is set up to handle multiple apps, even if one if them isn't yours!
null -
Deployment of BC4J JSP in Java web Server2.0
I'm presently trying to deploy a BC4j Jsp into the Java Webserver , I have copied all the class , java and the JSP files in the JWS2.0 , but the error I get is as follows :
Package oracle.jbo.* not found in import ,
Package javax.naming.* not found in import ,
Package oracle.jdeveloper.html.* not found in import etc.
I tried to copy all the JDeveloper class files in the JWS2.0 but no luck ,but here I was able to deploy sucessfully an simple jsp application using a session bean.
Secondly, I'm not able to use the internal web server of JDeveloper3.0 to run my JSP's , if I try to run, the browser is not able to contact the port no. 7070 and it gives an TCP error / connection error.
Please also suggest how to include the Jdbc driver in the classpath.
Thanks in advance ,
regards,
EktaPlease see the online help for deploying JSP web applications. The instructions are under User Guides, Developing Web Applications, Developing JSPs and Servlets...
There are a number of dependency archives that need to be deployed to your webserver in order for the BC4J JSPs to run correctly.
IF you look at the Project Properties for your JSP project, you will see a number of them such as Connection Manager, ORacl e8.1.5 JDBC, etc. EAch of these libraries is based on one or more .jar or .zip files which need to be present in your webserver.
Which ones you deploy somewhat depends on how you have deployed your Business Components app module. The online help provides more details.
The Oracle JDBC classes are all located in <JDEV_HOME>/jdbc/lib/oraclex.x.x/classes111.zip. Where x.x.x is the version of the drivers. 8.1.5 is the default in JDev 2. and 3.0.
Laura -
Frame issue in jsp/struts application
I have a problem with jsp struts application .
i have a jsp page which is inside a frame .
The action class which receives the request from this page redirects the request to another jsp page.
I want this new jsp page to be displayed without any frame , but it is getting displayed from inside the frame .
can anybody help me out ...
regards,
slamPossibly:
1. Browser could be caching the page.
2. If you use a proxy, the proxy may be caching the page.
3. The page is not getting recompiled. -
How to solve the error while Deploy a BC4J JSP Application using tomcat,
hello,
how to avoid the following error?
i am using jdevloper for devloping jsp applications.
after that i am calling the jsp page using tomcat4.0 ,i followed the steps according docs by jdev team,
i am getting the following error how to solve this,
can one help?
=============================
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
exception
org.apache.jasper.compiler.CompileException: /AccountView_Browse.jsp(4,0) Unable to load class oracle.jbo.html.jsp.datatags.ApplicationModuleTag
at org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:139)
at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspParseEventListener.java:829)
at org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventListener.java:153)
at org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEventListener.java:1039)
at org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:221)
at org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:216)
at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:852)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:214)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: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.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: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:174)
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:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:536)
====================
thanks
pullareddyI had very similar problems with adding the correct JDeveloper .jar files to Tomcat's lib folder, but did eventually resolve my issues.
The problem I am having now, however, is the following error message:
Error Message: oracle.jbo.html.RequestParameters.addParameter(Ljava/lang/String;Ljava/lang/String;)V
Yes, I have deployed the bc4jhtml.jar file from JDeveloper to Tomcat\common\lib!
My web-app is a very simple BC4J JSP application. I have one BC4J component in its own project and JAR file, and one JSP referencing that BC4J component - I deploy the BC4J JAR along with the WAR file from the JSP project. Needless to say, the JSP works fine within JDeveloper..!
I'm using JDev 9.0.3 and Tomcat 4.1.12. Does anyone have any suggestions?
Thanks,
S. -
Error while deploying struts application in tomcat
Hi,
I'm getting the following error when I start Tomcat using while auto-deploying a struts application.
2005-09-21 15:28:17 - ContextManager: Adding DEFAULT:/cna
2005-09-21 15:28:18 - Ctx(/cna) : Validating web.xml
2005-09-21 15:28:18 - Ctx(/cna) : Class not found: org.apache.struts.action.Acti
onServlet
2005-09-21 15:28:18 - Ctx(/cna) : Class not found: org.apache.axis.transport.htt
p.AdminServlet
In case anyone is aware how to resolve this issue, please help.
Thanks,
RoselineHi,
1] Remove following from server.xml
<Context path="/SEA" docBase="SEA" debug="0"/>
2] Paste SEA.WAR (test WAR file) into /webapps of TOMCAT
3] Start Tomcat Server - This will create SEA folder under webapps
4] Stop server.
5] Add following to server.xml
<Context path="/SEA" docBase="SEA" debug="0"/>
6] Start Tomcat Server
7] Access the URL.
This will work. Somehow Tomcat does not extract war file contents which are mentioned in server.xml.
I have Apache Tomcat 4.0.3 and faced this problem. The above solution works for it.
Regards,
Sandesh
hi.
I have put my SEA.WAR (test WAR file) into /webapps of
TOMCAT.
I checked the server.xml and put:
<Context path="/SEA" docBase="SEA" debug="0"/>
I restarted TOMCAT and tried to execute the file:
http://localhost:8080/SEA/index.jsp
But I got error message:
Apache Tomcat/4.0.3 - HTTP Status 404 -
/SEA/index.jsp
What was happenning?
Anyone can help me?
Thank you. -
Deploy the BC4J JSP Applications to Sun ONE Application Server 7.0
Hi
I am new for the Jdeveloper 9.0.3, I felt that the OC4J is quite useful, but I am not sure if it can be deployed on Sun ONE application server 7.0 (Our team are using Sun ONE Application server 7.0 as our J2EE AS). If it can, please tell me the deploy procedures, Thanks in advance!
RegardsI'm not sure if we've tried it under 7.0, although we did under 6.5 a short while back. If you write a BC4J based J2EE application, it should be able to be deployed across Application Servers (TSS just added Sun One 7 to their cluster)
You can take a look at the 6.5 procedures for now, and just do the same as migrating from 6.5 to 7.0.
http://otn.oracle.com/products/jdev/howtos/appservers/deploy_bc4j_to_iplanet.html
Rob -
Error in deploying the java studio creator application to tomcat
Hi,
I'm trying to deploy my Sun Java Studio application to Apache Tomcat 5.0.28.
A simple JSF web application built using the creator works fine after deploying the war file under tomcat/weapps directory.
In case of a application with databse connection I'm getting the
" com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' "
above error. My application connects to Oracle database using the Oracle Server type provided by the Studio Creator.
I have copied
jstl.jar
standard.jar
to webapps\%app%\WEB-INF\lib
The below url is currently not available ( Page not Found )stated as a solution in most of the querries regarding the deplyment to tomcat.
http://developers.sun.com/prodtech/javatools/jscreator/reference/tips/deploy_to_tomcat.html
Thanks for any help
abhiI had similar problems.
I used mysql with tomcat and have mysql in my Creator environment as well but still had the driver message you experienced.
I found that simply copying the WAR file into the webapp directory in tomcat caused a faulty deployment (it was creating /etc/tomcat5/localhost/YourProject.xml as a directory, not as a file)
I updated my Projects/MyProject/build.xml to include a deploy target and I manually execute the ant deploy step (having not figured out how to tweak the internal ant within Creator)
Note that this requires two jar files (see comments in the ant definition)
<project name="YourRoster" default="default" basedir=".">
<description>Builds, tests, and runs the project YourProject.</description>
<import file="nbproject/build-impl.xml"/>
<property file="build.properties"/>
<property name="appdir" value="."/>
<property name="distdir" value="${appdir}/dist"/>
<property name="warfile" value="${distdir}/${app}.war"/>
<property name="builddir" value="${appdir}/build"/>
<path id="classpath">
<pathelement location="${servlet.api.jar}"/>
<pathelement location="${jsp.api.jar}"/>
<fileset dir="${builddir}/WEB-INF/lib">
<include name="*.jar"/>
</fileset>
</path>
<!-- requires tomcat/server/lib/catalina-ant.jar -->
<target name="lrp-init">
<tstamp/>
<fail unless="app" message="Run ant -Dapp=... or update 'build.properties'"/>
</target>
<target name="deploy-tomcat" depends="dist"
description="Deploy web application.">
<echo message="Deploying ${app} ..."/>
<taskdef name="deploy"
classname="org.apache.catalina.ant.DeployTask"/>
<deploy url="${manager.url}" username="${username}"
password="${password}" path="/${app}"
war="file:${warfile}"/>
</target>
<target name="undeploy-tomcat" depends="lrp-init"
description="Undeploy web application.">
<echo message="Undeploying ${app} ..."/>
<taskdef name="undeploy"
classname="org.apache.catalina.ant.UndeployTask"/>
<undeploy url="${manager.url}" username="${username}"
password="${password}" path="/${app}"/>
</target>
<!-- requires ant-contrib (http://ant-contrib.sourceforge.net) -->
<target name="try.undeploy-tomcat" depends="lrp-init"
description="Call the undeploy task (which may fail).">
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
<trycatch>
<try>
<ant target="undeploy-tomcat"/>
</try>
<catch/>
</trycatch>
</target>
<target name="redeploy-tomcat" depends="try.undeploy-tomcat,deploy-tomcat"
description="Undeploy and deploy web application.">
</target>
</project>In addition, the build.properties...
jsf.dir=/opt/jsf-1_1_01
tomcat.dir=/opt/tomcat5
app=YourProject
username=tomcatAdminUser
password=tomcatPassword
manager.url=http://localhost:8080/manager
servlet.api.jar=${tomcat.dir}/common/lib/servlet-api.jar
jsp.api.jar=${tomcat.dir}/common/lib/jsp-api.jar
jsf.lib.dir=${jsf.dir}/lib
jstl.lib.dir=${tomcat.dir}/webapps/jsp-examples/WEB-INF/lib
commons.lib.dir=${tomcat.dir}/server/lib
jsf.libs=jsf-api.jar,jsf-impl.jar
jstl.libs=jstl.jar,standard.jar
commons.libs=commons-beanutils.jar,commons-digester.jarHope this helps.
...Lyall -
Oracle.jdeveloper.deploy.DeployException while running struts application
I am using Jdev 9.0.4.0.0build(1347)to develop my Struts application.
My application was running fine until yesterday.
Now when I am try to compile my application I am getting "Internal compilation error, terminated with a fatal exception".
Also when trying to run/debug its giving following error:
oracle.jdeveloper.deploy.DeployException
at oracle.jdeveloper.deploy.oc4j.ds.Oc4jDataSourcesNode.syncWithConnectionManager(Oc4jDataSourcesNode.java:68)
at oracle.jdeveloper.runner.Oc4jStarter.transmogrifyConfigFiles(Oc4jStarter.java:993)
at oracle.jdeveloper.runner.Oc4jStarter.startImplImpl(Oc4jStarter.java:626)
at oracle.jdeveloper.runner.Oc4jStarter.startImpl(Oc4jStarter.java:590)
at oracle.jdeveloper.runner.Oc4jStarter.start(Oc4jStarter.java:263)
at oracle.ide.runner.RunProcess.startTarget(RunProcess.java:524)
at oracle.jdeveloper.runner.JRunProcess.startTarget(JRunProcess.java:458)
at oracle.jdevimpl.runner.debug.DebuggingProcess.startTarget(DebuggingProcess.java:623)
at oracle.ide.runner.RunProcess$2.run(RunProcess.java:467)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
Caused by: oracle.ide.marshal.xml.Object2DomException: Error parsing XML
at oracle.ide.marshal.xml.Object2Dom.getDocument(Object2Dom.java:1169)
at oracle.ide.marshal.xml.Object2Dom.toObject(Object2Dom.java:223)
at oracle.jdeveloper.deploy.common.DescriptorIO.load(DescriptorIO.java:212)
at oracle.jdevimpl.deploy.DescriptorNode.getLastSavedDescriptor(DescriptorNode.java:382)
at oracle.jdevimpl.deploy.DescriptorNode.getDescriptor(DescriptorNode.java:347)
at oracle.jdeveloper.deploy.oc4j.ds.Oc4jDataSourcesNode.getOc4jDataSources(Oc4jDataSourcesNode.java:55)
at oracle.jdeveloper.deploy.oc4j.ds.Oc4jDataSourcesNode.syncWithConnectionManager(Oc4jDataSourcesNode.java:62)
... 15 more
oracle.ide.marshal.xml.Object2DomException: Error parsing XML
at oracle.ide.marshal.xml.Object2Dom.getDocument(Object2Dom.java:1169)
at oracle.ide.marshal.xml.Object2Dom.toObject(Object2Dom.java:223)
at oracle.jdeveloper.deploy.common.DescriptorIO.load(DescriptorIO.java:212)
at oracle.jdevimpl.deploy.DescriptorNode.getLastSavedDescriptor(DescriptorNode.java:382)
at oracle.jdevimpl.deploy.DescriptorNode.getDescriptor(DescriptorNode.java:347)
at oracle.jdeveloper.deploy.oc4j.ds.Oc4jDataSourcesNode.getOc4jDataSources(Oc4jDataSourcesNode.java:55)
at oracle.jdeveloper.deploy.oc4j.ds.Oc4jDataSourcesNode.syncWithConnectionManager(Oc4jDataSourcesNode.java:62)
at oracle.jdeveloper.runner.Oc4jStarter.transmogrifyConfigFiles(Oc4jStarter.java:993)
at oracle.jdeveloper.runner.Oc4jStarter.startImplImpl(Oc4jStarter.java:626)
at oracle.jdeveloper.runner.Oc4jStarter.startImpl(Oc4jStarter.java:590)
at oracle.jdeveloper.runner.Oc4jStarter.start(Oc4jStarter.java:263)
at oracle.ide.runner.RunProcess.startTarget(RunProcess.java:524)
at oracle.jdeveloper.runner.JRunProcess.startTarget(JRunProcess.java:458)
at oracle.jdevimpl.runner.debug.DebuggingProcess.startTarget(DebuggingProcess.java:623)
at oracle.ide.runner.RunProcess$2.run(RunProcess.java:467)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
I don have any clue abt this. Pls help!!!Well i fixed the issue. There were some syntax mistakes in my "PayrollWS-data-sources.xml" file..
-
Deploy a BC4J JSP Application on IAS
OK, I changed my classpath jserv.properties file as you suggest, but I get the following error when I run my applet from IE:
wrapper.bin=K:\Ora816\Apache\jdk\bin\java.exe
wrapper.env=PATH=K:\Ora816\bin
# Oracle XSQL Servlet
wrapper.classpath=K:\Ora816\lib\oraclexsql.jar
# Oracle JDBC (8.1.7)
wrapper.classpath=K:\Ora816\jdbc\lib\classes12.zip
# Oracle XML Parser V2 (with XSLT Engine)
wrapper.classpath=K:\Ora816\lib\xmlparserv2.jar
# Oracle XML SQL Components for Java
wrapper.classpath=K:\Ora816\rdbms\jlib\xsu12.jar
# XSQLConfig.xml File location
wrapper.classpath=K:\Ora816\xdk\lib
# Oracle Servlet
wrapper.classpath=K:\Ora816\lib\servlet.jar
# Oracle Java Server Pages
wrapper.classpath=K:\Ora816\jsp\lib\ojsp.jar
# Oracle Util
wrapper.classpath=K:\Ora816\jsp\lib\ojsputil.jar
# Oracle Java SQL
wrapper.classpath=K:\Ora816\sqlj\lib\translator.zip
# Oracle JDBC
wrapper.classpath=K:\Ora816\jdbc\lib\classes12.zip
# SQLJ runtime
wrapper.classpath=K:\Ora816\sqlj\lib\runtime.zip
# Oracle Messaging
wrapper.classpath=K:\Ora816\rdbms\jlib\aqapi11.jar
wrapper.classpath=K:\Ora816\rdbms\jlib\jmscommon.jar
# OJSP environment settings
wrapper.env=ORACLE_HOME=K:\Ora816
# The next line should be modified to reflect the value of the SID for your webserver.
wrapper.env=ORACLE_SID=ORAWEB
wrapper.env=LD_LIBRARY_PATH=K:\Ora816\lib
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\tools.jar
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\aurora_client.jar
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\Bc_Hr_Main1.jar
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\classes12.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\connectionmanager.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\javax_ejb.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jbo8iclient.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jbodatum12.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jboeb.jar
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jbohtml.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jbohtmlsrc.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jbojdbcpatch.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jbomt.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jboo8i.zip wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jbooasejb.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jboorasql.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jboremote.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jboremoteejb.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jbovb.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jbovbclient.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jdev-rt.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jndi.jar
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\Bc_Hr_Main2.jar
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\ojc.jar
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\ojsp.jar
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\rt.jar
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\vbjapp.jar
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\vbjorb.jar
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\xmlparserv2.jar
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jbovanilla.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\ordhttp.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\ordim817
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\ordvir817
wrapper.classpath=K:\Ora816\Apache\Apache\htdocs\JSP_Stage
nullOK, I changed my classpath jserv.properties file as you suggest, but I get the following error when I run my applet from IE:
wrapper.bin=K:\Ora816\Apache\jdk\bin\java.exe
wrapper.env=PATH=K:\Ora816\bin
# Oracle XSQL Servlet
wrapper.classpath=K:\Ora816\lib\oraclexsql.jar
# Oracle JDBC (8.1.7)
wrapper.classpath=K:\Ora816\jdbc\lib\classes12.zip
# Oracle XML Parser V2 (with XSLT Engine)
wrapper.classpath=K:\Ora816\lib\xmlparserv2.jar
# Oracle XML SQL Components for Java
wrapper.classpath=K:\Ora816\rdbms\jlib\xsu12.jar
# XSQLConfig.xml File location
wrapper.classpath=K:\Ora816\xdk\lib
# Oracle Servlet
wrapper.classpath=K:\Ora816\lib\servlet.jar
# Oracle Java Server Pages
wrapper.classpath=K:\Ora816\jsp\lib\ojsp.jar
# Oracle Util
wrapper.classpath=K:\Ora816\jsp\lib\ojsputil.jar
# Oracle Java SQL
wrapper.classpath=K:\Ora816\sqlj\lib\translator.zip
# Oracle JDBC
wrapper.classpath=K:\Ora816\jdbc\lib\classes12.zip
# SQLJ runtime
wrapper.classpath=K:\Ora816\sqlj\lib\runtime.zip
# Oracle Messaging
wrapper.classpath=K:\Ora816\rdbms\jlib\aqapi11.jar
wrapper.classpath=K:\Ora816\rdbms\jlib\jmscommon.jar
# OJSP environment settings
wrapper.env=ORACLE_HOME=K:\Ora816
# The next line should be modified to reflect the value of the SID for your webserver.
wrapper.env=ORACLE_SID=ORAWEB
wrapper.env=LD_LIBRARY_PATH=K:\Ora816\lib
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\tools.jar
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\aurora_client.jar
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\Bc_Hr_Main1.jar
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\classes12.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\connectionmanager.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\javax_ejb.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jbo8iclient.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jbodatum12.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jboeb.jar
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jbohtml.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jbohtmlsrc.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jbojdbcpatch.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jbomt.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jboo8i.zip wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jbooasejb.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jboorasql.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jboremote.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jboremoteejb.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jbovb.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jbovbclient.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jdev-rt.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jndi.jar
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\Bc_Hr_Main2.jar
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\ojc.jar
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\ojsp.jar
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\rt.jar
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\vbjapp.jar
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\vbjorb.jar
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\xmlparserv2.jar
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\jbovanilla.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\ordhttp.zip
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\ordim817
wrapper.classpath=K:\Ora816\Apache\BC4J\lib\ordvir817
wrapper.classpath=K:\Ora816\Apache\Apache\htdocs\JSP_Stage
null -
Struts Application causes tomcat exception on startup
Hi
I am running a struts web application on my tomcat server. Whenever I deploy the application to the server I get the exception listed below. However, there is no problem in the functioning of the website. I am trying to figure out the cause of this exception and find a way to remove it , even though it is not affecting my workflow.
SEVERE: Parse Error at line 12 column 101: Attribute "type" with value "String" must have a value from the list "string page template definition ".
org.xml.sax.SAXParseException: Attribute "type" with value "String" must have a value from the list "string page template definition ".
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.validateDTDattribute(XMLDTDValidator.java:1414)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(XMLDTDValidator.java:1333)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1940)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:785)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:377)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at org.apache.commons.digester.Digester.parse(Digester.java:1887)
at org.apache.struts.tiles.xmlDefinition.XmlParser.parse(XmlParser.java:279)
at org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFile(I18nFactorySet.java:511)
at org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFiles(I18nFactorySet.java:446)
at org.apache.struts.tiles.xmlDefinition.I18nFactorySet.createDefaultFactory(I18nFactorySet.java:263)
at org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory(I18nFactorySet.java:238)
at org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory(I18nFactorySet.java:188)
at org.apache.struts.tiles.definition.ComponentDefinitionsFactoryWrapper.init(ComponentDefinitionsFactoryWrapper.java:102)
at org.apache.struts.tiles.TilesUtilImpl.createDefinitionsFactory(TilesUtilImpl.java:172)
at org.apache.struts.tiles.TilesUtil.createDefinitionsFactory(TilesUtil.java:179)
at org.apache.struts.tiles.TilesPlugin.initDefinitionsFactory(TilesPlugin.java:223)
at org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:138)
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:884)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:356)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1172)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4371)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:511)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1231)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1471)
at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:824)
at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:350)
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.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
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:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)Thank you very much.
I checked my code. The error was that in struts-tiles.xml I was replacing the title attribute and had set its type as "String"
I changed it to "string" and I don't get an exception any longer.
Thanks again for the same.
For the benefit of anyone who might have the same error :
<tiles-definitions>
<definition name="main.layout.base" path="/template/layoutBase.jsp">
<put name="header" value="/template/header.jsp"/>
<put name="menu" value="/template/menu.jsp"/>
<put name="title" value ="Web Page Header " type="string" />
<put name="footer" value="/template/footer.jsp"/>
</definition> -
Swing or JSP/Struts application?
I'm deploying an application for a public hospital in Argentina and i have doubts about the framework to use.
The application will be used in very old computers (pentium I/II or older) but will count with a good server (bought specifically for this use).
This limitation of hardware also has made me rethink the election of the framework of persistence. It would be appropriate to use hibernate?
I'll appreciate if you can help me with this decisions.
AdrianaTo give you a good answer I would need a lot more information, but right now it sounds like your best bet is to use JSP. Here are two enormous reasons why:
1) You will not have to deploy any software at the client end - as long as they have a web browser they will be able to connect. They do not even need Java support. This has several related advantages, including that you will never have to deal with "updating" the clients - you can change the code on your end freely.
2) The total amount of work you put into it is probably going to be a lot less. Since you are just using HTML and not writing a GUI proper, it will be a lot easier.
The main reason you might discover that you do NOT want to use JSP is that it limits your functionality. For example, if you decide you need an interactive chat room you are going to end up coming back to Swing and deploying either an applet, Java Web Start app, or standalone application... unless you do not mind it being a really crappy chat room.
Drake -
BC4j/JSP Application not responding after some time - when deployed on 9ias
Hi,
We are using BC4j/jsp application on 9ias. The application is not responding
after some time. We have installed 9ias on PIII(384MB RAM). We tried to accesses
with 10 users, and server is not responding to BC4J/JSP application.
However the server could able to publish the JSP pages with standerad JDBC code even after that.
many many thanks in advance
nullWhen the application deployed by BC4J/JSP not responding, does the sample JSP application still works? i.e. does any other application respond? Does 1 user respond? Is the database source (JDBC), running Oracle 8.1.7? What is the platform running the database (e.g. local NT database)?
-
BC4J, JSP, Apache: Deployment to web-inf
I'm trying to deploy a BC4J JSP application to a web-inf directory. In other words I'm using the OracleJSP extensions that support the globals.jsa application/session context.
When I place my application's BC4J jar file in the \approot\web-inf\lib directory it doesn't work. When I try a simple app with no BC4J its works. ie. My JSP works and it can load classes from both \approot\web-inf\classes and \approot\web-inf\lib\??.jar.
If I place the application BC4J jar file in \approot\web-inf\lib it can't find files such as \bc4jpackage\common\bc4j.xcfg. Therefore I think OracleJSP will load classes from \web-inf but because its not really in the JServ classpath BC4J wont find any other files.
Anyone tried this? Is there a workaround?Hi,
I am yet another victim of the age-old error JBO:33001 bc4j.xcfg file not found in class path, When i have my BC4JApp.jar in Tomcat Web-inf/lib directory. All the other jar files and class files in my webserver-application web-inf classes and lib directory works.
But Tomcat server is not able to read this bc4j.xcfg file. I can see in my jar file that this bc4j.xcfg exists and in the specified package directory. still the problem persists. My BC4JApp.jar is perfectly working when i use JDeveloper. but not when i use tomcat4.0 and call a JSP using BC4JApp.jar from browser (My environment is Jdeveloper3.2, Tomcat4.0+IIS in middle tier and oracle 8i as DB, everything on windows2k)
I have gone through almost all the threads possible that relates to this error in this form. None of them have a answer except to say "put the file in classpath". and last reply is "will fix in jDeveloper 9i. So what happens to us who are working in Jdeveloper 3.2?
1. I have this file in my jar file.
2. I also tried creating a seperate directory manually, with the same name as my package under web-inf/classes, web-inf/lib , just under web-inf directory and atlast under approot directory also. I tried having my package directory containing bc4j.xcfg in these folders one at a time and also tried having this directory in all these folders at the same time.
Still no solution.
Itz frustrating that neither proper documentation nor a right url page nor i am aware of available addressing this. page links given in above threads only gives me the wonderful page of ie's "Page cannot be displayed".
Is there a answer to this error and my problem. If this doesn't work, then i have to all the way develop from scratch creating my jsp using JDBC calls and Stored packages etc.
I don't want to give up on this Jdeveloper at this final moment because if this bc4j.xcfg file is found, my application will work perfectly. on these final moments, if this doesn't work, i am frightened to imagine to develop my application in standard way. Atlast, if thatz the option left,we have to do that bcos our production date is close by.
Please can some one in this forum or Jdeveloper help me to solve this problem. I am desperate and very urgent.
Waiting for a reply from Jdev team very much...
Thanks
Hari(2/3/02)
Maybe you are looking for
-
How to create a report which shows leave entitlement balances on a eff date
Hi, customer would like to get a report, or sql statement, which shows employees net entitlements for an accrual plan. Because it is a calculated amount, I am not able to get my own quick paint or standard report. Who can help? ruud
-
Can't Connect Properly to Router After Successful Airport Express Setup
Hello - this is my first time posting here, but I had a weird issue I was hopeful someone could assist with. Basically, I was having a lot of trouble setting up my Airport Express to join my existing network to steam audio to a set of speakers. After
-
Where are my photos? iPhoto library hides them AND renames the folders
I recently upgraded to Lion OS and can no longer see my photos and videos in Finder. A search shows that they are all in a dir that is actually an iPhoto library. Bizarrely it has been given the name of the first lot of photos that I imported in to i
-
how to ignore nulls in analytic functions ( row_number() and count())
-
Although bookmarks exist in Favourites, some of them do not display in Firefox
When I installed FireFox I imported all IE8 favourites without problem. Having now saved additional "favourites" I find that, although they physically exist in the Favourites Folder, they do not appear when I look at Bookmarks. Anyone advise me pleas