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!
-Mark
Hi 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.
Similar Messages
-
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 -
Fundamental j2ee classpath question
hi folks --
I have a j2ee project with
- a WAR (which has among other things a servlet in it)
- a ejb project (which has a stateless session bean in it)
I need to call the session bean from the servlet and my servlet code gets a reference to the bean via jndi as follows
...skipping jndi stuff ...
LoadTimerTaskHome loadTimerTaskHome = (LoadTimerTaskHome)PortableRemoteObject.narrow( timerHomeObject, LoadTimerTaskHome.class);
However, at compile time, LoadTimerTaskHome (the home interface of the bean) can't be resolved in the servlet class. Which makes sense cuz how would the servlet class know about the bean class?
And that's the question: At compile time, how can i make classes in my WAR aware of classes in my EJB proj, which are deployed to the same EAR? There must be a very simple J2EE way of doing this...
I'm not an EJB person, so i'm just confused about what is probably extremely basic....
thx VERY much for any insights...A brute force approach is to also package the ejb interface classes (and any classes needed by those interfaces etc.) in the .war. However, a cleaner solution is to put the shared classes within a utility .jar and package it within the .ear such they are visible by both .war and ejb-jar modules.
In Java EE 5, this is easily done by putting the shared .jar in "lib" directory at the top-level of the .ear. Java EE 5 guarantees that any .jars within that directory are visible to all component modules within the .ear.
Prior to Java EE 5, this was only possible by using the MANIFEST-CLASSPATH attribute within each module to refer to the utility .jar. That's very cumbersome and error-prone so I recommend the automatic "lib" directory approach.
--ken -
Generating a manifest CLASSPATH using Ant
I'm using Ant 1.5.4 to build my applications. When I create a JAR file to deploy I ask Ant to add a main class and CLASSPATH to the manifest, like this:
<target name="deploy" depends="report" description="deploy the application">
<buildnumber />
<copy todir="${deploy}">
<fileset dir="${src.lib}" />
</copy>
<pathconvert property="manifest.jars" pathsep=" ">
<path id="manifest.class.path">
<fileset dir="${deploy}">
<patternset>
<include name="**/*.jar" />
</patternset>
</fileset>
</path>
<map from="${basedir}/${deploy}/" to=""/>
</pathconvert>
<manifest file="META-INF/manifest.mf">
<attribute name="Implementation-Title" value="${project}" />
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Build-Date" value="${TODAY}" />
<attribute name="Major-Version" value="${major}" />
<attribute name="Minor-Version" value="${minor}" />
<attribute name="Build-Number" value="${build.number}" />
<attribute name="Main-Class" value="${manifest.main}"/>
<attribute name="Class-Path" value="${manifest.jars}"/>
</manifest>
<jar jarfile="${deploy}/${project}.jar"
manifest="${manifest}/manifest.mf">
<fileset dir="${output.classes}" excludes="**/*TestCase*.class, **/*TestSuite*.class"/>
</jar>
</target>This particular app has several third-party JARs. When I look at the manifest contents, they look like this:
Class-Path: activation.jar imap.jar junit.jar my-common.jar mail.ja
r mailapi.jar pop3.jar smtp.jar xalan.jar xerces.jar xml-apis.jar xsl
tc.jar
Has anybody else done this with Ant for a long CLASSPATH with many JARs? Are those line breaks inside JAR names a problem? It looks strange to me, and I'm not sure that it's correct or useful. Thanks - MODI'm using Ant 1.5.4 to build my applications. When I create a JAR file to deploy I ask Ant to add a main class and CLASSPATH to the manifest, like this:
<target name="deploy" depends="report" description="deploy the application">
<buildnumber />
<copy todir="${deploy}">
<fileset dir="${src.lib}" />
</copy>
<pathconvert property="manifest.jars" pathsep=" ">
<path id="manifest.class.path">
<fileset dir="${deploy}">
<patternset>
<include name="**/*.jar" />
</patternset>
</fileset>
</path>
<map from="${basedir}/${deploy}/" to=""/>
</pathconvert>
<manifest file="META-INF/manifest.mf">
<attribute name="Implementation-Title" value="${project}" />
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Build-Date" value="${TODAY}" />
<attribute name="Major-Version" value="${major}" />
<attribute name="Minor-Version" value="${minor}" />
<attribute name="Build-Number" value="${build.number}" />
<attribute name="Main-Class" value="${manifest.main}"/>
<attribute name="Class-Path" value="${manifest.jars}"/>
</manifest>
<jar jarfile="${deploy}/${project}.jar"
manifest="${manifest}/manifest.mf">
<fileset dir="${output.classes}" excludes="**/*TestCase*.class, **/*TestSuite*.class"/>
</jar>
</target>This particular app has several third-party JARs. When I look at the manifest contents, they look like this:
Class-Path: activation.jar imap.jar junit.jar my-common.jar mail.ja
r mailapi.jar pop3.jar smtp.jar xalan.jar xerces.jar xml-apis.jar xsl
tc.jar
Has anybody else done this with Ant for a long CLASSPATH with many JARs? Are those line breaks inside JAR names a problem? It looks strange to me, and I'm not sure that it's correct or useful. Thanks - MOD -
Classpath inside a JAR file...
Hi there,
I have recently learned that I cannot use my JDBC driver JAR file from within another JAR file. So now I have two JAR files........my application and associated files in one and the JDBC driver in the other.
This gives me......
gatekeeper.jar
ojdbc14.jar
My problem is, when running the application I get an exception stating that it cannot load the Oracle driver. I'm assuming that this is because it cannot find the JDBC JAR file from within the manifest Class-Path.
My manifest is this: -
Main-Class: GateKeeper
Class-Path: ojdbc14.jar commonfiles images
This includes my commonfiles package (all classes) and my images directory. All these things are included. I'm trying to run the gatekeeper JAR file from the same directory as the JDBC driver JAR file.
I've tried: -
Class-Path: ojdbc14.jar commonfiles images
Class-Path: .\ojdbc14.jar commonfiles images
Class-Path: ..\ojdbc14.jar commonfiles images
None of these things help. Obviously I could just specify the JDBC JAR file when running the application using: -
java -cp ojdbc14.jar -jar gatekeeper.jar
....but I want to have the user just run it without having to know about the classpath.....i.e.
java -jar gatekeeper.jar
DrClap said (and I quote) "In the same directory as your main JAR file is easiest, but at any rate the Class-Path entry in your manifest should include the relative path of the driver jar."
...Isn't the relative path to the JAR file outside the JAR this?
.\ojdbc14.jar
Basically, to recap....from within my JAR application file I want to add to the classpath in the manifest file the JAR file that is outside the application JAR file in the same directory. Helpy?
...I'd offer dukes to you fine folks, but I've only got two left. Since I'm such a newbie, I'm not likely to get any more inthe near future, so I'm saving them for a raining day. :) I hope I can get a little charity without resorting to duke bribary. :)Hmmm...still not joy. This is the exception I'm getting with the stacktrace.
C:\Java\deployment\GateKeeper\JarFile>C:\j2sdk1.4.2_03\bin\java -jar gatekeeper.jar
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at commonfiles.OracleDataConnection.<init>(OracleDataConnection.java:26)
at GateKeeperFrame$MainAction.actionPerformed(GateKeeperFrame.java:429)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
My gatekeeper.jar file contains the following files: -
C:\Java\deployment\GateKeeper\JarFile>jar -tvf gatekeeper.jar
0 Wed May 19 19:06:42 BST 2004 META-INF/
95 Wed May 19 19:06:42 BST 2004 META-INF/MANIFEST.MF
0 Wed May 19 19:06:38 BST 2004 commonfiles/
1185 Mon Apr 26 22:24:30 BST 2004 commonfiles/ErrorDialog.class
1319 Fri Apr 16 10:50:28 BST 2004 commonfiles/ErrorItem.class
1381 Tue Apr 27 19:53:32 BST 2004 commonfiles/ErrorList.class
4207 Mon May 17 12:58:40 BST 2004 commonfiles/FileIO.class
1371 Fri May 14 12:00:38 BST 2004 commonfiles/Input.class
1655 Fri Apr 23 15:13:58 BST 2004 commonfiles/OracleConnectionDetails.class
6653 Fri May 14 14:34:58 BST 2004 commonfiles/OracleDataConnection.class
8612 Fri May 14 15:06:02 BST 2004 commonfiles/Utility.class
0 Mon May 17 19:56:40 BST 2004 images/
116 Wed Apr 21 10:19:50 BST 2004 images/Connect.gif
119 Wed Apr 21 10:19:28 BST 2004 images/Disconnect.gif
117 Wed Apr 21 10:16:24 BST 2004 images/Exit.gif
1024 Mon May 10 14:38:28 BST 2004 GateKeeper.class
186 Wed May 12 11:08:44 BST 2004 GateKeeperFrame$1.class
5300 Mon May 17 14:38:28 BST 2004 GateKeeperFrame$MainAction.class
1740 Fri May 14 15:21:20 BST 2004 GateKeeperFrame$MainButtonListener.class
11034 Mon May 17 11:07:30 BST 2004 GateKeeperFrame.class
898 Wed Apr 28 22:10:56 BST 2004 LoginFrame$DataSource.class
6938 Wed Apr 28 22:10:56 BST 2004 LoginFrame.class
3261 Fri May 14 12:22:28 BST 2004 UsersDataModel.class
My manifest file for gatekeeper.jar file contains this: -
Main-Class: GateKeeper
Class-Path: ojdbc14.jar
And the directory where I'm running the gatekeeper.jar file contains this: -
gatekeeper.jar
ojdbc14.jar
which I'm running using: -
java -jar gatekeeper.jar
Thanks for your help guys. And no, I don't have a newline at the end of the Class-Path entry in the manifest. -
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 -
JApplet MANIFEST classpath.. 3 files
how do I make the right manifest file for it?
with this as my MANIFEST.MF
Manifest-Version: 1.0
Class-Path: "swingx-0.9.0.jar;mysql-connector-java-5.0.4.jar;MS-SQL_jdbc.jar;"I get this..
java.lang.NoClassDefFoundError: org/jdesktop/swingx/JXTaskPane
at Item.<init>(Item.java:35)
at Main.<clinit>(Main.java:105)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:780)
at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2074)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:709)
at sun.applet.AppletPanel.run(AppletPanel.java:363)
at java.lang.Thread.run(Thread.java:619)which just means that it isn't loading anything I think =(
how do I make the correct classpath?
**EDIT**
just ignore this.. I've figured it out
Manifest-Version: 1.0
Class-Path: swingx-0.9.0.jar
mysql-connector-java-5.0.4.jar
MS-SQL_jdbc.jarEdited by: Nizzle on Nov 14, 2007 4:46 PMHi Steve,
As a quick workaround, can you consider merging that 3rd party
references into a simple, let's call it 3rdparty.jar, file. Then you
will be able to overcome this line limit. If you use ANT, it can be
made a part of the build process and can simplify future additions.
Hope this helps,
Regards,
Slava Imeshev
"Steve Ebersole" <[email protected]> wrote in message
news:3e788ce9$[email protected]..
>
I am having trouble deploying an EAR file having an ejb module with amanifest
Class-Path entry. It appears to be directly related to the length of thatClass-Path
entry. No matter the length of the Class-Path entry, ejbc runs fine butthen
the problem comes trying to upload the EAR through the console.
First iteration was just skeletal code and the dependencies were minimal.I was
able to get this uploaded and deployed correctly. For that EAR, the EJBjar file
manifest's Class-Path entry had only 2 entries and was no where near the72-character
line limit.
Second iteration had some functionality and the dependencies were muchlarger.
Again ejbc ran fine, but I got errors on upload when the console tries todeploy
the EAR. The manifest Class-Path entry for that ejb version contained 16jar
files which, because fo the 72 line limit, spread across 3 lines.
The complaint I get on deployment is NoClassDefFound for a class that isin a
jar file listed in the manifest classpath (it found it the first time).
Is there a bug in WebLogic (6.1 sp3) where it cannot recognize manifestclasspath
entries over a certain limit? I have seen postings about WebLogic'sissues with
class loading from manifest classpath entries but thought they had allbeen fixed
as of 6.1sp3.
Thanks in advance for any help or suggestions. -
Adding external .properties files to a MANIFEST classpath
Hi all;
I want to package my application as an executable jar (let's call it app.jar), but leave the config (.properties) file outside of it, so it can easily be edited after deployment. The config file should be added to the classpath, so that it can be loaded with ClassLoader.getResourceAsStream().
However, even though I add the directory where the config file lives to the classpath in the manifest of app.jar, it is not found by getResourceAsStream(). But if I package the config file in a separate jar (config.jar), and adds config.jar to the classpath of app.jar's manifest, it works.
Could someone explain why the config file is not picked up when not in a jar?This external classpath thing for jars is quite frustrating.
But actually you can reference external directory, it does not have be in the exact same folder as the jar.
Lets say in the folder you have:
app.jar
lib/WrapperFramework.jar
config/config.properties
You can load the properties from a folder by:
- in code, use "class.getResourceAsStream("/config.properties");", the initial "/" is important, otherwise some package string is prepended.
- in manifest, use "Class-Path: lib/WrapperFramework.jar config/", the last "/" is important, otherwise it doesnt work. Super confusing since "." works fine.
Note that the folder in classpath is considered to be relative to the folder in which the original jar file is located. Hence if you execute jar from a random folder, the classpath is not broken (that's fortunate).
Edited by: AJG on Nov 15, 2007 5:33 PM -
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) -
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 regardsGreetings,
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 -
Custom classpath and custom jar entry in R12
Hi all,
I have created the custom classpath and custom jar file for isrore process. I had put custom jar and custom class entry in orien_application.xml file. But it was working on R12 at doveloper mode. It will creates the classes for custom jsp file using custom import class or custom jar. But once i revert back the devloper mode means it won't work.
Could you please help..Oracle apps R12 - Compiling JSP with custom classpath
We all know that to compile JSP manually on the Oracle Application R12 instance, we need to run the file $FND_TOP/patch/115/bin/ojspCompile.pl.
Its help is as follows:
syntax: ./ojspCompile.pl COMMAND {ARGS}
COMMAND --compile update dependency, compile delta
--create rebuild entire dependency file
-delta.out update dependency, list delta to file
-dep.out update dependency, output heirarchy to file
ARGS -s matching condition for JSPs filenames
-p number of parallel compilations
-log to override logfile from ojspCompile.conf
You are
recommended to set the log file location
outside of any network file system shared (NFS) area/drive.
-conf to override ojspCompile.conf
--retry retry previously failed compilation attempts
--flush forces recompilation of all parent JSPs
--quiet do not provide an actively running progress meter
--fast instantly fail jsps that are possibly invalid
example1: ojspCompile.pl compile -s 'jtf%' -p 20 retry
example2: ojspCompile.pl compile -s 'jtflogin.jsp,jtfavald.jsp' flush
example3: ojspCompile.pl compile fast --quiet
If your JSP uses custom classes, then compiling jsp manually can fail if proper classpath is not set. Yes, even though if you have setup the classpath correctly in orion-application.xml, it will fail because this jsp compile utility does not read orion-application.xml classpath.
So, the problem is to identify where to set the classpath so that above utility can pick it up. After several search and looking into code, I found following:
By default, the jsp compiler script uses following configuration file
$INST_TOP/appl/admin/ojspCompile.conf
This conf file has a classpath field in it which is usually pointed to file
$INST_TOP/appl/admin/ojspCompile.properties
This property file lists the classpath used for JSP compilation.
So if your classes are not listed in this file, your jsps will not compile by ojspCompile.
Ofcourse, you can always set the "main_mode" to "recompile" in orion-web.xml, but that for production you do not want to change it and compile the JSP on file deployment.
References:
458338.1 How to Enable Automatic Compilation of JSP pages in R12 Environment
433386.1 JSP Pages Hanging in R12 After Removing Cached Class Files in _pages
783094.1 Compile jsp files at Application R12 at Windows -
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, -
Manifest to ejb-client-jar ??
Hi,
I have an EAR with an EJB module. Into the EJBmodule.jar my Manifest.mf lists many jars in "Class-path:".
In EJB1.1 it's deprecated (if I understood it well...), can I specify many jars in the ejb-jar.xml <ejb-client-jar> element?? (If yes, how to write them??)
Example:
-- Manifest
Class-path: myjar1.jar myjar2.jar
--> <ejb-client-jar>myjar1.jar myjar2.jar</ejb-client-jar> ?I realized that class-path has not to do with ejb-client-jar... but is this a kind of filter on the client view of beans (i.e. another jar with only stubs and interfaces?? this should be a deploy-tool yield..)?
-
Failed to load Main-Class manifest attribute from IWS.jar
I have a problem that when I click the IWS.jar in dist folder, there is an error
"Failed to load Main-Class manifest attribute from IWS.jar"
i have search in internet with same case, they said to add a line
"Main-Class: summary" in manifest.mf, so i have extract the .jar
and open the manifest.mf file, but it said that main class will add automatically
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.2
Created-By: 1.5.0_06-b05 (Sun Microsystems Inc.)
X-COMMENT: Main-Class will be added automatically by buildI am using Netbeans1.4 and jdk1.5.0_06 to create java application.
How should I fix it?
ThanksThanks for the reply..
I have fix it.
Actually why I got the error is because I used panel form to create GUI form.
So I try create new file using frame form rather than panel. It will generate this main class.
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new NewJFrame().setVisible(true);
} Thats why my .jar fail to load when I used panel form because its does not have main class in it. -
Failed to load Main-Class manifest attribute from Hello.jar???
HI all
This is my first post, I hope its in the right section
I followed the tutorial on [http://www.cs.princeton.edu/introcs/85application/jar/jar.html|http://www.cs.princeton.edu/introcs/85application/jar/jar.html] and I tried out the simple example below
A simple example. Let's say we wanted to distribute the simple program Hello.java as a JAR. First, we create a text file named Hello.mf which contains:Manifest-Version: 1.0
Main-Class: Hello
Then, we create the archive by typing:
jar cmf Hello.mf Hello.jar Hello.class Hello.java
and run it by typing:
java -jar Hello.jar
But when I ran the command java -jar Hello.jar the following error message showed on my command prompt
Failed to load Main-Class manifest attribute from Hello.jar
I don't know what I have done wrong, i followed the tutorial to the letter.
Can anyone shed some light on whats going wrong please?
Many thanks
HLA91Sorry about double post but i dont know whether editing my first one will bump the thread, and i need it bumped :).
I downloaded netbeans and I built my project and a jar file was created in oblong/dist (oblong is my project name) but again when i try to run the file the warning
Failed to load Main-Class manifest attribute from oblong.jar
appears and I dont know what i can do this time seen as i dont make the manifest file (read prior posts to see what i previously did wrong) , the compiler does it all for me so either im missing something that i have to do before building my project or netbeans is messing up for some strange reason. Can anyone provide insight?
Many thanks
HLA91
Maybe you are looking for
-
Cyrstal Report 2008 and SAP BW
Hi, BOE 3.1, Crystal Report 2008 and SAP Integration Kit 3.1 installed on the window server 2003. Trying to build the Crystal Report on top of SAP BI 7. Set the MDX driver setting in Crystal Report. In Crystal Report, I click on Create Report from Qu
-
VALIGN in table cells not responding
I'm trying to change the vertical alignment of content in a table within a fluid grid layout. Before putting the table into the fluid grid (I made it in a separate html5 document), the alignment was fine, but when I copied it in, VALIGN had no effect
-
Contribute CS4, re-install
I need to re-install my Contribute CS4 program, I have the license #, but it is not showing me a download link so I can re-install it.My computer crashed and I have had to re-install all my programs again. Can you please send me the download link. I
-
Hi, I am evaluating sql developer. i tried to download the installer from http://www.oracle.com/technology/software/products/sql/index.html ( Oracle SQL Developer for Windows - 55.8MB). I followed the installation guide and explored it. I am also abl
-
Dear Gurus, we are using TAXINJ.Now we are planning to implement TAXINN.I know that we should close open doc's like PO,MIGO and MIRO. But my question is Now we planning to go for a new company code with 50 additional plants.Can we upload open doc to