Uncompresing weblogic.jar and modifying it...

Hi all,
I'm trying to develop some classes that extend the funcionality of some of
the base classes of weblogic.
Due to security restrictions (I suppose that there's some ClassLoader
mechanism to check if all the classes are loaded from the same jar...) I
need to add these classes to the weblogic.jar.
My question is very simple.
Is it legal? Or should I try another aproches to solve the problem?
If this is not the right group to ask this question, where can I find this
information?
Thanks.
Jon.

Hi,
Daniel, although I would prefer to use just the J2EE interfaces the problem
is that I need to deploy a kind of Wrapper of the ServletResponse. As the
Weblogic implementation of the include and forward methods in the
RequestDispatcher seems to cast directly to its own implementation then I
need to extend its own classes. Due to security constraints (possibly
implemented with its own SecurityManager or ClassLoader) I need to pack my
classes inside the weblogic.jar file....
It seems to be a very closed implementation that done by bea...
Nevertheless I expected some "official" response from Bea people about
modifying its jar file...
Thanks.
"Jon Doe" <[email protected]> escribió en el mensaje
news:[email protected]..
Hi all,
I'm trying to develop some classes that extend the funcionality of some of
the base classes of weblogic.
Due to security restrictions (I suppose that there's some ClassLoader
mechanism to check if all the classes are loaded from the same jar...) I
need to add these classes to the weblogic.jar.
My question is very simple.
Is it legal? Or should I try another aproches to solve the problem?
If this is not the right group to ask this question, where can I find this
information?
Thanks.
Jon.
"Jon Doe" <[email protected]> escribió en el mensaje
news:[email protected]..
Hi all,
I'm trying to develop some classes that extend the funcionality of some of
the base classes of weblogic.
Due to security restrictions (I suppose that there's some ClassLoader
mechanism to check if all the classes are loaded from the same jar...) I
need to add these classes to the weblogic.jar.
My question is very simple.
Is it legal? Or should I try another aproches to solve the problem?
If this is not the right group to ask this question, where can I find this
information?
Thanks.
Jon.

Similar Messages

  • Weblogic.jws.Policies.class is missing in weblogic.jar and wlfullclient.jar

    Hi,
    I am trying to upgrade Weblogic from 9.1 to 10.3.2 or 10.3.3
    In Weblogic 9.1, our application used weblogic.jar in our classpath.
    After we installed Weblogic 10.3.3, the new weblogic.jar can be found in: <WLS_HOME>\wlserver_10.3\server\lib
    However, some class files are missing and we realized we need to manually generate wlfullclient.jar and use this jar file instead.
    Reference: http://download.oracle.com/docs/cd/E12840_01/wls/docs103/client/jarbuilder.html
    The problem is that in Weblogic 10.3.3, the following class files are missing inside weblogic.jar and wlfullclient.jar
    - import weblogic.jws.Policies
    - import weblogic.jws.Policy
    Hence, our application is getting an "The import weblogic.jws.Policies cannot be resolved" error in our code.
    I look inside both weblogic.jar and wlfullclient.jar, weblogic.jws.Policies and weblogic.jws.Policy cannot be found.
    This is not an issue in Weblogic 10.3.2. These two classes can be found in wlfullclient.jar
    Any idea where I can find these class files for Weblogic 10.3.3 or something we are doing is incorrectly?
    Thanks
    Toan

    Hi,
    This missing classes can be found inside the JAR : *"E:\bea10_3_3\wlserver_10.3\server\lib\wseeclient.jar"* As well as inside *"E:\bea10_3_3\wlserver_10.3\server\lib\wls-api.jar"*
    Thanks
    Jay SenSharma
    http://weblogic-wonders.com/weblogic/webservices/ (WebLogic Wonders Are Here)

  • Weblogic.jar and jdk1.5 compatible issues

    Hi
    Weblogic 9.1 and JDK 1.5
    I am using Eclipse 3.1 IDE.
    I have imported weblogic.jar to my application. When i open the jar, i dont see the ejb and Jms packages. I get compilation error in Eclipse.
    When i change the compiler to Jdk 1.4 and expand the jar, I see the packages.
    What is wrong here?
    Thanks in Anticipation

    Hi Rob,
    I am trying to run the weblogic 8.1 with JDK 1.5?
    Is it possible?
    I am getting the following exception at start up... I had changed the start up files to point to JDK 1.5.
    java.io.InvalidClassException: javax.management.MBeanAttributeInfo; local class incompatible: stream classdesc serialVersionUI
    D = 7043855487133450673, local class serialVersionUID = 8644704819898565848
    at java.io.ObjectStreamClass.initNonProxy(Ljava.io.ObjectStreamClass;Ljava.lang.Class;Ljava.lang.ClassNotFoundExceptio
    n;Ljava.io.ObjectStreamClass;)V(Unknown Source)
    at java.io.ObjectInputStream.readNonProxyDesc(Z)Ljava.io.ObjectStreamClass;(Unknown Source)
    at java.io.ObjectInputStream.readClassDesc(Z)Ljava.io.ObjectStreamClass;(Unknown Source)
    at java.io.ObjectInputStream.readNonProxyDesc(Z)Ljava.io.ObjectStreamClass;(Unknown Source)
    at java.io.ObjectInputStream.readClassDesc(Z)Ljava.io.ObjectStreamClass;(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readArray(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.defaultReadFields(Ljava.lang.Object;Ljava.io.ObjectStreamClass;)V(Unknown Source)
    at java.io.ObjectInputStream.readSerialData(Ljava.lang.Object;Ljava.io.ObjectStreamClass;)V(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject()Ljava.lang.Object;(Unknown Source)
    at weblogic.management.internal.TypesHelper.getMBeanInfo(TypesHelper.java:261)
    at weblogic.management.internal.TypesHelper.getAdminOrConfigMBeanInfo(TypesHelper.java:366)
    at weblogic.management.internal.ConfigurationMBeanImpl.<init>(ConfigurationMBeanImpl.java:130)
    at weblogic.management.AdminServer.<init>(AdminServer.java:59)
    at weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java:245)
    at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:771)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:670)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:344)
    at weblogic.Server.main(Server.java:32)
    Is weblogic 8.1 not compatible with JDK 1.5?
    Thanks in advance,
    Binu

  • Difference between lib/weblogic.jar and ext/weblogic.jar

    What is the difference between the two files? The file length is slightly
    different. But what does it mean?
    I read that one should use lib/weblogic.jar. But why? Why not the other?
    We use Weblogic 7.1 SP 1.

    The below is just for your reference. Actual content may vary....
    Weblogic Administration:
    Manage a WebLogic Server installation.
    To install weblogic server in one or multiple instances
    Installing on single or multiple physical machines
    How to handle administration console, utilities, APIs, hangling security, database connection, messaging and transaction.
    How to do runtime configuration for your applications.
    How to use the monitoring tools to check the health of the servers and ensure maximum availability and performance.
    Install and Configure WebCache 11g as Load Balancer
    and Much more..
    OFM SOA Administrator:
    Manage a WebLogic Server installation (Administration Server and Managed Server).
    To install weblogic server in one or multiple instances
    Installing on single or multiple physical machines
    How to handle administration console, utilities, APIs, hangling security, database connection, messaging and transaction.
    How to do runtime configuration for your applications.
    How to use the monitoring tools to check the health of the servers and ensure maximum availability and performance.
    and
    File System and Directory Structure in Fusion Middleware
    Installing Oracle Database, Configuring RCU, weblogic server and SOA Suite.
    Deploying SOA Applications.
    Deploying and Undeploying Java EE Applications
    Configuring Node Manager and starting Managed Servers using Node Manager
    Monitoring OFM Server, admin server, managed server and composites
    Configuring HA and Security (Creating users, assigning responsibilities)
    Monitoring performance of SOA composites
    Install and Configure WebCache 11g as Load Balancer
    and much more..
    Thanks,
    Vijay

  • Unjar weblogic.jar

    i installed Axis as my soap engine on weblogic, but the wsdl does not work. as suggested, i unjared weblogic.jar and took out jaxp package from the expanded directory and then jared everthing else together into weblogic.jar
    but when starting weblogic server, i have error as follows.
    Can anyone help me with how to unjar weblogic.jar? Thanks.
    The WebLogic Server did not start up properly.
    weblogic.common.internal.VersioningError: No WebLogic packages defined in CLASSP
    ATH
    at weblogic.common.internal.VersionInfo.<init>(VersionInfo.java:46)
    at weblogic.common.internal.VersionInfo.initialize(VersionInfo.java:120)
    at weblogic.common.internal.VersionInfo.theOne(VersionInfo.java:91)
    at weblogic.version.getPLInfo(version.java:57)
    at weblogic.t3.srvr.T3Srvr.checkAccess(T3Srvr.java:517)
    at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:702)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:664)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:342)
    at weblogic.Server.main(Server.java:32)
    Reason: No WebLogic packages defined in CLASSPATH

    If you unjar the file use jar xvf weblogic.jar
    Then, a directory structure will be created.
    Then you must change the classpath of startWebLogic.sh script to point to this directory (one level up this ).
    Jin

  • How to get InitialContextFactory using RMI/IIOP without using weblogic.jar

    Hi Robert
    I know this is an old post. but I am interested in knowing how to get the
    initial context using RMI/IIOP without the use weblogic specific classes
    like weblogic.jndi.WLInitialContextFactory . If you have a code snippet that
    you can provide as an example, it would be just great.
    thanx in advance
    Daya Sharma
    See comments inline...
    Stewart Wachs wrote:
    I would like to get an initial context to Weblogic JNDI from a client.
    code snippet:
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFacorty");
    ht.put(Context.PROVIDER_URL, "t3://localhost:7001");
    try {
    Context ctx = new InitialContext(ht);
    catch(...) {
    This works fine when I include weblogic.jar (and other dependend weblogic
    jar's) in the classpath.
    Is there a way to access WL JNDI from a client without the weblogicclasses
    in the classpath?If you are using WLS 6.1, you could use RMI/IIOP to do this but in general,
    the
    answer is no, you will need at least some of the weblogic classes on the
    client.
    If not, is there a lightweight jar available for distribution for client
    JNDI connectivity?This is something in the works. In addition, a colleague and I are working
    on
    a white paper that describes the "Thin Client Options with WebLogic Server"
    that we hope to make available in the not too distant future...
    Are there any licencing issues with distributing the weblogic classes to
    clients that need to access WL JNDI?No. WLS is licensed by the server so you are free to distribute
    weblogic.jar
    to your clients.
    Hope this helps,
    Robert

    Take a look at the RMI/IIOP section of our whitepaper "Small Footprint
    Client options for BEA WebLogic Server" at:
    http://dev2dev.bea.com/resourcelibrary/whitepapers.jsp?highlight=whitepapers
    Daya Sharma wrote:
    Hi Robert
    I know this is an old post. but I am interested in knowing how to get the
    initial context using RMI/IIOP without the use weblogic specific classes
    like weblogic.jndi.WLInitialContextFactory . If you have a code snippet that
    you can provide as an example, it would be just great.
    thanx in advance
    Daya Sharma
    See comments inline...
    Stewart Wachs wrote:
    I would like to get an initial context to Weblogic JNDI from a client.
    code snippet:
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFacorty");
    ht.put(Context.PROVIDER_URL, "t3://localhost:7001");
    try {
    Context ctx = new InitialContext(ht);
    catch(...) {
    This works fine when I include weblogic.jar (and other dependend weblogic
    jar's) in the classpath.
    Is there a way to access WL JNDI from a client without the weblogic
    classes
    in the classpath?
    If you are using WLS 6.1, you could use RMI/IIOP to do this but in general,
    the
    answer is no, you will need at least some of the weblogic classes on the
    client.
    If not, is there a lightweight jar available for distribution for client
    JNDI connectivity?
    This is something in the works. In addition, a colleague and I are working
    on
    a white paper that describes the "Thin Client Options with WebLogic Server"
    that we hope to make available in the not too distant future...
    Are there any licencing issues with distributing the weblogic classes to
    clients that need to access WL JNDI?
    No. WLS is licensed by the server so you are free to distribute
    weblogic.jar
    to your clients.
    Hope this helps,
    Robert

  • Problem building application with weblogic.jar placed out of bea install.

    Weblogic version: 10.3
    EJB Version: 2.x
    Method for generating webservices fomr EJBs: servicegen task.
    Application Build steps:
    Step1) Maven to build the complete application and generate ejb-jar.jar and other projects jars and wars.
    Step2) Post maven build success there is an ant script used to generate webservices using ejb’s in the project using servicegen task. Attached is build.xml for ant.
    Following is the class path :
    .;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar;C:\Program Files\IBM\RationalSDLC\ClearQuest\cqjni.jar;C:\bea10.3\wlserver_10.3\server\lib\weblogic.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\webservices.jar;%JAVA_HOME%\lib\tools.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\libslf4j-log4j12-1.5.2.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\struts.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\bootstrap.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc_license_cu.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\ehcache-core-2.0.0.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\j2ee.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\jdom.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\log4j-1.2.9.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\slf4j-api-1.5.8.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-dto.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-jar.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\scheduler-ejb.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\com.bea.core.xml.beaxmlbeans_2.0.0.0_2-5-1.jar;
    Problem Area:
    As you could notice in the yellow highlighted one that am referring to weblogic.jar from bea installation folder. Now if I use the weblogic.jar from the installation folder then build happens successfully.
    However if I copy weblogic.jar to some other location say : C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\weblogic.jar
    And include this path in the class path in place of weblogic.jar from the installation path, then I get the following errors: Please refer red highlighted part below…
    C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\ulc-ear>ant
    Buildfile: build.xml
    ejbwebservice:
    [servicegen] weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed D
    OCTYPE header
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:301)
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:241)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:320)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:295)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:265)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:118)
    [servicegen] at weblogic.webservice.dd.EJBJarIntrospector.<init>(EJBJarIntrospector.java:47)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:177)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.<init>(WebServiceEarFile.java:74)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    [servicegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [servicegen] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [servicegen] at java.lang.reflect.Method.invoke(Method.java:597)
    [servicegen] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:348)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:357)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [servicegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [servicegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:758)
    [servicegen] at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [servicegen] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    [servicegen] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    [servicegen] --------------- nested within: ------------------
    [servicegen] Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document doe
    s not appear to contain a properly formed DOCTYPE header - with nested exception:
    [servicegen] [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed
    DOCTYPE header]
    --------------- nested within: ------------------
    weblogic.webservice.util.WebServiceJarException: Could not process ejb-jar C:\DOCUME~1\ac30416\LOCALS~1\Temp\ulc-ear.ear
    -86826932\ejb.jar - with nested exception:
    [weblogic.webservice.dd.EJBProcessingException: Can read in ejb DD files. - with nested exception:
    [Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document does not appear
    to contain a properly formed DOCTYPE header - with nested exception:
    [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed DOCTYPE heade
    r]]]
    at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:183)
    at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    at weblogic.webservice.util.WebServiceEarFile.<init>(WebServiceEarFile.java:74)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    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:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Please help as its urgent for me as we cannot have local installation of weblogic. We may just use the required jars.

    Weblogic version: 10.3
    EJB Version: 2.x
    Method for generating webservices fomr EJBs: servicegen task.
    Application Build steps:
    Step1) Maven to build the complete application and generate ejb-jar.jar and other projects jars and wars.
    Step2) Post maven build success there is an ant script used to generate webservices using ejb’s in the project using servicegen task. Attached is build.xml for ant.
    Following is the class path :
    .;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar;C:\Program Files\IBM\RationalSDLC\ClearQuest\cqjni.jar;C:\bea10.3\wlserver_10.3\server\lib\weblogic.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\webservices.jar;%JAVA_HOME%\lib\tools.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\libslf4j-log4j12-1.5.2.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\struts.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\bootstrap.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc_license_cu.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\ehcache-core-2.0.0.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\j2ee.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\jdom.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\log4j-1.2.9.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\slf4j-api-1.5.8.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-dto.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-jar.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\scheduler-ejb.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\com.bea.core.xml.beaxmlbeans_2.0.0.0_2-5-1.jar;
    Problem Area:
    As you could notice in the yellow highlighted one that am referring to weblogic.jar from bea installation folder. Now if I use the weblogic.jar from the installation folder then build happens successfully.
    However if I copy weblogic.jar to some other location say : C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\weblogic.jar
    And include this path in the class path in place of weblogic.jar from the installation path, then I get the following errors: Please refer red highlighted part below…
    C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\ulc-ear>ant
    Buildfile: build.xml
    ejbwebservice:
    [servicegen] weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed D
    OCTYPE header
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:301)
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:241)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:320)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:295)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:265)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:118)
    [servicegen] at weblogic.webservice.dd.EJBJarIntrospector.<init>(EJBJarIntrospector.java:47)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:177)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.<init>(WebServiceEarFile.java:74)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    [servicegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [servicegen] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [servicegen] at java.lang.reflect.Method.invoke(Method.java:597)
    [servicegen] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:348)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:357)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [servicegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [servicegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:758)
    [servicegen] at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [servicegen] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    [servicegen] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    [servicegen] --------------- nested within: ------------------
    [servicegen] Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document doe
    s not appear to contain a properly formed DOCTYPE header - with nested exception:
    [servicegen] [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed
    DOCTYPE header]
    --------------- nested within: ------------------
    weblogic.webservice.util.WebServiceJarException: Could not process ejb-jar C:\DOCUME~1\ac30416\LOCALS~1\Temp\ulc-ear.ear
    -86826932\ejb.jar - with nested exception:
    [weblogic.webservice.dd.EJBProcessingException: Can read in ejb DD files. - with nested exception:
    [Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document does not appear
    to contain a properly formed DOCTYPE header - with nested exception:
    [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed DOCTYPE heade
    r]]]
    at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:183)
    at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    at weblogic.webservice.util.WebServiceEarFile.<init>(WebServiceEarFile.java:74)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    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:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Please help as its urgent for me as we cannot have local installation of weblogic. We may just use the required jars.

  • A webservice dont want to deploy and run (because of weblogic.jar)

    Good Afternoon!
    I have a JDeveloper 11g Release 1 (11.1.1.3.0)
    And I have a simple webservice. (A simple Class i converted to webservice.)
    Trying to test it (RMC on file -> Test Web Service) i got a fail like this:
    [Running application SimpleWSApll on Server Instance IntegratedWebLogicServer...]
    [04:45:16 PM] ---- Deployment started. ----
    [04:45:16 PM] Target platform is (Weblogic 10.3).
    [04:45:16 PM] Retrieving existing application information
    [04:45:17 PM] Running dependency analysis...
    [04:45:17 PM] Deploying 2 profiles...
    [04:45:17 PM] Wrote Web Application Module to C:\Users\andrejsg\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\SimpleWSApll\SimpleWSProjectWebApp.war
    [04:45:17 PM] Wrote Enterprise Application Module to C:\Users\andrejsg\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\SimpleWSApll
    [04:45:17 PM] Deploying Application...
    <2011.25.2 16:45:22 EET> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1298645117434' for task '12'. Error is: 'weblogic.management.DeploymentException: Error encountered during prepare phase of deploying WebService module 'SimpleWSProjectWebApp.war'. When processing WebService module 'SimpleWSProjectWebApp.war'. Can't find wsdl /wsdls/wsat11/wstx-wsat-1.1-wsdl-200702.wsdl'
    weblogic.management.DeploymentException: Error encountered during prepare phase of deploying WebService module 'SimpleWSProjectWebApp.war'. When processing WebService module 'SimpleWSProjectWebApp.war'. Can't find wsdl /wsdls/wsat11/wstx-wsat-1.1-wsdl-200702.wsdl
         at weblogic.wsee.deploy.WSEEModule.prepare(WSEEModule.java:146) and bla-bla-bla....
    After some experiments i found:
    1. A deployment error reason is because i have a weblogic.jar (C:\Oracle\Middleware\wlserver_10.3\server\lib) library - if i remove it - webservice deploys successfully (but i cant do this, because i need it for LocatorFactory.createLocator() in my webservice)
    2. I googled for this wsdl and added it to project. On the next test there were an error again - with the same text, only with another wsdl needed (wsdls\wsc10\wscoor.wsdl). I found it and added. Then i was asked for next and next and next...
    So, where can be a problem? And how i can fix it?

    Hi,
          You've probably figured this out by now; if not, maybe this will help!
    Message Edited by tbd on 07-12-2006 11:07 PM
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
    Attachments:
    Main.vi ‏17 KB
    SubVI.vi ‏8 KB

  • How to use both ojdbc14.jar and ojdbc6.jar in same weblogic domain(weblogic12C)

    Hi all,
    I 'm having issue of using both ojdbc14.jar and ojdbc6.jar in same weblogic application and same weblogic domain in weblogic 12C environment.
    how can i do that?
    i'm currently having application developed using jdk 1.6 and ojdbc6.jar, application developed using jdk 1.4 and ojdbc14.jar.both are currently installed at same domain.
    i want to use the both ojdbc14.jar and ojdbc6.jar in same domain.
    what i previously did was renaming /usr/weblogic/wls_server10.3.4/lib/ojdbc6.jar to /usr/weblogic/wls_server10.3.4/lib/ojdbc6.jar.bak and put ojdbc14.jar in the same path when i wanna use ojdbc14.jar.
    i haven't use both in same environment before, but to go live i wanna match about requirement.pls help.
    i know the way use this by having two domains, but in the same domain i could not find a solution yet.
    Please help

    Hey
    I have the similar requirement.. Did you managed to get an option of doing it? If yes, please provide some insights
    Thanks in Advance

  • How to modify a class in .jar and compile it back

    Hi,
    I have questions reg .jar, I need to test my application and I need to modify certain files in that .jar and compile it back. How do I do that? I have extract all the classes and decompile it to .java, and I just want to edit just 1 file, but I always have problems compiling it. Am i doing it the wrong way?Please help...
    Thanks.

    Did you make a jar and now need to make changes? Help me to understand why you decomplied the class files? Can you not just make a new jar?

  • JDriver and weblogic.jar for the wlserver 6.1 sp2

    Hi all,
    After I download the jDriver for Ms sql 2000 server, I set the classpath as
    document told, I test
    it using the utils.dbping it works fine. But when I try to use it with the weblogic
    server 6.1
    I have the problem as following:
    I included the jDriver classes in the classpath of the startWeblogic.cmd as
    set CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;C:\weblogic\mssqlserver4v70\classes
    saved the startWeblogic.cmd file
    Then I start the wls with startWeblogic.cmd(the new classpath). It starts fine
    Then I setup the connection sql pool using the weblogic.jdbc.mssqlserver4.Driver
    It says "No suitable driver"
    I found that in the weblogic.jar(shipped with the weblogic 6.1) and in the jDriver
    classes, there are two files which have the same name is weblogic.jdbc.mssqlserver4.Driver.
    Because in the classpath
    .\lib\weblogic.jar comes first so weblogic server takes weblogic.jdbc.mssqlserver4.Driver
    of the weblogic.jar rather than in the jDriver classes directory. So I thought
    the matter of changing the order in the classpath (.\lib\weblogic_sp.jar;C:\weblogic\mssqlserver4v70\classes;.\lib\weblogic.jar")
    will solve the problem, but when I changed the oder in the classpath the weblogic
    server did not start AT ALL with the following errror.
    ------------------Begin error----------------------------
    C:\bea\wlserver6.1>"C:\bea\jdk131\bin\java" -hotspot -ms64m -mx64m -classpath
    ;.\lib\weblogic_sp.jar;C:\weblogic\mssqlserver4v70\classes;.\lib\weblogic.jar"
    -Dweblogic.Domain=mydomain -Dweblogic.Name=myserver -Dbea.home="C:\\bea" -Dweblogic.management.password=
    -Dweblogic.ProductionModeEnabled=true -Djava.security.policy="C:\bea\wlserver6.
    1/lib/weblogic.policy" weblogic.Server
    The WebLogic Server did not start up properly.
    Exception raised:
    java.lang.NoSuchMethodError
    at weblogic.Home.getFileSource(Home.java:66)
    at weblogic.Home.<init>(Home.java:29)
    at weblogic.Home.getInstance(Home.java:81)
    at weblogic.Home.getPath(Home.java:89)
    at weblogic.security.internal.ServerAuthenticate.main(ServerAuthenticate
    .java:77)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:200)
    at weblogic.Server.main(Server.java:35)
    Reason: Fatal initialization exception
    C:\bea\wlserver6.1>goto finish
    ------------------End error----------------------------
    I wonder how can I use the jDriver with weblogic server?
    Do you have any idea what I have done wrong or how to get around with this problem?
    Please help
    Thanks in advance

    It works now.
    Thanks Laurent.
    Tom
    Laurent Goldsztejn <[email protected]> wrote:
    Hi Tom,
    Can you please make sure that the driver is defined as
    weblogic.jdbc.mssqlserver4.Driver
    and that the url starts with jdbc:weblogic:mssqlserver4
    Thank you,
    Laurent Goldsztejn
    Developer Relations Engineer
    BEA Support

  • Weblogic.jar 9.2 and jboss

    why when i put weblogic.jar in the jboss classpath or in my .war classpath = web-inf/lib all of its classes are class not found exception
    is there a problem with this jar being inside jboss
    if i take the same jar and run my application on eclipse everything works fine
    but when i debug this problem and try to loader classes, they are not found
    its like it being ignored and not loaded like the rest of my jars in the classpath.
    is this got anything to do with security?
    Edited by: user8709596 on Sep 6, 2009 4:23 AM

    found a fix to this problem
    weblogic.jar is a standalone jar
    remove all javax folder from this jar and this solves the problem
    and jboss will load the jar successfuly

  • Need Netbeans *.jcs *.jcb for j2ee.jar and weblogic.jar

    Any one have *.jcs and *.jcb files for j2ee.jar and/or weblogic.jar.
    These files are used by Forte for autocomplete.
    When I try to create, the IDE runs out of memory and crashes.
    If anyone has it please email to [email protected]
    Thanks

    No, you don't need to put it in your classpath, but
    when you go to compile your code (this is via pure
    commandline), try this:
    set J2EE_HOME to the location where your J2EE SDK is
    installed.
    example:
    J2EE_HOME=c:\java\j2eesdk1.4
    Now, in the dir where your ejb files are:
    javac -classpath %J2EE_HOME%/lib/j2ee.jar *.javaI keep changing and testing my code; recompiling...
    Is there an easier way than type the 2 lines above each time I compile...?

  • Where to download wlst.jar and python.jar for weblogic 10

    where to download wlst.jar and python.jar for weblogic 10 ? I am unable to find the links ..most of the prevoius ones point to dev2dev which are no longer valid

    Hi,
    I have written the below python script to list the user ,that was created in realms->myrealms->users.
    It's not working it.
    Kindly help to in this python script.
    from weblogic.management.security.authentication import UserReaderMBean
    from weblogic.management.security.authentication import GroupReaderMBean
    file_loc='MbeanValues.properties'
    file=java.io.File(file_loc)
    if file.exists():
         loadProperties(file_loc)
    connect(dwlusr,dwlspwd,dwlsurl)
    domain_name = cmo.getName()
    print 'UserName='+dwlusr
    print 'URL='+dwlsurl
    print 'DomainName='+ domain_name
    print 'welcome'
    print 'Checking if isMember of a group'realm=cmo.getSecurityConfiguration().getDefaultRealm()
    atns = realm.getAuthenticationProviders()
    for i in atns:
    if isinstance(i,UserReaderMBean):
    userReader = i cursor = i.listUsers("*",0)
    print 'Users in realm '+realm.getName()+' are: '
    while userReader.haveCurrent(cursor):
    print userReader.getCurrentName(cursor)
    userReader.advance(cursor)
    userReader.close(cursor)for i in atns:
    if isinstance(i,GroupReaderMBean):
    groupReader = i
    cursor = i.listGroups("*",0)
    print 'Groups in realm are: '
    while groupReader.haveCurrent(cursor):
    print groupReader.getCurrentName(cursor)
    groupReader.advance(cursor)
    groupReader.close(cursor)
    disconnect()

  • Java JNDI Weblogic dependencies and Example

    Hello, I'd like help with this scenario:
    - Oracle Weblogic 11g (Bea 10.3) in development environment
    - JDeveloper 11g
    - Oracle Database 11g
    With Weblogic Console Administration:
    - JNDI Name: jdbc-DATABASESCHEMA1
    it connect file to Oracle Database 11g instance to schema DATABASESCHEMA1
    Required example:
    - Weblogic JAR files required to be imported in java sorcecode to connect with weblogic jdbc-DATABASESCHEMA1
    - Way to see port used in Weblogic Serve for connection
    - Java code to connect and make this simple SELECT:
    SELECT SYSDATE FROM DUAL;
    Regards.
    Edited by: 911572 on 01-feb-2012 12:11

    I appreciate your reply. I have some
              questions if we go this way:
              1. If we use JNDI and run the modified RMI service
              objects (not EJBs yet) in weblogic server, will we be
              getting the advantages the same way as for the EJBs,
              such as failover using the clustering technology for
              weblogic servers. Or failover only works for things
              running in the EJB container.
              2. If we use JNDI, does weblogic server handle service
              objects pooling? If yes, how. I would like to make
              sure the JNDI way will not perform worse than if we
              run the service objects at the RMI port.
              Thanks,
              Morris
              Adam Messinger wrote:
              > Morris,
              >
              > It is possible and it is what we recommend doing. You'll have to recompile
              > your RMI objects using weblogic.rmic.
              >
              > > If this is possible, then I have the following
              > > questions:
              >
              > > 1. Does weblogic server immediately support the use of
              > > JNDI after we install it? Or we will have to buy
              > > things like LDAP before we can use JNDI.
              >
              > It supports this sort of use right out of the box.
              >
              > > 2. Do you have any idea about the pros and cons on
              > > this approach (using JNDI to replace RMI)?
              >
              > You're still using RMI with this approach, just not the RMI registry.
              >
              > Cheers!
              >
              > Adam
              

Maybe you are looking for