Project dependencies & WAR deployment bug

According to the help/manual (Getting Started / About JDeveloper / About project dependencies):
This project-to-project compile-time dependency also has an impact on deploy-time behavior. The project dependency guarantees that when you deploy Project A's profile, JDeveloper will deploy everything specified in the profile for Project A, as well as the complete contents of Project B.
This seems to work fine when deploying to a jar. When deploying to a WAR however, things are different. All files from project B are included in the deployment, except the classes that are used in project A. I would rather prefer the opposite...(to put it mildly)
Is this a known bug? Maybe there's a workaround?
Cheers Hans

bump

Similar Messages

  • Project dependencies in a Workspace (10g)

    When I try to deploy something from a project, the IDE tries to compile all projects in that workspace, even if there are no dependencies between the projects. This means that I have to either remove the offending project(s) from the workspace or resolve all issues in all projects before deploying from any one of them.
    Is this by design? I don't want to have to make a workspace per project to avoid this.

    John
    Make sure that there really are no dependencies.
    In JDeveloper 10g Preview you can do a "Full Text Search" in the help on "About Project Dependencies" and you 'll see this is a "Topic Title".
    In that topic there are sections about "Project-to-Project Dependency" and "Project-to-Profile Dependency". I hope it can help you, it confused me.
    My conclusion until now : dependencies are not implemented very intuitively
    success
    -Jan

  • BPEL Build and Project Dependencies

    Hi,
    We are developing set of BPEL processes using jDeveloper 10.1.3.1
    As part of this development, we want to develop set of utility classes which will be used in one or more of the BPEL processes using java embedding. Also these utility java classes make use of libraries like Oracle content services FDK etc.
    For this we have created a project called BPELCommon and are writing the common java classes in this project and also created various project level library setting against this project. Then made the other BPEL project depend on this BPELCommon project using Project dependency settings.
    However, when we try to build and deploy the BPEL processes using the automatically generated build.xml xml, it is failing to access and compile the classes and the project library files from the BPELCommon project.
    Tried creating a pre-build.xml file which explicitly compiles the files from the BPELCommon/src folder into the BPELProcess1/output folder using libraries. It creates the classes under the BPELProcess1/output but still “bpelc” fails to access them and to bundle the project libraries into the BPEL Suitcase.
    I believe this is pretty generic requirement since anyone developing more than one bpel process would always look for some code reusability.
    Is there a way to change the build.xml to take care of project dependencies? ie to compile the java files from BPELCommon project and bundle the compiled classes along with the library jars while building the BPEL Suitcase?
    regards - rutwik

    One of the key goals doing SOA BPEL/ESB projects is creating an automated build system. Oracle SOA is not delivering this, but it gives you the tool do do so; like all the ANT stuff. So if you have your developed reusable, you must create your own build system. I wrote an article on this on my blog
    http://orasoa.blogspot.com/2006/08/using-ant-in-bpel-environment.html
    Marc

  • JDBC  + WAR deployment

    I've recently moved to JDeveloper and was quite impressed with the ability to deploy directly to a WAR file. However, I seem to have run into some trouble. When I use classes12.jar JDBC drivers in my project library and build the WAR it includes many of the JDBC classes in the WAR file. So I bring this war over to Tomcat in the usual way and my database connections don't work. I get:
    java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(DriverManager.java:537)
    Somewhat strangely if I go directly into the deployed WAR file and remove the Oracle and Javax directories from my classes folder, and then add classes12.jar to my Tomcat/lib directory then everything works fine.
    It seems as though the process of deploying to a WAR file is corrupting or omitting certain important classes.
    1) Would anyone have any idea what could cause this sort of behaviour? Is there a problem with JDevelopers WAR deployment?
    2) Also failing all else, is there a way of including the classes for compiling but not having them included in the WAR file? I tried putting oracle12.jar into the lib and lib/ext directory but it didn't seem to pick them up.
    Thanks in advance,
    Dave Molloy

    I found that if I went into my deployment settings (JDeveloper project, right click on your <>.deploy file and select "Settings..."),
    under the "WAR File" - "WEB-INF/lib" section, I could choose which libs were included in the war file.
    I didn't include classes12.
    (of course mine worked if I included it or not, so it isn't quite the same what you are experiencing.) I think it just pulled the one from <ORACLE_HOME>\jdbc\lib\. Unfortunately, it doesn't include a manifest file with a version...so you probably have to check the create date/time or the included classes to figure it out.
    Maybe your two classes12 files are for different versions, and so they are conflicting. This might explain why it works if you put the classes12 directly in your app server, but fails when it is also in the war.
    If you do include classes12 in the war file, using a manifest file may help the classloader with determining the precedence that you want.

  • File Not Found Error: new WAR deployment

    I'm trying to find the path to my new WAR deployed JSP files. The following error occurs:
    Exception:
    java.io.FileNotFoundException: d:\oracle\ora9ias_test\apache\apache\htdocs\RAP_Editor_viaWAR\RapView1_Browse.jsp
    In my address bar I type: http://(oracle_home):7778/RAP_Editor_viaWAR/RapView1_Browse.jsp
    I don't know why it is looking under the \apache\apache\htdocs directory. What configuration step have I missed? I'm having a similar problem finding the demo apps as well.
    Thanks!
    -Tony.

    Well, I've found out that my HTTP path issues we're related to the Portal SDK install. The OC4J instance "JDev" seems to mess up JSPs and results in a FileNotFound exception. Its looking for JSPs in the wrong place - http://<oracle-home>/apache/apache/htdocs/j2ee/...
    The fix: comment out the include directive in httpd.conf that references JDev.
    Another BC4J JSP issue: Be sure your datatags.jar file is current or else you'll get an HTTP 500 error due to an unsupported attribute. The application.log file will show "Error: itermode is not a property of oracle.jbo.html.jsp.datatags.DataSourceTag".
    -Tony.

  • Problem with war deployment

              hello everybody,
              i deployed the one .war file which contains 1 servlet and another 10 simple classes.i
              deployed using the console and everything shows fine.the servlet mapping everything
              seems to be perfect.but when i run the application nothing happens.i restared
              the server.
              thanks for helping.
              sada
              

              You will have to be more clear on what is happening.
              With you description, I assume that it is working fine in exploded format. There
              are couple of things that can go wrong on war deployment.
              1) Check your war file contents. Path of the contents should not include the war
              file name.
              For eg: /wstt/WEB-INF/classes/com/util/Sample.class
              if above is the fully qualified path of a class and if your war file name is wstt
              then war file should conatin the path as
              /WEB-INF/classes/com/util/Sample.class
              2) Check your Target cluster/server in your console for the war file.
              I hope this helps.
              - Albert
              "sada" <[email protected]> wrote:
              >
              >hello everybody,
              >i deployed the one .war file which contains 1 servlet and another 10
              >simple classes.i
              >deployed using the console and everything shows fine.the servlet mapping
              >everything
              >seems to be perfect.but when i run the application nothing happens.i
              >restared
              >the server.
              >
              >thanks for helping.
              >sada
              >
              

  • Project Dependencies

    Project Dependencies seem to be a lot of work at the moment especially as your unit of work becomes smaller.
    If project A is dependent to project B currently I have to set A's properties to include B and also any dependencies that B has.
    If someone creates project C and includes A now that person who knows nothing about A or B has to go back to all other subproject's and check off dependencies.
    It would seem to me that since this is stored in the properties of each project that at a minimum the list could be initially created when project C selects A to be included ???

    It isnt working that way for us in our adf-swing apps. If it is more then one deep then the designer finds it but when you run the project it dosnt find it during the load stage. So in each project we have had to make sure all dependencies are checked so the project can run correctly.

  • How to run a Servlet Project's .war from Command Line??

    Hi there,,
    Can anybody help me with how to run a Servlet Project's .war file from command line??In fact I tried it using the following command,
    java -jar TestServProj.war
    but I get the following error,,,
    Failed to load Main-Class manifest attribute
    I can't find the project''s manifest file in the META-INF folder.
    Moreover,plz help me about know how to execute a single servlet class from command line...
    Thanks in advance...

    you cant run a .war file from command prompt
    .war files should be executed in a server
    how to execute a single servlet class
    do you mean to run the servlet or compile the servlet?
    any way you need a server and if you are a beginner Apache tocat will be the best server to start with you can down load it from
    http://tomcat.apache.org/

  • Enterprise Manager menu is missing in the WAR deployment

    I installing CFMX8 and a pair of test servers. I did a
    multiserver CFMX8 install because I was having a heck of a time
    getting the WAR deployment version install (on Windows 2003 with
    JRun4).
    When I got CFMX8 finally installed via a WAR deployment, I
    noticed in the CF Admin left hand menu bar that the sub menu
    "Enterprise Manager" was missing.
    Can someone tell me what the differences are between the two
    deployments, why this menu is missing.
    Using the Multiserver installation is not a option because
    because of the way we are setting up our environment.

    The multi-server installation creates a single instance of
    coldfusion server that is the enterprise manager. It is not meant
    to be used as a server you deploy applications on. Rather it is
    meant to allow you to create and manage other server instances and
    clusters. Therefore, you see the enterprise manager menu in its
    cfadministrator. That is its expected main purpose.
    The war file deployment contains a single instance of a
    coldfusion server. There is no need for it to have an enterprise
    manager. The standard administrator allows you to manage all the
    options in a single CF8 instance.
    For jrun deployments you should create an ear file deployment
    from the cf8 installer. Then follow the instructions in the j2ee
    readme text file that is created in the same directory as the ear
    file.

  • Project Dependencies on Jdeveloper

    Hi all,
    I'm wondering what is the difference between choosing "Build Output" or any other profile File on the Project Dependencies on Jdeveloper.
    These question came to me because i tried to rename some classes from my application and only when I checked the "Build Output" option the refactor worked for all my projects on the app.
    Thanks,
    LC

    Specifying dependency indicates the project is dependent on the project to which the dependency is defined.
    +"Build Output" or any other profile File+
    Specify the file on which the project is dependent.

  • WAR Deployment Issue

    Hi All,
    The Application which is built on web services, EJB3.0, Toplinks Essential . When i deploying this application on WebLogic Application Server 10.3 everything works fine. But while Running the same application after deploying in WAR format gives some exception which i am listing below -
    "java.lang.IllegalArgumentException: Unknown entity bean class: class <name>, please verify that this class has been marked with the @Entity annotation."
    Warning-
    WARNING: Found unrecognized persistence provider "oracle.toplink.essentials.PersistenceProvider" in place of OpenJPA provider. This provider's properties will not be used.
    But i am not able to make out why i am getting this issue in case of WAR deployment.
    Looking forward to some positive response........
    Thanks.

    Well, your problem maybe that you need to separate EJBs from Web modules.
    WAR files are for Servlets, JSPs, JSFs, etc.
    EJB-JARs are for EJBs
    All should be packaged into an EAR...
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                       

  • Weblogic 6.0 sp2: War deployment not working !!

    Hi,
    I'm using weblogic 6.0 sp2, and it seems as though the war deployment is not
    working. My war consists of jsps, images, and under the WEB-INF/classes
    directory, Struts classes (i.e. Form and Action classes). When I try to run
    a jsp, i get the following error :
    <Jul 30, 2001 11:48:10 AM PDT> <Error> <HTTP>
    <[WebAppServletContext(4655498,ati
    nera)] Root cause of ServletException
    javax.servlet.jsp.JspException: Exception creating bean of class
    com.atinera.log
    in.web.LoginForm: java.lang.ClassNotFoundException:
    com.atinera.login.web.LoginF
    orm
    But if you look in the war, that class is in there.
    What gives ?
    Thanks,
    Jamie

    That's right - ActionServlet does Class.forName(actionClass) to load action
    class, and this uses ClassLoader which loaded the current class (ActionServlet)
    ClassLoaders always delegate to their parent before attempting to load
    the class themselves, so it wasn't working until you moved struts.jar to your
    WEB-INF/lib.
    BTW, Struts doc mentions this problem:
    lib/struts.jar - This JAR file contains all of the Java classes included
    in Struts. It should be copied into the WEB-INF/lib directory of your web
    application. WARNING - If you are going to be hosting multiple Struts based
    applications on the same servlet container, you will be tempted to place the
    struts.jar file into the shared repository supported by your container. Be
    advised that this will like cause you to encounter ClassNotFoundException
    problems unless all of your application classes are stored in the shared
    repository.
    Jamie Tsao <[email protected]> wrote:
    So I found the solution to this problem, but it doesn't really make sense to
    me.
    I originally had struts.jar outside of the WAR file, but in my CLASSPATH.
    Weblogic was able to load Strut's ActionServlet (controller), but when the
    ActionServlet was looking for the LoginForm (which was inside the WAR), it
    couldn't find it.
    I solved the problem by putting struts.jar inside the WAR (under
    WEB-INF/lib) instead that other directory. Now it works cause apparently
    ActionServlet is now in the same classloader as LoginForm, the classloader
    which loaded the WAR.
    I'm confused because original way should have worked since the classloader
    that loaded struts.jar from outside the war is the parent classloader for
    the classloader that loaded the WAR. did that make any sense ?
    anyone know why ?
    thanks,
    jamie
    "Jamie Tsao" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I'm using weblogic 6.0 sp2, and it seems as though the war deployment isnot
    working. My war consists of jsps, images, and under the WEB-INF/classes
    directory, Struts classes (i.e. Form and Action classes). When I try torun
    a jsp, i get the following error :
    <Jul 30, 2001 11:48:10 AM PDT> <Error> <HTTP>
    <[WebAppServletContext(4655498,ati
    nera)] Root cause of ServletException
    javax.servlet.jsp.JspException: Exception creating bean of class
    com.atinera.log
    in.web.LoginForm: java.lang.ClassNotFoundException:
    com.atinera.login.web.LoginF
    orm
    But if you look in the war, that class is in there.
    What gives ?
    Thanks,
    Jamie
    Dimitri

  • WAR deployment problem

              ok this is really confusing and annoying!!! I have a .war file (servlet + jsps
              + descriptor) packaged up in the correct way, I have checked the docs like 100
              times.. the problem is, I'm running win NT and when I create the war file I'm
              executing 'jar' on a directory structure..
              WEB-INF/classes
              WEB-INF/web.xml
              *.jsp
              But when I view the resulting .war file in winzip, I see this..
              WEB-INF/classes/all classes.....
              web-inf/web.xml
              where on earth is this lowercase web-inf coming from ??
              as a result when i deploy this war file, it deploys fine and the init() method
              of the servlet is called, however when i try to access the servlet via it's alias
              (specified in web.xml) it can't be found.
              The exact same files work when used as an exploded directory (DefaultWebApp),
              and can be accessed via the alias.
              The MS-DOS name of the directory is WEB-INF so I simply can't understand where
              the "extra" lower case
              directory web-inf is coming from........
              Am I correct in assuming the lowercase web-inf is the problem ?? I'm not 100%
              sure cos the weblogic
              console can read & edit this xml file.
              Has anyone else experienced WAR deployment on windows problems like this? I'd
              love to get my hands on a unix box but my company suffer from unix-phobia :/
              any thoughts/suggestions/solutions greatly appreciated,
              thanks,
              sd
              

    Explorer in Windows has an option to allow all upper case, for example.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              Clustering Weblogic? You're either using Coherence, or you should be!
              Download a Tangosol Coherence eval today at http://www.tangosol.com/
              "SD" <[email protected]> wrote in message
              news:[email protected]...
              >
              > I'm sorry but I don't understand what you mean by..
              >
              > >Case will mess you up. Set your explorer options so NT isn't constantly
              > >"fixing" your case.
              >
              >
              > under 'options' in windows Explorer I don't see anything
              > to with case ??
              >
              > Also - are there any war files around that I can just
              > get and install and access via their servlet-mapping just
              > as a sanity check for my weblogic installation ??
              > I can't get ANY servlet (in a war file) to be accessed via
              > it's servlet mapping. :( But these servlet mappings can
              > be seen and edited via the weblogic console.
              >
              > thanks,
              > sd
              >
              > >"SD" <[email protected]> wrote in message
              > >news:[email protected]...
              > >>
              > >> ok this is really confusing and annoying!!! I have a .war file
              (servlet
              > >+ jsps
              > >> + descriptor) packaged up in the correct way, I have checked the docs
              > >like
              > >100
              > >> times.. the problem is, I'm running win NT and when I create the war
              > >file
              > >I'm
              > >> executing 'jar' on a directory structure..
              > >>
              > >> WEB-INF/classes
              > >> WEB-INF/web.xml
              > >> *.jsp
              > >>
              > >> But when I view the resulting .war file in winzip, I see this..
              > >>
              > >> WEB-INF/classes/all classes.....
              > >> web-inf/web.xml
              > >>
              > >> where on earth is this lowercase web-inf coming from ??
              > >> as a result when i deploy this war file, it deploys fine and the init()
              > >method
              > >> of the servlet is called, however when i try to access the servlet
              > >via
              > >it's alias
              > >> (specified in web.xml) it can't be found.
              > >>
              > >> The exact same files work when used as an exploded directory
              > >(DefaultWebApp),
              > >> and can be accessed via the alias.
              > >>
              > >> The MS-DOS name of the directory is WEB-INF so I simply can't
              understand
              > >where
              > >> the "extra" lower case
              > >> directory web-inf is coming from........
              > >>
              > >> Am I correct in assuming the lowercase web-inf is the problem ?? I'm
              > >not
              > >100%
              > >> sure cos the weblogic
              > >> console can read & edit this xml file.
              > >>
              > >> Has anyone else experienced WAR deployment on windows problems like
              > >this?
              > >I'd
              > >> love to get my hands on a unix box but my company suffer from
              unix-phobia
              > >:/
              > >>
              > >> any thoughts/suggestions/solutions greatly appreciated,
              > >> thanks,
              > >> sd
              > >>
              > >
              > >
              >
              

  • Business Components Project Dependencies Problem

    Hi everyone,
    I have a workspace on 9i that has four projects. All of them use the Entity Objects contained on the first project. If i tell the other projects they depend on the first one (on Project Settings -> Project Dependencies), even so the View Objects i create cannot see the Entities created on the first project. Shouldn't it be possible to create a separate project for them? do i have to put the entire model (VO, EO, VL, AO) in one single package? is there any way to only reference the other project's EOs?
    Thanks very much in advance!
    Thiago Souza

    That's a feature in 10.1.3, you need to add them specifically to your project to access them.

  • War Deployment in OSE

    Has anybody successfully used the war deployment tool for deploying wars into the OSE. I have installed the tool along with 1.1.2.0 of OracleJSP but when I use the deploywar command in the sess_sh environment I get the following output:
    java.lang.ArrayIndexOutOfBoundsException
    Thats it, nothing else. I have checked in the database, all the classes are compiled and valid. I have tried innumerable variations to the command line with no change in the result. I re-installed everything from the ground up using OracleJSP 1.1.2.1 with the same result.
    I have successfully deployed servlets and jsp's manually so I know that part works.
    Any hints or help is greatly appreciated.
    Scott Petersen
    Senior Programmer/Analyst
    HeavyLifters.com
    null

    Thanks, John. It turns out that I didn't have a correct auxiliary descriptor. (My xml header was bad.) Once I checked that I was able to get farther. Unfortunately, now I am running into problems with the jsp converter not being able to find the tag library tld. It doesn't seem to be using the <taglib> directives in the web.xml. It also is complaining that it can't find a file that is in an embedded .jar file in the war... grumble.
    Scott Petersen
    Senior Analyst/Programmer
    HeavyLifters.com

Maybe you are looking for

  • SSRS Reporting manages goes down frequently. ERROR: The underlying connection was closed: An unexpected error occurred on a send.

    We have been experiencing issues with SSRS over the past 5 weeks, the service goes down frequently. And it comes up only on reboot of the server. We had also disabled the On Access scan in Mcafee. The service is in use for about two years, and the be

  • Problem with recharging

    I don't know if this is a serious concern at this point but I'm hoping someone could give me some indication. Originally, my iPod would be charged after 2 or 3 hours, and when I ejected it, it would take a second or two for iTunes to clear the remova

  • Vendor list T.doe-urgent

    Hi,   Does there any tcode which will give me list of Vendors with SAP codes and address ..etc.

  • Consignment Fill up order to be cancelled

    Dear Friends, My client had issues a Consignment Fill up order, and goods were sent to the Agent. But in between truck met with an accident and goods came back to the factory. In this case, where goods are not reached to the Customer as part of the c

  • HT1549 permission problem when using a sharing only account

    I'm using Mavericks 10.9.1 After setup a sharing only account, when using the account login and copy files to a remote shared folder, the remote shared folder's owner do not have permission to read it. only the sharing account has permission. what's