How to set the Server CLASSPATH?
Hi all Oracle Java experts,
I know this is a rather stupid questions:
Where can I set the CLASSPATH of the Servlet Engine in Oracle 8.1.7.?
I spent hours now searching the documentation and found loads of hints what to add to the CLASSPATH in which circumstances, but not how to... Of course I know how to use the CLASSPATH in a normal Java environment, but not in the OSE.
In the "Oracle8i Application Developer's Guide - XML" it says in the "Using XSQL Servlet" Chapter:
"How you set the CLASSPATH of the web server's Servlet environment and how you associate a Servlet with a file extension are done differently for each web server. The XSQL Servlet's Release Notes contain detailed setup information for specific web servers you might want to use with XSQL Pages."
Unfortunately, the Release Notes contain this information for Tomcat, Apache JServ etc., but not for Oracle's own Servlet Engine... Maybe you should include that information.
Thanks for any help;-)
Cheers
Olaf
null
Not sure if I understatnd the context in which you want to set your classpath.
IDE, java or system but ...
look at the profile file /etc/profile
CLASSPATH= "/usr/local/jdk1.4......"
export CLASSPATH
or
javac -classpath .;/usr/local/jkd1.4.... test.java
or
whatever your ide provides.
Similar Messages
-
How to change the server CLASSPATH
Hello,
I am using OracleAS 10g (9.0.4.0) and I need to reference a properties file from my application which is stored in a folder outside the OAS installation folders. For that reason I want to add this "external" path to the CLASSPATH that the server uses (I don't want to change my application's CLASSPATH but rather change the CLASSPATH that all applications use). Can someone tell me how can I achieve this? For example in Weblogic I can do this by changing the startup.sh script that starts the server. Is there something similar in OAS? Thank you.
PanosHello
You can create libraries, that allows you at the application or OC4J instance level to specify which jar/classes files will be loaded, take a look to the documentation
I am encouraging you to read the paper "Classloading in OC4J". (note that this paper is valid for 10.1.2 or early and not valid for OC4J 10.1.3 where the class loader mechanism has been updated)
Tugdual Grall -
How to set the server root directory in 10.1.3 ?
Hi all,
I've recently migrated from 1012 to 1013. Unfortunately, i'm having problems compiling the .jsp portion of my project. Every .jsp comes up with the error:
"Error: JSP Files must reside in the server root directory or a subdirectory beneath it"
Can anyone enlighten me as to where i can change this setting?
Thankyou for your time.That link is to an older version of Jdev. There is no 'Common' section in project properties and no html input path either. There is a 'Project Content' section and within that section there is a 'Web Application' option. However i get "ArrayIndexOutOfBoundsException" whenever i click on the 'Web Application' option. I suspect this is the area where i can configure the .jsp portion of my project. I can't get to it though due to the exception.
-
How to set the CLASSPATH in Unix Server
Hi, everyone~
Do anyone noe how to set the CLASSPATH in the hp-ux server? I tried the setenv CLASSPATH, but not working.. I think should use export. But my jsp pages still cannot working, dunnoe y?
I wonder is the hp-ux support jsp and servlet or not?
In order to let the jsp and servlet to run properly in the unix server, what kinds of steps should taken ?
Hope somemore who experience with this situation b4 can give me some guidance.. Thanks~~
regards,
tzeyikTomcat ignores any and all CLASSPATH environment variables. Even if you could figure out how to set it, Tomcat wouldn't use it.
Better to learn how Tomcat's CLASSPATH works and how to deploy Web apps properly. - MOD -
How to set the classpath for external .jar files after importing?
Hi techs,
How to set the classpath in WSAD5.1.2 after importing the .jar file to the WEB-INF/lib folder.
urgentI got it.
after importing the jar file to the perspective,we need to right click on project name, go to proprties,
goto java build path,
there we need to include the external jar files. -
How to set the parameter of xi header in server proxy
Hi,
Does anyone have idea, how to set ref_to_message_id of a client proxy in the server proxy? My problem is, I send a message to a server proxy. The server proxy receives the message, retrieves the message id and tries to set the ref_to_message_id of the message, which will be sent to a client proxy, with its message id. I only find some useful functions to get these information of client proxy and server proxy like message_id etc. in runtime. But I did not find the "set" function to set these parameters. Maybe someone can tell me at first, if it is possible to set such parameters in runtime in server proxy.
Can anyone help?
regard
huHi Chilla,
what I want is to monitor the related message bundle easily. In my server proxy, many different client proxies are called and messages are transfered. So under the SXMB_MONI I will find many message exchanges for one server proxy call. Because the server proxy is called so often, I cannot distinguish under the SXMB_MONI, which message exchanges are caused by which server proxy call.
So I have an idea. If I can set the ref_to_message_id of the messages for the client proxy calls with the message id of the server proxy call, then I can at first select the message of the server proxy call and find the messages for the related client proxy calls easily using the button "referencing message". The message id of the server proxy call can be retrieved. So my problem is now, how to set the ref_to_message_id of the messages for the client proxy calls with this messag id in the server proxy.
Of cource, if anyone has better idea, how to resolve the situation in another way without setting the ref_to_message_id, pleases inform me.
regards
Bin -
How to set the classpath in CVM?
Hi everybody,
experimenting with the J2ME Personal Profile Runtime Environment on a Linux PC I wonder how to set the classpath. The command line options only allow me to set the bootclasspath.
My original problems deals with determining the codebase for a class that is contained in a jar.
1) If I put this jar into the bootclasspath, that class is found and can be loaded, but the codebase (retrieved using class.getProtectionDomain().getCodeSource) is NULL.
2) If I put it into the classpath by using the command line option -Djava.class.path=... the class cannot be found by the ClassLoader.
3) If I put the jar into both, the classpath and the bootclasspath, the latter one is applied and result 1) shows up.
Any idea how to work around this?@see http://forum.java.sun.com/thread.jsp?forum=8&thread=410868
-
How to set the servlet context path manually in Tomcat web server.
I tested some servlets by putting them in the folder , which the tomcats examples application uses (ie Tomcat 4.1\webapps\examples\WEB-INF\classes\) and it appeared to be working fine.
I was calling the servlet like this : http://localhost:2006/examples/servlet/TestServlet
But when I installed my own WAR file in the server , the servlet is not working now. now the new location of my servlets is : Tomcat 4.1\webapps\MyApp\WEB-INF\classes\
and I'm trying to call the servlet like this : http://localhost:2006/MyApp/servlet/TestServlet
The error , what i'm getting is :
description :The requested resource (/MyApp/servlet/TestServlet) is not available.
Some body please tell where I'm making the mistake ? I believe this may have something to do with the servlet context path setting. If anybody has any idea , how to set the path..will be much appreciated.Thanx for your reply , at first I was not using any web.xml(since not mandatory) but even after using the web.xml file the error is coming . Please have a look into the contents of the web.xml file and let me know if you find any problem...
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>TestServlet</servlet-name>
<servlet-class>TestServlet</servlet-class>
</servlet>
</web-app>
one more thing I would like to tell you here. I was just looking into the configuration of Iplanet web server..I found that , there are options to set the servlet container path (like : - Prefix: /servlet
Servlet Directory: /ecomm/iplanet/nes60/product/docs/container )
so from here I came to know that "container " is the folder where we should put our servlets and it has URI as "servlet" but yet I'm not able to find any option in the Tomcat Web server to set the servlet container to any different directory.
If you have any idea please let me know. -
How to set the classpath in windows operating system
hi,
how to set the classpath in window operating system
i want this help for setting the classpath for the tomcat
please help me
thank you
darshan soniOpen autoexec.bat in texteditor. This is an example from my autoexec, win me. Running resin
SET CLASSPATH=c:\jdk1.3.1_01\bin\;c:\andreas\resin\bin\jsdk23.jar;c:\Jimi\JimiProClasses.zip;
SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;c:\jdk1.3.1_01\bin\;c:\andreas\resin\bin\jsdk23.jar;c:\Jimi\JimiProClasses.zip;C:\Program\MtsAndreas -
How to include resource files in the server classpath
Hello,
I deployed an EAR on weblogic. I have couple of resource files that I need to put in the server classpath. I get the following error when I try to access the web app.
java.util.MissingResourceException: Can't find bundle for base name HtmlTemplates, locale en_US
If I copy the resource files in WEB-INF/classes then the error goes away and the application works well. Can someone please tell me a better way to include the resource files in the WebLogic ?
Thanks,
AnuHi Anu,
Putting the resource files in WEB-INF/classes is the correct and good way!
Simon -
How to set the oracle oci8 driver?
hello all:
I've set up the oracle thin driver and it works. but when I change to
oci8.it don't work
below is config and errors:
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
InitialCapacity="5" LoginDelaySeconds="5" MaxCapacity="15"
Name="ocipool"
Properties="user=yanji;password=yanji"
Targets="myserver" URL="jdbc:oracle:oci8:@pg01"/>
Could not load 'oracle.jdbc.driver.OracleDriver
If this is a type-4 JDBC driver, it could occur if the JDBC
driver is not in the system CLASSPATH.
If this is a type-2 JDBC driver, it may also indicate that
the Driver native layers(DBMS client lib or driver DLL)
have not been installed properly on your system
or in your PATH environment variable.
This is most likely caused by one of the following:
1. The native layer SO, SL, or DLL could not be found.
2. The file permissions on the native layer SO, SL, or DLL
have not been set properly.
3. The native layer SO, SL, or DLL exists, but is either
invalid or corrupted.
For more information, read the installation documentation
for your JDBC Driver, available from:
http://e-docs.bea.com
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection
ectionEnvFactory.java:208)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource
ectionEnvFactory.java:131)
at weblogic.common.internal.ResourceAllocator.makeResources(Resource
ator.java:698)
at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocat
va:282)
best regardsHello, Jenny I am glad you found your resolution. I too am having problems isung
the oracle 0CI8 driver. My connection pool is creating fine, but my server is
crashing with JVM errors.
Here are my configurations.
DBase=Oracle 8.1.7,OS=Win2000, running 6.1 with Portal 4.0
pool config =
<JDBCConnectionPool CapacityIncrement="0"
DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="5"
MaxCapacity="5" Name="ccConPool"
Properties="jdbc.url=jdbc:oracle:oci8:@servername:1521:orcl;user=XXXXX;password=XXXXXX;dll=ocijdbc8;server=orcl;protocol=oci8;dll=ocijdbc8;protocol=oci8"
RefreshMinutes="0" Targets="portalServer"
TestTableName="WIP_TABLE" URL="jdbc:oracle:oci8:@servername"/>
My classpath sets my classes12.zip file first. My path sets %WEBLOGIC_HOME%\bin\oci817_8
and %WLCS_ORACLE_HOME%\bin.
Am I setting the right dll and protocol in my .dll? Where can I find documentation
on these properties definitions?
"jenny" <[email protected]> wrote:
hello all:
I've got the answer. those all because weblogic.jar. this jar include
the
class "oracle.jdbc.driver.OracleDriver".
although I put the classes12.zip into the CLASSPATH.but the weblogic.jar
in
front of classes12.zip.so classloader
load the class from weblogic.jar. so I can use thin driver(weblogic
implements this function with class,but not for oci8 )
..this is really a big pitfall !
put the classes12.zip in front of weblogic.jar .all perfect!
"jenny" <[email protected]> wrote in message
news:[email protected]...
hello all:
below is some chapters of my config.xml and startWeblogic.cmd
the oci8 :
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
InitialCapacity="5" LoginDelaySeconds="5" MaxCapacity="15"
Name="ocipool" Password="{3DES}J3XuQd6cvvw="
Properties="user=yanji;password=yanji;dll=ocijdbc8;protocol=oci8"
Targets="myserver" TestTableName="test"
URL="jdbc:oracle:oci8:@pg01"/>
the thin :
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
InitialCapacity="5" LoginDelaySeconds="5" MaxCapacity="15"
Name="citcpool" Password="{3DES}J3XuQd6cvvw="
Properties="user=yanji;password=yanji"
SupportsLocalTransaction="true" Targets="myserver"
URL="jdbc:oracle:thin:@sune250:1521:pg01"/>
:runWebLogic
echo on
set ORACLE_HOME=e:\oracle
set PATH=./bin;%ORACLE_HOME%\bin;%ORACLE_HOME%\lib;%PATH%
set
CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;.\lib\dom.jar;.\lib\xml
4j.jar;.\lib\jecf.jar;%ORACLE_HOME%\jdbc\lib\classes12.zip
echo off
the thin driver is ok,but the oci driver can not work!
if I've set the wrong CLASSPATH or PATH , the thin driver and oci8driver
must have not worked. I confused!
"Sree Bodapati" <[email protected]> wrote in message
news:[email protected]...
"Sree Bodapati" <[email protected]> wrote in message
news:[email protected]...
Its not CLASS_PATH it should be CLASSPATH.
when you say oracle\bin and oracle\lib , on what driver is the oracle
folder?I meant to say 'on what drive' not 'on what driver'
you have to specify the full path.
post your startup script here.
sree
"jenny" <[email protected]> wrote in message
news:[email protected]...
hello all:
I've set the ORACLE_HOME,and CLASS_PATH,but nothing changed. I will
go
to
crazy!!!
when startup the weblogic,I've seen the oracle\bin and oracle\libin th
"path" and classes12.zip in the CLASS_PATH.but the errors stillappears!!
"Sree Bodapati" <[email protected]> wrote in message
news:[email protected]...
1. Dont copy this file oci8jdbc.dll, to bin folder. Make sure
you
place
<oracle_home>\lib in your PATH before starting the server. Make
sure
your
ORACLE_HOME environment varable is set to <oracle_home> folder.
eg. set ORACLE_HOME=c:\ora816 before starting the server.
so you must have done something like
set ORACLE_HOME=c:\ora816
set PATH=%ORACLE_HOME%\bin;%ORACLE_HOME%\lib;%PATH%
2. double check if you set your CLASSPATH something like this,
CLASSPATH=%ORACLE_HOME%\jdbc\lib\classes12.zip;%CLASSPATH%
in the server startup script just before starting the server.
3. start the server the connection pool should work.
hth
sree
"jenny" <[email protected]> wrote in message
news:[email protected]...
hello All:
I've edited the StartWeblogic.cmd, set the classes.zip into CLASSPATH,and
copied the oci8jdbc.dll to the bea\wlserver6.1\bin. errors stillappears!
my weblogic version is 6.1 and oracle is 8.1.6 .
why the thin driver is ok but the oci driver can not work?
I logined in the oracle website and look for the jdbc.but I find
that
jdbc
all provide for jdk1.2 or jdk1.1. because the weblogic6.1 based
jdk1.3.
I
think i can not use those drivers.
I think my oracle driver is ok,because i installed the jboss and
bas4.5
in
my computer. they all can use oci8 driver properly.and they all
based
jdk1.3.
by the way. I 've tryed added the oracle\bin path inStartWeblogic.cmd,
nothing changed !
again below is my config : I want to know whether my config right?
(the property DLL and Protocal auto added by the weblogic)
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
InitialCapacity="5" LoginDelaySeconds="5" MaxCapacity="15"
Name="ocipool"
Properties="user=yanji;password=yanji;dll=ocijdbc8;protocol=oci8"
Targets="myserver" URL="jdbc:oracle:oci8:@pg01"/>
best regards
----- Original Message -----
From: "Mitesh Patel" <[email protected]>
Newsgroups: weblogic.developer.interest.jdbc
Sent: Thursday, December 13, 2001 4:00 AM
Subject: Re: how to set the oracle oci8 driver?
To use oracle oci8 driver:
You should have classes12.zip in weblogic classpath.
You should have ocijdbc8.dll in your weblogic path..
You can download ocijdbc8.dll from oracle website.
Mitesh Patel
jenny wrote:
hello all:
I've set up the oracle thin driver and it works. but when I
change
to
oci8.it don't work
below is config and errors:
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
InitialCapacity="5" LoginDelaySeconds="5" MaxCapacity="15"
Name="ocipool"
Properties="user=yanji;password=yanji"
Targets="myserver" URL="jdbc:oracle:oci8:@pg01"/>
Could not load 'oracle.jdbc.driver.OracleDriver
If this is a type-4 JDBC driver, it could occur if the JDBC
driver is not in the system CLASSPATH.
If this is a type-2 JDBC driver, it may also indicate that
the Driver native layers(DBMS client lib or driver DLL)
have not been installed properly on your system
or in your PATH environment variable.
This is most likely caused by one of the following:
1. The native layer SO, SL, or DLL could not be found.
2. The file permissions on the native layer SO, SL, or DLL
have not been set properly.
3. The native layer SO, SL, or DLL exists, but is either
invalid or corrupted.
For more information, read the installation documentation
for your JDBC Driver, available from:
http://e-docs.bea.com
atweblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection
ectionEnvFactory.java:208)
atweblogic.jdbc.common.internal.ConnectionEnvFactory.createResource
ectionEnvFactory.java:131)
atweblogic.common.internal.ResourceAllocator.makeResources(Resource
ator.java:698)
atweblogic.common.internal.ResourceAllocator.<init>(ResourceAllocat
va:282)
best regards
"jenny" <[email protected]> wrote in message
news:[email protected]...
hello all:
I've set up the oracle thin driver and it works. but when I change
to
oci8.it don't work
below is config and errors:
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
InitialCapacity="5" LoginDelaySeconds="5" MaxCapacity="15"
Name="ocipool"
Properties="user=yanji;password=yanji"
Targets="myserver" URL="jdbc:oracle:oci8:@pg01"/>
Could not load 'oracle.jdbc.driver.OracleDriver
If this is a type-4 JDBC driver, it could occur if the JDBC
driver is not in the system CLASSPATH.
If this is a type-2 JDBC driver, it may also indicate that
the Driver native layers(DBMS client lib or driver DLL)
have not been installed properly on your system
or in your PATH environment variable.
This is most likely caused by one of the following:
1. The native layer SO, SL, or DLL could not be found.
2. The file permissions on the native layer SO, SL, or DLL
have not been set properly.
3. The native layer SO, SL, or DLL exists, but is either
invalid or corrupted.
For more information, read the installation documentation
for your JDBC Driver, available from:
http://e-docs.bea.com
atweblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection
ectionEnvFactory.java:208)
atweblogic.jdbc.common.internal.ConnectionEnvFactory.createResource
ectionEnvFactory.java:131)
atweblogic.common.internal.ResourceAllocator.makeResources(Resource
ator.java:698)
atweblogic.common.internal.ResourceAllocator.<init>(ResourceAllocat
va:282)
best regards -
How to set the header variables in weblogic
Hi,
We have a following set up in our environment.
We have weblogic and on the top of it we have apex listener deployed which redirects Oracle Apex.
My Issue:
How can we set up the header variables in weblogic once the user is authenticated against weblogic server.
We are struck here, not knowing how to set the header variables in weblogic server. Its fairly straight forward for Oracle Access Manager or others..
Thanks
Ramesh P.maybe you are looking for the routing options
http://docs.oracle.com/cd/E13159_01/osb/docs10gr3/userguide/modelingmessageflow.html#wp1125348 -
How to set the number of seconds a servlet is allowed to run
I use JSP to generate a report, but it will take about 10 minutes to search.
IE Client screen displays an error message what is "Cannot find out your page" after 8 minutes. How to set the number of seconds a servlet is allowed to run.It's not a matter of how long the servlet is running... it's the browser timing out because the servlet hasn't responded to its request.
You have several options:
1) "Browser Pinging"
Your servlet sends some small data which can be either seen or unseen (html comments, hidden chars, etc) by the user at short intervals while your report is running. When the report is finished, the browser will not have timed out because it has been "snacking" on those small bits of data which tell the browser its original request was both heard and being handled. I don't think there is any timeout in IE as long as it receives data continually (or at least before its own timeout mark over and over again...)
2) Multithreaded processing
This would probably be a better approach. Have the report run in a separate thread running on the server. You'd want to store a reference to this executing report in the user's session. Instead of making the browser wait for the report to be finished, have the servlet check the user's session to see if a report exists and is running. If one does not exist, create one and start its execution. If one does exist, and is still running, print a "please wait" type of message OR an animation, etc... along with some javascript which will reload the page every few seconds. If the page reloads and the servlet sees that the report is finished, it can then display it to the user.
Hope this helps,
-Scott -
How to set the file path dynamically based on sytem, username, and date
Hi All,
My requirement is upload the data into one structure like xyz that is related to t.code MCSZ.
file will be in UNIx SERVER .
PATH IS: /sapif
file name is xy789 load .txt
I have to write code in one user-exit
how can i set the file path for this.
shall i put hard code file path?
because i have to writecode in user-exit.
plz tell me how to set the file path based ons syetem, username, date
Thanks in advance
Ram.AConcatenate the field SY-SYSID, SY-UNAME and SY-DATUM for the file path
-
How to set SQL Server Login MUST_CHANGE, CHECK_POLICY, CHECK_EXPIRATION all to OFF with T-SQL. SSMS will not allow me to change policies to OFF. Error: 15128 - The CHECK_POLICY and CHECK_EXPIRATION options cannot be turned OFF when MUST_CHANGE is
on. I am attempting to change these options in a test environment. Thanks, RichardIt appears you have to change the password first(it could the same password but an alter command needs to be done)
check this : http://www.sqldbadiaries.com/2010/11/07/the-check_policy-and-check_expiration-options-cannot-be-turned-off-when-must_change-is-on/
http://sqldbpool.com/2012/10/08/the-check_policy-and-check_expiration-options-cannot-be-turned-off-when-must_change-is-on-microsoft-sql-server-error-15128/
Hope it Helps!!
Maybe you are looking for
-
Multiple Apple ID's Want just one. Help
I have two apple ID's but I want to delete this one and set this email as the primary on the other one is there anyway to do that?
-
How do I manually start a workflow to...
I have a list with 2000+ items in it. I create a 2013 workflow in SPD that will look at an item and if it date is less than 1/1/2013 it will create a copy of the item on a list used for archiving, then delete the existing list item. My question is h
-
Various Software Updates (Intel)" Can't be Installed (verification failed!)
This is essentially a repost of a problem unsolved, but with a new wrinkle: When I first reported this two months ago, it was just happening on an Intel iMac. Now, someone else in the office just purchased a MacBook Pro, and from the SAME NETWORK, is
-
Xcelsius 2008 - Known Issues (Installation)
AA: Area Affected PD: Problem Description WA: WorkAround AA: Installing QAAWS from BOE Client PD: The Query As A Web Service (QAAWS) application has been combined with the BOE XI 3 BusinessObjects Client application. It was previously a separate appl
-
MiniDisplayPort to RCA / Composite
Just got a new MacBookPro, , and now noticed that the old Mini-DVI is not around anymore. I need to connect to an older TV, that doesn't have HDMI or VGA inputs. My only option is to go to RCA/Composite . I could go from miniDisplayPort to VGA and th