Probleme to run jsp from TOMACAT
Hi everyone, I just installed JRockit build 7.0-1.3.1-win32-GARAK-20020830-1702
on Win 2000, with Tomcat 4.0.4 I am able run tomcat servlets but when I try to
run Jsp i get the following error. This Servlet work fine with Sun JDK
2002-09-19 18:22:55 StandardContext[]: Servlet threw load() exception
javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception
at org.apache.catalina.core.StandardWrapper.loadServlet()Ljavax.servlet.Servlet;(Unknown
Source)
at org.apache.catalina.core.StandardWrapper.load()V(Unknown Source)
at org.apache.catalina.core.StandardContext.loadOnStartup([Lorg.apache.catalina.Container;)V(Unknown
Source)
at org.apache.catalina.core.StandardContext.start()V(Unknown Source)
at org.apache.catalina.core.ContainerBase.start()V(Unknown Source)
at org.apache.catalina.core.StandardHost.start()V(Unknown Source)
at org.apache.catalina.core.ContainerBase.start()V(Unknown Source)
at org.apache.catalina.core.StandardEngine.start()V(Unknown Source)
at org.apache.catalina.core.StandardService.start()V(Unknown Source)
at org.apache.catalina.core.StandardServer.start()V(Unknown Source)
at org.apache.catalina.startup.Catalina.start()V(Unknown Source)
at org.apache.catalina.startup.Catalina.execute()V(Unknown Source)
at org.apache.catalina.startup.Catalina.process([Ljava.lang.String;)V(Unknown
Source)
at COM.jrockit.reflect.NativeMethodInvoker.invoke0(ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
at COM.jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
at COM.jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown
Source)
at org.apache.catalina.startup.Bootstrap.main([Ljava.lang.String;)V(Unknown Source)
----- Root Cause -----
java.lang.NoSuchMethodError: getResourcePaths
at org.apache.jasper.compiler.TldLocationsCache.processJars(Ljavax.servlet.ServletContext;)V(Unknown
Source)
at org.apache.jasper.compiler.TldLocationsCache.<init>(Ljavax.servlet.ServletContext;)V(Unknown
Source)
at org.apache.jasper.EmbededServletOptions.<init>(Ljavax.servlet.ServletConfig;Ljavax.servlet.ServletContext;)V(Unknown
Source)
at org.apache.jasper.servlet.JspServlet.init(Ljavax.servlet.ServletConfig;)V(Unknown
Source)
at org.apache.catalina.core.StandardWrapper.loadServlet()Ljavax.servlet.Servlet;(Unknown
Source)
at org.apache.catalina.core.StandardWrapper.load()V(Unknown Source)
at org.apache.catalina.core.StandardContext.loadOnStartup([Lorg.apache.catalina.Container;)V(Unknown
Source)
at org.apache.catalina.core.StandardContext.start()V(Unknown Source)
at org.apache.catalina.core.ContainerBase.start()V(Unknown Source)
at org.apache.catalina.core.StandardHost.start()V(Unknown Source)
at org.apache.catalina.core.ContainerBase.start()V(Unknown Source)
at org.apache.catalina.core.StandardEngine.start()V(Unknown Source)
at org.apache.catalina.core.StandardService.start()V(Unknown Source)
at org.apache.catalina.core.StandardServer.start()V(Unknown Source)
at org.apache.catalina.startup.Catalina.start()V(Unknown Source)
at org.apache.catalina.startup.Catalina.execute()V(Unknown Source)
at org.apache.catalina.startup.Catalina.process([Ljava.lang.String;)V(Unknown
Source)
at COM.jrockit.reflect.NativeMethodInvoker.invoke0(ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
at COM.jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
at COM.jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown
Source)
at org.apache.catalina.startup.Bootstrap.main([Ljava.lang.String;)V(Unknown Source)
Sorry this is CLASSPATH Error
SUN JSK have Servlet Method in native code not Jrockit
Thanks
Thierry Capron" <[email protected]> wrote:
>
Hi everyone, I just installed JRockit build 7.0-1.3.1-win32-GARAK-20020830-1702
on Win 2000, with Tomcat 4.0.4 I am able run tomcat servlets but when
I try to
run Jsp i get the following error. This Servlet work fine with Sun JDK
2002-09-19 18:22:55 StandardContext[]: Servlet threw load() exception
javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
at org.apache.catalina.core.StandardWrapper.loadServlet()Ljavax.servlet.Servlet;(Unknown
Source)
at org.apache.catalina.core.StandardWrapper.load()V(Unknown Source)
at org.apache.catalina.core.StandardContext.loadOnStartup([Lorg.apache.catalina.Container;)V(Unknown
Source)
at org.apache.catalina.core.StandardContext.start()V(Unknown Source)
at org.apache.catalina.core.ContainerBase.start()V(Unknown Source)
at org.apache.catalina.core.StandardHost.start()V(Unknown Source)
at org.apache.catalina.core.ContainerBase.start()V(Unknown Source)
at org.apache.catalina.core.StandardEngine.start()V(Unknown Source)
at org.apache.catalina.core.StandardService.start()V(Unknown Source)
at org.apache.catalina.core.StandardServer.start()V(Unknown Source)
at org.apache.catalina.startup.Catalina.start()V(Unknown Source)
at org.apache.catalina.startup.Catalina.execute()V(Unknown Source)
at org.apache.catalina.startup.Catalina.process([Ljava.lang.String;)V(Unknown
Source)
at COM.jrockit.reflect.NativeMethodInvoker.invoke0(ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
at COM.jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
at COM.jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown
Source)
at org.apache.catalina.startup.Bootstrap.main([Ljava.lang.String;)V(Unknown
Source)
----- Root Cause -----
java.lang.NoSuchMethodError: getResourcePaths
at org.apache.jasper.compiler.TldLocationsCache.processJars(Ljavax.servlet.ServletContext;)V(Unknown
Source)
at org.apache.jasper.compiler.TldLocationsCache.<init>(Ljavax.servlet.ServletContext;)V(Unknown
Source)
at org.apache.jasper.EmbededServletOptions.<init>(Ljavax.servlet.ServletConfig;Ljavax.servlet.ServletContext;)V(Unknown
Source)
at org.apache.jasper.servlet.JspServlet.init(Ljavax.servlet.ServletConfig;)V(Unknown
Source)
at org.apache.catalina.core.StandardWrapper.loadServlet()Ljavax.servlet.Servlet;(Unknown
Source)
at org.apache.catalina.core.StandardWrapper.load()V(Unknown Source)
at org.apache.catalina.core.StandardContext.loadOnStartup([Lorg.apache.catalina.Container;)V(Unknown
Source)
at org.apache.catalina.core.StandardContext.start()V(Unknown Source)
at org.apache.catalina.core.ContainerBase.start()V(Unknown Source)
at org.apache.catalina.core.StandardHost.start()V(Unknown Source)
at org.apache.catalina.core.ContainerBase.start()V(Unknown Source)
at org.apache.catalina.core.StandardEngine.start()V(Unknown Source)
at org.apache.catalina.core.StandardService.start()V(Unknown Source)
at org.apache.catalina.core.StandardServer.start()V(Unknown Source)
at org.apache.catalina.startup.Catalina.start()V(Unknown Source)
at org.apache.catalina.startup.Catalina.execute()V(Unknown Source)
at org.apache.catalina.startup.Catalina.process([Ljava.lang.String;)V(Unknown
Source)
at COM.jrockit.reflect.NativeMethodInvoker.invoke0(ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
at COM.jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
at COM.jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown
Source)
at org.apache.catalina.startup.Bootstrap.main([Ljava.lang.String;)V(Unknown
Source)
Similar Messages
-
Oracle Report Font problem when run report from oracle EBS R12
Dear All
I have developed one Report in ORACLE REPORT BUILDER in windows environment. I see the output of that report, its ok, I deployed it on the EBS R12 which is on Linux environment, when i see the output, its fonts totally change and due to change in fonts, output not same as like in previous stage. When i print from dot matrix Printer then sometime its shrink the character and sometime break the output..
Kindly help me in this regard, because this problem i am facing from last few days.
i am waiting for your quick response.
Thanks in advance....
Regards,
Nawaz
Edited by: Haq Nawaz on Nov 5, 2012 11:45 AMThank you very much for your reply
I have changed the fonts in the report, but when i run it from the EBS its has the same problem. from the EBS output font look like as (COURIER) rather than CALIBRI WESTERN.
tell me what i have to change anything. -
I am having problems to run Safari from my iPhone 5
Dear all,
I'm having problems to run Safari App from my Iphone 5. The application can't be opened and don't initiate.Yes, I have restarted the IPhone almost four times, and nothing. Then I've restored and then set up the Iphone from the begginnig and Safari seems to work, but 24 hours later, the same problem.
I'll appreciate a solution! Thanks!!
C. -
hi all,
I am working in oracle forms 6i and i am trying to run report from
form while press one of the push-button. works fine upto 2nd line from the
begin key-word.After that its showing error like " FRM-40738:Argument 1 to builtin
REPORT_OBJECT_STATUS cannot be null.". Can any-one help me of how to solve this and
wat would be the problem.........?
declare
run_rep varchar2(200);
rep_obj report_object;
rep_stat varchar2(20);
begin
rep_obj := find_report_object('report46');
run_rep := run_report_object(rep_obj);
rep_stat := report_object_status(run_rep);
if rep_stat = 'FINISHED' then
copy_report_object_output(run_rep, 'C:\Documents and Settings\trainee\Desktop\Icons\test.pdf');
else
message('error when running report');
end if;
end;
Please help asup!
regards,
jamehi rosario,
Thanks for ur reply. My requirement is, I want to generate pdf file from the report output. so i wrote the following code which is taken from d2k documentation. Problem area has been highlighted in bold.
declare
run_rep varchar2(200);
rep_obj report_object;
rep_stat varchar2(20);
begin
rep_obj := find_report_object('report46');
run_rep := run_report_object(rep_obj);
rep_stat := report_object_status(run_rep);
if rep_stat = 'FINISHED' then
copy_report_object_output(run_rep, 'C:\Documents and Settings\trainee\Desktop\Icons\test.pdf');
else
message('error when running report');
end if;
end;
Report is running but while coming to report_object_status. complior shows error like "FRM-40738:Argument 1 to builtin REPORT_OBJECT_STATUS cannot be null". Parameter for report_object_status is null, i dont know y it is null because report is running. If report is running means,then there must be some values in run_rep.
why complior doesnt find the values from run_rep.......???
regards,
jame -
Problem in running code from web service
All,
We are experiencing a problem while running a code from a web service. The code based on ecliselink. The same code works from JUnit. When running from webservice, we observed the the following warning
*0 WARN [[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)'] openjpa.Runtime - The configuration property named "openjpa.Id" was not recognized and will be ignored, although the name closely matches a valid property called "openjpa.Id".*
*0 INFO [[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)'] openjpa.Runtime - Starting BEA Kodo 4.2.0*
Does this mean it is picking kodo implementation? Our expectation is to use eclipselink implementation. What could this warning? Any pointers would be of great help.
Thanks,Sounds like it is using Kodo, is anything from EclipseLink logged?
Have you configured your JPA provider in your persistence.xml? If you have not, then you will just get the default.
James : http://ww.eclipselink.org -
Hello all:
I need help to solve this problem, I great URL to run forms from browser , then I teak the URL and go to another machine. When I run the URL the browser closed and gives message to send report to Microsoft or not. I tray this again and the browser closed again and give the same message.
I teak the URL and make it as link to call forms java code ,then before the forms started the browser closed again and give the same message.
So please can anyone help me in this.
Thanks for anticipation.hello Gerd Volberg :
thanks for replying, i use database and forms 10g Release 2 .the application server is oracle application server 10g Release 2 (10.1.2).
the url is
http://localhost:8889/forms/frmservlet?config=spewin&userid=hr/hr@orcl&form=E:\final_form\test.fmx&otherparams=USID=10070+COMID=5554442075
thanks -
Problem when running webdynpro from Internet explorer 8
Hello Dear all,
I created a webdynpro and everything i created is right. when i load the webdynpro (F8) to internet explorer 8 i can see the webdynpro . But the IE 8 screen shows no reaction. I thought that my webdynpro was wrong. But i ran the webdynpro from my officemates computer and in his IE 8 the mentioned Webdynpro works perfect! The problem is only the Internet explorer 8 .
I would appreciate your soon answers.
AlfitoI read this website
https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1530264
and i set the zoom to 100% and my problem is solved. How absurd! i almost uninstalled the browser. Best regards
alfito -
Problem in running job from OEM
I have registered JOB with OEM using TCL script from warehouse builder. I login to OEM and it shows me one job in JOB library. Now i submit this job. It keeps on showing status submitting on the Active jobs tab. It does not do anything
Thanks in advance.Hi Garcia,
Thanks a lot for this help. Acutally "select count(1) from dual" was returning 3 initally so i have used delete statement twice and now its returning only one value. Though problem is solved but still i couldn't understand the cause of this.
Thanks a lot again.
Regards,
Ashish. -
Facing problem with running exe from my java code
Hello,
I have to run the exe from java code for which I m using Runtime and Process classes. The exe runs in the following way on command line
C:/ myexe -j [now press enter]
input sentence followed by ! [now press enter]
And after this exe gives the output.
So is there any way to achieve this programmatically in Java?
Thanks in advance.
Regards,I m confused .. how can i pass input to the Process through InputStream? I think it will need OutputStream for that.
Here is my code...
import java.io.*;
class CallToExe
static BufferedReader br;
public static void main(String[] args)
File F = new File("C:/Chasen.exe");
try
if( F.exists())
System.out.println("Exe exists");
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec("C:/chasen.exe");
br = new BufferedReader(new InputStreamReader(in));
int a = in.read();
System.out.println(a);
String res = br.readLine();
System.out.println(res);
while(!res.equals(null))
System.out.println(res);
res = br.readLine();
proc.waitFor();
proc.destroy();
catch(NullPointerException npe)
npe.printStackTrace();
catch (Exception IOEx)
IOEx.printStackTrace();
But it doesnt work as my chasen.exe needs arguments from stdin.
The way exe works is as follows.
on command prompt>>
C:/chasen.exe -j [ Need to press ENTER here]
input statement . [ Need to press ENTER here too]
Then output is displayed on command prompt which can be taken from InputStream of the process. But I m not able to properly run this exe itself with all the arguments frm Stdin -
Problem with running jsp pages
Hello everybody,
I have created a simple jsp page in JBuilder10.
I have also installed tomcat 5.5.9
When i run the jsp page, it appears the following error :
LifecycleException: Protocol handler start failed: java.net.BindException: Address already in use: JVM_Bind:8080
What can i do in order to view my jsp page in a web browser?you can change the address, because the address 8080 has already been used. open the file <CATALINA_HOME>/conf/server.xml , replace all 8080 by other value, like 1234.
-
Problems with running applet from Java Tutorial
Hello
I'd like to compile applet from Lesson Applets, trail: Deployment, title of lesson: A Simple Network Client Applet. But at the beginning of the source code is written that it will work only with: JavaSE 5 version.
* SwingWorker can be downloaded at:
* https://swingworker.dev.java.net/
* SwingWorker must be downloaded for JavaSE 5, but will be included
* in JavaSE 6.
Well, does anyone know about applet doing the same thing which would work in older versions of JDK?. Do I necessarily have to install JavaSE6?. I have J2EE 1.4SDK and I run into errors compiling this example.
Cheers
Message was edited by:
macmacmacI've got another applet which was written for version 1.1 of Java. It compiles but when I run it, instead of letters of quote I get rectangles, positioned one next to the other. So I can't read the quote. What's wrong with this applet?. Here's the code of it:
* 1.1 version.
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
import java.util.*;
public class QuoteClientApplet3 extends Applet
implements ActionListener {
boolean DEBUG = false;
InetAddress address;
TextField portField;
Label display;
DatagramSocket socket;
public void init() {
//Initialize networking stuff.
String host = getCodeBase().getHost();
try {
address = InetAddress.getByName(host);
} catch (UnknownHostException e) {
System.out.println("Couldn't get Internet address: Unknown host");
// What should we do?
try {
socket = new DatagramSocket();
} catch (IOException e) {
System.out.println("Couldn't create new DatagramSocket");
return;
//Set up the UI.
GridBagLayout gridBag = new GridBagLayout();
GridBagConstraints c = new GridBagConstraints();
setLayout(gridBag);
Label l1 = new Label("Quote of the Moment:", Label.CENTER);
c.anchor = GridBagConstraints.SOUTH;
c.gridwidth = GridBagConstraints.REMAINDER;
gridBag.setConstraints(l1, c);
add(l1);
display = new Label("(no quote received yet)", Label.CENTER);
c.anchor = GridBagConstraints.NORTH;
c.weightx = 1.0;
c.fill = GridBagConstraints.HORIZONTAL;
gridBag.setConstraints(display, c);
add(display);
Label l2 = new Label("Enter the port (on host " + host
+ ") to send the request to:",
Label.RIGHT);
c.anchor = GridBagConstraints.SOUTH;
c.gridwidth = 1;
c.weightx = 0.0;
c.weighty = 1.0;
c.fill = GridBagConstraints.NONE;
gridBag.setConstraints(l2, c);
add(l2);
portField = new TextField(6);
gridBag.setConstraints(portField, c);
add(portField);
Button button = new Button("Send");
gridBag.setConstraints(button, c);
add(button);
portField.addActionListener(this);
button.addActionListener(this);
public Insets getInsets() {
return new Insets(4,4,5,5);
public void paint(Graphics g) {
Dimension d = getSize();
Color bg = getBackground();
g.setColor(bg);
g.draw3DRect(0, 0, d.width - 1, d.height - 1, true);
g.draw3DRect(3, 3, d.width - 7, d.height - 7, false);
void doIt(int port) {
DatagramPacket packet;
byte[] sendBuf = new byte[256];
packet = new DatagramPacket(sendBuf, 256, address, port);
try { // send request
if (DEBUG) {
System.out.println("Applet about to send packet to address "
+ address + " at port " + port);
socket.send(packet);
if (DEBUG) {
System.out.println("Applet sent packet.");
} catch (IOException e) {
System.out.println("Applet socket.send failed:");
e.printStackTrace();
return;
packet = new DatagramPacket(sendBuf, 256);
try { // get response
if (DEBUG) {
System.out.println("Applet about to call socket.receive().");
socket.receive(packet);
if (DEBUG) {
System.out.println("Applet returned from socket.receive().");
} catch (IOException e) {
System.out.println("Applet socket.receive failed:");
e.printStackTrace();
return;
String received = new String(packet.getData());
if (DEBUG) {
System.out.println("Quote of the Moment: " + received);
display.setText(received);
public void actionPerformed(ActionEvent event) {
int port;
try {
port = Integer.parseInt(portField.getText());
doIt(port);
} catch (NumberFormatException e) {
//No integer entered. Should warn the user.
} -
I Got a new IPad Air and have problems running videos from the internet
i'm having problem to run videos from internet news's site
If you are running from Safari, it may be the site requires Flash player which most mobile devices don't have.
Try downloading a mobile news app for your local network TV station. -
hi,
I am having problems in running report from form.
I am using oracle 9i on windows 2000 server and no 9iAS at the moment. On client side, i have windows xp and 9iDS installed. I want to run report from forms in 9iDS testing environment.
my forms are running ok but now i need to run report. so what i have done is that i have created a report object in form and following are enteries present in it at the moment.
Name REPORT7
FileName D:\Projects\IBMR\forms\soil_water_quality_data.rdf
Execution Mode Batch
Communication Mode Synchronous
Destination Type Cache
Report Server 9irep
and in when_button_pressed trigger
DECLARE
Report_Id REPORT_OBJECT;
Report_Job_Id VARCHAR2(20);
Report_Status VARCHAR2(80);
Report_Svr VARCHAR2(20);
BEGIN
Report_Id := FIND_REPORT_OBJECT('REPORT7');
Report_Svr := '9irep';
SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_EXECUTION_MODE, BATCH);
SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_FILENAME, '\projects\ibmr\forms\soil_water_quality_data.rdf');
SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_COMM_MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_OTHER, 'paramform=no');
Report_Job_Id := RUN_REPORT_OBJECT(Report_Id);
Report_Status := REPORT_OBJECT_STATUS(Report_Job_Id);
WHILE Report_Status IN ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
Report_Status := REPORT_OBJECT_STATUS(Report_Job_Id);
END LOOP;
IF Report_Status = 'FINISHED' then
WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(Report_job_id,instr(Report_Job_Id,'_',-1)+1)||'?'||'server=9irep','_blank');
else
message ('report server failed with error message '||report_status);
END IF;
END;
i have installed report server with following command
rwserver -install 9irep
i have changed entry in rwservlet.properties like
SINGLESIGNON=NO and i have removed the following entire block of 9irep.conf, which i have read from some documentation
<!--security id="rwSec" class="oracle.reports.server.RWSecurity">
<property name="securityUserid" value="%PORTAL_DB_USERNAME%/%PORTAL_DB_PASSWORD%@%PORTAL_DB_TNSNAME%" confidential="yes" encrypted="no"/>
</security-->
i get the following error message when i run my form
frm-41214 Unable to run report
and then next message is
frm-41217 unable to get report job status
i debugged the report id and it is
9irep_0
returned by Report_Job_Id := RUN_REPORT_OBJECT(Report_Id);
When I checked the Report Queue Manager
it is showing status like
(9irep)Terminated with error
and detail it shows is
Unable to connect to the specified database.
Now I am wondering what to do next.
any suggestions???????Hello,
From your description, it seems like the report is faling due to a database authentication problem. When you run your report from Forms, Forms internally passes the its database connection information to Reports automatically. So ensure that you are connected to a valid database in Forms, before the report is called.
Please verify whether a simple report which does not require a database connection, for example, a report containing only a boilerplate text object, is running correctly. Also, in the trigger code that you have specified, you should add the following:
SET_REPORT_OBJECT_PROPERTY(Report_Id, REPORT_DESTYPE, CACHE);
so that the report output gets generated to the server cache, and can be retrieved using rwservlet/getjobid.
Thanks,
The Oracle Reports Team. -
OAS in Unix: URL not found when run report from Form???? please help
Hi,
We have succesfully install OAS with Form Server and Report Server in
Unix. We able to run Form and Report direct from browser. But we having
problem to run Report from direct Form within the browser. The message from
the browser was 'The requested URL was not found'. We use run_product to run
report from form. Below is the statement:-
Run_Product(REPORTS, 'A10001', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id,
NULL);
Does anyone have an idea??
Thanks in advance.
nullplease check env. variables
1. FORMS60_MAPPING
2. FORMS60_OUTOUT
FORMS60_MAPPING should point to vartual directory on your forms webserver
FORMS60_OUTPUT should point to physical
directory path of vartual directory
FORMS60_MAPPING
regards
Darshan
[email protected]
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by leong([email protected]):
Hi,
We have succesfully install OAS with Form Server and Report Server in
Unix. We able to run Form and Report direct from browser. But we having
problem to run Report from direct Form within the browser. The message from
the browser was 'The requested URL was not found'. We use run_product to run
report from form. Below is the statement:-
Run_Product(REPORTS, 'A10001', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id,
NULL);
Does anyone have an idea??
Thanks in advance.
<HR></BLOCKQUOTE>
null -
Swing Applet in JSP: problem with fetching data from database
i am facing a problem while fetching data from database using Swing Applet plugged in a JSP page.
// necessary import statements
public class NewJApplet extends javax.swing.JApplet {
private JLabel jlblNewTitle;
private Vector vec;
public static void main(String[] args) {
JFrame frame = new JFrame();
NewJApplet inst = new NewJApplet();
frame.getContentPane().add(inst);
((JComponent)frame.getContentPane()).setPreferredSize(inst.getSize());
frame.pack();
frame.setVisible(true);
public NewJApplet() {
super();
initGUI();
private void initGUI() {
try {
this.setSize(542, 701);
this.getContentPane().setLayout(null);
jlblTitle = new JLabel();
this.getContentPane().add(jlblTitle);
jlblTitle.setText("TITLE");
jlblTitle.setBounds(197, 16, 117, 30);
jlblTitle.setFont(new java.awt.Font("Dialog",1,20));
jlblNewTitle = new JLabel();
this.getContentPane().add(jlblNewTitle);
Vector vecTemp = getDBDatum(); // data fetched fm DB r stored here.
jlblNewTitle.setText(vecTemp.get(1).toString());
jlblNewTitle.setBounds(350, 16, 117, 30);
jlblNewTitle.setFont(new java.awt.Font("Dialog",1,20));
} catch (Exception e) {
e.printStackTrace();
}//end of initGUI()
private Vector getDBDatum() {
// fetches datum from oracle database and stores it in a vector
return lvecData;
}//end of getDBDatum()
}//end of class
in index.jsp page i have included the following code for calling this applet:
<jsp:plugin type="applet" code="NewJApplet.class" codebase="applets"
width="600" height="300">
<jsp:fallback>Could not load applet...</jsp:fallback>
</jsp:plugin>
if i view it in using AppletViewer it runs perfectly and display the data in JLabel. (ie, both jlblTitle and jlblNewTitle).(ie, DATA FETCHES FROM db AND DISPLAYS PROPERLY)
BUT IF I CLICK ON INDEX.JSP, ONLY jlblTitle APPEARS. jlblnNewTitle WILL BE BLANK(this label name is supposed to fetch from database)
EVERY THING IS DISPAYING PROPERLY EXCEPT DATA FROM DATABASE!!!
i signed the applet as follows :
grant {
permission java.security.AllPermission;
Can any body help me to figure out the problem?This is the Swing Applet java code
import java.awt.Dimension;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Vector;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.JScrollPane;
import javax.swing.JApplet;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTree;
import javax.swing.ScrollPaneConstants;
import javax.swing.SwingConstants;
public class HaiApplet extends javax.swing.JApplet {
private JLabel jlblTitle;
private JLabel jlblNewTitle;
private Vector vec;
* main method to display this
* JApplet inside a new JFrame.
public static void main(String[] args) {
JFrame frame = new JFrame();
NewJApplet inst = new NewJApplet();
frame.getContentPane().add(inst);
((JComponent)frame.getContentPane()).setPreferredSize(inst.getSize());
frame.pack();
frame.setVisible(true);
public HaiApplet() {
super();
initGUI();
private void initGUI() {
try {
this.setSize(542, 701);
this.getContentPane().setLayout(null);
jlblTitle = new JLabel();
this.getContentPane().add(jlblTitle);
jlblTitle.setText("OMMS");
jlblTitle.setBounds(197, 16, 117, 30);
jlblTitle.setFont(new java.awt.Font("Dialog",1,20));
jlblTitle.setHorizontalAlignment(SwingConstants.CENTER);
jlblTitle.setForeground(new java.awt.Color(0,128,192));
jlblNewTitle = new JLabel();
this.getContentPane().add(jlblNewTitle);
Vector vecTemp = getDBDatum();
jlblNewTitle.setText(vecTemp.get(1).toString());
jlblNewTitle.setBounds(350, 16, 117, 30);
jlblNewTitle.setFont(new java.awt.Font("Dialog",1,20));
} catch (Exception e) {
e.printStackTrace();
}//end of initGUI()
private Vector getDBDatum() {
Vector lvecData = new Vector(10,5);
Connection lcon = null;
Statement lstmt = null;
ResultSet lrsResults = null;
String lstrSQL = null;
String lstrOut = null;
try {
OmmsDBConnect db = new OmmsDBConnect();
lcon = db.connectDb();
lstmt = lcon.createStatement(lrsResults.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
lstrSQL = "select DT_ID from P_DATATABLES";
lrsResults = lstmt.executeQuery(lstrSQL);
int i = 0;
lrsResults.last();
int length = lrsResults.getRow();
System.out.println(length);
lrsResults.beforeFirst();
int recCount = 0;
while (lrsResults.next()) {
recCount++;
lvecData.addElement(new String(lrsResults.getString("DT_ID")));
// System.out.println("ID : " + lrsResults.getString(1));
i++;
}System.out.println("here 3 out fm while");
catch(SQLException e) {
System.out.print("SQLException: ");
System.out.println(e.getMessage());
catch(Exception ex) {
lstrOut = "Exception Occured " + ex.getMessage();
finally {
try {
lrsResults.close();
lstmt.close();
lcon.close();
System.out.println("[DONE]");
catch(Exception e) {
System.out.println(e);
}//end of finally
return lvecData;
}//end of getDBDatum()
}//end of classOfcourse the above code compiles and runs well. in Applet Viewer
I plugged the above Swing Applet in a JSP page index.jsp
<jsp:plugin type="applet" code="NewJApplet.class" codebase="applets"
width="600" height="300">
<jsp:fallback>Could not load applet...</jsp:fallback>
</jsp:plugin>Every thing is working fine in AppletViewer...But if i view this in any browser, then only the jlblTitle is displaying. jlblNewTitle is not displaying(this label name is actually fetching from thedatabase)
can any body help me regarding this matter.? Thx in Advance.
Maybe you are looking for
-
View images in a datatable from byte[]
I am trying to view images in a datatable where the image is a byte[]. This is what I tried... doesn't work. <h:dataTable rows="5" value="#{AirportList.airportList}" var="airport" binding="#{AirportList.airportData}"> <h:column>
-
HT204053 We just got a new computer and one of us may lose our Itune account. Help!
Both my husband and I have had separate ITunes accounts on our computer that we download and purchase our own music into. Now we also each have IPhones and separate apple IDs for downloading and purchasing music. We just got a new computer which on
-
I have owned my AppleTV for about 6 months, and it didn't take this long initially, what happened? And it cannot be a download setting issue through my Airport since downloads from Netflix takes roughly 30 seconds. Youtube about the same. What is
-
Blu-Ray player installation issue: missing VBScript
Hi folks! After downloading bluray driver as recommended by Toshiba notifier, i have trouble installing it. After I have run installation, I receive 2 windows with following notifications: 1, First: Cant find script engine VBScript for script ..... T
-
Cash forecasting - customer payment profiles
Hello Gurus, I am trying to understand customer payment profile concept. My requirement is to perform cash forecasting using customer payment profiles. Anything on this topic would be of great help. Thanks.