Problems deploying application with updated method signatures on WLS8.1

Hi,
I have an jar file under applications which I have deployed fine on WLS 8.1 in the past. I changed the method signature on one of the EJB classes in the jar. One of the parameters now takes a different Java class type. I have recompiled everyone and repackaged the jar but when I try to deploy the jar it gives me an error because the the local interface of the EJB does not have the old Java class parameter type.
I have checked the jar, classes in the jar, and the ejb-jar.xml and weblogic-ejb-jar.xml in the jar and it is looks fine. I have cleaned out my server deployment directories and verified the classpath in case the older jar was in there and everything looks OK. It seems for some reason 8.1 is caching the old ejb-jar.xml or somehow is remembering the old method signature and will not process the updated jar. Has anyone seen anything like this?
Thanks for any help or recommendations

Can you show me the error you receive?
Another simple test would be to deploy your application to a new, empty
server.
You can create a new domain as easy as this:
mkdir testDomain;
cd testDomain;
java weblogic.Server
Type in the username/password that you want and answer 'Yes' when it
asks if you want to create a new domain.
Try deploying your jar to this new domain, and let me know if it still
fails.
-- Rob
Jeff Dooley wrote:
Hi,
I have an jar file under applications which I have deployed fine on WLS 8.1 in the past. I changed the method signature on one of the EJB classes in the jar. One of the parameters now takes a different Java class type. I have recompiled everyone and repackaged the jar but when I try to deploy the jar it gives me an error because the the local interface of the EJB does not have the old Java class parameter type.
I have checked the jar, classes in the jar, and the ejb-jar.xml and weblogic-ejb-jar.xml in the jar and it is looks fine. I have cleaned out my server deployment directories and verified the classpath in case the older jar was in there and everything looks OK. It seems for some reason 8.1 is caching the old ejb-jar.xml or somehow is remembering the old method signature and will not process the updated jar. Has anyone seen anything like this?
Thanks for any help or recommendations

Similar Messages

  • Deploying application with EAR file: problems....

    Hello!
    We been working in a test environment for developing our application. When its done and ready to go in production, we did generate the deployed application archive (EAR) with the console. Then, we used the
    java -jar admin.jar -deploy command to deploy in the prod. env.
    Meanwhile, we always get this kind of error, as it seems that oc4j is not generating EJB wrapper correctly:
    GestionApplicationSBHome_StatelessSessionHomeWrapper120 was not an instance of interface sertir.portail.gap.GestionApplicationSBHome, the interface it implements is sertir.portail.gap.GestionApplicationSBHome
    at java.lang.Throwable.fillInStackTrace(Native Method)
    AND
    java.lang.ClassCastException: ApplicationEBHome_EntityHomeWrapper14 was not an instance of interface sertir.portail.gap.ApplicationEBHome, the interfaces it implements are sertir.portail.gap.ApplicationEBHome, com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].util.ExternalComparator, com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.ejb.EntityContainer
    and other errors doing that with almost all EJBs.
    My question is, is there a special switch in the deploy command to force the compilation of the EAR file?
    Any help would be appreciated...
    Thanks!

    These are set of jar files that are placed in WEB-INF/lib folder
    jsf-api.jar
    commons-net-1.4.1.jar
    itext-1.4.2.jar
    javax.servlet_1.0.0.0_2-5.jar
    log4j-1.2.8.jar
    lucene-core-2.0.0.jar
    ojdbc5.jar
    ojdl.jar
    ojdl2.jar
    orai18n-lcsd.jar
    trinidad-api.jar
    I think adf-faces-impl.jar is doesn't require for my application because we have migrated our application from ADF Faces to Trinidad.
    Thanks
    Sukumar

  • Problem with Update method in Applet..............

    Hi,
    i have a textfield and Button in my Applet. Applet is running locally. if i typed my directory in the textfield and press the reterive button means Applet has to display all the images in that paticular directory. Actually in the button's action performed method i am storing all the file names in the string array. Then i am going through the loop and trying to display the images side by side by increasing X co-ordinate value in the drawImage. But what is happening is, it is displaying last image only not all the images. ie repaint is not calling my update method for each time. it is calling at the end of loop only.
    In the paint method i am calling super.paint(Graphics g). the simillar way do i need to call the update method
    can you give me some idea
    the code is
    public void init() {
    try {
    image = getImage(new URL("file:///c:/Nainar/logo.jpg"));
    catch (Exception e) {
    e.printStackTrace();
    public void paint(Graphics g) {
    update(g);
    public void update(Graphics g) {
    g.drawImage(image,startX,startY,this);
    super.paint(g);
    void jButton1_actionPerformed(ActionEvent e) {
    String location = textFieldControl2.getText();
    if( location != null) {
    File filePath = new File(location);
    if( filePath.isDirectory()) {
    String fileList[] = filePath.list();
    imageFileName = new String[fileList.length];
    for( int i = 0; i < fileList.length; i++) {
    if( fileList.endsWith(".jpg")) {
    try {
    imageFileName[i] = location+"/"+fileList[i];
    image = getImage(new URL("file:///"+location+"/"+fileList[i])).getScaledInstance(100,100,Image.SCALE_DEFAULT);
    startX += 50;
    System.out.println("File Name : "+imageFileName[i]);
    // i guess problem i here repaint is not calling my update method evry time
    repaint();
    }catch(MalformedURLException murle) {
    System.out.println(murle.toString());
    Thanks in advance
    null

    Learn about the distinction between a data model and its visualisation, and maybe MVC. Then realize that the painted stuff on the canvas is no usable data model and can't be modified after it was painted but needs to be redrawn completely. Then start again.

  • Problem with update method

    import java.awt.*;
    import java.applet.Applet;
    public class graphplotter extends Applet
    public void init()
    repaint();
    public void update(Graphics g)
    g.drawRect(0,100,100,100);
    g.drawLine(50,100,50,200);
    g.drawLine(0,150,200,150);
    this code above does not draw the rectangle and line
    automatically when the applet loads.
    how to rectify this.

    i used the update method because i wanted to add new images to the existsing background image.if i use the paint method the even the existing backgroung image again has to be painted again.

  • Deploying Applications with SCCM 2012 R2 to Server 2008 R2 RDS servers

    I'm having some trouble finding some concrete information from Microsoft regarding the deployment of applications to RDS servers using SCCM 2012 R2. There seems to be a lot of conjecture, old information and old wives tales floating around and I was hoping
    I could get some information confirmed!
    1. MSI installs automatically switch to install mode on RDS servers? 
    I've seen this mentioned a few times. I've also seen it mentioned that it is only true when running the MSI from the console session manually (i.e clicking the MSI file) not running as SYSTEM as SCCM would usually do. Can someone confirm if they do this
    themselves or not?
    2. Users still logged in when deploying applications? 
    Is it possible to deploy an application while users are still logged in? Is this only related to going into 'install' mode and taking the chance that a user will do something that will cause issues? Or is it known to cause issues?
    I guess those are the main ones, I'm experienced in SCCM but not with deploying to RDS servers, I cant seem to find any straight answers!
    Anyway, thanks in advance!

    I've never had large enough RDS environment to use SCCM for app push, but from my experience in managing 2012/R2 RDS and local installs, I never bother with switching to install mode anymore and it works fine.  Now if you're skeptical, you can
    easily build this into a script that runs as a pre-req to your .MSI as part of the software package in SCCM so it's not a big deal.
    As for installing apps while users are logged in, shouldn't be a problem if you're installing a new app., if however you're updating an existing application or uninstalling it, then it may be best to drain that RDS host first of all user sessions then do
    the work just to be safe.  this also helps avoid reboots.

  • Error while deploying application with TablePopinToggleCell UI element

    Hi
    I am using NWDS 7.0 and have developed an application with a Table that uses TablePopinToggleCell. When I deploy this on a server (NW2004s), it gives me the following error:
    java.lang.NoClassDefFoundError: com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDTablePopinToggleCell
    I am able to deploy the application without the UI element: TablePopinToggleCell
    I understand that the class files are not available in the server. How do I fix this problem?
    If I should add the required files in the server, where should I add them?
    Thanks
    Manoj

    Hi Manoj,
    I have tried doing something like this.
    If you want to try this out running on a NW2004s.You need to first download the entire project from perforce branch (
    tc\webdynpro\clientserver)for NWDS 7.0 and then build the project locally in your java perspective.
    During the local build of the project.It will also point out the dependent projects required by this project(clientserevr).
    Once the project is build.
    Create seperate external jars of the clientserver project and its dependent projects and save them locally.
    Open your SDM manager,pick up this jar file from there and deploy it.
    Once the deployment is over, the server is ready to run the application you created.
    But this make your NWDS2004s to behave jus like NWDS7.0 .
    Just a small suggestion ,instead of going through this tedious process you can shift to NWDS7.0 itself.
    regards
    aarthi mathivanan

  • Error deploying application with security polices: ORA-00904

    Hi all,
    I am using Jdeveloper 11.1.1.0 and I am trying to deploy an ADF application with secure polices on WebLogic Server 10.3.1
    I have deployed the application to an EAR file and I have installed it using the weblogic console, after having defined the JDBC connection.
    Have I anything to do for implementing the security polices? Miss anything?
    Because when I launch the application from Jdeveloper I have no errors, while when I try to go to the URL where I have deployed the application, after loggin in, I have this error:
    Caused by: java.sql.SQLSyntaxErrorException: ORA-00904: "myEntityObject"."myField": invalid identifier
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:91)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:791)
    at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:866)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1187)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3430)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
    at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:128)
    at oracle.jbo.server.ViewObjectImpl.getQueryHitCount(ViewObjectImpl.java:3915)
    ... 91 more
    ## Detail 0 ##
    java.sql.SQLSyntaxErrorException: ORA-00904: "TICKETEO"."ID_CATEGORIA_APERTURA": identificativo non valido
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:91)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:791)
    at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:866)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1187)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3430)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
    at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:128)
    at oracle.jbo.server.ViewObjectImpl.getQueryHitCount(ViewObjectImpl.java:3915)
    at oracle.jbo.server.ViewObjectImpl.getQueryHitCount(ViewObjectImpl.java:3867)
    at oracle.jbo.server.QueryCollection.getEstimatedRowCount(QueryCollection.java:3517)
    at oracle.jbo.server.ViewRowSetImpl.getEstimatedRowCount(ViewRowSetImpl.java:2318)
    at oracle.jbo.server.ViewObjectImpl.getEstimatedRowCount(ViewObjectImpl.java:8782)
    at oracle.adf.model.bc4j.DCJboDataControl.estimateRowCount(DCJboDataControl.java:1551)
    thanks
    Andry
    Edited by: user10799119 on 4-set-2009 3.50

    Hi,
    sincerly now I don't remember what was the problem, but it seems to me the solution was in one of these four settings:
    1) check Admin Server when I create the JDBC connection.
    2) before deploying the application to an EAR file, you don't forget to uncheck Auto-generate and synchronize weblogic-jdbc.xml Descriptors during deployment in Application properties --> deployment
    3) in your application module --> configuration change the connection type from jdbc URL to JDBC DataSource
    4) at the end of your URL of the deployed application don't insert the ".jspx" after your page name
    Hope this helps
    Regards

  • Not able to deploy application with fast-swap enabled - weblogic 10.3

    Hi ,
    When i am trying to deploy my exploded directory by adding      
    <fast-swap>
    <enabled>true</enabled>
    </fast-swap>
    to weblogic.xml , i am getting following error
    ClassLoader [com.bea.wls.redef.RedefiningClassLoader] does NOT provide an 'addTransformer(ClassFileTransformer)' method. Specify a custom LoadTimeWeaver or start your Java virtual machine with Spring's agent
    if remove fast-swap from my weblogic.xml it deploying successfully.

    Full stack trace
    <Apr 27, 2013 10:09:52 PM EDT> <Warning> <HTTP> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.weaving.AspectJWeavingEnabler#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loadTimeWeaver': Initialization of bean failed; nested exception is java.lang.IllegalStateException: ClassLoader [com.bea.wls.redef.RedefiningClassLoader] does NOT provide an 'addTransformer(ClassFileTransformer)' method. Specify a custom LoadTimeWeaver or start your Java virtual machine with Spring's agent: -javaagent:spring-agent.jar.
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.weaving.AspectJWeavingEnabler#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loadTimeWeaver': Initialization of bean failed; nested exception is java.lang.IllegalStateException: ClassLoader [com.bea.wls.redef.RedefiningClassLoader] does NOT provide an 'addTransformer(ClassFileTransformer)' method. Specify a custom LoadTimeWeaver or start your Java virtual machine with Spring's agent: -javaagent:spring-agent.jar
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
         Truncated. see log file for complete stacktrace
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loadTimeWeaver': Initialization of bean failed; nested exception is java.lang.IllegalStateException: ClassLoader [com.bea.wls.redef.RedefiningClassLoader] does NOT provide an 'addTransformer(ClassFileTransformer)' method. Specify a custom LoadTimeWeaver or start your Java virtual machine with Spring's agent: -javaagent:spring-agent.jar
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
         Truncated. see log file for complete stacktrace
    java.lang.IllegalStateException: ClassLoader [com.bea.wls.redef.RedefiningClassLoader] does NOT provide an 'addTransformer(ClassFileTransformer)' method. Specify a custom LoadTimeWeaver or start your Java virtual machine with Spring's agent: -javaagent:spring-agent.jar
         at org.springframework.context.weaving.DefaultContextLoadTimeWeaver.setBeanClassLoader(DefaultContextLoadTimeWeaver.java:82)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1322)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
         at java.security.AccessController.doPrivileged(Native Method)
         Truncated. see log file for complete stacktrace
    >
    <Apr 27, 2013 10:09:52 PM EDT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1367114948992' for task '11'. Error is: 'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1373)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
         Truncated. see log file for complete stacktrace
    java.lang.IllegalStateException: ClassLoader [com.bea.wls.redef.RedefiningClassLoader] does NOT provide an 'addTransformer(ClassFileTransformer)' method. Specify a custom LoadTimeWeaver or start your Java virtual machine with Spring's agent: -javaagent:spring-agent.jar
         at org.springframework.context.weaving.DefaultContextLoadTimeWeaver.setBeanClassLoader(DefaultContextLoadTimeWeaver.java:82)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1322)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
         at java.security.AccessController.doPrivileged(Native Method)
         Truncated. see log file for complete stacktrace
    >
    <Apr 27, 2013 10:09:52 PM EDT> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 1 task for the application 'PDC_1306'.>
    <Apr 27, 2013 10:09:52 PM EDT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'PDC_1306'.>
    <Apr 27, 2013 10:09:52 PM EDT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException:
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1373)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
         Truncated. see log file for complete stacktrace
    java.lang.IllegalStateException: ClassLoader [com.bea.wls.redef.RedefiningClassLoader] does NOT provide an 'addTransformer(ClassFileTransformer)' method. Specify a custom LoadTimeWeaver or start your Java virtual machine with Spring's agent: -javaagent:spring-agent.jar
         at org.springframework.context.weaving.DefaultContextLoadTimeWeaver.setBeanClassLoader(DefaultContextLoadTimeWeaver.java:82)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1322)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
         at java.security.AccessController.doPrivileged(Native Method)
         Truncated. see log file for complete stacktrace

  • Deploying application with several web modules having the same context root

    Hi,
    I would like to be able to deploy an application in Weblogic 12c having one ejb module and several web modules with the same context root. Even though the web modules have the same context root, each of them is deployed to a different virtual host.
    Weblogic allows deploying the modules this way as long as their targets are different (i.e. each having a distinct virtual host). However this works only when I don't select a target for the .ear:
    Component Type Current Targets
    application.ear Enterprise Application (None specified)
    application.jar EJB AdminServer
    web1.war WEBAPP virtualHost1
    web2.war WEBAPP virtualHost2
    However if I select as target for the .ear to be AdminServer, the deployment doesn't work anymore, complaining that the context roots are in conflict.
    If I remove web2.war from the .ear and deploy the .ear and .jar to AdminServer and web1.war to virtualHost1, the deployment works but the strange thing is that the web application can be accessed also through the AdminServer's main network channel, even though I would expect that it should be accessible only through virtualHost1 network channel. I believe this is the reason why there are context root conflicts when specifying a target for the .ear, because both wars are made accessible to the main network channel.
    The reason why I want to keep the wars inside the same .ear is because I want to make them access the application's local EJBs (since as far as I know it's not possible to access a local EJB outside the application even if they belong to the same VM).
    Is there a way to deploy the web modules only to the virtual hosts without being targeted to the main network channel?
    Regards,
    Alexandru

    Murphy's Law: If anything can go wrong it will
    A corollary to Murphy's law: When everything fails, read the manual.
    Web application funda: Every web application must have its own context root. So, if wkfsocos is one
    web application then, wkfsocos1 is another web application -
    and hence must have its own context root.
    Hello Aman,
    If you are in E-Commerce version 4.0, then read this
    [ISA_Buildtool document |https://service.sap.com/~sapdownload/011000358700001920472003E/ISA_BuildTool_10.pdf]
    to create a copy of the application in its own context root.
    From your URL pattern I guess you are in E-Commerce version 4.0.
    If you are in E-Commerce 5.0 or above, then the
    [Extension Guide |http://service.sap.com/~sapdownload/011000358700006120622006E/]gives steps to create a copy with its own context root for use in modification.
    (See the chapter on - Creating a project specific Web Application with own context root )
    Both these links require access to SAP Service Marketplace. You can also find the
    documents through /instguides shortcut in Service Marketplace.
    Easwar Ram
    http://www.parxlns.com

  • Problem deploying application: ClassNotFoundException

    I've deployed an application with some libraries in WEB-INF/lib directory. When I try to access it, the server responds with a ClassNotFoundException. The class is contained in my library.
    I've added the library path to the classpath of the server in server.xml file, I've declared the library in orion-application.xml and in application.xml but it seems don't work.
    Can anyone help me?
    Thanks
    Simone

    hi
    how did you solve it?

  • [b]Two Interfaces with same method signature[/b]

    Hi,
    I am having 2 interfaces which does have same method signature and
    return type. In such case a class that implements these intefaces and overide
    the method . In such case which method will execute . The method of class A or
    class B otherwise one will be ignored by the JVM and other will be executed or
    not???
    For eg,
    interface A
    public void getData();
    interface B
    public void getData();
    class InterfaceTest implements A,B
    public void getData()
    System.out.println("Inside the getData()");
    public static void main(String args[])
    InterfaceTest interTest=new InterfaceTest();
    interTest.getData(); // Which method will execute Class A or B.
    Please do provide an answer for this. I will be waiting for ur reply...
    Thanks,
    M.Ananthu

    there is but one implementation, so why bother ?
    what's more, you're talking about "class A" and "class B" when you defined A and B as interfaces
    seems blurry in your mind...

  • Errors deploying applications with WLE5.1

    Hello, i'm deploying many applications on Wle5.1; i mail two applications which give me problems.
    The first application is CodiciSoggetto
    i've problem with the boot of the application ( entity bean )because there is a cmp field (id) in the ejb-jar.xml which owns to Primary key class , but not to Bean class. This application works fine in WebLogicServer5.1; have i to change the source code? How can i tell it that this field owns to primary key class? perhaps with the tag >primary-key-field>?
    This is the log:
    120101.dcsv01!BBL.11193: 10-11-2000: TUXEDO Version 6.5forWLE5.1
    120101.dcsv01!BBL.11193: LIBTUX_CAT:262: INFO: Standard main starting
    120101.dcsv01!TMSYSEVT.11194: 10-11-2000: TUXEDO Version 6.5forWLE5.1
    120101.dcsv01!TMSYSEVT.11194: LIBTUX_CAT:262: INFO: Standard main starting
    120102.dcsv01!TMFFNAME.11195: 10-11-2000: TUXEDO Version 6.5forWLE5.1
    120102.dcsv01!TMFFNAME.11195: LIBTUX_CAT:262: INFO: Standard main starting
    120102.dcsv01!TMFFNAME.11196: 10-11-2000: TUXEDO Version 6.5forWLE5.1
    120102.dcsv01!TMFFNAME.11196: LIBTUX_CAT:262: INFO: Standard main starting
    120103.dcsv01!TMFFNAME.11197: 10-11-2000: TUXEDO Version 6.5forWLE5.1
    120103.dcsv01!TMFFNAME.11197: LIBTUX_CAT:262: INFO: Standard main starting
    120103.dcsv01!JavaServer.11198: 10-11-2000: TUXEDO Version 6.5forWLE5.1
    120103.dcsv01!JavaServer.11198: LIBTUX_CAT:262: INFO: Standard main starting
    120103.dcsv01!JavaServer.11198: IJINFRA_CAT:2: INFO: Starting JVM
    120103.dcsv01!JavaServer.11198: IJINFRA_CAT:318: INFO: Static jar management in effect
    120105.dcsv01!JavaServer.11198: main: IJENGINE_CAT:11: INFO: Threading level is Single-Threaded (level 0)
    120106.dcsv01!JavaServer.11198: main: JTA_CAT:20: INFO: ConnectionPoolDataSource created for JDBC driver: oracle.jdbc.driver.OracleDriver
    120106.dcsv01!JavaServer.11198: main: JDBC_CAT:4: INFO: Driver: oracle.jdbc.driver.OracleDriver loaded
    120107.dcsv01!JavaServer.11198: main: JDBC_CAT:5: INFO: New JDBC connection created by driver: oracle.jdbc.driver.OracleDriver
    120107.dcsv01!JavaServer.11198: main: JTA_CAT:19: INFO: 1 JDBC connection(s) created for JDBC connection pool: clientPool
    120108.dcsv01!JavaServer.11198: main: INFO: Considering EJB Cache capacity (MAXEJBCACHE) from TMIB. Ignoring Java property com.beasys.ejb.cache. Capacity=10
    120108.dcsv01!JavaServer.11198: main: INFO: Ignoring EJB Cache flush time (EJBCACHE_FLUSH) from TMIB. Ignoring Java property com.beasys.ejb.cache.flushTime. Cach FlushTime=0
    120111.dcsv01!JavaServer.11198: main: EJB_CAT:28: ERROR: While deploying bean it.sella.anagrafe.codicisoggetto.CodiciSoggettoEJB :
    java.lang.NoSuchFieldException: id
    120111.dcsv01!JavaServer.11198: main: EJB_CAT:28: ERROR: While deploying bean it.sella.anagrafe.codicisoggetto.CodiciSoggettoEJB : The EJB Container received weblogic.ejb.common.DeploymentException: EJB_CAT:28: ERROR: While deploying bean it.sella.anagrafe.codicisoggetto.CodiciSoggettoEJB :
    java.lang.NoSuchFieldException: id while setting container managed persistence.
    120111.dcsv01!JavaServer.11198: main: EJB_CAT:29: ERROR: While deploying jar oggetto/ejb_codicisoggetto.jar : Problem advertising beans to ISM: EJB_CAT:28: ERROR: While deploying bean it.sella.anagrafe.codicisoggetto.CodiciSoggettoEJB : The EJB Container received weblogic.ejb.common.DeploymentException: EJB_CAT:28: ERROR: While deploying bean it.sella.anagrafe.codicisoggetto.CodiciSoggettoEJB :
    java.lang.NoSuchFieldException: id while setting container managed persistence.
    This is the ejb-jar.xml;
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
    <ejb-jar>
    <enterprise-beans>
    <entity>
         <ejb-name>it.sella.anagrafe.codicisoggetto.CodiciSoggettoEJB</ejb-name>
         <home>it.sella.anagrafe.codicisoggetto.CodiciSoggettoHome</home>
         <remote>it.sella.anagrafe.codicisoggetto.CodiciSoggetto</remote>
         <ejb-class>it.sella.anagrafe.codicisoggetto.CodiciSoggettoBean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>it.sella.ejb.DefaultPK</prim-key-class>
         <reentrant>True</reentrant>
    <primkey-field>id</primkey-field>
         <cmp-field>
         <field-name>id</field-name>
         </cmp-field>
         <cmp-field>
         <field-name>soggettoId</field-name>
         </cmp-field>
         <cmp-field>
         <field-name>compatibleInstanceId</field-name>
         </cmp-field>
         <cmp-field>
         <field-name>compatibleTypeId</field-name>
         </cmp-field>     
         <cmp-field>
         <field-name>value</field-name>
         </cmp-field>
    <cmp-field>
    <field-name>rightPk</field-name>
    </cmp-field>
         <env-entry>
              <env-entry-name>counterHomeName</env-entry-name>
              <env-entry-type>java.lang.String</env-entry-type>
              <env-entry-value>it.sella.counter.CounterHome</env-entry-value>
         </env-entry>
         <resource-ref>
              <res-ref-name>jdbc/clientPool</res-ref-name>
         <res-type>javax.sql.DataSource</res-type>
         <res-auth>Container</res-auth>
         </resource-ref>
    </entity>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
         <method>
         <ejb-name>it.sella.anagrafe.codicisoggetto.CodiciSoggettoEJB</ejb-name>
         <method-intf>Remote</method-intf>
         <method-name>*</method-name>
         </method>
         <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    This is the weblogic-ejb-extensions.xml:
    <!DOCTYPE weblogic-ejb-extensions SYSTEM "weblogic-ejb-extensions.dtd" >
    <weblogic-ejb-extensions>
    <weblogic-enterprise-bean>
    <ejb-name>it.sella.anagrafe.codicisoggetto.CodiciSoggettoEJB</ejb-name>
    <weblogic-deployment-params>
    <max-beans-in-free-pool>20</max-beans-in-free-pool>
    <max-beans-in-cache>1000</max-beans-in-cache>
    <!--<idle-timeout-seconds>5</idle-timeout-seconds>-->
    <!-- JNDI name that is associated with this EJB;used for lookup -->
    <jndi-name>it.sella.anagrafe.codicisoggetto.CodiciSoggettoHome</jndi-name>
    <!-- This is CMP EJB. Specify persistence information -->
    <persistence-store-descriptor>
    <is-modified-method-name>isModified</is-modified-method-name>
         <!--<delay-updates-until-end-of-tx>false</delay-updates-until-end-of-tx>-->
    <!--<db-is-shared>false</db-is-shared>-->
    <persistence-store-jdbc>
    <!-- Pool name is looked up by the EJB source -->
    <pool-name>jdbc/clientPool</pool-name>
    <!-- *** DATABASE INFORMATION SPECIFIC TO INSTALLATION SITE *** -->
    <user>ssil</user>
    <!-- Default password URL is for Oracle 8i-->
    <password>ssil</password>
    <!-- Default driver URL is for Oracle 8i,
    and default instance Beq-Local is used
    -->
    <driver-url>jdbc:oracle:thin:@171.97.1.5:1521:th2o</driver-url>
    <table-name>AN_TR_CODICISOGGETTO</table-name>
    <!-- Default user URL is for Oracle 8i-->
    <!-- CMP Fields and database table column mapping-->
    <attribute-map>
    <attribute-map-entry>
    <bean-field-name>id</bean-field-name>
    <table-column-name>CS_CODICIFISCALI_ID</table-column-name>
    </attribute-map-entry>
    <attribute-map-entry>
    <bean-field-name>soggettoId</bean-field-name>
    <table-column-name>cs_soggetto_id</table-column-name>
    </attribute-map-entry>
    <attribute-map-entry>
    <bean-field-name>compatibleInstanceId</bean-field-name>
    <table-column-name>cs_compatible_instance_id</table-column-name>
    </attribute-map-entry>
    <attribute-map-entry>
    <bean-field-name>compatibleTypeId</bean-field-name>
    <table-column-name>cs_compatible_type_id</table-column-name>
    </attribute-map-entry>
    <attribute-map-entry>
    <bean-field-name>value</bean-field-name>
    <table-column-name>cs_value</table-column-name>
    </attribute-map-entry>
    <attribute-map-entry>
    <bean-field-name>rightPk</bean-field-name>
    <table-column-name>CS_RIGHT_PK</table-column-name>
    </attribute-map-entry>
    </attribute-map>
    <!-- Finder Specifications -->
    <finder-descriptor>
    <description>
    Find method to get accounts with balance over the parameter.
    </description>
    <method>
    <ejb-name>
    it.sella.anagrafe.codicisoggetto.CodiciSoggettoEJB
    </ejb-name>
    <method-name>
    findBySoggettoId(Long long1)
    </method-name>
    </method>
    <query-grammar>
    (= soggettoId $long1)
    </query-grammar>
    </finder-descriptor>
    </persistence-store-jdbc>
    </persistence-store-descriptor>
    </weblogic-deployment-params>
    </weblogic-enterprise-bean>
    </weblogic-ejb-extensions>
    This is the bean class:
    package it.sella.anagrafe.codicisoggetto;
    import it.sella.ejb.EntityBeanAdapter;
    import java.util.ResourceBundle;
    public class CodiciSoggettoBean extends EntityBeanAdapter
    public Long soggettoId;
    public Long compatibleInstanceId;
    public Long compatibleTypeId;
    public Long rightPk;
    private Long codiciFisicaliId;
    public String value;
    private static ResourceBundle res;
    private static final String JNDI_FACTORY;
    private static final String WL_HOST_URL;
    public CodiciSoggettoBean()
    protected Long getCounterInitVal()
    return new Long(1000L);
    public Long getInstanceId()
    return compatibleInstanceId;
    public Long getRightPk()
    return rightPk;
    public Long getSoggettoId()
    return soggettoId;
    public Long getTypeId()
    return compatibleTypeId;
    public String getValue()
    return value;
    public void setInstanceId(Long long1)
    compatibleInstanceId = long1;
    setModified(true);
    public void setRightPk(Long long1)
    rightPk = long1;
    setModified(true);
    public void setSoggettoId(Long long1)
    soggettoId = long1;
    setModified(true);
    public void setTypeId(Long long1)
    compatibleTypeId = long1;
    setModified(true);
    public void setValue(String s)
    value = s;
    setModified(true);
    static
    res = ResourceBundle.getBundle("EJBFrameWorkLogRes");
    JNDI_FACTORY = res.getString("WLInitialContexFactoryNameForJNDI");
    WL_HOST_URL = res.getString("WLServerHostURL");
    This is the primary key class:
    package it.sella.ejb;
    // Referenced classes of package it.sella.ejb:
    // IPrimaryKey
    public class DefaultPK
    implements IPrimaryKey
    public Long id;
    public DefaultPK()
    public DefaultPK(Long id)
    setId(id);
    public Long getId()
    return id;
    protected void setId(Long id)
    this.id = id;
    public String toString()
    return "Id=" + getId();
    public int hashCode()
    return getId() == null ? 0 : getId().hashCode();
    public boolean equals(Object obj)
    if(obj != null && (obj instanceof DefaultPK))
    return getId() != null && getId().equals(((DefaultPK)obj).getId());
    else
    return false;
    This is the log to the second application ( not to the boot but with java weblogic.ejbc ... ejb-jar.xml..)
    /wle2/wle/components/Dispatcher/it/sella/dispatch/TopicListenerPSJDBC.java:605: Duplicate method declaration:
    java.lang.Object findByPrimaryKey(it.sella.dispatch.TopicListenerPK)
    public java.lang.Object findByPrimaryKey(it.sella.dispatch.TopicListenerPK topiclistenerpk)
    ^
    1 error
    Exec failed .. exiting
    This is the ejb-jar.xml:
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
    <ejb-jar>
    <small-icon>it/sella/dispatch/postman-small.gif</small-icon>
    <large-icon>it/sella/dispatch/postman.gif</large-icon>
    <enterprise-beans>
    <session>
         <display-name>Topic Manager Bean</display-name>
         <small-icon></small-icon>
         <large-icon></large-icon>
         <ejb-name>it.sella.dispatch.TopicManager</ejb-name>
         <home>it.sella.dispatch.TopicManagerHome</home>
         <remote>it.sella.dispatch.TopicManager</remote>
         <ejb-class>it.sella.dispatch.TopicManagerBean</ejb-class>
         <session-type>Stateless</session-type>
         <transaction-type>Container</transaction-type>
         <env-entry>
         <description>Select statement for JDBC based topic finder method</description>
         <env-entry-name>SelectStatement</env-entry-name>
         <env-entry-type>java.lang.String</env-entry-type>
         <env-entry-value>select distinct topicname from tbltopics</env-entry-value>
         </env-entry>
         <env-entry>
         <description>The name of the field to select from</description>
         <env-entry-name>TopicFieldName</env-entry-name>
         <env-entry-type>java.lang.String</env-entry-type>
         <env-entry-value>TOPICNAME</env-entry-value>
         </env-entry>
         <env-entry>
         <description>The password for oracle DB Connection</description>
         <env-entry-name>Password</env-entry-name>
         <env-entry-type>java.lang.String</env-entry-type>
         <env-entry-value>ssil</env-entry-value>
         </env-entry>
         <env-entry>
         <description>The Driver class name for the Oracle DB</description>
         <env-entry-name>JDBCDriver</env-entry-name>
         <env-entry-type>java.lang.String</env-entry-type>
         <env-entry-value>oracle.jdbc.driver.OracleDriver</env-entry-value>
         </env-entry>
         <env-entry>
         <description>The driver URL for the database</description>
         <env-entry-name>JDBCURL</env-entry-name>
         <env-entry-type>java.lang.String</env-entry-type>
         <env-entry-value>jdbc:oracle:thin:@171.97.1.5:1521:th2o</env-entry-value>
         </env-entry>
         <env-entry>
         <description>The user name used to connect to the Oracle DB</description>
         <env-entry-name>UserName</env-entry-name>
         <env-entry-type>java.lang.String</env-entry-type>
         <env-entry-value>ssil</env-entry-value>
         </env-entry>
    </session>
    <session>
         <display-name>Dispatcher Bean</display-name>
         <small-icon></small-icon>
         <large-icon></large-icon>
         <ejb-name>it.sella.dispatch.Dispatcher</ejb-name>
         <home>it.sella.dispatch.DispatcherHome</home>
         <remote>it.sella.dispatch.Dispatcher</remote>
         <ejb-class>it.sella.dispatch.DispatcherBean</ejb-class>
         <session-type>Stateless</session-type>
         <transaction-type>Container</transaction-type>
    </session>
    <entity>
         <display-name>Topic Listener Bean</display-name>
         <ejb-name>it.sella.dispatch.TopicListener</ejb-name>
         <home>it.sella.dispatch.TopicListenerHome</home>
         <remote>it.sella.dispatch.TopicListener</remote>
         <ejb-class>it.sella.dispatch.TopicListenerBean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>it.sella.dispatch.TopicListenerPK</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-field>
         <field-name>strtopic</field-name>
         </cmp-field>
         <cmp-field>
         <field-name>strjndi</field-name>
         </cmp-field>
    </entity>
    </enterprise-beans>
    <assembly-descriptor>
    <security-role>
         <role-name>system</role-name>
    </security-role>
    <security-role>
         <role-name>guest</role-name>
    </security-role>
    <method-permission>
         <description></description>
         <role-name>system</role-name>
         <role-name>guest</role-name>
         <!--<method>
         <ejb-name>it.sella.dispatch.TopicListener</ejb-name>
         <method-intf>Remote</method-intf>
         <method-name>*</method-name>
         </method>
         <method>
         <ejb-name>it.sella.dispatch.Dispatcher</ejb-name>
         <method-intf>Remote</method-intf>
         <method-name>*</method-name>
         </method>
         <method>
         <ejb-name>it.sella.dispatch.TopicManager</ejb-name>
         <method-intf>Remote</method-intf>
         <method-name>*</method-name>
         </method>-->
    </method-permission>
    <container-transaction>
         <method>
         <ejb-name>it.sella.dispatch.TopicListener</ejb-name>
         <method-intf>Remote</method-intf>
         <method-name>*</method-name>
         </method>
         <method>
         <ejb-name>it.sella.dispatch.Dispatcher</ejb-name>
         <method-intf>Remote</method-intf>
         <method-name>*</method-name>
         </method>
         <method>
         <ejb-name>it.sella.dispatch.TopicManager</ejb-name>
         <method-intf>Remote</method-intf>
         <method-name>*</method-name>
         </method>
         <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    This is the weblogic-ejb-extensions.xml:
    <!DOCTYPE weblogic-ejb-extensions SYSTEM "weblogic-ejb-extensions.dtd" >
    <weblogic-ejb-extensions>
    <weblogic-enterprise-bean>
    <ejb-name>it.sella.dispatch.TopicManager</ejb-name>
    <weblogic-deployment-params>
    <jndi-name>it.sella.dispatch.TopicManager</jndi-name>
    </weblogic-deployment-params>
    </weblogic-enterprise-bean>
    <weblogic-enterprise-bean>
    <ejb-name>it.sella.dispatch.Dispatcher</ejb-name>
    <weblogic-deployment-params>     
    <jndi-name>it.sella.dispatch.Dispatcher</jndi-name>
    </weblogic-deployment-params>
    </weblogic-enterprise-bean>
    <weblogic-enterprise-bean>
    <ejb-name>it.sella.dispatch.TopicListener</ejb-name>
    <weblogic-deployment-params>
    <jndi-name>it.sella.dispatch.TopicListener</jndi-name>
    <persistence-store-descriptor>
    <!--<is-modified-method-name>isModified</is-modified-method-name> -->
    <persistence-store-jdbc>
    <pool-name>jdbc/oraclePool</pool-name>
    <user>ssil</user>
    <password>ssil</password>
    <driver-url>jdbc:oracle:thin:@171.97.1.5:1521:th2o</driver-url>
    <table-name>TBLTOPICS</table-name>
    <attribute-map>
    <attribute-map-entry>
    <bean-field-name>strtopic</bean-field-name>
    <table-column-name>topicname</table-column-name>
    </attribute-map-entry>
    <attribute-map-entry>
    <bean-field-name>strjndi</bean-field-name>
    <table-column-name>jndiname</table-column-name>
    </attribute-map-entry>
    </attribute-map>
    <finder-descriptor>
    <method>
    <ejb-name>
    it.sella.dispatch.TopicListener
    </ejb-name>
    <method-name>
    findByTopic(String s)
    </method-name>
    </method>
    <query-grammar> (= strtopic $s)</query-grammar>
    </finder-descriptor>
    <finder-descriptor>
    <method>
    <ejb-name>
    it.sella.dispatch.TopicListener
    </ejb-name>
    <method-name>findByPrimaryKey(it.sella.dispatch.TopicListenerPK topiclistenerpk)</method-name>
    </method>
    <query-grammar> (& (= strtopic topiclistenerpk.strtopic) (= strjndi topiclistenerpk.strjndi))</query-grammar>
    </persistence-store-jdbc>
    </persistence-store-descriptor>
    </weblogic-deployment-params>
    </weblogic-enterprise-bean>
    </weblogic-ejb-extensions>
    This is the primary key class:
    // FrontEnd Plus for JAD
    // DeCompiled : TopicListenerPK.class
    package it.sella.dispatch;
    import java.io.Serializable;
    import java.util.Random;
    public class TopicListenerPK
    implements Serializable
    public String strtopic;
    public String strjndi;
    public int hashCode()
    return strtopic.hashCode() ^ strjndi.hashCode();
    public boolean equals(Object obj)
    return (obj instanceof TopicListenerPK) && (strtopic == null && ((TopicListenerPK)obj).strtopic == null || strtopic.equals(((TopicListenerPK)obj).strtopic)) && (strjndi == null && ((TopicListenerPK)obj).strjndi == null || strjndi.equals(((TopicListenerPK)obj).strjndi));
    public TopicListenerPK()
    strtopic = (new Random()).toString();
    strjndi = (new Random()).toString();
    public TopicListenerPK(String s, String s1)
    strtopic = s;
    strjndi = s1;
    This is the home interface:
    package it.sella.dispatch;
    import java.rmi.RemoteException;
    import java.util.Enumeration;
    import javax.ejb.*;
    // Referenced classes of package it.sella.dispatch:
    // TopicListener, TopicListenerPK
    public interface TopicListenerHome
    extends EJBHome
    public abstract TopicListener create(String s, String s1)
    throws RemoteException, CreateException;
    public abstract TopicListener findByPrimaryKey(TopicListenerPK topiclistenerpk)
    throws RemoteException, FinderException;
    public abstract Enumeration findByTopic(String s)
    throws RemoteException, FinderException;
    I hope somebody could help me.
    Thanks

    I've never had large enough RDS environment to use SCCM for app push, but from my experience in managing 2012/R2 RDS and local installs, I never bother with switching to install mode anymore and it works fine.  Now if you're skeptical, you can
    easily build this into a script that runs as a pre-req to your .MSI as part of the software package in SCCM so it's not a big deal.
    As for installing apps while users are logged in, shouldn't be a problem if you're installing a new app., if however you're updating an existing application or uninstalling it, then it may be best to drain that RDS host first of all user sessions then do
    the work just to be safe.  this also helps avoid reboots.

  • 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.

  • Deploying application with security polices on Jdeveloper 11.1.1.0

    Hi all,
    I am using Jdeveloper 11.1.1.0 and WebLogic Server 10.3.1
    I have an application that uses security polices (file jazn-data.xml) and when I launch it from Jdeveloper it works. Now I am trying to deploy it, but I have some problems.
    I have try to follow this link:
    http://www.oracle.com/technology/products/jdev/tips/muench/credmig111100/index.html
    but is not update
    I have tried to follow this:
    http://download.oracle.com/docs/cd/E12839_01/core.1111/e10043/csfadmin.htm#CACDJHGE
    but when I launch this command:
    migrateSecurityStore.py -type credStore
    -configFile jpsConfigFileLocation
    -src srcJpsContext
    -dst dstJpsContext
    I can't understand where are the file: jpsConfigFileLocation, srcJpsContext, dstJpsContext. In what folder are there?
    Are there my links correct? Or are there links or manual simpler to add security to a deploy?
    Thanks
    Edited by: user10799119 on 4-set-2009 3.52

    Hi,
    migrateSecurityStore.py -type credStore
    -configFile jpsConfigFileLocation
    -src srcJpsContext
    -dst dstJpsContext
    +[-overWrite trueOrFalse]+
    +migrateSecurityStore(type="credStore", configFile="jpsConfigFileLocation", src="srcJpsContext", dst="dstJpsContext", [overWrite="trueOrFalse"])+
    The meaning of the arguments (all required except overWrite) is as follows:
    *+
    configFile specifies the location of a configuration file jps-config.xml relative to the directory where the command is run. Typically, this configuration file is created just to be used with the command and serves no other purpose. This files contains two jps-contexts that specify the source and destination stores.
    In addition, if the migration involves one or two LDAP-based stores, then this file must contain a bootstrap jps-context that refers to the location of a cwallet.sso file where the credentials to access the LDAP based involved in the migration are kept. See second example below. For complete details, see Section 15.4.7, "Specifying Bootstrap Credentials Manually."
    *+
    src specifies the name of a jps-context in the configuration file passed to the argument configFile. This context identifies the source credential repository.
    *+
    dst specifies the name of another jps-context in the configuration file passed to the argument configFile. This context identifies the target credential repository.
    *+
    overWrite specifies whether a target credential matching a source credential should be overwritten by or merged with the source credential. Set to true to overwrite the target credential; set to false to merge matching credentials. Optional. If not specified, defaults to false. When set to false, if a matching is detected, the source credential is disregarded and a warning is logged.
    JPS config is located in <wls install dir>\user_projects\domains\base_domain\config\fmwconfig . The two context references, like srcJpsContext, reference a named area in the jps config file. I agree that the text is a bit hard to parse. So they are no files to search but entries in the file you reference in the "config" parameter
    Frank

  • Problem deploying project with External Resource Integration with jars

    Hi,
    Please help ur how we can deploy a project in Enterprise server if that is integrated to some application which needs weblogic.jar. If this jar is made vesionable then it shows a size problem. If that jar is added to Install Drivers (In the configuration screen of Server) it does not accept it and does not show error while deployment. But, the activity which is using that application is failed while execution.
    Kindly provide me help over this.
    Regards,
    Sarang

    What do you mean with a "size" problem? I've added weblogic.jar to the project (or any jar of that size) and it works fine. As rightcord mentioned, you can just put it in the classpath, but if you don't want to, you can still use it in your process.
    You just have to deploy in another way, meaning you don't have to use the exported project but you can upload it the lcoation of where the server is running and publish from there - I believe this is option 1 in the Process Administrator.
    Good luck!

Maybe you are looking for