Utl_dbws.jar & utl_dbws_jserver.jar OR dbwsa.jar & dbwsclient.jar?

hi, everyone. I am totally frustrated with the version problem and the oracle way of documentation. I am trying to use JPublisher to generate database webservice call out classes and packages. The database I am using is 10g 10.1.0.4 and the JPublisher I am using is downloaded from oracle website JPublisher release2. I also downloaded the webservice utility jar files for both pre 10g and 10g version, but when I try to load dbwsclient.jar file into database, it failed with a lot errors, just for illustration, the following are some example:
resolving: class oracle/j2ee/ws/common/mapping/JavaWsdlMappingWriter
errors : class oracle/j2ee/ws/common/mapping/JavaWsdlMappingWriter
ORA-29534: referenced object SYS.oracle/j2ee/ws/common/mapping/TypeVisitor c
ould not be resolved
synonym : oracle/j2ee/ws/common/mapping/JavaWsdlMappingWriter
granting : execute on class oracle/j2ee/ws/common/processor/generator/GeneratorB
ase to public
errors : class oracle/j2ee/ws/common/processor/generator/GeneratorBase
ORA-29521: referenced name oracle/j2ee/util/TraceLogger could not be found
synonym : oracle/j2ee/ws/common/processor/generator/GeneratorBase
granting : execute on class oracle/j2ee/ws/common/processor/modeler/wsdl/Complex
TypeBindingModeler to public
errors : class oracle/j2ee/ws/common/processor/modeler/wsdl/ComplexTypeBinding
Modeler
ORA-29534: referenced object SYS.oracle/j2ee/ws/common/processor/modeler/wsd
l/SchemaAnalyzer could not be resolved
ORA-29534: referenced object SYS.oracle/j2ee/ws/common/processor/config/WSDL
ModelInfo could not be resolved
ORA-29534: referenced object SYS.oracle/j2ee/ws/common/processor/modeler/wsd
l/LiteralSchemaTypeModeler could not be resolved
ORA-29521: referenced name oracle/j2ee/util/TraceLogger could not be found
synonym : oracle/j2ee/ws/common/processor/modeler/wsdl/ComplexTypeBindingModele
r
granting : execute on class javax/xml/soap/SOAPConnection to public
resolving: class javax/xml/soap/SOAPConnection
synonym : javax/xml/soap/SOAPConnection
granting : execute on class org/apache/soap/rpc/SOAPContext$MultiRefInfo to publ
ic
resolving: class oracle/j2ee/ws/common/util/ModelMBeanInfoBuilder$Parameter
errors : class oracle/j2ee/ws/common/util/ModelMBeanInfoBuilder$Parameter
ORA-29521: referenced name javax/management/MBeanParameterInfo could not be
found
synonym : oracle/j2ee/ws/common/util/ModelMBeanInfoBuilder$Parameter
granting : execute on class oracle/j2ee/ws/common/encoding/SOAPInstanceBuilder t
o public
skipping : class oracle/j2ee/ws/common/encoding/SOAPInstanceBuilder
synonym : oracle/j2ee/ws/common/encoding/SOAPInstanceBuilder
granting : execute on class oracle/j2ee/ws/common/tools/util/HandlerInfo$ParamVa
lueType to public
skipping : class oracle/j2ee/ws/common/tools/util/HandlerInfo$ParamValueType
synonym : oracle/j2ee/ws/common/tools/util/HandlerInfo$ParamValueType
granting : execute on class oracle/j2ee/ws/client/mgmt/runtime/ClientInterceptor
PortRuntime to public
errors : class oracle/j2ee/ws/client/mgmt/runtime/ClientInterceptorPortRuntime
ORA-29521: referenced name javax/management/MBeanServer could not be found
ORA-29521: referenced name javax/management/ObjectName could not be found
granting : execute on class oracle/j2ee/ws/common/processor/model/Port to public
skipping : class oracle/j2ee/ws/common/processor/model/Port
synonym : oracle/j2ee/ws/common/processor/model/Port
granting : execute on class oracle/j2ee/ws/wsdl/extensions/mime/Constants to pub
lic
skipping : class oracle/j2ee/ws/wsdl/extensions/mime/Constants
synonym : oracle/j2ee/ws/wsdl/extensions/mime/Constants
granting : execute on class oracle/j2ee/ws/common/streaming/XMLWriterFactoryImpl
to public
resolving: class oracle/j2ee/ws/common/streaming/XMLWriterFactoryImpl
synonym : oracle/j2ee/ws/common/streaming/XMLWriterFactoryImpl
granting : execute on class com/sun/mail/iap/LiteralException to public
resolving: class com/sun/mail/iap/LiteralException
synonym : com/sun/mail/iap/LiteralException
granting : execute on class oracle/j2ee/ws/common/mapping/xml/wsdlMessageMapping
Type to public
skipping : class oracle/j2ee/ws/common/mapping/xml/wsdlMessageMappingType
synonym : oracle/j2ee/ws/common/mapping/xml/wsdlMessageMappingType
granting : execute on class oracle/webservices/transport/JmsClientTransportFacto
ry to public
resolving: class oracle/webservices/transport/JmsClientTransportFactory
synonym : oracle/webservices/transport/JmsClientTransportFactory
granting : execute on class oracle/j2ee/ws/saaj/soap/ch/BinaryDataContentHandler
to public
resolving: class oracle/j2ee/ws/saaj/soap/ch/BinaryDataContentHandler
synonym : oracle/j2ee/ws/saaj/soap/ch/BinaryDataContentHandler
granting : execute on class oracle/j2ee/ws/common/soap/SOAPWSDLConstants to publ
ic
skipping : class oracle/j2ee/ws/common/soap/SOAPWSDLConstants
synonym : oracle/j2ee/ws/common/soap/SOAPWSDLConstants
granting : execute on class oracle/j2ee/ws/common/encoding/PolymorphicArraySeria
lizer$ObjectArrayInstanceBuilder to public
skipping : class oracle/j2ee/ws/common/encoding/PolymorphicArraySerializer$Objec
tArrayInstanceBuilder
synonym : oracle/j2ee/ws/common/encoding/PolymorphicArraySerializer$ObjectArray
InstanceBuilder
granting : execute on class oracle/j2ee/ws/wsdl/extensions/oracle/schema/FieldSc
hemaElement to public
skipping : class oracle/j2ee/ws/wsdl/extensions/oracle/schema/FieldSchemaElement
The following operations failed
class oracle/j2ee/ws/common/mapping/JavaWsdlMappingWriter: resolution
class oracle/j2ee/ws/common/processor/generator/GeneratorBase: resolution
class oracle/j2ee/ws/common/processor/modeler/wsdl/ComplexTypeBindingModeler
: resolution
class oracle/j2ee/ws/common/processor/config/RmiModelInfo: resolution
class oracle/j2ee/ws/common/mgmt/runtime/InterceptorContainer: resolution
class oracle/j2ee/ws/client/mgmt/runtime/ClientPortRuntime: resolution
class oracle/j2ee/ws/saaj/client/p2p/HttpSOAPConnection$1: resolution
class oracle/net/www/protocol/https/HttpsURLConnection: resolution
class org/apache/soap/rpc/Response: resolution
class oracle/j2ee/ws/common/attachments/AttachmentsImpl: resolution
class oracle/j2ee/ws/common/util/ModelMBeanInfoBuilder$Parameter: resolution
class oracle/j2ee/ws/client/mgmt/runtime/ClientInterceptorPortRuntime: resol
ution
class oracle/j2ee/ws/common/util/xml/UUID: resolution
class oracle/j2ee/ws/common/management/mbeans/WebServiceStatsImpl: resolutio
n
class oracle/j2ee/ws/common/mgmt/interceptors/testing/TestingGlobalStatus: r
esolution
class oracle/j2ee/ws/common/processor/modeler/wsdl/JavaMethodCreator: resolu
tion
class oracle/j2ee/ws/common/mgmt/runtime/InterceptorChainImpl: resolution
class oracle/j2ee/ws/saaj/client/p2p/HttpSOAPConnectionFactory: resolution
class oracle/j2ee/ws/common/processor/modeler/wsdl/RpcEncodedOperationModele
r: resolution
class oracle/j2ee/ws/client/mgmt/runtime/ClientInterceptorRegistry: resoluti
on
class oracle/j2ee/ws/client/StreamingSender: resolution
class oracle/j2ee/ws/common/util/ModelMBeanInfoBuilder$Feature: resolution
class oracle/j2ee/ws/common/mgmt/interceptors/AbstractInterceptorGlobalDescr
iptor: resolution
class oracle/j2ee/ws/common/mgmt/interceptors/auditing/AuditingDescriptor: r
esolution
class oracle/j2ee/ws/common/processor/modeler/rmi/RmiTypeModeler$MemberInfoC
omparator: resolution
class oracle/j2ee/ws/common/processor/modeler/rmi/DocLiteralMethodModeler: r
esolution
class oracle/j2ee/ws/common/encoding/literal/ValueTypeLiteralSerializer$4: r
esolution
class oracle/j2ee/ws/common/encoding/literal/ValueTypeLiteralSerializer$3: r
esolution
class oracle/j2ee/ws/common/encoding/literal/ValueTypeLiteralSerializer$2: r
esolution
class oracle/j2ee/ws/common/encoding/literal/ValueTypeLiteralSerializer$1: r
esolution
class oracle/j2ee/ws/common/encoding/literal/GenericLiteralObjectSerializer$
GetterMethod: resolution
class oracle/j2ee/ws/common/util/ModelMBeanInfoBuilder$Operation: resolution
class oracle/j2ee/ws/common/util/ModelMBeanInfoBuilder: resolution
class oracle/j2ee/ws/saaj/soap/MessageFactoryImpl: resolution
class oracle/j2ee/ws/client/dii/DynamicProxyBuilder: resolution
class oracle/xml/jaxb/JaxbMarshaller: resolution
class oracle/j2ee/ws/client/mgmt/runtime/ClientInterceptorConfig: resolution
class oracle/xml/jaxb/JaxbDatatypeConverter$DataTypeItem: resolution
class oracle/j2ee/ws/common/processor/modeler/rmi/SoapEncodedTypeModeler: re
solution
class oracle/j2ee/ws/common/mgmt/InterceptorPortInfo: resolution
class oracle/net/www/protocol/https/Handler: resolution
class oracle/j2ee/ws/common/encoding/literal/SOAPLiteralResponseSerializer$S
OAPResponseStructureBuilder: resolution
class oracle/j2ee/ws/client/BasicService: resolution
class oracle/j2ee/ws/saaj/client/p2p/HttpSOAPConnection$UsernamePasswordProm
pter: resolution
class oracle/j2ee/ws/common/attachments/IncomingAttachmentsImpl: resolution
class oracle/j2ee/ws/saaj/client/p2p/HttpSOAPConnection: resolution
class oracle/j2ee/ws/common/processor/modeler/rmi/ExceptionModelerBase: reso
lution
class oracle/j2ee/ws/common/util/ModelMBeanInfoBuilder$Attribute: resolution
class oracle/xml/jaxb/JaxbListImpl: resolution
class org/apache/soap/rpc/RPCMessage: resolution
class oracle/j2ee/ws/common/processor/modeler/rmi/RmiModeler: resolution
class oracle/j2ee/ws/common/mapping/TypeVisitor: resolution
class oracle/xml/jaxb/JaxbNode: resolution
class oracle/j2ee/ws/common/processor/modeler/rmi/ExceptionModeler: resoluti
on
class oracle/j2ee/ws/common/processor/modeler/wsdl/RpcLiteralOperationModele
r: resolution
class oracle/j2ee/ws/common/mgmt/runtime/InterceptorRuntime: resolution
class oracle/j2ee/ws/common/encoding/literal/SOAPLiteralResponseSerializer:
resolution
class oracle/j2ee/ws/client/mgmt/runtime/ClientOperationRuntime: resolution
class oracle/j2ee/ws/common/mgmt/interceptors/testing/TestingGlobalDescripto
r: resolution
class oracle/j2ee/ws/common/management/mbeans/WebServiceOperationStatsImpl:
resolution
class oracle/j2ee/ws/common/mgmt/interceptors/auditing/AuditingInterceptor:
resolution
class oracle/j2ee/ws/common/processor/modeler/wsdl/SoapEncBindingModeler: re
solution
class oracle/j2ee/ws/common/encoding/DynamicInternalTypeMappingRegistry: res
olution
class oracle/j2ee/ws/saaj/util/mime/MimeReader$PartInputStream: resolution
class oracle/j2ee/ws/common/processor/modeler/rmi/LiteralExceptionModeler$Li
teralElementMemberComparator: resolution
class oracle/j2ee/ws/common/mgmt/InterceptorPortDescriptor: resolution
class oracle/j2ee/ws/common/mgmt/InterceptorGlobalDescriptor: resolution
class oracle/j2ee/ws/common/processor/modeler/rmi/LiteralTypeModeler: resolu
tion
class oracle/j2ee/ws/saaj/client/p2p/HttpSOAPConnection$PriviledgedPost: res
olution
class oracle/xml/jaxb/JaxbDatatypeConverter: resolution
class oracle/j2ee/ws/saaj/util/mime/MimeReader$DumpInputStream: resolution
class HTTPClient/OracleSSL$3: resolution
class HTTPClient/OracleSSL$2: resolution
class oracle/j2ee/ws/common/processor/modeler/rmi/JavaBean: resolution
class oracle/j2ee/ws/common/mgmt/runtime/InterceptorPortRuntime: resolution
class oracle/j2ee/ws/common/encoding/SimpleAttachmentTypeSerializer: resolut
ion
class oracle/j2ee/ws/common/processor/generator/StubTieGeneratorBase: resolu
tion
class oracle/j2ee/ws/client/dii/BasicCall: resolution
class oracle/j2ee/ws/common/processor/modeler/rmi/RpcLiteralMethodModeler: r
esolution
class oracle/j2ee/ws/saaj/util/mime/MimeReader: resolution
class oracle/j2ee/ws/common/processor/modeler/rmi/MethodModeler: resolution
class oracle/j2ee/ws/client/dii/ConfiguredService: resolution
class oracle/j2ee/ws/common/util/ModelMBeanInfoBuilder$NameValuePair: resolu
tion
class oracle/j2ee/ws/client/dii/CallRequest: resolution
class oracle/jpub/runtime/dbws/DbwsProxy$1: resolution
class oracle/j2ee/ws/common/processor/modeler/rmi/ExceptionModeler$SOAPStruc
tureMemberComparator: resolution
class oracle/j2ee/ws/client/mgmt/runtime/ClientInterceptorPipeline: resoluti
on
class oracle/j2ee/ws/common/util/ModelMBeanInfoBuilder$Notification: resolut
ion
class oracle/j2ee/ws/common/encoding/literal/ValueTypeLiteralSerializer: res
olution
class oracle/j2ee/ws/common/mgmt/runtime/InterceptorRegistry: resolution
class oracle/j2ee/ws/common/processor/config/WSDLModelInfo: resolution
class oracle/j2ee/ws/client/ServiceFactoryImpl: resolution
class oracle/j2ee/ws/common/util/ModelMBeanInfoBuilder$Constructor: resoluti
on
class oracle/xml/jaxb/JaxbContextImpl: resolution
class oracle/j2ee/ws/common/mgmt/interceptors/testing/TestingPortStatus: res
olution
class oracle/j2ee/ws/common/processor/modeler/wsdl/LiteralSchemaTypeModeler:
resolution
class oracle/j2ee/ws/common/encoding/soap/StandardSOAPTypeMappings: resoluti
on
class oracle/j2ee/ws/common/encoding/literal/GenericLiteralObjectSerializer$
SOAPGenericObjectInstanceBuilder: resolution
class oracle/j2ee/ws/common/processor/modeler/wsdl/WSDLModeler: resolution
class oracle/j2ee/ws/common/encoding/literal/GenericLiteralObjectSerializer$
SetterMethod: resolution
class oracle/j2ee/ws/common/processor/modeler/rmi/RmiStructure: resolution
class oracle/j2ee/ws/common/mgmt/runtime/InterceptorContainerImpl$Background
Writer: resolution
class oracle/j2ee/ws/common/processor/modeler/wsdl/RpcOperationModeler: reso
lution
class oracle/j2ee/ws/common/processor/modeler/rmi/LiteralExceptionModeler: r
esolution
class oracle/xml/jaxb/JaxbValidator$schemaContext: resolution
class oracle/jpub/runtime/dbws/DbwsProxy$ServiceProxy: resolution
class oracle/j2ee/ws/common/encoding/literal/SOAPLiteralRequestSerializer: r
esolution
class oracle/j2ee/ws/client/dii/ConfiguredCall: resolution
class oracle/xml/jaxb/JaxbValidator: resolution
class oracle/xml/jaxb/JaxbDatatypeConverter$1: resolution
class oracle/j2ee/ws/common/processor/modeler/wsdl/OperationModeler: resolut
ion
class oracle/j2ee/ws/client/mgmt/runtime/ClientInterceptorOperationRuntime:
resolution
class oracle/j2ee/ws/common/processor/modeler/wsdl/SimpleTypeBindingModeler:
resolution
class org/apache/soap/rpc/Call: resolution
class oracle/j2ee/ws/common/processor/modeler/rmi/RmiTypeModeler: resolution
class oracle/j2ee/ws/client/BasicService$HandlerRegistryImpl: resolution
class oracle/j2ee/ws/common/processor/modeler/rmi/RmiModeler$MethodComparato
r: resolution
class oracle/j2ee/ws/client/StubBase: resolution
class oracle/j2ee/ws/common/processor/modeler/rmi/RpcEncodedMethodModeler: r
esolution
class oracle/j2ee/ws/common/encoding/literal/SOAPLiteralRequestSerializer$Pa
rameterArrayBuilder: resolution
class oracle/j2ee/ws/common/processor/modeler/wsdl/DocLiteralOperationModele
r: resolution
class oracle/j2ee/ws/common/encoding/literal/GenericLiteralObjectSerializer:
resolution
class oracle/j2ee/ws/common/encoding/StandardTypeMappings: resolution
class oracle/j2ee/ws/common/processor/modeler/rmi/SoapEncodedTypeModeler$Mem
berInfoComparator: resolution
class oracle/j2ee/ws/client/http/HttpClientTransport: resolution
class oracle/j2ee/ws/client/dii/CallInvokerImpl: resolution
class oracle/j2ee/ws/client/mgmt/runtime/ClientInterceptorGlobalRuntime: res
olution
class oracle/j2ee/ws/common/mgmt/interceptors/auditing/AuditingDescriptor$1:
resolution
class oracle/j2ee/ws/common/mgmt/interceptors/testing/TestingPortDescriptor:
resolution
class oracle/j2ee/ws/common/processor/modeler/wsdl/SchemaAnalyzer: resolutio
n
class oracle/soap/transport/http/OracleSOAPHTTPConnection$1: resolution
class oracle/j2ee/ws/common/processor/modeler/rmi/ParameterNameParser: resol
ution
class oracle/j2ee/ws/common/mgmt/InterceptorGlobalInfo: resolution
class oracle/j2ee/ws/common/mgmt/runtime/InterceptorMessages: resolution
class oracle/xml/jaxb/JaxbUnmarshaller: resolution
class oracle/j2ee/ws/client/http/HttpClientTransportFactory: resolution
class oracle/j2ee/ws/common/mgmt/runtime/AbstractInterceptorRegistry: resolu
tion
class oracle/j2ee/ws/client/dii/ServiceInfoBuilder: resolution
class oracle/j2ee/ws/common/mgmt/runtime/InterceptorContainerImpl: resolutio
n
class oracle/jpub/runtime/dbws/DbwsProxy$CallProxy: resolution
class oracle/j2ee/ws/client/mgmt/runtime/ClientInterceptorRuntime: resolutio
n
class oracle/jpub/runtime/dbws/DbwsProxy: resolution
class oracle/j2ee/ws/common/encoding/literal/GenericLiteralObjectSerializer$
MemberInfo: resolution
class oracle/j2ee/ws/common/mgmt/interceptors/testing/TestingInterceptor: re
solution
class oracle/soap/transport/http/OracleSOAPHTTPConnection: resolution
class oracle/j2ee/ws/client/dii/CallInvoker: resolution
exiting : Failures occurred during processing
looks like this jar file need some preloaded java classes which is not in the my 10g version 10.1.0.4. Is that a pre-requisite to have 10g release 2 database to use the dbwsa.jar and dbwsclient.jar? If so, is utl_dbws.jar and utl_dbws_jserver a match version for 10g release1? But on the oracle site, it says the webservice utility jar files (dbwsa.jar and dbwsclient.jar) are for 10g(release1 + release2). Anyone would have a hint on this? Thank you!
My loadjava command looks like this:
loadjava -oci8 -u sys/change_on_install -r -v -f -s -grant public dbwsclient.jar

Thank you, but I have already found a solution at metalink:
Subject: How To install Database Webservices Callout Utilities 10.2 on
Oracle Database Server 10.1
Doc ID: Note:338092.1 Type: HOWTO
Last Revision Date: 12-APR-2006 Status: PUBLISHED
The trick was to modify jpub script and to upload both dbwsa.jar AND dbwsclient.jar:
* dl (Callout Utility for 10g (R1 + R2) RDBMS):
http://www.oracle.com/technology/sample_code/tech/java/jsp/dbwebservi...
* dl (JPublisher 10g Release 10.2):
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
* unpack both to $ORACLE_HOME
* modify jpub:
In TMPCLASSPATH replace "jdk14" with "jdk"
replace "classes12_g.jar" with "classes12.zip"
* loadjava -u sys/change_on_install -r -v -f -s -grant public -genmissing dbwsa.jar
* loadjava -u sys/change_on_install -r -v -f -s -grant public -genmissing dbwsclient.jar
* run sqlplus as sysdba:
SQL> execute dbms_java.grant_permission('SCOTT','SYS:java.lang.RuntimePermission', 'shutdownHooks', '' )
SQL> execute dbms_java.grant_permission('SCOTT','SYS:java.util.logging.LoggingPermission','control','')
* ./jpub -u scott/tiger -sysuser sys/replace_on_install
-proxywsdl=http://demo.wsabi.org/axis/services/YahooUserPingService?wsdl
-endpoint=http://demo.wsabi.org/axis/services/YahooUserPingService
-dir=tmp
* run sqlplus as SCOTT:
SQL> select JPUB_PLSQL_WRAPPER.isUserOnLine('Test') from dual;
Because a lot of java packages were broken in my database i uninstalled and installed the whole java system before following the metalink instructions.
Egon

Similar Messages

  • Error loading dbwsclient.jar

    I downloaded the dbws-callout-utility-10R2.zip to install the dbwsclient.jar as instructed in the readme file.
    The database version is 10.1.0.4.2
    The command used is:
    loadjava -user sys/vector -r -v -f -s -grant public -noverify -genmissing dbwsclient.jar
    I get the following response with error message:
    arguments: '-user' 'sys/vector' '-r' '-v' '-f' '-s' '-grant' 'public' '-noverify' '-genmissing' 'dbwsclient.jar'
    genmissing: com/sun/msv/datatype/xsd/UnsignedIntType
    Exception in thread "main" java.lang.UnsatisfiedLinkError: t2cParseExecuteDescribe
    at oracle.jdbc.driver.T2CStatement.t2cParseExecuteDescribe(Native Method)
    at oracle.jdbc.driver.T2CCallableStatement.executeForDescribe(T2CCallableStatement.java:519)
    at oracle.jdbc.driver.T2CCallableStatement.executeForRows(T2CCallableStatement.java:764)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1159)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3284)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3389)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4222)
    at oracle.aurora.server.tools.loadjava.GenMissing.lookFor(GenMissing.java:528)
    at oracle.aurora.server.tools.loadjava.GenMissing.classReference(GenMissing.java:503)
    at oracle.aurora.server.tools.loadjava.GenMissing.add(GenMissing.java:436)
    at oracle.aurora.server.tools.loadjava.GenMissing.add(GenMissing.java:398)
    at oracle.aurora.server.tools.loadjava.CommonClassObject.genMissing(CommonClassObject.java:137)
    at oracle.aurora.server.tools.loadjava.ClientClassObject.genMissing(ClientClassObject.java:120)
    at oracle.aurora.server.tools.loadjava.SchemaObject.process1(SchemaObject.java:205)
    at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:532)
    at oracle.aurora.server.tools.loadjava.LoadJava.addClass(LoadJava.java:586)
    at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:436)
    at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:380)
    at oracle.aurora.server.tools.loadjava.LoadJava.addJar(LoadJava.java:727)
    at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:432)
    at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:380)
    at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:349)
    at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:652)
    at oracle.aurora.server.tools.loadjava.LoadJava.processDeferredFiles(LoadJava.java:617)
    at oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:818)
    at oracle.aurora.server.tools.loadjava.LoadJava.command(LoadJava.java:251)
    at oracle.aurora.server.tools.loadjava.LoadJavaMain.run(LoadJavaMain.java:103)
    at oracle.aurora.server.tools.loadjava.LoadJavaMain.main(LoadJavaMain.java:28)
    Any suggestions as for what's going wrong?
    Regards, Rob

    When I try to follow the Readme.Callout.htm instructions on a 10gR1 instance, I get an error on running jpub to generate the proxy. All previous objects were loaded into SCOTT rather than SYS (if that makes a difference). The error is:
    C:\Projects\_RESEARCH\WebServices\oracle\javacallout>jpub -u scott/tiger -sysuser sys/oracle -proxywsdl="http://localhost:8888/javacallout/javacallout?WSDL"
    tmp\src\genproxy\HttpSoap11ClientJPub.java
    plsql_wrapper.sql
    plsql_dropper.sql
    plsql_grant.sql
    plsql_revoke.sql
    Executing plsql_dropper.sql
    Executing plsql_wrapper.sql
    Executing plsql_grant.sql
    Loading sqlj/lib/dbwsclient.jar (about 5 minutes)...
    Error loading dbwsclient.jar, please check the database trace file and make sure dbwsclient.jar exists in ORACLE_HOME/sqlj/lib.
    Loading plsql_proxy.jarI'm really not sure what dbwsclient.jar it's talking about since this is NOT included with the latest callout utility. There is a dbwsclientws.jar which I placed into that same folder and RENAMED it.
    If I examine the trace file location for my local 10gR1 instance, there is a ~1300K trace file in the folder: C:\Oracle\product\10.1.0\admin\orcl\udump. This file contains NUMEROUS ORA-29534 errors, i.e. ORA-29534: referenced object SYS.com/evermind/util/OpmnHelper could not be resolved. Later, the same trace file says: The following operations failed, and lists about 500+ entries followed by an error:
    exiting  : Failures occurred during processing
    oracle.aurora.server.tools.loadjava.ToolsError: Error during loadjava: Failures occurred during processing. Check trace file for details
         at oracle.aurora.server.tools.loadjava.LoadJavaMain.serverMain(LoadJavaMain.java:68)
         at oracle.aurora.server.tools.loadjava.LoadJavaMain.serverMain(LoadJavaMain.java:42)I don't know what else I'm to examine.
    It does appear to work when logged in as SCOTT in sql*plus:
    scott@localhost> select jpub_plsql_wrapper.sayhello('hey there') from dual;
    JPUB_PLSQL_WRAPPER.SAYHELLO('HEYTHERE')
    HELLO!! You just said :hey there
    1 row selected.Can these errors be ignored?
    Eric

  • Loading dbwsclient.jar

    Having problems while loading dbwsclient.jar.
    loadjava -u user/password@dev -r -v -f -noverify -genmissing C:\temp\webservices2\sqlj\lib\dbwsclient.jar
    This user has all JAVA* roles and create any proc, create any table.
    Get following type of message over and over --- for all classes.
    generating: HTTPClient/RoResponse
    creating : class HTTPClient/RoResponse
    loading : class HTTPClient/RoResponse
    Error while getLoadLOB null
    Closed Connection
    Error while deleting MD5 of HTTPClient/RoResponse
    Closed Connection
    generating: java/util/Comparator
    creating : class java/util/Comparator
    loading : class java/util/Comparator
    Error while getLoadLOB null
    Closed Connection
    Error while deleting MD5 of java/util/Comparator
    Closed Connection
    generating: java/awt/Panel
    creating : class java/awt/Panel
    loading : class java/awt/Panel
    Error while getLoadLOB null
    Closed Connection
    Error while deleting MD5 of java/awt/Panel
    Closed Connection
    Thanks for advice.

    Hi,
    Have you followed the instructions and troubleshooting suggestions in the Callout Users Guide @http://www.oracle.com/technology/sample_code/tech/java/jsp/callout_users_guide.htm?
    Kuassi http://db360.blogspot.com

  • Adding a jar to the classpath of an executable jar (mixing -jar and -cp)

    Hello,
    frankly I hesitated over posting this to "New to Java"; my apologies (but also, eternal gratefulness) if there is an ultra-simple answer I have overlooked...
    I integrate a black-box app (I'm not supposed to have the source) that comes packaged as an executable jar (with a Manifest.MF that specifies the main class and a bunch of dependent jars), along with a few dependent jars and a startup script. Long story short, the application code supports adding jars in the classpath, but I can't find a painless way to add a jar in its "classpath".
    The app's "vendor" (another department of my customer company) has a slow turnaround on support requests, so while waiting for their suggestion as to how exactly to integrate custom jars, I'm trying to find a solution at the pure Java level.
    The startup script features a "just run the jar" launch line:
    java -jar startup.jarI tried tweaking this line to add a custom jar in the classpath
    java -cp mycustomclasses.jar -jar startup.jarBut that didn't seem to work ( NoClassDefFound at the point where the extension class is supposed to be loaded).
    I tried various combination of order, -cp/-classpath, using the CLASSPATH environment variable,... and eventually gave up and devised a manual launch line, which obviously worked:
    java -cp startup.jar;dependency1.jar;dependency2.jar;mycustomclasses.jar fully.qualified.name.of.StartupClassI resent this approach though, which not only makes me have to know the main class of the app, but also forces me to specify all the dependencies explicitly (the whole content of the Manifest's class-path entry).
    I'm surprised there isn't another approach: really, can't I mix -jar and -cp options?
    - [url http://download.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html]This document (apparently a bible on the CLASSPATH), pointed out by a repited forum member recently, does not document the -jar option.
    - the [url http://download.oracle.com/javase/tutorial/deployment/jar/run.html]Java tutorial describes how to use the -jar option, but does not mention how it could play along with -cp
    Thanks in advance, and best regards,
    J.
    Edited by: jduprez on Dec 7, 2010 11:35 PM
    Ahem, the "Java application launcher" page bundled with the JDK doc (http://download.oracle.com/javase/6/docs/technotes/tools/windows/java.html) specifies that +When you use [the -jar] option, the JAR file is the source of all user classes, and other user class path settings are ignored+
    So this behavior is deliberate indeed... my chances diminish to find a way around other than specifying the full classpath and main class...

    I would have thought that the main-class attribute of the JAR you name in the -jar option is the one that is executed.Then I still have the burden of copying that from the initial startup.jar's manifest. Slightly less annoying than copying the whole Class-path entry, but it's an impediment to integrating it as a "black-box".
    The 'cascading' behavior is implicit in the specification
    I know at least one regular in addition to me that would issue some irony about putting those terms together :o)
    Anyway, thank you for confirming the original issue, and merci beaucoup for your handy "wrapper" trick.
    I'll revisit the post markers once I've actually tried it.
    Best regards,
    Jérôme

  • Creating a JAR using JDIC  PROBLEMS in creating a JAR!!!

    Hi
    I am trying to work with JDIC APIs in my Java application. I wish to open a browser on clicking a button in my application which uses Java Swing.
    I included the location of the JDIC.jar in my class_path under environmental variables in Windows.
    However, despite that I am having to compile using the classpath option with javac.
    After compiling using javac, I again have to run it using java and the classpath option.
    I am now trying to create a jar of my application including the JDIC.jar as well.
    However I am unable to do this successfully.
    Since this is my first time working with a 3rd party API orher than the standard Java API, I am stumbling about and would GREATLY appreciate some guidance

    Hi
    Thanks a lot!
    I got SOME response!!!
    Well okie..
    I have the JDIC library at C:\jdic-0.9.1-bin-cross-platform
    with the jar at C:\jdic-0.9.1-bin-cross-platform\jdic.jar
    My application is at
    C:\VDApp
    The packagename is GeneViewer
    So I am doing the following
    C:\VDApp> javac -classpath DOT; C:\jdic-.....\jdic.jar GeneViewer\MainClass.java
    C:\VDApp>java -classpath DOT;c:\jdic.....\jdic.jar GeneViewer.MainClass
    I am trying to create a jar as follows
    C:VDApp> jar cmf manifest.mf GeneViewer.jar GeneViewer C:\jdic...\jdic.jar
    The manifest.mf file contains 1 line
    Main-Class: GeneViewer.MainClass
    Although the jar file is created successfully, when I try to run it, it doesnt run properly. It throws that error message. cannot find /org/etc etc...
    All those hierarchy exist only in C:\jdic-0.9.1-crossplatform....
    Please guide me further
    Thanks

  • Cm.jar is working even after deleting the jar from Server

    Hi,
    To update the environment with the new changes we had manually copied the cm.jar into the respective folders but due to some class errors Deployment was not successful,So as a matter of trial we had deleted cm.jar from the respective folders and then we had ran the initialsetup,
    Strange thing what we have observed is that all the custom logic which was initially deployed through cm.jar was still exisiting in the applicationserver and are getting executed smoothly
    This is the process what we have followed
    Method 1:
    1)     Stop server
    2)     
    Copy cm.jar to SPLBASE/etc/conf/root/WEB-INF/lib
    Copy cm.jar to SPLBASE/etc/conf/XAI-APP/WEB-INF/lib
    Copy cm.jar to SPLBASE/ splapp/businessapp
    Copy cm.jar to SPLBASE/ splapp/ standalone/lib
    3)     Run InitialSetup
    4)     Start Server
    Method 2:
    1)     Stop server
    2)     Set Exploded directories to true
    3)     Initial Setup
    4)     
    Copy cm.jar to SPLBASE/splapp/applications/root/WEB-INF/lib
    Copy cm.jar to SPLBASE/ splapp/applications /XAI-APP/WEB-INF/lib
    Copy cm.jar to SPLBASE/ splapp/businessapp
    Copy cm.jar to SPLBASE/ splapp/ standalone/lib
    5)     Run InitialSetup
    6)     Start Server
    Method 3:
    1)     Cm packaging.
    Even after removing cm.jar from all places manually my custom code which I deployed initially is working. I could run custom batch and custom algorithm. Very Strange. I am not sure what I missed or where application is referring to.
    We want the old code to be removed permanently from server?Can you anyone help?
    Thanks
    shiva

    Hi Mr Shankar,
    Even if you have deleted the cm.jar file from respective location.It do exist in splapp.war file.If you will extract that file you will find the cm.jar file in /splapp/web-inf/lib/cm.jar location.So whenever you will run the initialsetup it will restore the cm.jar.This thing is happening in your case also.So delete the file from splapp.war and rebuild the war.This will solve your issue.
    Hope it will work for you.
    Regards
    sunil sahu

  • Can I get jar version from class run from within jar ?

    I am launching a number of applets from a single jar file. I want to display jar file version on initial applet. I would ideally like the applet to be able to determine from the jar file which it was part of what version it is . Is this possible ?
    Applets are swing based & I'm using java plugin

    if your jar file has a manifest that specifies the version number, you can use java.util.jar.JarFile to get the information. Other wise, you would just have to induce it based upon the file attributes of the jar file, using java.io. Remember that applets can not, by default, read the local file system, so you might have to use signed applets.

  • Export JAR from NWDS does not include external JARs imported to project

    Hi.
    I'm need to develop and run a batch java program.  I'm having difficulty getting the application to find the 2 external JARs at runtime.
    For compile time, I have physically imported these 2 JARs into the project.  To add them to the build path, I selected "Add Jar".  I now see the JARs in the project.
    I've also update the Manifest file appropriately by adding this line.
    Class-Path: com.sap.security.api.jar logging.jar
    However, when running the program from the command line, I get class not found errors.
    I noticed that the exported application JAR does NOT contain the needed 2 JARs even though they clearly exist under the project.
    Am I going about this correctly?  Why do external JARs not get included in the application JAR that is created?  Can I somehow force them to be included?
    Thanks,
    Kevin

    Hi Kevin,
    why don´t you just add the two additional JAR files to the classpath at runtime:
    java -cp x1.jar;x2.jar -jar yourJar.jar
    This is the easiest way to start your Java app.
    Have a look at java - the Java application launcher for details.
    Regards Helmut

  • JAR executable do not find third party Jars

    Boy I am beat.
    I am trying to build executable jar that needs bunch of third party jars.
    So I import the jars into a ext folder at the top of the pkg. I jar it all up (using Ant)with a manifast that point the classpath to the jars at the ext folder
    Dir Structure:
    myJar.jar
    |
    +-build
    |main class
    |
    +EXT
    |
    + bunchOfJars
    </pre>
    Manifest-Version: 1.0
    Created-By: Apache Ant 1.5
    Built-By: Ted I Weitz
    Classpath: ext/dom.jar ext/xsltc.jar ext/dt jar ext/vecmath.jar
    ext/j3dcore.jar ext/j3dutils.jar ext/xercesImpl.jar ext/xalan.jar
    Main-Class: myMain
    Command:
    java -jar myJar.jar
    I will be very gratfull for any idea
    Ted

    Just posted on this in another thread I am watching. As far as I know, and every other post I have seen on this topic, there is no way to do this without using a custom classloader that is used by the executing .jar itself to load any .jar files. How I can see this work is the main class is nothing more than a "classloader" launcher. It creates a new instance of this custom classloader. It then opens "itself" (the .jar the main class and all the .jar's are in), reads the manifest file to locate the .jar files the application requires, then either loads them, or somehow is able to reference them without directly loading them. The URLClassLoader is a good one to extend for this. It already opens up any .jar file specified in its path when being created, scanning for any files in there. Basically, you need to "extend" this functionality to scan any .jar's in the .jar, and so on. So, the launcher may be like so:
    public void main (String[] args)
    JarClassLoader jcl = new JarClassLoader(this.getClass().getClassLoader());
    jcl.launchApp(this);
    the jcl.launchApp would be a method that tells the classloader to use THIS class, its "root" dir, to locate the .jar file to open and scan for more jar files. Each time it comes across a .jar file in the .jar, it opens it and scans it as well.
    Keep in mind, when the URLClassLoader contains one or more .jar files, when a class it loaded references a class that is not found in the that classloaders parent loader classpath, it then starts looking in the .jar files in the URL[] path specified to it. It looks at all classes in the .jar files, but it does NOT look in nested .jar files in the .jar file. Basically, you could take the source code of the URLClassLoader, and add the ability to open up any .jar files nested in each .jar file as needed to resolve a class. I would imagine this could take some time at runtime, probably a second or two on slower machines for a single typecast. However, that would be dependent on the number of nested .jar files, the number of .jar's in the classpath of the classloader. I think I may undertake this task when I have time. I gotta finish my plugin engine first, then I may undertake this classloader. I am pretty sure that is the proper approach to take. However, because it is not part of the JVM .jar execution mechanism, a special bit of coding will be required, such as what I posted above. The main class in the .jar file will have to create this classloader and tell it to "execute" the program, passing to it another main class, specifying the location of the .jar file the main class is in, etc. Hell, you could almost bypass the java -jar app.jar and just do a java Classname where by the class and the .jar are bundled together, although this wouldn't be as nice. The reason this might be better is that then you wouldn't have to do any special coding in the .jar main class. I suppose though, by providing the "launcher" class and having a developer just extend it as part of their main class could also work.
    }

  • Jars are signed but Webstart still says jars must be signed

    I have signed all my jars but when I goto the app webstart is failing telling me the jars must be signed. here is my jnlp
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0+" codebase="http://cs12895.adm.bju.edu/dc" href="dc.jnlp">  
         <information>     
              <title>DC App</title>     
              <vendor>Bob Jones University</vendor>     
              <homepage href="http://www.bju.edu"/>     
              <description kine="one-line">The Discipline Committee Application</description>     
              <description kind="short">The Discipline Committee Application</description>            
         </information>  
         <resources>     
              <j2se version="1.5+" max-heap-size="256m"/>     
              <jar href="shared.jar"/>     
              <jar href="looks-2.0.2.jar"/>     
              <jar href="log4j-1.2.12.jar"/>        
              <jar href="jdnc20060529003752.jar"/>        
              <jar href="hibernate3.jar"/>        
              <jar href="forms-1.0.7.jar"/>                   
              <jar href="soap.jar"/>
              <jar href="swingx20060529003241.jar"/>
              <jar href="dc.jar"/>
         </resources>  
         <application-desc main-class="edu.bju.dc.rich.LoginFrame"/>
    </jnlp>Here is what I used to sign my jars
    <project name="DCBuilder" basedir=".">
         <target name="signjars">
              <signjar alias="BJU" storepass="xxxxx" keystore="c:\\bjusigner.keystore">
                   <fileset dir="C:\\apps\\Uniform Server\\diskw\\www\\dc">
                        <include name="**/*.jar" />
                   </fileset>
              </signjar>
         </target>
    </project>finally here is a keytool -list of my keystore
    C:\>keytool -list -keystore bjusigner.keystore
    Enter keystore password:  xxxxx
    Keystore type: jks
    Keystore provider: SUN
    Your keystore contains 1 entry
    bju, Jun 8, 2006, keyEntry,
    Certificate fingerprint (MD5): 36:D9:8D:E0:48:64:3B:BC:FB:2F:85:26:B2:9E:47:B5

    Which of these 2 jars are not recognized by the webstart ?
    Regarding signing jar files using ANT try to sign them using this code - might work for you.
    <project name="DCBuilder" basedir=".">
         <target name="signjars">
              <signjar alias="BJU" storepass="xxxxx" keystore="c:\\bjusigner.keystore">
                           <fileset dir="C:\\apps\\Uniform Server\\diskw\\www\\dc" includes="**/*.jar" />
                              </fileset>
              </signjar>
         </target>
    </project>If the jars are in the correct path and are signed perfectly - there should be no problems.

  • [svn] 1649: Renamed our customized Velocity JAR from mm-velocity-1.4. jar to velocity-dep-1.4-flex.jar.

    Revision: 1649
    Author: [email protected]
    Date: 2008-05-09 14:49:18 -0700 (Fri, 09 May 2008)
    Log Message:
    Renamed our customized Velocity JAR from mm-velocity-1.4.jar to velocity-dep-1.4-flex.jar.
    The standard Velocity name for this JAR, which is built by Velocity's "jar-dep" target, is velocity-dep-1.4.jar. We append "-flex" to indicate that we've customized it, just as for our customized Batik JAR.
    This change affected the mxmlc classpath in modules/compiler/build.xml, the packaging scripts, and the Eclipse projects.
    I also renamed mm-velocity-LICENSE.txt and mm-velocity-NOTICE.txt to drop the "mm-" prefix.
    Bugs: -
    QA: No
    Doc: No
    Reviewer: Jono
    Ticket Links:
    http://bugs.adobe.com/jira/browse/velocity-1
    http://bugs.adobe.com/jira/browse/dep-1
    http://bugs.adobe.com/jira/browse/dep-1
    Modified Paths:
    flex/sdk/trunk/build.xml
    flex/sdk/trunk/development/eclipse/java/flex-jars/.classpath
    flex/sdk/trunk/modules/compiler/build.xml
    Added Paths:
    flex/sdk/trunk/lib/velocity-LICENSE.txt
    flex/sdk/trunk/lib/velocity-NOTICE.txt
    flex/sdk/trunk/lib/velocity-dep-1.4-flex.jar
    Removed Paths:
    flex/sdk/trunk/lib/mm-velocity-1.4.jar
    flex/sdk/trunk/lib/mm-velocity-LICENSE.txt
    flex/sdk/trunk/lib/mm-velocity-NOTICE.txt

    1) Did you assigned weblogic user to presentation server admin after the upgrade?
    Obiee11g: Administration link is missing for weblogic User(Presentation Services)
    2) Goto Administration tab and do 'Scan and Update Catalog Objects That Require Updates'
    Thanks,
    Saichand

  • JInternalFrame not opening in JAR file, but works when not in JAR

    I have a folder that contains multiple .class files. I make all the class files into one jar file with this command:
    jar cmf mainClass.txt myapplication.jar *.class
    The mainClass.txt contains the following:
    Main-Class: myapplication
    class-path: myapplication.jar
    The myapplication.class opens up a JDesktopPane inside a JFrame. It also contains a start menu, which again has elements that opens up misc JInternalFrames inside the JDesktopPane. The problem is this:
    When I run the application from a .bat file, everything works fine. However, after making the JAR Executable file, everything works except 1 JInternalFrame. Now, the code for this JInternalFrame is far too much to post, so I'll have to ask as follows;
    Are there any reason why a JInternalFrame would not work from inside a JAR Executable, but work when not in the JAR file? Especially when other JInternalFrames are working? What can make 1 JInternalFrame different from the others in this regard?

    Perhaps the problem lies somewhere else.
    Obviously if other JInternalFrames are working then there is a difference in the one missing internal frame that causes it not to show up.
    My guess is that perhaps you are missing one or two classes in your JAR that are used by that JInternalFrame and that an exception is being thrown causing it not to show.
    Double check the contents of your JAR and make sure that all the classes are present and that they are the right versions.

  • Issue with CIS jar version  - cis-application-8.0.0.jar on content server

    We are having a problem adding this jar to our custom component. We are using this APIs to check-in some programatically.
    Following is the error when we try to deploy our component with this jar
    ===============================================================
    IdcAdmin: Content Server idc status: Stopped successfully
    Starting the Content Server idc... The server terminated unexpectedly.
    02.28 11:36:35.834 main NativeOsUtils version mismatch. The native code version is "7.1.0.2" and the Java version is "7.0.6.0".
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGSEGV (0xb) at pc=0x00002ac72c918500, pid=26841, tid=47034930753168
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_11-b03 mixed mode)
    # Problematic frame:
    # V [libjvm.so+0x3a8500]
    ========================================================
    The content server version is 10.1.3.3.
    And the jar version is cis-application-8.0.0.jar. We are able to use the same jar standalone. What could be the problem? Should we need to upgrade to a diffrent jdk version? I am worried that might cause more problems.
    Regards,
    Pratap

    Thanks for your inputs.
    So far I have been looking at only CHECKIN_NEW_FORM and CHECKIN_SEL_FORM services for creating and updating content. items These services require files to be attached. I checked the definitive guide and found that there are 2 other similar services,CHECKIN_NEW and CHECKIN_SEL, that don't need the file to be attached. Instead we can specify the file path of the primary file. Since the xml content file to be checked is in th content server itlsef, these services can be used in my case. Moreover since my content checkin logic is in the context of a service, my code become more simpler.
    I began working on it and am calling executeServiceSimple("CHECKIN_NEW") or executeServiceSimple("CHECKIN_SEL") based on whether the content to be checked in is new or to be updated. I am setting all the metadata values of the content file in the m_binder local data of the service object.
    I thought this should work cleanly but I am getting the below error
    ============================================
    at intradoc.server.IdcServerThread.run(IdcServerThread.java:197)
    Caused by: intradoc.data.DataException: !csCheckinFileKeyNotSpecified,primaryFile
    at intradoc.server.DocServiceHandler.addFile(DocServiceHandler.java:3251)
    at intradoc.server.DocServiceHandler.addFiles(DocServiceHandler.java:410)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at intradoc.common.IdcMethodHolder.invokeMethod(ClassHelperUtils.java:617)
    at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:293)
    at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)
    at intradoc.server.Service.doCodeEx(Service.java:490)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at sitestudio.SSClassHelper.invokeRaw(Unknown Source)
    ======================================================
    I printed out all the local data in the m_binder object. The primaryFile value is pointing to the right file path. The file is also been created in the correct location.
    The dID, dDocName, dOriginalFile, dRevLabel values are all set properly. But still I am getting this error. I am not able to figure out the cause of this. Please help. Is this approach incorrect?
    -Pratap

  • Applet inside a JAR: Cannot access other classes within the JAR

    Hello,
    Description
    Web app + applet (packaged in a JAR)
    I have followed this tutorial
    JAR contents
    package mypackage
    SimpleApplet.class
    SimpleObj.class
    _"SimpleApplet" uses "SimpleObj"_
    package mypackage;
    public class SimpleApplet extends JApplet {
        @Override
        public void init() {
            SimpleObj obj = new SimpleObj();
    HTML code
    <applet archive="SimpleApplet.jar" codebase="." code="mypackage.SimpleApplet.class" width="800" height="600" />
    SimpleObj cannot be found (Java Console)
    java.lang.NoClassDefFoundError: mypackage/SimpleObj
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: mypackage.SimpleObj
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    ... 8 more
    Caused by: java.io.IOException: open HTTP connection failed:*http://localhost:8080/SimpleApp/mypackage/SimpleObj.class*
    at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 12 more
    Exception: java.lang.NoClassDefFoundError: mypackage/SimpleObj
    It looks like JRE does not search for the SimpleObj class inside the JAR, but tries to get it from the server...
    Any ideas?
    Thanks in advance,
    Gerard
    Edited by: gsoldevila on Dec 10, 2008 2:05 AM

    misread, deleted
    Edited by: atmguy on Dec 10, 2008 1:12 PM

  • Including images in jar executable files. Using images in jar files.

    Does anybody know what is the reason of my problem??
    I created a package called test in my eclipse env. and in that package I placed folder named graph in which there is a file Help.png.
    Here is all the code I run in eclipse and it runs properly. When I create a jar file (using eclipse wizard) to execute without eclipse it can not execute and shows nothing (process starts and I have to kill it by myself in OS). Maybe there is some mistake with making jar... I do not know
    So let someone try tu run my class or build jar file and try to execute and share his observations (solutions) ??
    package test;
    import java.awt.Toolkit;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.UIManager;
    public class TestWindow extends JFrame {
         private JButton jButton1 = new JButton(new JARImage().getImage("Help.png"));
         public TestWindow() {
              this.getContentPane().add(jButton1);
              this.validate();
              this.setVisible(true);
         private class JARImage {
              protected ImageIcon getImage(String imageName) {
                   ImageIcon image = new ImageIcon();
                   try {
                        image.setImage((Toolkit.getDefaultToolkit().getImage(getClass()
                                  .getResource("graph/" + imageName))));
                   } catch (Exception ex) {
                        System.out.println("Image Error: " + ex);
                        ex.printStackTrace();
                   return image;
         public static void main(String[] args) {
              try {
                   UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
              } catch (Exception e) {
                   e.printStackTrace();
              new TestWindow();
    }

    Uncaught error fetching image:
    java.lang.NullPointerException
         at sun.awt.image.URLImageSource.getConnection(Unknown Source)
         at sun.awt.image.URLImageSource.getDecoder(Unknown Source)
         at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
         at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
         at sun.awt.image.ImageFetcher.run(Unknown Source)

Maybe you are looking for