Hibernate3 error(antlr.jar) on SJSAS 8.1 EE
I have Hibernate3 app deployed on 8.1EE. After a simple select query I am getting this error in the logs.
charScanner; panic: ClassNotFoundException: org.hibernate.hql.ast.HqlTokenI am using antlr-2.7.2.jar file. I copied it to server_home/lib and also in server_home/lib/endorsed and also added the classpath-prefix in the domain.xml. After all this I still get a ClassNOtFoundException Can anyone please suggest a solution.
Thanks.
The class HqlToken is from hibernate3.jar as can be seen below
$ jar -tf hibernate3.jar | grep HqlToken
org/hibernate/hql/antlr/HqlTokenTypes.class
org/hibernate/hql/ast/HqlToken.class
Could you please make sure that this jar file is available in classpath
Similar Messages
-
I'm using WLS 5.1 SP8 on NT 4.0 and trying to setup a cluster. The cluster
starts fine except when I try to deploy a session bean that is marked as
clustered. I get an error about reading a jar file
(D:/weblogic/mycluster/server196/tmp_deployments/ejbjar1559.jar) that WLS
created when the server started. Every server is getting this error and I
tried setting up the same paths (D:\weblogic) but it doesn't matter. Any
ideas?
Wed Jan 24 15:04:10 EST 2001:<I> <WebLogicServer> WebLogic Server started
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:69)
at java.util.zip.ZipFile.<init>(ZipFile.java:84)
at
weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java:141)
at
weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
.java:74)
at
weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
, Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
jectInputStreamBase.java, Compiled
Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
treamBase.java, Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
tStreamBase.java, Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
eamBase.java, Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
treamBase.java, Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
StreamBase.java, Compiled Code)
at weblogic.cluster.StateDump.readObject(StateDump.java:59)
at
weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
jectInputStreamBase.java, Compiled
Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
treamBase.java, Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
tStreamBase.java, Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
eamBase.java, Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
treamBase.java, Compiled Code)
at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
Code)
Wed Jan 24 15:04:19 EST 2001:<E> <MulticastSocket> Multicast socket receive
error: java.lang.RuntimeException: I/O error
opening JAR file from
file:/D:/weblogic/mycluster/server196/tmp_deployments/ejbjar1559.jar
From previous posts I see this is a known bug. Is there a fix yet? btw, how
did a bug of this magnitude
get past QA. :(
Elan Halfin <[email protected]> wrote in message
news:[email protected]...
> I'm using WLS 5.1 SP8 on NT 4.0 and trying to setup a cluster. The cluster
> starts fine except when I try to deploy a session bean that is marked as
> clustered. I get an error about reading a jar file
> (D:/weblogic/mycluster/server196/tmp_deployments/ejbjar1559.jar) that WLS
> created when the server started. Every server is getting this error and I
> tried setting up the same paths (D:\weblogic) but it doesn't matter. Any
> ideas?
>
> Wed Jan 24 15:04:10 EST 2001:<I> <WebLogicServer> WebLogic Server started
> java.util.zip.ZipException: error in opening zip file
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(ZipFile.java:69)
> at java.util.zip.ZipFile.<init>(ZipFile.java:84)
> at
> weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java:141)
> at
>
weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
> .java:74)
> at
>
weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
> , Compiled Code)
> at
>
weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
> jectInputStreamBase.java, Compiled
>
> Code)
> at
>
weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
> treamBase.java, Compiled Code)
> at
>
weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
> tStreamBase.java, Compiled Code)
> at
>
weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
> eamBase.java, Compiled Code)
> at
>
weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
> treamBase.java, Compiled Code)
> at
>
weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
> StreamBase.java, Compiled Code)
> at weblogic.cluster.StateDump.readObject(StateDump.java:59)
> at
>
weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
> jectInputStreamBase.java, Compiled
>
> Code)
> at
>
weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
> treamBase.java, Compiled Code)
> at
>
weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
> tStreamBase.java, Compiled Code)
> at
>
weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
> eamBase.java, Compiled Code)
> at
>
weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
> treamBase.java, Compiled Code)
> at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
> Code)
> Wed Jan 24 15:04:19 EST 2001:<E> <MulticastSocket> Multicast socket
receive
> error: java.lang.RuntimeException: I/O error
>
> opening JAR file from
> file:/D:/weblogic/mycluster/server196/tmp_deployments/ejbjar1559.jar
>
>
-
Hi,
I need some help.
Product=weblogic5.1.0
Revision=(Release Level)=
Problem Description=
I am doing cluster of weblogic server, I have no problem to set up the
cluster and to run servlet and EJB examples.
However, on my command line for startcluster I got a lot of message as
followed:
Fri Aug 18 11:31:44 EDT 2000:<E> <MulticastSocket> Multicast socket receive
error: java.lang.RuntimeException: I/O error opening JAR file from
file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
at weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java,
Compiled Code)
at
weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
.java, Compiled Code)
at
weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
, Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
jectInputStreamBase.java, Compiled Co
de)
at
weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
treamBase.java, Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
tStreamBase.java, Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
eamBase.java, Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
treamBase.java, Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
StreamBase.java, Compiled Code)
at weblogic.cluster.StateDump.readObject(StateDump.java, Compiled
Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
jectInputStreamBase.java, Compiled Co
de)
at
weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
treamBase.java, Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
tStreamBase.java, Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
eamBase.java, Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
treamBase.java, Compiled Code)
at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
Code)
The message freshed about every 20 seconds.
Another question, I used a iplanet web server as a proxy server with a
cluster of two weblogic servers pluged in, although I set
weblogic.properties to round-robin, however, when I run a fibonacci servlet,
it does not do the round-robin. It always go to one machine for a lot of
times. Any idea?
Thank you for your help.
Tom
May i presume that your cluster is configured on a shared file system?.
I have seen this problem only if you cluster is configured on different machines
and if the directory structure is not identical.
let us know..
Kumar
Cameron Purdy wrote:
> First, update to SP4 (or SP5 if it is out now). Second, follow the cluster
> instructions on setting up deployments for a cluster. The only
> implementation that I have used is the single shared location that all the
> servers load from.
>
> --
>
> Cameron Purdy
> http://www.tangosol.com
>
> "Tom Gan" <[email protected]> wrote in message
> news:[email protected]...
> > Hi,
> > I need some help.
> >
> > Product=weblogic5.1.0
> > Revision=(Release Level)=
> > Problem Description=
> > I am doing cluster of weblogic server, I have no problem to set up the
> > cluster and to run servlet and EJB examples.
> > However, on my command line for startcluster I got a lot of message as
> > followed:
> > Fri Aug 18 11:31:44 EDT 2000:<E> <MulticastSocket> Multicast socket
> receive
> > error: java.lang.RuntimeException: I/O error opening JAR file from
> > file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar
> > java.util.zip.ZipException: error in opening zip file
> > at java.util.zip.ZipFile.open(Native Method)
> > at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
> > at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
> > at weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java,
> > Compiled Code)
> > at
> >
> weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
> > .java, Compiled Code)
> > at
> >
> weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
> > , Compiled Code)
> > at
> >
> weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
> > jectInputStreamBase.java, Compiled Co
> > de)
> > at
> >
> weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
> > treamBase.java, Compiled Code)
> > at
> >
> weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
> > tStreamBase.java, Compiled Code)
> > at
> >
> weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
> > eamBase.java, Compiled Code)
> > at
> >
> weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
> > treamBase.java, Compiled Code)
> > at
> >
> weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
> > StreamBase.java, Compiled Code)
> > at weblogic.cluster.StateDump.readObject(StateDump.java, Compiled
> > Code)
> > at
> >
> weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
> > jectInputStreamBase.java, Compiled Co
> > de)
> > at
> >
> weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
> > treamBase.java, Compiled Code)
> > at
> >
> weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
> > tStreamBase.java, Compiled Code)
> > at
> >
> weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
> > eamBase.java, Compiled Code)
> > at
> >
> weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
> > treamBase.java, Compiled Code)
> > at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
> > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
> > Code)
> >
> > The message freshed about every 20 seconds.
> >
> > Another question, I used a iplanet web server as a proxy server with a
> > cluster of two weblogic servers pluged in, although I set
> > weblogic.properties to round-robin, however, when I run a fibonacci
> servlet,
> > it does not do the round-robin. It always go to one machine for a lot of
> > times. Any idea?
> > Thank you for your help.
> > Tom
> >
> >
> >
-
I received Multicast socket receive error when I tried to restart the weblogic cluster in our pre-prod box.
The error message I received lkie this:
Multicast socket receive error: java.lang.RuntimeException: I/O error opening JAR file from file:/vol01/sites/vinlkup/site/versionc/local_classes/VIN/DeliveryTypeLookupEJB.jar
Yuping,
What release of WLS w/ service pack are you using? Make sure, if you are using a non-shared file system, to have the same absolute paths to your application on your file systems.
yuping xu wrote:
> I received Multicast socket receive error when I tried to restart the weblogic cluster in our pre-prod box.
> The error message I received lkie this:
> Multicast socket receive error: java.lang.RuntimeException: I/O error opening JAR file from file:/vol01/sites/vinlkup/site/versionc/local_classes/VIN/DeliveryTypeLookupEJB.jar
-
Java.lang.RuntimeException : I/O error opening JAR file
Hi,
Cluster configuration : 2 NT boxes WLS5.1(SP6). On one m/c weblogic
is installed on drive C:\ and on another m/c weblogic is installed on drive D:\.
i.e. all jars are at two place m/c 1 : c:\weblogic\myserver\*.jar
m/c 2 : d:\weblogic \myserver\*.jar
When servers startup successfully, error is coming :
on the console of m/c 1 :
java.lang.RuntimeException : I/O error opening JAR file from
file:/d:/weblogic/myserver/eb_arn.jar
on the console of m/c 2 :
java.lang.RuntimeException : I/O error opening JAR file from
file:/c:/weblogic/myserver/eb_arn.jar
When both the weblgoic servers are installed on two machines and
on same drive(c:\), this error is not coming.
i.e. all jars are at two place m/c 1 : c:\weblogic\myserver\*.jar
m/c 2 : c:\weblogic \myserver\*.jar
Regards,
Jitendra Kumar.
Jitendra,
This looks like a bug. Please approach support.
- Prasad
Jitendra Kumar wrote:
> Hi,
>
> I'm deploying as per server property, because all servers have got their own myserver
> directory and jars under that.
> primary key class is not a problem at all, because that file is anyway under serverclasses directory.
>
> The problem starts when two weblogic servers on two m/c are installed on different drive(one on 'C:\' dirve
> and another on 'D:\' drive or a unix machine in cluster).
>
> Regards,
> Jitendra Kumar.
>
> Prasad Peddada <[email protected]> wrote:
> >Are you sure that the the primary key class is there in the jar file.
> >
> >Are you deploying as per cluster property? Deploy on all the servers as per server property.
> >
> >
> >- Prasad
> >
> >Jitendra Kumar wrote:
> >
> >> Hi,
> >>
> >> I don't have any problem in deploying beans and all servers have their local jar files.
> >> Today I started solaris server in cluster and that also giving the same error message in console.
> >> Now 2NT and One Solaris m/c running in cluster.
> >>
> >> error message on NT console is :
> >> **************************************************
> >> Sat Nov 04 15:43:14 GMT+05:30 2000:<E> <MulticastSocket> Multicast socket receive error: java.lang.R
> >> untimeException: I/O error opening JAR file from file:/mazaa/weblogic/weblogic/myserver/voter.jar
> >> <ServerClassLoader><W>: com.cot.eis.vl.eb_voter.VoterPK in not in archive java.util.zip.ZipFile@b902
> >> 66be
> >> java.util.zip.ZipException: error in opening zip file
> >> at java.util.zip.ZipFile.open(Native Method)
> >> at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
> >> at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
> >> at weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java, Compiled Code)
> >> at weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer.java, Compil
> >> ed Code)
> >> at weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java, Compiled Co
> >> de)
> >> at weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLObjectInputStre
> >> amBase.java, Compiled Code)
> >> at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputStreamBase.jav
> >> a, Compiled Code)
> >> at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInputStreamBase.j
> >> ava, Compiled Code)
> >> at weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStreamBase.java,
> >> Compiled Code)
> >> at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputStreamBase.jav
> >> a, Compiled Code)
> >> at weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInputStreamBase.ja
> >> va, Compiled Code)
> >> at weblogic.cluster.StateDump.readObject(StateDump.java, Compiled Code)
> >> at weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLObjectInputStre
> >> amBase.java, Compiled Code)
> >> at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputStreamBase.jav
> >> a, Compiled Code)
> >> at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInputStreamBase.j
> >> ava, Compiled Code)
> >> at weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStreamBase.java,
> >> Compiled Code)
> >> at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputStreamBase.jav
> >> a, Compiled Code)
> >> at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
> >> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
> >> Sat Nov 04 15:54:24 GMT+05:30 2000:<E> <MulticastSocket> Multicast socket receive error: java.lang.R
> >> untimeException: I/O error opening JAR file from file:/mazaa/weblogic/weblogic/myserver/voter.jar
> >>
> >> error message on Solaris console is :
> >> ******************************************
> >> java.util.zip.ZipException: error in opening zip file
> >> at java.util.zip.ZipFile.open(Native Method)
> >> at java.util.zip.ZipFile.open(Compiled Code)
> >> at java.util.zip.ZipFile.<init>(Compiled Code)
> >> at java.util.zip.ZipFile.<init>(Compiled Code)
> >> at weblogic.boot.ServerClassLoader.deploy(Compiled Code)
> >> at weblogic.cluster.AnnotatedServiceOffer.expandClassPath(Compiled Code)
> >> at weblogic.cluster.AnnotatedServiceOffer.readObject(Compiled Code)
> >> at weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializab
> >> le(Compiled Code)
> >> at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(Compile
> >> d Code)
> >> at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(Compi
> >> led Code)
> >> at weblogic.common.internal.WLObjectInputStreamBase.readObject(Compiled
> >> Code)
> >> at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(Compile
> >> d Code)
> >> at weblogic.common.internal.WLObjectInputStreamBase.readArrayList(Compil
> >> ed Code)
> >> at weblogic.cluster.StateDump.readObject(Compiled Code)
> >> at weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializab
> >> le(Compiled Code)
> >> at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(Compile
> >> d Code)
> >> at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(Compi
> >> led Code)
> >> at weblogic.common.internal.WLObjectInputStreamBase.readObject(Compiled
> >> Code)
> >> at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(Compile
> >> d Code)
> >> at weblogic.cluster.TMSocket.execute(Compiled Code)
> >> at weblogic.kernel.ExecuteThread.run(Compiled Code)
> >> Sat Nov 04 15:55:09 GMT+00:00 2000:<E> <MulticastSocket> Multicast socket receiv
> >> e error: java.lang.RuntimeException: I/O error opening JAR file from file:/C:/we
> >> blogic/myserver/eb_arn.jar
> >>
> >> Regards,
> >> Jitendra Kumar
> >>
> >> Prasad Peddada <[email protected]> wrote:
> >> >Do you trouble deploying the app also.
> >> >
> >> >- Prasad
> >> >
> >> >Jitendra Kumar wrote:
> >> >
> >> >> Hi,
> >> >>
> >> >> Cluster configuration : 2 NT boxes WLS5.1(SP6). On one m/c weblogic
> >> >> is installed on drive C:\ and on another m/c weblogic is installed on drive D:\.
> >> >> i.e. all jars are at two place m/c 1 : c:\weblogic\myserver\*.jar
> >> >> m/c 2 : d:\weblogic \myserver\*.jar
> >> >> When servers startup successfully, error is coming :
> >> >>
> >> >> on the console of m/c 1 :
> >> >> java.lang.RuntimeException : I/O error opening JAR file from
> >> >> file:/d:/weblogic/myserver/eb_arn.jar
> >> >>
> >> >> on the console of m/c 2 :
> >> >> java.lang.RuntimeException : I/O error opening JAR file from
> >> >> file:/c:/weblogic/myserver/eb_arn.jar
> >> >>
> >> >> When both the weblgoic servers are installed on two machines and
> >> >> on same drive(c:\), this error is not coming.
> >> >> i.e. all jars are at two place m/c 1 : c:\weblogic\myserver\*.jar
> >> >> m/c 2 : c:\weblogic \myserver\*.jar
> >> >>
> >> >> Regards,
> >> >> Jitendra Kumar.
> >> >
> >
> >--
> >Cheers
> >
> >- Prasad
> >
> >
-
Keystore error signing jar file
I am having trouble signing a jar file. I have deleted and recreated the keystore file. Has anyone encountered this error before:
[signjar] jarsigner error: java.lang.RuntimeException keystore load: Not logged inSee my update in this thread:
error signing jar file -
Loadjava error - loading JAR file
Hi,
I am trying to load a JAR file into the DB and am getting these errors:
$ loadjava -force -user user/pass javaTelnet.jar
Error while creating class javaTelnet/ScriptHandler
ORA-29537: class or resource cannot be created or dropped directly
Error while creating class javaTelnet/TelnetClient$ReaderThread
ORA-29537: class or resource cannot be created or dropped directly
Error while creating class javaTelnet/TelnetClient
ORA-29537: class or resource cannot be created or dropped directly
Error while creating class javaTelnet/TelnetWrapper
ORA-29537: class or resource cannot be created or dropped directly
Error while creating class javaTelnet/TelnetProtocolHandler
ORA-29537: class or resource cannot be created or dropped directly
The following operations failed
class javaTelnet/ScriptHandler: creation
class javaTelnet/TelnetClient$ReaderThread: creation
class javaTelnet/TelnetClient: creation
class javaTelnet/TelnetWrapper: creation
class javaTelnet/TelnetProtocolHandler: creation
exiting : Failures occurred during processing
These are the only other Java class I have in the DB.
SQL> select dbms_java.longname(object_name),status
2 from user_objects
3 where object_type='JAVA CLASS'
4 /
DBMS_JAVA.LONGNAME(OBJECT_NAME)
STATUS
PBoot
VALIDThe JAR contains all class files within a package named javaTelnet.
I am able to execute the JAR successfully from command line.
ThanksHi,
I am not able to load a simple java source/class(either one, not both) file into the DB.
$ dropjava -user user/pass -v A.java
dropping: source A
$ loadjava -user user/[email protected] -v -resolve A.java
arguments: '-user' 'user/[email protected]' '-v' '-resolve' 'A.java'
creating : source A
loading : source A
creating : A
resolving: source A
$
SQL> select dbms_java.longname(object_name),status
2 from user_objects
3 where object_type like 'JAVA %'
4 /
DBMS_JAVA.LONGNAME(OBJECT_NAME)
STATUS
PBoot
VALIDAny guess how I may be able to resolve this issue?.
Any trace files about loadjava written anywhere ?
Thanks -
I make a jar file
then i lunch that jar with
java -jar FileName.jar
i have thi error
Exception in thread "main" java.util.zip.ZipException: Accesso negato
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:105)
at java.util.jar.JarFile.<init>(JarFile.java:110)
at java.util.jar.JarFile.<init>(JarFile.java:52)
how i can resolve this problem?type in shell:
jar -tf fileNametor.jar
what do you see?
I recommend for a project 'pro':
x.y.pro.src
x.y.pro.classes
x.y.pro.docs
compile the .java -files from src with destination ../classes
cd src
java -d ..\classes *.java
then change to pro:
cd ..
from there
jar -cf pro.jar -C ./classes
-C folder will switch to folder folder and include recursively everything, e.g.
it.prova.foo
(it\prova\foo.class).
It took me a long time to find out all those silly problems, but now I stick to the same folderstructure everytime, and use ant for the build.
This took some aditional time, but with the same structure of folders I may reuse the build.xml (95% of it) and only type:
ant jar
ant bin
ant docs
ant backup
wich saves a lot of time and nerves.
Take care on the naming of windows - it prefers Capital names (It\Prova) which makes no difference to windows, but for jar, java, javac.
Please give me some dukedollars :) if it works. -
I create one test.jar file using Jdeveloper then i subclass one ITEM of that class.Then i make entry in configuration file to refer that JAR .When i run that form standalone in formbuilder then at jinitiator throws following error
Loading http://kamlesh-170:8888/forms90/java/test.jar from JAR cache
connectMode=HTTP, native.
Forms Applet version is : 90290
java.lang.ClassNotFoundException: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at oracle.forms.handler.UICommon.instantiate(Unknown Source)
at oracle.forms.handler.UICommon.onCreate(Unknown Source)
at oracle.forms.handler.TextFieldItem.onCreate(Unknown Source)
at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
at oracle.forms.engine.Runform.processMessage(Unknown Source)
at oracle.forms.engine.Runform.processSet(Unknown Source)
at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
at oracle.forms.engine.Runform.onMessage(Unknown Source)
at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
at oracle.forms.engine.Runform.startRunform(Unknown Source)
at oracle.forms.engine.Main.createRunform(Unknown Source)
at oracle.forms.engine.Main.start(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
class name and package name also correct . is it certificate issue coz doesn't create certicate for that JAR.what it is issue??Mangesh,
what does the error message say ? It says
java.lang.ClassNotFoundException: java.io.IOException: open HTTP connection failed.
It obviously cannot find the class you are referring to. Since you preferred to not give us an idea of what your configuration file entrty is, all I can do is to ask you to double check your configuration.
Frank -
Error Running jar file on Linux Server
Hi,
I recently wrote a small program to be run together when apache is being start up on the server. When the bin/startup.sh is executed, my program will be run together
exec java -classpath ./ZipLogs.jar com.btsoft.magic.zip.ZipFile
I included this command in the startup.sh but the following error came up when I run it:
Exception in thread "main" java.lang.NoClassDefFoundError: com/btsoft/magic/zip/ZipFile
I placed the jar file in the same directory as the startup.sh.
But when I run it directly on the console:
java -classpath ./ZipLogs.jar com.btsoft.magic.zip.ZipFile
its fine..
Can anyone help me with this problem?
Thankswilliammandrake wrote:
I placed the jar file in the same directory as the startup.sh.That would suggest to me that your directory is wrong. I suggest you start by printing out cwd.
Could also be a permissions problem as well. -
Oc4j deployment error - admin.jar
I am using JDeveloper 9.0.5.1, java_version 1.4.2_03
When I deploy my J2EE application to our server (via JDeveloper) I get the following error:
Error: Deploy error: Invocation error: java.lang.NoSuchMethodException; nested exception is:
java.lang.NoSuchMethodException
com.evermind.client.orion.AdminCommandException: Deploy error: Invocation error: java.lang.NoSuchMethodException; nested exception is:
java.lang.NoSuchMethodException
at com.evermind.client.orion.DeployCommand.execute(DeployCommand.java:95)
at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminConsole.java:118)
at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java:27)
com.evermind.server.rmi.OrionRemoteException: Invocation error: java.lang.NoSuchMethodException
at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1497)
at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:55)
at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
at __Proxy0.deploy(Unknown Source)
at com.evermind.client.orion.DeployCommand.execute(DeployCommand.java:92)
at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminConsole.java:118)
at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java:27)
Nested exception is:
java.lang.NoSuchMethodException
at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1527)
at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1480)
at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:55)
at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
at __Proxy0.deploy(Unknown Source)
at com.evermind.client.orion.DeployCommand.execute(DeployCommand.java:92)
at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminConsole.java:118)
at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java:27)
---- Embedded exception
java.lang.NoSuchMethodException
at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1527)
at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1480)
at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:55)
at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
at __Proxy0.deploy(Unknown Source)
at com.evermind.client.orion.DeployCommand.execute(DeployCommand.java:92)
at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminConsole.java:118)
at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java:27)
Exit status of OC4J admin tool (-deploy): 1
**** Note: The OC4J connection 'XXX' is configured to use the default admin.jar be used when deploying.
**** Note: However, the remote server version does not appear to be compatible with this admin.jar.
**** Note: Please edit the connection to point to an admin.jar version that is compatible with the remote server.
Elapsed time for deployment: 5 seconds
#### Deployment incomplete. #### Jan 24, 2005 8:32:30 AM
Must I replace the admin.jar file with a more newer version of it? How do I determine the version of the admin.jar and if I update it to a newer version will it still be compatible with the rest of the settings?
Thank youThe admin.jar for the OC4J connection should be the same as the admin.jar in the remote server.
For version, is the zip file size and date the same. -
Im using this command to load a jar file.
loadjava -u CRAMER/CRAMER@CRAM51AS -r -v api-private.jar
But, getting the following error....
arguments: '-u' 'CRAMER/CRAMER@CRAM51AS' '-r' '-v' 'api-private.jar'
Error while connecting with oci8 driver to CRAM51AS: oracle.aurora.server.tools.loadjava.ToolsException: The JDBC OCI8 Driver is not installed properly, use -thin to try the JDBC Thin driver: make_c_state
exiting : could not open connection
What does this mean and how to rectify this? Pls help...
My database version is 9.2.0.4.0
ManojFor your information, there are already XML parsers loaded into the database. If you haven't already done so, I suggest running the following query:
select
DBMS_JAVA.LONGNAME(OBJECT_NAME) as Object_Name
,OBJECT_TYPE
,OWNER
,STATUS
from
ALL_OBJECTS
where
upper(DBMS_JAVA.LONGNAME(OBJECT_NAME)) like '%XML%'
and
OBJECT_TYPE like 'JAVA %'Good Luck,
Avi. -
Hi everyone! I'm developing a mobile application for an nokia n95. However a got to an error that I'm finding difficult to deal with.
This is the code i'm testing:
import javax.microedition.location.*;
import javax.microedition.lcdui.*;
public class touristguide extends Canvas {
public Criteria cr;
public double lon;
public double lat;
public void Locator(){
Criteria cr= new Criteria();
cr.setHorizontalAccuracy(500);
//Get an instance of the provider
LocationProvider lp=null;
try {
lp = LocationProvider.getInstance(cr);
} catch (LocationException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
Location l=null;
try {
l = lp.getLocation(120);
} catch (LocationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
QualifiedCoordinates qc = l.getQualifiedCoordinates();
if(qc != null ) {
// Use coordinate information
lat = qc.getLatitude();
lon = qc.getLongitude();
System.out.println ("latitude: " + lat);
protected void paint(Graphics g){
g.drawString("longitude = " + lon,0,0,Graphics.LEFT | Graphics.TOP);
g.drawString("latitude = " +lat, 0, 20, Graphics.LEFT | Graphics.TOP);
When i try to run this code there's a window showing the following errors:
Jar file could not be initialized.
Caught exception:
java.util.zip.ZipException: invalid entry compressed size (expected 478 but got 481 bytes)
at java.util.zip.ZipOutputStream.closeEntry(Unknown Source)
at java.util.zip.ZipOutputStream.finish(Unknown Source)
at java.util.zip.DeflaterOutputStream.close(Unknown Source)
at java.util.zip.ZipOutputStream.close(Unknown Source)
at com.symbian.io.JARFile.jarClassPath(JARFile.java:225)
at com.symbian.io.JARFile.<init>(JARFile.java:111)
at com.symbian.tools.j2me.sei.emulator.EmulatorLauncher.initializeJar(EmulatorLauncher.java:479)
com.symbian.tools.j2me.sei.emulator.EmulatorLauncher.launch(EmulatorLauncher.java:285)
com.symbian.tools.j2me.sei.emulator.Main.main(Main.java:49)
Has anyone faced this kind of errors? What should I do?
thanks in advance
NNI have the same problem!!!! When I deploy a EAR. So, I try file by file (.jar and .war). The jar file is ok but i get this message when I deploy my .war file
---- Deployment started. ---- 5/04/2011 03:48:01 PM
Target platform is Standard J2EE.
java.lang.NullPointerException
at oracle.ide.net.AlikeStrings.packStringArray(AlikeStrings.java:192)
at oracle.ide.net.AlikeStrings.<init>(AlikeStrings.java:445)
at oracle.ide.net.JarIndex.buildIndex(JarIndex.java:574)
at oracle.ide.net.JarUtil.getJarIndex(JarUtil.java:270)
at oracle.jdevimpl.deploy.JarUtil.needToWriteJarFile(JarUtil.java:802)
at oracle.jdevimpl.deploy.JarUtil.writeJarFile(JarUtil.java:642)
at oracle.jdevimpl.deploy.war.WarDeployer.writeWarFile(WarDeployer.java:210)
at oracle.jdevimpl.deploy.war.WarDeployer.deploy(WarDeployer.java:67)
at oracle.jdevimpl.deploy.ModulePackager.deploy(ModulePackager.java:139)
at oracle.jdevimpl.deploy.DynamicDeployer.deploy(DynamicDeployer.java:84)
at oracle.jdevimpl.deploy.DynamicDeployer.deploy(DynamicDeployer.java:84)
at oracle.jdevimpl.deploy.J2eeProfileDt$CleanupTransientProfilesDeployer.deploy(J2eeProfileDt.java:71)
at oracle.jdevimpl.deploy.FinalDeployer.deploy(FinalDeployer.java:48)
at oracle.jdevimpl.deploy.AsyncDeployer$1.runImpl(AsyncDeployer.java:67)
at oracle.jdevimpl.deploy.AsyncDeployer$1.run(AsyncDeployer.java:53)
Elapsed time for deployment: 13 seconds
#### Deployment incomplete. #### 5/04/2011 03:48:14 PM -
E_ADEPT_USER_UNKNOWN error operatorClient.jar
I get E_ADEPT_USER_UNKNOWN error upon login with my user and passwd in the operatorClient.jar console. Out of the 2 steps it failed at the license signing time -
1. Authentication URL (http://adeactivate.adobe.com/adept) - This went through successfuly
2. License Signing URL (https://nasigningservice.adobe.com/licenseadmin) - This is throwing error E_ADEPT_USER_UNKNOWN
I guess one user suffice. Do I need to register seperately for License Sign server?I tried contacting customer_support but none of them know about it. I've filed 2 web-cases, talked to 5 customer-reps, wrote to [email protected] but no answers yet and of little help.
Is there a direct support for content-server from where we can get speedy resolution.
Also, apart from purchasing the product for 7K USD (along with separate per transaction cost), do we need to sign any contract (customer-support confused me with this)?
Also, do we have serial numbers for such server side products (customer-service was asking me for these which I couldn't find in the zip download except for few wars and pdfs)? -
Folk'ses,
I have just done my first JNLP stuff, and I am experiencing a very strange problem:
my application launch works just fine but only every 2nd time!
I alternatingly get the following error: {color:#ff0000}Unable to launch the application.{color}
{noformat}And the details state: {color:#ff0000}JAR resources in JNLP file are not signed by same certificate{color}{noformat}
I perform the exact same operation again without changing anything in between, and hey presto, my application is launched.
Following is my JNLP file:
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for Session Client -->
<jnlp spec="1.0+" codebase="http://oneclickserver9/CONTINUITY" href="/CONTINUITY
/licensing.jnlp">
<information>
<title>CONTINUITY Licensing</title>
<vendor>ICS GmbH</vendor>
<homepage href="index.jsp"/>
<description>CONTINUITY License View</description>
<description kind="short">CONTINUITY</description>
<icon href="continuity.log.gif"/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<property name="sun.awt.noerasebackground" value="true"/>
<j2se version="1.6.0_07" href="http://java.sun.com/products/autodl/j2se"
initial-heap-size="64m" max-heap-size="256m" java-vm-args="-Duser.name
=kloeber"/>
<jar href="lib/IcsLicenseView.jar" main="true"/>
<jar href="lib/global90.jar" download="lazy"/>
<jar href="lib/ssorb90.jar" download="lazy"/>
<jar href="lib/ssorbutil90.jar" download="lazy"/>
<jar href="lib/utilapp90.jar" download="lazy"/>
<jar href="lib/util90.jar" download="lazy"/>
<jar href="lib/utilsrv90.jar" download="lazy"/>
<jar href="lib/utilnet90.jar" download="lazy"/>
<jar href="lib/vbhelper90.jar" download="lazy"/>
<jar href="lib/vbjorb.jar" download="lazy"/>
<jar href="lib/lm.jar" download="lazy"/>
<jar href="lib/jsafeJCEFIPS.jar" download="lazy"/>
</resources>
<a... [Show more]BS,
thanx for your reply:
You might want to check how the referenced resources/JARs are signed on the serverI do the signing "manually" in a for loop over all jar files:
for f in *.jar; do echo $f; jarsigner -keystore G:/Keystore/continuityKeystore -storepass XXXX -keypass +YYYYY+ $f +ZZZZ+; done
are they getting generated/signed dynamically every time you access the JNLP?no, see above
Could it be possible that different requests be served by different web servers (may be in a cluster)?no, I only have one tomcat server running
Maybe you are looking for
-
I'm having problems with iTunes reinstalling Apps that I want on my iPhone, but not my iPad. Furthermore, my household uses home sharing and if an App is on one iPad, iTunes puts it on all the devices. I found that if if I'm in iTunes with the iPad c
-
I keep getting error messages when syncing my iphone 6 to itunes. the error is a BEX ERROR
ITUNES QUITS EVERY TIME I TRY TO SYNC, AND THIS IS THE MESSAGE I GET: Problem signature: Problem Event Name: BEX Application Name: iTunes.exe Application Version: 11.4.0.18 Application Timestamp: 54045c47 Fault Module Name: MSVCR100.dll F
-
Editable / Non editable input field CELL (individually) on ALV dynamically
Hi again, I need more help with an issue. I have an ALV table with three columns that is necessary put values into input field cell editors, but these cells should be editable or not depending of business logic. I've got make editable or non in entir
-
How to Change the Value Field Type of a Value Field
Hi, How can I change the value field type from Currency to Quantity of a value field? I have tried to do it in KEA6. I can change the value field and its description, but not the value field type from currency to qty. If I change this config, is ther
-
How can I set up only bookmarks icons on the side bar in Fx 10?
Hello everyone, I'm new to Fx extensions, so please provide the solution for the following problem I have: I want to have my bookmarks tab on the left side, that will be showing only the icons of my fav pages. Is it possible to do with any of the Fx