Distributing wlclient.jar file - Licensing issues?
Hi,
I am working on creating an Eclipse plug-in which will be using wlclient.jar file. This is a open source project and is not used for commercial purpose. May I know if there are any licensing restrictions to distribute wlclient.jar as part of the free eclipse plugin project?
Thanks
push
Similar Messages
-
EJB 3.0: deployment/jar file generation issue
We have a web application project (ADF Faces) which depends on a model project (EJB 3.0 session/entity beans) that implements both business and persistence layers. This EJB project points to a utility jar file containing some classes we have built. When we run the web project from inside JDev, everything works perfectly, with no error. However, when generating EAR file (deploying web project to WAR) we experience an issue.
As expected, JDev generated the war file for the web app, the jar file for the EJB and finally the EAR file containing both war and jar files. After that, we managed to deploy the ear file to our OAS 10.1.3 test instance (not standalone OC4J) and an error occured. The error is due to the fact JDev did not create the /lib subdirectory inside ejb project jar file /META-INF directory with our utility jar file inside.
We tried to generate a separated jar file for the ejb project alone with the same results.
Is this an IDE bug which does not pack the application as it should? What could we be doing wrong? If yes, is there a work-around? Like I said, the application runs fine on embedded server. Also, when the EJB application does not depend on external libraries, the deployment to OAS 10.1.3 works perfectly. We have tested it!
Could anyone help us?
Thanks in advance.
Best Regards,
Gustavo
PS: Sorry for my English. :)Hi Shay! I follow what you said and it worked. However, we had to manually edit MANIFEST file for the EJB jar in order to add classpath clause to map our util jar. IMHO, JDev should do it for us. Anyway, we were able to deploy the app successfully.
Best Regards,
Gustavo -
After the security update here, http://sunsolve.sun.com/search/document.do?assetkey=1-26-103079-1 any users referencing our applets do not use the jar files stored in cache if the DNS has changed. We use an akamai hosted solution for jar distribution (though this would also occur in any DNS load balancing situation) thus the IP is rather dynamic though the content is identical. As the security issues states, any Plugin versions 1.5.0_13 and above or 1.6.0_03 and above treat a new DNS as compeltely new jar files.
Has anyone worked through similar situations? This renders the caching almost useless and we have a rather thick applet (3 Mb total jar files) which is quite an impact for a customer that is often low bandwidth to download daily.
Thanks!Recently I tried to used some robot tools to test our application for performance issue. During the robot testing, I acceidentally discover some difference for the jar downloading which cause the above mentioned problem.
At first, this http request has no problem and the jar file is NOT downloaded. Http server shows a response code of "304", meaning download not required.
http_request
"GET lib/posLookup.jar HTTP/1.1\r\n"
"Accept: */*\r\n"
"Accept-Encoding: gzip, deflate\r\n"
"If-Modified-Since: Thu, 05 Dec 2002 17:22:12 GMT\r\n"
"User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; T31246"
"1)\r\n"
"Host: defaulthost\r\n"
"Connection: Keep-Alive\r\n"
"Cookie: sesessionid=0001UULRZPFLU5IBRNBVHWUUAFI\r\n"
"\r\n";
Then after running for a while, the browser jumps into another page and finds that the same jar file "posLookup.jar" is required. It issue another http request to server as:
http_request
"GET lib/posLookup.jar HTTP/1.1\r\n"
"cookie: sesessionid=0001UULRZPFLU5IBRNBVHWUUAFI\r\n"
"User-Agent: Java1.3.1_02\r\n"
"Host: defaulthost\r\n"
"Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2\r\n"
"Connection: keep-alive\r\n"
"\r\n";
But this time the user agent becomes Java1.3.1_02 and the accept type becomes text/html instead of original zip format. After this, I check the IE temporary file and found that the posLookup.jar is having a type of "HTML Document" instead of "Executable jar file".
Does anyone know whether this is a bug of the Internet Explorer or it is bug of the Java Plugin?
Appreciate any opinions or comments.
Thanks -
WlClient.jar & JAAS authentication Issues
If I run the JAAS example (examples/security/jaas) that comes with
wl8.1 sp1 but use wlclient.jar instead of weblogic.jar, the
LoginContext.login() method returns a Subject even if I pass in an
invalid user/password combination. If weblogic.jar is in the
classpath, a javax.security.auth.login.LoginException is thrown which
is what I want to happen for invalid credentials. When running with
wlclient.jar, the code doesn't fail until it actually attempts to
access the EJB at which point it gets a org.omg.CORBA.NO_PERMISSION.
I am trying to use JAAS to login from a swing app and I want to use
wlclient.jar instead of weblogic.jar, but I need to be able to
determine whether the login was successful without waiting until I
access a secured EJB. Why does wlclient.jar behave differently than
weblogic.jar? How can I determine if my login worked if Weblogic is
going to return a Subject no matter what username/password I pass in?Hi,
I have a similar problem when using wlclient.jar. I am able to authenticate using
the UsernamePasswordLoginModule (with authOnLogin true), but I get an error when
invoking a secured EJB:
UsernamePasswordLoginModule.initialize(), debug enabled
UsernamePasswordLoginModule.initialize(), authOnLogin enabled
UsernamePasswordLoginModule.login(), username weblogic
UsernamePasswordLoginModule.login(), URL t3://localhost:7001
Logged in
Invoking EJB
java.rmi.AccessException: CORBA NO_PERMISSION 0 Maybe; nested exception is:
org.omg.CORBA.NO_PERMISSION: vmcid: 0x0 minor code: 0 completed: Maybe
at com.sun.corba.se.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:95)
at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
The login is successfull, but I get the org.omg.CORBA.NO_PERMISSION when invoking
the EJB. If I replace wlclient.jar with weblogic.jar it works fine! But we can't
use weblogic.jar in our deployed client, because a) it's HUGE, b) it conflicts
with Ant 1.6.1.
Any ideas?
"Memo S" <[email protected]> wrote:
>
Here is the answer
A UsernamePasswordLoginModule LoginModule was added for use by the IIOP
thin-client.
This class has the same API as that of the weblogic.security.auth.login.UsernamePasswordLoginModule
class, but in this implementation, there is a new property called authOnLogin.
When true, this property forces the login method to perform authentication
(rather
than on the first invocation). The default for this new property is false.
Regards.
Memo S
"Ganapathi" <[email protected]> wrote:
If I run the JAAS example (examples/security/jaas) that comes with
wl8.1 sp1 but use wlclient.jar instead of weblogic.jar, the
LoginContext.login() method returns a Subject even if I pass in an
invalid user/password combination. If weblogic.jar is in the
classpath, a javax.security.auth.login.LoginException is thrown which
is what I want to happen for invalid credentials. When running with
wlclient.jar, the code doesn't fail until it actually attempts to
access the EJB at which point it gets a org.omg.CORBA.NO_PERMISSION.
I am trying to use JAAS to login from a swing app and I want to use
wlclient.jar instead of weblogic.jar, but I need to be able to
determine whether the login was successful without waiting until I
access a secured EJB. Why does wlclient.jar behave differently than
weblogic.jar? How can I determine if my login worked if Weblogic is
going to return a Subject no matter what username/password I pass in? -
.jar file reusablility issue in oracle forms
hello all
i am using oracle forms
{code}
Forms [32 Bit] Version 10.1.2.0.2 (Production)
Oracle Toolkit Version 10.1.2.0.2 (Production)
PL/SQL Version 10.1.0.4.2 (Production)
Oracle Procedure Builder V10.1.2.0.2 - Production
{code}
and using Database 10g
{code}
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
{code}
i am developing an application in oracle forms that sends message through GSM mobile when any transaction is commited.
i wrote a class in java , made .jar file , edited default.env file CLASSPATH = "my .jar file"
everything is working fine when i am trying the code in NETBEANS IDE, it sends messages again and over again with no delay..
PROBLEM:
the problem is that when i try to send message from oracle forms using that JAR file , it sends message for only single time , after that it neither shows me any error nor sends the message,
(1) can it be problem of closing COM port for reusablity.
(2) any other way to reuse the jar file.
(3) should i program to closo the used port. (but java program is working very well in NETBEANS IDE).
please suggest me what should i do to reuse .jar file again and over again.
thanksthanks for your reply.
sorry if forgot to mention that how i am using this java code.
yes! i am using that java code using Java Importer in oracle forms 10g.
importing that jar file i used PL/SQL code to use the static public veriables in oracle forms
Procedure Send_Message(
Cel_N In Varchar2
Is
Ora_Obj Ora_Java.Jobject;
Com_P Varchar2(10);
Cent_No Varchar2(100);
Send_Sms Number;
Mesg Varchar2(200);
Begin
Ora_Obj := Smsclient.New(1);
Smsclient.Setcomportname(Com_P);
Smsclient.Setmsgcenternum(Cent_No);
Send_Sms:= Smsclient.Sendmessage(Ora_Obj,Cel_N,Mesg);
Exception
When Ora_Java.Java_Error Then
Message(Ora_Java.Last_Error);
When Others Then
Message(Sqlerrm);
End;
this Smsclient.Sendmessage Class is working very well in both plateforms in NETBEANS IDE and oracle forms but the difference is in this class that
in NETBEANS IDE (when i run this class using F6 ) it works every time with no delay
but when i use this same class in pl/sql code through oracle forms it works only for one time.
COM ports and GSM modem is working property but why .jar file works for once.. and when i restart OC4J & oracle form at run time then it works for only once , meanse after starting OC4J i am able to send message through mobile for one time, means .jar file works only once, why not every time i call the class through oracle form..
what should i check .. please..
thanks -
External jar file deployment issue
Dear Experts,
I have one external jar : tc_sec_https.jar to be used in my dc.
Hence I have created an external library dc and included this jar in the library . I have also created one dc of type j2ee server component where I have used the public parts of the external library dc at build time.Finally I have deployed the j2ee type dc.
But when I log into visual admin I dont find the jars deployed on the server.
I have followed all the steps of the tutorial :
" External Library Deployment and Usage in SAP NWDS" by Saurabh Agarwal.
Could u please guide why I am not able to find the jar on the server while I log through visual admin ??
Regards,
Mamai.Why do you deploy jar which is already on the server?
\usr\sap\<SID>\JC<INSTANCE_NUMBER>\j2ee\cluster\server0\bin\ext\security.class\tc_sec_https.jar
Just set reference to the library in your application-j2ee-engine.xml:
<reference-target target-type="library" provider-name="sap.com">security.class</reference-target> -
Hi,
We are developing our own repository manager, which needs some APIs provided by sap like bc.rf.framework_api.jar. I got these jar files after installing NW04.
Now our question is, is there any lisence issue about using or distributing these jar files? SAP gals - please confirm.
Thanks,
RayHi Detlev,
Thanks for reply.
Yes I know I needn't deploy these jar files - I just need them at compile time.
But for compile, I need put them in our version-control system (we use perforce). So we are wondering about this.
Maybe we are too careful - make it simpler: is there any restriction on using these SAP-provided jar files internally at compile time?
Thanks,
Ray -
Including helper classes in java proxy jar file
I must not be using the right header search criteria because I'm sure this question
has been asked before. In a Web Service File (.jws) I've imported a couple of
helper classes that function as data transfer objects. I did this to maintain
consistency with other portions of the application. The Java Proxy jar file generated
by Workshop does not include these files. Is there a way of including these dependencies
or do I need to distribute another jar file with my helper classes?Hi Naichen,
I was able to successfully run both the autotype and clientgen Ant task, on the
WSDL you provided. The code behind those Ant tasks are pretty much what the WebLogic
Web Services test page run. Are you using WLS 8.1 SP2? If not, you might want
to try with that version.
Regards,
Mike Wooten
"Naichen Liu" <[email protected]> wrote:
>
>
>
Hi,
I am having a warning message when trying to generate java proxy jar
file on weblogic8.1
webservice test web app, the message is as follows:
"Warning Failed to generate client proxy from WSDL definition for this
service.
Prescription Please verify the <types> section of the WSDL."
in the mean time, on weblogic starting terminal, I saw the following
exceptions,
C:\DOCUME~1\u252738\LOCALS~1\Temp\wlwproxy37508.jar1533409921\com\ual\www\rcc\cb
t\schema\modifypnr\AlphaLength4Deserializer.java:36: cannot resolve symbol
symbol : class FacetUtils
location: package binding
weblogic.xml.schema.binding.FacetUtils.checkLengthFacet(__typed_obj,4L);
^
C:\DOCUME~1\u252738\LOCALS~1\Temp\wlwproxy37508.jar1533409921\com\ual\www\rcc\cb
t\schema\modifypnr\OSIFieldAnonTypeDeserializer.java:36: cannot resolve
symbol
symbol : class FacetUtils
location: package binding
weblogic.xml.schema.binding.FacetUtils.checkMaxLengthFacet(__typed_obj,69L);
^
C:\DOCUME~1\u252738\LOCALS~1\Temp\wlwproxy37508.jar1533409921\com\ual\www\rcc\cb
t\schema\modifypnr\AlphaLength2Deserializer.java:36: cannot resolve symbol
symbol : class FacetUtils
location: package binding
weblogic.xml.schema.binding.FacetUtils.checkLengthFacet(__typed_obj,2L);
^
C:\DOCUME~1\u252738\LOCALS~1\Temp\wlwproxy37508.jar1533409921\com\ual\www\rcc\cb
t\schema\modifypnr\FreeFormAnonTypeDeserializer.java:36: cannot resolve
symbol
symbol : class FacetUtils"
Can anybody help me about this issue? I attached WSDL file, also United
Airlines
got an enterprise weblogic license deal with BEA, any help will be highly
appreciated.
Thanks!!!
Naichen -
Multiple repeat downloads of applet jar file
We have an applet that is downloaded from a Weblogic server. The applet is packaged as a jar file. Some of the testers have been complaining that the applet is extremely slow to start up.
The applet start-up involves three phases. In a first phase, it fetches data from the server. This phase seems to execute in pretty much constant time. During the second and third phases, it constructs a UI using Swing objects. The UI includes some JPEG files, which are extracted from the applet's own jar file.
Testers report that the slow part of start-up is actually the UI setup. This should theoretically not be network-bound at all. But packet tracing reveals that during this phase, there's a large amount of network traffic going on. It turns out that there are multiple GET requests for the applet jar file being issued. Typically, 29 requests are issued in all; just for reference, the applet is required to extract 28 images from its jar file, so it looks as if the additional requests correspond to image requests.
One further detail: this does not occur where there is a fast connection to the server. In these cases, the applet is downloaded once. It looks as if the problem only occurs on slower network connections, and the speculation here is that the applet jar is somehow being downloaded only partially, so that requests for images somehow trigger a re-request of the jar file.
Has anyone seen anything similar and, more to the point, is there a fix or workaround?
Technical details: Internet Explorer 5.5 or 6.0, JRE version 1.4.2_01 Java HotSpot(TM) Client VM (on the client), WebLogic 8.1 (on the server)
Thanks in advance for any help.Ok.
I have been trying hard and found the solution. One of the ablove posting says that it works under java 1.4.1 plug-in. That's infact absolutely true. It also says that how to run client using JRE 1.4.2 or higher. That can be solved two. This is definitely a bug with the 1.4.2 plug-in.
Follow this procedure that will solve the mystry.
----------------------start ---------------------------------
Problem
Download of applet is very slow
Why?
This was happening because of the repeated download of the applet jars by the applet plug in controller. It is quite clear that the Java 1.4.2 plug in controller has a bug that causes the plug in to download same jar files multiple times irrespective of Jar cache in the client side (configurable from client side using the Java plug in control panel) is enabled or disabled. Therefore, we have moved from 1.4.2 plug in to 1.4.1 (controlled from our client (JSP) code) that works fine.
What the client (applet client) should do?
You must do the following in the client side in order to avoid the long download time for applet when running from a browser. We have also found that the browser actually do not matter in slow applet downloads. It is only the plug in that does control the applet download.
Irrespective of what JVM you have already installed (or not yet installed) please do the following:
1. Download the JRE 1.4.2 from http://java.sun.com/products/archive/index.html
-At the time of its installation if it shows that the "JRE is already installed do you uninstall it?" Go ahead and uninstall the JRE 1.4.2. After the un-installation again install the JRE 1.4.2
-If it does not have the JRE 1.4.2 already installed, then you will see any warning window and you will be able to install the 1.4.2 JRE successfully.
2. Now, go to the same link and install JRE 1.4.1.
-If this JRE already installed, uninstall first like the step 1 above. then reinstall it.
3. Now, after successful installation of the JRE 1.4.1, open the Plug-In control panel.
-You will find the list of control panel(s) in the Start->Control Panel window. Use the control panel that shows the version number 1.4.1. If no version number shown then use the one that do not show any version number at its end.
4. Do the following on the Plug-In control panel.
-Verify if this is the 1.4.1 plug in control panel? Go to the "About" tab to see if it shows 1.4.1.
If it does not show the 1.4.1 (or 1.4.1_x) then plug in was not installed correctly. Reinstall the 1.4.1 JRE following the step in no-2
-Go to "Basic" tab and select "Show console" radio button.
-Go to "Advanced" tab and from the drop down select "JRE ...1.4.2" from the "Java Runtime Environment" drop down box.
-Go to "Browser" tab and select all that in the "Settings" box applicable for browsers.
-Go to "Cache" select "Enable Caching" if it is not selected currently. Select "Unlimited" from "Size" options.
Now hit "Apply" button at the bottom and close the control panel using the 'X'.
5. Restart your Windows machine.
6. You are ready to run the applet from any of the browser (IE, NS, etc.)
--------------------------end------------------------------ -
Create a complete jar file with jscreator
Please provide all details for creating a jar file with jscreator for this 77 year old puzzle creator
Hi,
I would suggest switching to NetBeans IDE. It allows for the following:
- Ability to run with latest JDK release
- Enabled with the latest Java technologies
- Support for a greater number of application servers
The following will help with migration (if you already have a project setup in Creator)
http://www.netbeans.org/kb/60/web/creator-migration.html
Also, the following article describes how to create and Distribute Executable JAR Files in NetBeans
http://www.netbeans.org/kb/articles/javase-deploy.html
NetBeans website for downloads and other information;
http://www.netbeans.org/index.html -
Using Third-Party jar file in database; Where to put license file?
Hi!
I have a third-party product that has a .jar file that references some .so files. I have successfully loaded the .jar file and the .so files are being called successfully, but when the program gets to the part where it reads the third-party license file, it is failing (ORA-3113 and an hs_err_pid<12345>.log and udump file are created. I know the issue is the location of the license file because I am getting the same exact error when I run it outside of the database. (I have been able to run it successfully outside of the database.)
The instructions for the third-party product say to put the license file in the application's runtime directory.
What I can't figure out is this: What is the application's runtime directory when I am running the code in the database?
I thought it would be user.dir which is set to $ORACLE_HOME, but putting the license file there didn't work. I have tried lots of other places under $ORACLE_HOME.
Any ideas?
Thanks,
LaurelHi Laurel:
Whether or not you can read the license file, sure you will have problem then when trying to load your .so file.
Java JNI call are not allowed inside OJVM for security reasons, see Kuassi's answer to a similar question:
Access Berkeley DB from Java Stored Procedure
Best regards, Marcelo. -
Distributing xml schema in Jar file
I am using an xml schema to validate an incoming xml document and want to distribute the schema as a resource file in the application Jar file.
The schema location entered in the xml document can be overridden in the Java program by setting a parser property "http://apache.org/xml/properties/schema/external-schemaLocation". This relates a namespace to the schema location on the file system, either absolute or relative (following so far ??).
Any ideas about how to define the schema location if the file is stored as a resource in a Jar file ?Hi,
I have a related question.
I have a MasterSchema.xsd which includes 2 sub-schema's, schema1 and schema 2 using include schemaLocation as shown below
<?xml version = "1.0" encoding = "UTF-8"?><xsd:schema xmlns:xsd = "http://www.w3.org/2001/XMLSchema"
elementFormDefault = "qualified">
<xsd:include schemaLocation = "schema1.xsd"/>
<xsd:include schemaLocation = "schema2.xsd"/>
</xsd:schema>
I am using the parser.setProperty to associate the MasterSchema.xsd with the instance. Like so,
parser.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation","MasterSchema.xsd");
I am registering an entity resolver with the parser and the entity resolver handler is an inner class. Shown below
parser.setEntityResolver(new EntityResolver() {
public InputSource resolveEntity(String publicId, String systemId)
if (systemId.endWith("MasterSchema.xsd") {
return new InputSource(("/absolute_path/MasterSchema.xsd");
} else if (systemId.endsWith("schema1.xsd")) {
return new InputSource(("/absolute_path/schema1.xsd");
} else if (systemId.endsWith("schema2.xsd")) {
return new InputSource("("/absolute_path/schema2.xsd");
} else {
return null;
The parser finds the MasterSchema.xsd but not the included schema1.xsd and schema2.xsd. Any ideas?
I am using the external-noNamespaceSchemaLocation instead of external-schemaLocation since I am not using any namespace.
Thanks
Mary. -
Classpath Issue - but JAR file is in the classpath
I'm having an issue getting a JAVA Application Client to run and would welcome any suggestions or input to resolve this problem. I'm not a developer, just the builder/deployer of the applications. There are two developers looking at this problem too, but they are stumped too.
It complains that it can't find sun/jdbc/rowset/CachedRowSet, which is contained in the rowset.jar - which is in the classpath. I've put all the supporting information below, if you need additional information please let me know and I'll provide it.
***** ERRORS FROM RUNNING SCRIPT BELOW *****
*** NOT Using Verbose: ***
Exception in thread "main" java.lang.NoClassDefFoundError: sun/jdbc/rowset/CachedRowSet
*** Using Verbose (only included the output with the error): ***
[Loading superclasses of com/actuate/schemas/SubmitJobResponse]
[Loaded java.sql.SQLException from /usr/java130/jre/lib/rt.jar]
[Loading superclasses of java/sql/SQLException]
[Signaling in VM: java/lang/NoClassDefFoundError, message: sun/jdbc/rowset/CachedRowSet]
Exception in thread "main" java.lang.NoClassDefFoundError: sun/jdbc/rowset/CachedRowSet[Loaded sun.i
o.UnknownCharacterException from /usr/java130/jre/lib/rt.jar]
[Loading superclasses of sun/io/UnknownCharacterException]
[Preparing sun/io/UnknownCharacterException]
***** SCRIPT TO RUN THE JAVA COMMAND *****
#!/usr/bin/ksh
LIBDIR="/actuate/Mace/lib"
JAVA_CP=""
MAIN_JAR="MaceEXT.jar"
JAVA_PATH="/usr/java130/jre/bin"
JAVA_HOME="/usr/java130/jre"
JAVA_FULLVERSION=`$JAVA_PATH/java -fullversion`
JAVA_EXE=${JAVA_HOME}/bin/java
PATH=$JAVA_PATH:$PATH
export PATH
export JAVA_HOME
JAVA_CP="${LIBDIR}/sljcx.jar"
JAVA_CP="${LIBDIR}/sljc.jar":${JAVA_CP}
JAVA_CP="${LIBDIR}/rowset.jar":${JAVA_CP}
JAVA_CP="${LIBDIR}/wsdl4j.jar":${JAVA_CP}
JAVA_CP="${LIBDIR}/tt-bytecode.jar":${JAVA_CP}
JAVA_CP="${LIBDIR}/servlet.jar":${JAVA_CP}
JAVA_CP="${LIBDIR}/saaj.jar":${JAVA_CP}
JAVA_CP="${LIBDIR}/log4j-1.2.4.jar":${JAVA_CP}
JAVA_CP="${LIBDIR}/jaxrpc.jar":${JAVA_CP}
JAVA_CP="${LIBDIR}/commons-logging.jar":${JAVA_CP}
JAVA_CP="${LIBDIR}/axis.jar":${JAVA_CP}
JAVA_CP="${LIBDIR}/ivjejb35.jar":${JAVA_CP}
JAVA_CP="${LIBDIR}/j2ee.jar":${JAVA_CP}
JAVA_CP="${LIBDIR}/activation.jar":${JAVA_CP}
JAVA_CP="${LIBDIR}/mail.jar":${JAVA_CP}
JAVA_CP="${LIBDIR}/ns.jar":${JAVA_CP}
JAVA_CP="${LIBDIR}/xmlParserAPIs.jar":${JAVA_CP}
JAVA_CP="${LIBDIR}/xercesImpl.jar":${JAVA_CP}
JAVA_CP="$JAVA_HOME/lib/rt.jar":${JAVA_CP}
echo ""
echo "Classpath"
echo $JAVA_CP
echo ""
echo "JAVA_Home"
echo $JAVA_HOME
echo ""
echo "JAVA_EXE"
echo $JAVA_EXE
echo ""
echo "JAVA_Path"
echo $JAVA_PATH
echo ""
echo "JAVA FullVersion"
echo $JAVA_FULLVERSION
#$JAVA_EXE -cp $JAVA_CP -jar $MAIN_JAR -h dev -c adduser -u 000 -p ""
$JAVA_EXE -verbose -cp $JAVA_CP -jar $MAIN_JAR -h dev -c adduser -u 000 -p ""
***** JAR -tvf OF ROWSET.JAR *****
server105:/actuate/Mace/lib $ jar -tfv rowset.jar
0 Tue Jun 13 19:45:42 EDT 2000 META-INF/
66 Tue Jun 13 19:45:42 EDT 2000 META-INF/MANIFEST.MF
0 Tue Jun 13 19:45:30 EDT 2000 sun/
0 Tue Jun 13 19:45:30 EDT 2000 sun/jdbc/
0 Tue Jun 13 19:45:42 EDT 2000 sun/jdbc/rowset/
551 Tue Jun 13 19:45:30 EDT 2000 sun/jdbc/rowset/BaseRow.class
9112 Tue Jun 13 19:45:32 EDT 2000 sun/jdbc/rowset/BaseRowSet.class
35562 Tue Jun 13 19:45:36 EDT 2000 sun/jdbc/rowset/CachedRowSet.class
597 Tue Jun 13 19:45:36 EDT 2000 sun/jdbc/rowset/ColInfo.class
1290 Tue Jun 13 19:45:36 EDT 2000 sun/jdbc/rowset/InsertRow.class
18442 Tue Jun 13 19:45:38 EDT 2000 sun/jdbc/rowset/JdbcRowSet.class
2109 Tue Jun 13 19:45:38 EDT 2000 sun/jdbc/rowset/Row.class
4489 Tue Jun 13 19:45:38 EDT 2000 sun/jdbc/rowset/RowSetMetaDataImpl.class
4707 Tue Jun 13 19:45:38 EDT 2000 sun/jdbc/rowset/RowSetReaderImpl.class
8270 Tue Jun 13 19:45:38 EDT 2000 sun/jdbc/rowset/RowSetWriterImpl.class
4745 Tue Jun 13 19:45:40 EDT 2000 sun/jdbc/rowset/SQLInputImpl.class
3287 Tue Jun 13 19:45:40 EDT 2000 sun/jdbc/rowset/SQLOutputImpl.class
2326 Tue Jun 13 19:45:40 EDT 2000 sun/jdbc/rowset/SerialArray.class
1560 Tue Jun 13 19:45:40 EDT 2000 sun/jdbc/rowset/SerialBlob.class
1948 Tue Jun 13 19:45:40 EDT 2000 sun/jdbc/rowset/SerialClob.class
592 Tue Jun 13 19:45:40 EDT 2000 sun/jdbc/rowset/SerialRef.class
2419 Tue Jun 13 19:45:40 EDT 2000 sun/jdbc/rowset/SerialStruct.class
1903 Tue Jun 13 19:45:40 EDT 2000 sun/jdbc/rowset/WebRowSet.class
257 Tue Jun 13 19:45:40 EDT 2000 sun/jdbc/rowset/XmlReader.class
15620 Tue Jun 13 19:45:40 EDT 2000 sun/jdbc/rowset/XmlReaderDocHandler.class
2029 Tue Jun 13 19:45:40 EDT 2000 sun/jdbc/rowset/XmlReaderImpl.class
258 Tue Jun 13 19:45:40 EDT 2000 sun/jdbc/rowset/XmlWriter.class
9797 Tue Jun 13 19:45:42 EDT 2000 sun/jdbc/rowset/XmlWriterImpl.class
***** ECHO OF VARIABLES FROM SCRIPT *****
Classpath
/usr/java130/jre/lib/rt.jar:/actuate/Mace/lib/xercesImpl.jar:/actuate/Mace/lib/xmlParserAPIs.jar:/ac
tuate/Mace/lib/ns.jar:/actuate/Mace/lib/mail.jar:/actuate/Mace/lib/activation.jar:/actuate/Mace/lib/
j2ee.jar:/actuate/Mace/lib/ivjejb35.jar:/actuate/Mace/lib/axis.jar:/actuate/Mace/lib/commons-logging
.jar:/actuate/Mace/lib/jaxrpc.jar:/actuate/Mace/lib/log4j-1.2.4.jar:/actuate/Mace/lib/saaj.jar:/actu
ate/Mace/lib/servlet.jar:/actuate/Mace/lib/tt-bytecode.jar:/actuate/Mace/lib/wsdl4j.jar:/actuate/Mac
e/lib/rowset.jar:/actuate/Mace/lib/sljc.jar:/actuate/Mace/lib/sljcx.jar
JAVA_Home
/usr/java130/jre
JAVA_EXE
/usr/java130/jre/bin/java
JAVA_Path
/usr/java130/jre/bin
JAVA FullVersion
java full version "J2RE 1.3.0 IBM build ca130-20020504"
***** DIRECTORY LISTING *****
server105:/actuate/Mace $ ls -lat
-rwxr-xr-x 1 actuate actuate 1673 Apr 04 09:11 go.sh
-rw-r----- 1 actuate actuate 476699 Apr 03 12:37 MaceEXT.jar
drwxr-xr-x 2 actuate actuate 4096 Apr 02 10:49 lib
-rw-r----- 1 actuate actuate 1818 Mar 28 11:15 MaceConfig.xml
server105:/actuate/Mace/lib $ ls -lat
-rw-r----- 1 actuate actuate 32033 Apr 02 10:49 ivjejb35.jar
-rw-r----- 1 actuate actuate 329096 Apr 02 10:49 j2ee.jar
-rw-r----- 1 actuate actuate 374291 Apr 01 16:39 ns.jar
-rw-r----- 1 actuate actuate 654326 Apr 01 16:31 sljc.jar
-rw-r----- 1 actuate actuate 81987 Apr 01 16:31 sljcx.jar
-rw-r----- 1 actuate actuate 54368 Mar 31 08:32 activation.jar
-rw-r----- 1 actuate actuate 867459 Mar 31 08:32 axis.jar
-rw-r----- 1 actuate actuate 24287 Mar 31 08:31 commons-logging.jar
-rw-r----- 1 actuate actuate 32069 Mar 31 08:31 jaxrpc.jar
-rw-r----- 1 actuate actuate 378778 Mar 31 08:31 log4j-1.2.4.jar
-rw-r----- 1 actuate actuate 305414 Mar 31 08:31 mail.jar
-rwxrwxrwx 1 actuate actuate 62388 Mar 31 08:31 rowset.jar
-rw-r----- 1 actuate actuate 18468 Mar 31 08:31 saaj.jar
-rw-r----- 1 actuate actuate 78350 Mar 31 08:31 servlet.jar
-rw-r----- 1 actuate actuate 130773 Mar 31 08:31 tt-bytecode.jar
-rw-r----- 1 actuate actuate 109356 Mar 31 08:31 wsdl4j.jar
-rw-r----- 1 actuate actuate 933730 Mar 31 08:31 xercesImpl.jar
-rw-r----- 1 actuate actuate 78440 Mar 31 08:31 xmlParserAPIs.jarAll that script made my eyes glaze over, but it appears you are running your main class from an executable jar file. Is that correct? Executable jar files don't use the classpath. If you want them to refer to anything outside the executable jar, you have to put Class-Path entries in its manifest.
-
Oracle 11g application won't start sometimes(jar files issue)
Hello,
The issue we experience is that now and then, our forms 11g application
won't start.
So it can be the case that, for example, the application can be started
succesfully 5 times in a row, but the 6th and 7th time, it won't start
anymore. But when we relaunch it for the 8th time, it launches perfectly.
When the application isn't starting, a new window is opened having a yellow triangle
with an exclamation mark on the top right corner.
After a long period, we suddely discovered that it had something to do with ".jar" files.
Because when we clear the "java jar cache" on the client machine
(start -> control panel -> java -> "general" tab -> "view..." button -> select all the files and click on the
cross(remove selected sources) ), the application succesfully starts for about 10 times in a row.
But the first time we start the application(after clearing the cache), it takes much longer, because the application
is downloading the .jar files again. (java logo appears with a progress bar)
But clearing the cache every time before starting the application can't be a decent solution we think.
When we enable all java debugging info in the console, we received the error below 2 times when launching a application session that refused to start:
java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.awt)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPackageAccess(Unknown Source)
at sun.plugin2.applet.Applet2SecurityManager.checkPackageAccess(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at oracle.forms.engine.Main.initDesktop(Unknown Source)
at oracle.forms.engine.Main.start(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Anyone having a clue ?
thanks in advance !Sorry, I meant WEB-INF\lib in the WAR file inside my EAR.
I put all the jar files in the WEB-INF\lib of the WAR file but it still does not work. I have to specify them in the classpaths and put the jar files in the domains\domain\lib directory
I thought if you put it in the WEB-INF\lib then you don't have to put them in the classpath.
Am I right? -
On a Windows xp machine, I can run the jar file from command line. But unable to run by double clicking it
I did check ftype jarfile on command line and I did get the correct values. I did compare this value against the value on a machine where jar file works fine.
I did assoc .jar=jarfile on command line. Still it does not work. java6 is my environment.The screen comes and goes so quick. The error is it can't find the main class. But the same jar file runs from command line
without any issue.
Edited by: mat on Mar 31, 2011 7:07 PM
Maybe you are looking for
-
How to input text in the SAP ERP intial screen.
Hello. How to input text when I load the SAP ERP system. before log in. (this screen show me only the ID and password input fields) I saw the initial screen inclued some user-customized text. I can not find any information about initial scrren, as be
-
Apple Studio 21 blue/white does not work w/ 266 G3
Help: I just picked up a free Apple Studio 21 blue/white ( my 1& 1/2 year old 19 electron blue stopped working ) and I can't get it to work on my G3 mini tower Thank you Mike
-
Hi, Can anyone point me to any documentation/example on the xml layout for the payload. I am using the plain http send to XI and I need to know how to put the data into the right xml format. Thanks..
-
How to don't display dialog after send data?
Dear experts, I don't want to display dialog after send data on BPC for Excel, how can I do that? OS: MS XP SP2 OFFICE : 2003 BPC : 7.5 NW
-
I have a Samsung SC210. Online the manual stated it was Mac compatiable. But now my QT 7 Pro will only play sound, it says I am missing software to play. But I can not find it anywhere. Does anyone have that problem?