Java -jar oc4j.jar -properties
hi,
I run following this one. i got a error please rectify that
java -jar oc4j.jar -properties
*09/05/13 16:11:11 Invalid jsp taglib location: C:\Documents and Settings\nvinodh*
*\Desktop\oc4j\j2ee\home\%s_javapOracleHome%\j2ee\home\jsp\lib\taglib does not ex*
ist or is not a directory
09/05/13 16:11:11 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
initialized
thanks
with regards
Greetings,
From the error listed it appears that you have a path that is specific to your development machine which does not exist on your server. It is good practice to avoid placing jars and libraries that your application is dependent upon in directory structures which only exist on your development machine. So if you have oc4j on your dev box, put the taglib in a path relative to an ORACLE_HOME environment variable and deploy taglibs to same on the server.
-Michael
Similar Messages
-
Getting error while running command java -jar oc4j.jar -install
java -jar oc4j.jar -install
ON RUNNING The above command getting below error , is it because Java home is not set?
Warning: -jar not understood. Ignoring.
Exception in thread "main" java.lang.NoClassDefFoundError: oc4j.jar
at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
at JvThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
at JvRunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
at __gcj_personality_v0 (/oracle/u01/app/oracle/product/10.2.0/db_1/oc4j/j2ee/home/java.version=1.4.2)
at __libc_start_main (/lib/tls/libc-2.3.4.so)
at JvRegisterClasses (/oracle/u01/app/oracle/product/10.2.0/db_1/oc4j/j2ee/home/java.version=1.4.2)
navisdb.igglobal.com(express)$ javac
ksh: javac: not found
ENVIORNMENT DETAIL : RED HAT LINUX ENTERPRISE EDITION
Extracted OC4J_extended.zip file at oracle 10g installation location.does this command work?
/home/oracle:MCSE>gij --showversion
gij (GNU libgcj) version 3.4.6 20060404 (Red Hat 3.4.6-11) -
Starting OC4J installed through ( java -jar oc4j.jar -install)
Hi,
I want to use MapViewer. I installed OC4J standalone,using the following command
java -jar oc4j.jar -install and then installed MapViewer in directory "lbs" under Oracle home. After that I updated the following two files
1) http-web-site.xml
2) server.xml
according to the installation guide. I have runned the scripts and imported the MapViewer's dmp into Scott's schema.
My oracle httpService is running and is listening on normal http port i.e. 8080
I have to do the following
1) Start OC4J (How can I do that ? I tried it as
java -jar E:\oracle\j2ee\home\OC4J.jar but it says that the (c:\config\server.xml, System can not find the path specified. Since this is not the actual path, actual one is ... E:\oracle\j2ee\home\config\server.xml ) 2) How to check that OC4J is running or not ?
3) Wot and how to run in browser for viewing the output, i.e. any DML/retrieval from Spatial data/maps...
I know, I m very near to get output, but sometimes it feels so far.
Please help me... You may suggest any book, link, or reply to above questions..
Thanx
Zaaf.1) cd to j2ee/home
then start as:
java -jar oc4j.jar
or
java -jar E:\oracle\j2ee\home\oc4j.jar -config E:\oracle\j2ee\home\config\server.xml
2) You will get a message that the server is started
For details please look at http://otn.oracle.com/tech/java/oc4j/pdf/oc4j_so_usersguide_r2.pdf
thanks
Debu -
Error while running (java -jar orion.jar -install) Need yr help ?
Hi,
I have
Win 2000 Professional
Oracle 9i release 1and have the Pre-Requisites of MapViewer as follows.
OC4J_extended (Pre-Requisite for MapViewer)
XML Parser (Built-in OC4J)
Oracle 9iI don't know whether I have Oracle Client or not which is also pre-requisite for MapViewer ? I think it is built-in with any of the above... most probably with Oracle 9i !!!
I have JDK1.3 as wellI have Oracle9iAS release 1.0.2.2.2a, but I don't want to use it, as I have OC4J standalone...
I want to have the configuration, for using Oracle Spatial/MapViewer.... How can I do that ? I need steps/procedure...
I am having problems in configuring OC4J which I have downloaded. I have unzipped OC4J_Extended in Oracle 9i Database home directory (not in Oracle 9iAS home directory... because I dont have installed iAS)
Its installation guide asks for installation through the following command
java -jar orion.jar -installbut after unzip, I don't get any file named "orion.jar"
What should I do ? Where am wrong ? Should I have to use 9iAS for using MapViewer in any case, if so which version ? I need the heirarchy of steps ?
I m really stucked !!!
Any help would be highly appreciated.
Thanx
Zaaf.Hi,
If you are just using OC4J, you should only need to do:
java -jar oc4j.jar -install
Also note that you should not install oc4j in the oracle_home
directory. If/when you upgrade oracle to apply patches, etc
it will overwrite/cause problems with your oc4j install if you
put it in the oracle_home directory. Put it in any other directory.
The only part of Oracle9iAS needed to run mapviewer is oc4j.
After that is installed, then follow the instructions in the MapViewer
User's Guide (available on OTN). -
Manifest Classpath Question oc4j.jar
I need some clarification on how the MANIFEST.MF in the oc4j.jar library is influencing classlading. Below are my specific questions:
My group is using a configuration management tool which stores all java libraries in a central repository. During builds the tool downloads all dependent libraries in basically a flat directory format and specifies a classpath to java when it runs its builds (and starts up OC4J via java com.evermind.server.OC4JServer). Is there anyway to override the Manifest.MF with the classpath constructed by our configuration management tool?
In many cases libraries are entered in twice but are from different locations. i.e.
../../lib/xmlparserv2.jar
../../oracle/lib/xmlparserv2.jar
Is there a difference between these two libraries?
In the classloading sequence when does the classloader refer to the Manifest.MF for locations of libraries?
Thanks in advance!
-MarkHi Mark,
I'm sure I haven't understood your question, so the following may be useless to you (please excuse me if it is).
I feel there is probably a better way to do what you are trying to do, but without more details, I can only guess.
Do you know about the java extension mechanism?
The tooldocs Web page has details of how the JVM locates classes.
There are also some whitepapers and other documents that you can access from the OC4J home page at Oracle's Technet Web site.
Good Luck,
Avi. -
Replace Orion.jar with Oc4j.jar, Changing the container
Hi
I'll be really appreciate any help.
My application( web-based application based on Forms6i) is working fine with Orion.jar. I would like to upgrade this structure to Oracle9iDS using Oc4j.jar instead of orion. I have a main.jsp ( http://www.bmhub.com) file that after getting username/password, opens another window to show the main menu including all options(forms6i).With "Orion.jar" it works fine, I get message "Login ok" and so on.
I installed Oracle9iDS and I changed application.xml in "C:\oracle\Forms9i\j2ee\Oracle9iDS\config". After starting startinst.bat ( contains oc4j.jar), I entered username/password but I get message that "some fileds are blanks" and "Login Failed". when I changed the oc4j.jar to orion.jar, the sartinst.bat disappeared after 1 second.
Also I tried to replace most of the files in "C:\oracle\Forms9i\j2ee\Oracle9iDS\config" with my old configuration ( Orion configuration), the startinst with orion.jar works fine and I'm able to enter username/password. but nothing more. the forms9i dosent work anymore.(error HTTP 500).
Could you please help me?
regards,Hi,
It seems getParameter() just returns null. I use it in my User.java file to login from main.jsp page.
public void configure(HttpServletRequest request)
setUserName(request.getParameter(User.USER_NAME));
setPassword(request.getParameter(User.PASSWORD));
setCompany(request.getParameter(User.COMPANY));
if ( (request.getParameter(MODE)!=null) && !request.getParameter(MODE).trim().equals(""))
try
setPartnerTypeId(Integer.parseInt(request.getParameter(MODE).trim()));
catch(Exception e)
e.printStackTrace();
How come it works with Orion.jar but returns null with Oc4j.jar?
Thanks, -
Failed to load Main-Class manifest attribute from oc4j.jar
Hi All
I am trying to start OC4J in the SOA suite from the command line but every time i issue the command i.e.
java -jar ORACLE_AS_HOME/j2ee/home/oc4j.jar
I get the fololwing error
"Failed to load Main-Class manifest attribute from oc4j.jar"
I have checked the oc4j jar and the class oracle.oc4j.loader.boot.BootStrap does exits and it does have a main class
Is the Manifest file broken?
Does anyone know why this is happens?Hi,
did you try the SOA Suite forum ?
SOA Suite and OC4J 11g Technology Preview
Frank
Edited by: Frank Nimphius on Jan 30, 2009 1:41 PM -
Problem starting oc4j.jar
Hi all
I want to run oc4j in a w2k sp3 machine, and I want to do it with a non administrator group's user. When I start it with "java -jar oc4j" I receive an error "Error starting Http-server: (code=10106)", then it shows "Oracle9iAS (9.0.2.1.0) Containers for J2EE initialized", but there's nothing listening. I tried to looking for this error, by I can't find anything.
If I start the container with an user belonging to administrators groups I have no problems. I know it can be troubles creating a port less than 1024 without administratives privileges, but I set port 11500 to start the sever.
I'm really don't know if this is a j2ee problem or a windows problem, but I'm having big headaches with this issue. Could someone help me?
Thanks in advance.
AlfredoI have running iis 5.0, but i checked there's nothing
listening in the port where I want to start the oc4j.
Still I tried other ports than 11500, but I always get
the same error. -
Java Access Helper Jar file problem
I just downloaded Java Access Helper zip file, and unzipped, and run the following command in UNIX
% java -jar jaccesshelper.jar -install
I get the following error message, and the installation stopped.
Exception in thread "main" java.lang.NumberFormatException: Empty version string
at java.lang.Package.isCompatibleWith(Package.java:206)
at jaccesshelper.main.JAccessHelperApp.checkJavaVersion(JAccessHelperApp.java:1156)
at jaccesshelper.main.JAccessHelperApp.instanceMain(JAccessHelperApp.java:159)
at JAccessHelper.main(JAccessHelper.java:39)
If I try to run the jar file, I get the same error message.
Does anyone know how I can fix this?
ThanksCross-posted, to waste yours and my time...
http://forum.java.sun.com/thread.jsp?thread=552805&forum=54&message=2704318 -
Java -jar application.jar not finding file?
I have an application program that contains the
following two lines of code:
FileInputStream sf = new FileInputStream "CustomWorld.ini");
settings.load(sf);
and when I run it as:
java application
it runs fine but if I run it as:
java -jar -classpath .;application.jar application.jar
it can't find the "CustomWorld.ini" file. Why is that
and how can I fix it?
Many thanks for your help.
PS: to create the jar file I used:
jar -cvfm application.jar application.mf application.class CustomWorld.iniOnce your CustomWorld.ini file is in the jar, you can no longer access it directly with a FileReader. JDK 1.1 included resource locators to java.lang.Class...
URL url = application.class.getResource("/CustomWorld.ini");
if (url != null) { // resource was found
InputStream in = url.openStream();
settings.load(in);
} else {
// fail gracefully or use defaults
}Note that the CustomWorld.ini file will need to be in the classpath or the root folder of the jar file for this to work.
Regards,
-Troy -
Java -jar OrgFormatter.jar
Hi All,
I'm very new to Java. I'm trying to run this jar file and getting following error.
java -jar OrgFormatter.jar VarshaTest060404.txt varshatest
Failed to load Main-Class manifest attribute from OrgFormatter.jar
OrgFormatter file takes two arguments <input file> and <output file>
Please help me here.
Thanks much
Varif it doesn't work( the think is about the creating manifest file) you should study on the manifest files. I am wathching this topic
-
Java -jar -myApp.jar works but ....
Hi there,
I have a problem : using ant, I have exported my application into an executable jar file.
When in the console, I type "java -jar myApp.jar" . Everything works well.
But if, I do double click on the jar file, nothing happens. In fact, I can see a new Instance of javaw.exe in the "task manager" but nothing happens.
It's kind of weird ...
Has anybody an idea about that ??
thanks in advance
sylvain_2020I am having a similar problem.
java -jar foo.jar works great, but double clicking seems to hang the app at a certain point.
Unable to figure out what's going on, I've been putting some "JOptionPane.showMessageDialog()" calls to see how far it's getting. It appears to be hanging up when it tries to instantiate one of my classes that extends JPanel. I have a dialog appear right before calling the constructor (and I see that one), but I don't see the dialog that's in the constructor as the first executed line (so that it must hang up somewhere before that). I've also removed all constructors from the attribute declarations. That made me think it had something to do with the constructor of JPanel, over which I have no control.
However, I can instantiate JPanel no problem.
What the heck is going on??? -
Java -jar Test.jar option is not identifing the CLASSPATH on UNIX BOX
Hi All,
java -jar Test.jar
I am trying to execute Test.jar file using -jar option. I am able to excute the Test.jar file but it is not identifing the CLASSPATH set for other JAR files which is used in part of Test.jar. Saying java.lang.NoClassDefFoundError: for the class which are set in CLASSPATH.
The same is able to identify the CLASSPATH if i excute the Test.class file directly with out -jar option like
java Test. In this case everything is working fine.
Can any one tell me why it is not identifying the classpath if i use or execute with java -jar Test.jar option.
Thanks,
shaWhen you use the -jar option, the only classpath that is used is the Class-Path in the manifest file of the jar. If there is no Class-Path, then only the jar is searched for classes. If there is a Class-Path, the paths must be relative to the jar file.
-
Hello!
I get an error when trying to run my apps jar ...
Directory of F:\Documents and Settings\Richard\NewOW\dist
01/17/2006 07:38 PM <DIR> .
01/17/2006 07:38 PM <DIR> ..
01/17/2006 07:38 PM 595,646 NewOW.jar
1 File(s) 595,646 bytes
2 Dir(s) 46,755,405,824 bytes free
F:\Documents and Settings\Richard\NewOW\dist>java -jar NewOW.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/jdesktop/layout/G
roupLayout$Group
F:\Documents and Settings\Richard\NewOW\dist>I dont know what I need to check from this error
runs fine in the IDE
Thanks!Just as reported, Java can't find
org/jdesktop/layout/GroupLayout$Group because
you aren't providing it. You must place a copy in
your NewOW.jar and create a Class-Path: entry in the
manifest file.
If your're going to use NetBeans, you really need a
good understanding of classpath and jars, and what
the IDE will do, and what you have to do.
If you replace your NB beta version with the RC1
version, it will do more for you.Running RC1 now ..... and jar run just great without me changing anything! -
Java classes in Jar and Cab files
Hello all,
Our product supply java classes in Jar and Cab files that the browser downloads each time.
The files are big and it takes a long time.
Do you know of a way to make the cab/jar files be copied in to the user computer and that the browser would know to download files again only if there is a new version (otherwise take it from the local computer)
Please help me
TamgI think I've seen an option for this with manifest files (or was it something that had to do with the java plug-in). There was something about the version and only download a new version if it was newer than the one on your local computer. This version thing is something you define in the manifest file at least. Take a look at jar and manifest files, there might be something there.
Maybe you are looking for
-
Regarding Printing output of SAPSCRIPT Program using Transaction IW22
Hi All, I am having a issue with sending <b>SAP Script output to printer</b>, We are not able to print the output. Transaction code we are making use to see the print preview is <b>IW22</b>. When we are pressing <b>Print/Fax</b> button in IW22 it is
-
I plugged my ipod into my computer to load up new tunes and it froaze on the time I dad connected it with the message 'do not disconnect' on the screen. Despite disconnecting and reconnecting it and ensuring it was charged up it will not operate. The
-
Hi, i try to import local classes to global classes and i have error , in the program in se 80 (lcocal) i declare global declaration like: TYPE-POOLS icon. TYPES: ty_fuel TYPE p DECIMALS 2,ty_cargo TYPE p DECIMALS 2. and after that i declare the loca
-
Hi all, I have prod and test on the same server on AIX 5.3 box. And application is 11i. It's not a good config but thats the way it is here. And for the last 6 months or so we are getting PGSP_KILL error in AIX log files. My server RAM is 8GB and as
-
Hi All, I created a web application, this web application can be accessed by 500 users at a time.. but i don't know the hardware specs that i must specify for hosting my application... is there any tool or methodology that can determine the specs of