WL tries to deploy utility jar file in .ear as an EJB

I have an ear containing two ejb jars, one webapp war and a utility jar
(common.jar). Deploying to
WebLogic 6.1 sp2 results in deployment errors because WebLogic thinks
the common.jar in a
lib directory in the ear is an ejb jar:
==================================================================
><Apr 22, 2002 4:42:36 PM MDT> <Error> <J2EE> <Error deploying
>application lib/common:
>
>Unable to deploy EJB: lib/common.jar from lib/common.jar:
>
>An error occurred while reading the deployment descriptor. The error was:
> java.io.FileNotFoundException: META-INF/ejb-jar.xml not found in jar file
> at weblogic.ejb20.dd.xml.DDUtils.getEntry(DDUtils.java:332)
> at weblogic.ejb20.dd.xml.DDUtils.getEjbJarXml(DDUtils.java:236)
>.........
>===================================================================
Why does it think common.jar contains an EJB? My application.xml is:
>
><application>
> <display-name>TestUnit</display-name>
> <module>
> <ejb>TestUnit1.jar</ejb>
> </module>
> <module>
> <ejb>TestUnit2.jar</ejb>
> </module>
> <module>
> <web>
> <web-uri>WebApp1.war</web-uri>
> <context-root>WebApp1</context-root>
> </web>
> </module>
></application>

Hi.
Please open a case with support.
Regards,
Michael
Rick Holland wrote:
I have an ear containing two ejb jars, one webapp war and a utility jar
(common.jar). Deploying to
WebLogic 6.1 sp2 results in deployment errors because WebLogic thinks
the common.jar in a
lib directory in the ear is an ejb jar:
==================================================================
<Apr 22, 2002 4:42:36 PM MDT> <Error> <J2EE> <Error deploying
application lib/common:
Unable to deploy EJB: lib/common.jar from lib/common.jar:
An error occurred while reading the deployment descriptor. The error was:
java.io.FileNotFoundException: META-INF/ejb-jar.xml not found in jar file
at weblogic.ejb20.dd.xml.DDUtils.getEntry(DDUtils.java:332)
at weblogic.ejb20.dd.xml.DDUtils.getEjbJarXml(DDUtils.java:236)
===================================================================Why does it think common.jar contains an EJB? My application.xml is:
<application>
<display-name>TestUnit</display-name>
<module>
<ejb>TestUnit1.jar</ejb>
</module>
<module>
<ejb>TestUnit2.jar</ejb>
</module>
<module>
<web>
<web-uri>WebApp1.war</web-uri>
<context-root>WebApp1</context-root>
</web>
</module>
</application>
Michael Young
Developer Relations Engineer
BEA Support

Similar Messages

  • Error during deploying mapbuilder.jar file in oracle application server

    hi all,
    Iam trying to deploy mapbuilder.jar file in oracle 10g enterprise manager oc4j environment. It is giving an error that
    " An error occurred when processing the data submitted. Find the appropriate field and enter the correct information as noted next to each field.
    Archive Location - Failed in uploading archive. Invalid archive file: Unsupported archive type. unknown'
    i have deployed in the same way for mapviewer.ear. It was successfully deployed.
    plz any body tell me what would be the reason. I there any other way to deploying .jar file in oracle 10g enterprise manager
    thnx in advance...
    Regards,
    srinivas

    Hi Srinivas,
    There is no need to deploy MapBuilder in an Application Server. You can start it at the command line with for example:
    java -jar mapbuilder.jar -noconnect
    Joao

  • Getting ZipException trying to deploy a war file

    hi,i meet a strange question.
    Getting java.util.zip.ZipException trying to deploy a war file.
    This file is exist in application directory.
    this war file is deployed a day before and it did deploy success.
    now running weblogic6.1sp1 on windows2000 and jdk1.3.1.
    the error is:
    <Error> <Management> <IOException opening application mydomain:Name=struts-logon,Type=Application,
    loading from path .\config\mydomain\applications\struts-logon.war
    java.util.zip.ZipException: error in opening zip file

    Hi.
    Hmm. Is this happening to you with any other war file? It may be that this war file was somehow
    corrupted. Try to get a fresh build of this war and deploy that.
    Regards,
    Michael
    pamela_li wrote:
    hi,i meet a strange question.
    Getting java.util.zip.ZipException trying to deploy a war file.
    This file is exist in application directory.
    this war file is deployed a day before and it did deploy success.
    now running weblogic6.1sp1 on windows2000 and jdk1.3.1.
    the error is:
    <Error> <Management> <IOException opening application mydomain:Name=struts-logon,Type=Application,
    loading from path .\config\mydomain\applications\struts-logon.war
    java.util.zip.ZipException: error in opening zip file--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Error while deploying a JAR-File into 8i !

    Hello to all Oracle experts,
    At the attempt to deploy a Jar file into the 8i the following
    error message comes onto Shell level:
    initialization complete
    loading : com/sun/xml/tree/XmlDocumentBuilder
    ORA-01536: space quota exceeded for tablespace 'PROCON_DATA'
    Error while loading com/sun/xml/tree/XmlDocumentBuilder
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYS.DBMS_LOB", line 700
    ORA-06512: at "PROCON.LOADLOBS", line 1
    ORA-06512: at line 1
    creating : com/sun/xml/tree/XmlDocumentBuilder
    Error while creating class com/sun/xml/tree/XmlDocumentBuilder
    ORA-29509: incorrectly formed Java binary class definition
    The command was:
    loadjava -user procon/procon@t2srv1:1521:PROCON -thin -verbose -schema PROCON xml_un.jar
    It would please me if somebody has an idea to this error !
    null

    Hi Olivier,
    you could try the following approach:
    1. Package your JAR files as J2EE Engine libraries and deploy them on it as described here: <a href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/2ade3fc6c6ec06e10000000a1550b0/frameset.htm">Working with J2EE Libraries</a>.
    2. Set reference to this library from the application that use them. Depending on your application, refer to the appropriate documentation:
    -- reference from a J2EE app -> see <a href="http://help.sap.com/saphelp_nw04/helpdata/en/15/d5d93fe80fed06e10000000a1550b0/frameset.htm">Referencing Libraries in Applications</a>
    -- reference from a portal app -> see <a href="http://help.sap.com/saphelp_nw04/helpdata/en/02/788540ae1dbb4de10000000a1550b0/frameset.htm">Referencing Elements</a>
    Hope that helps!

  • Deploying, ReDeploying JAR file to WebLogic EM without restarting the serve

    Hi
    Can any one help me how to re-deploy .jar file on weblogic EM with steps.
    Deploying, ReDeploying JAR file to WebLogic EM without restarting the server
    Appriciate if you provide information in steps with screenshot.
    Note: Not in weblogic 11g console.
    Thanks,
    Phani

    http://download.oracle.com/docs/cd/E14571_01/core.1111/e10105/deploy.htm#BIHIIEIA

  • How to access a jar file in EAR file?

    I have a EAR file which contains EJB.jar file and util.jar file. Outside of EAR, I mean in client side, I need to reference util.jar file. How can I access it?
    EAR structure is
    |--+META-INF/
    |--|---application.xml
    |--|---manifest.mf
    |--EJB.jar
    |--|---+MEAT-INF/
    |--|---|--- deployment descriptors...
    |--|---|--- manifest.mf
    |--|--- EJB classes
    |--Util.jar
    Util.jar must be executed in server side. If I just add Util.jar in client program's classpath, when client program is executed, serverside Util.jar is executed? Or what else I should do in the client program to reference server-side Util.jar?

    Excellent question. I don't see any client-jar in your EAR file structure. So I am assuming you are writing a separate client application which will talk to the ejbs deployed as part of this EAR. You need to do the following:
    Write another EAR file with the following structure:
    ear:
    META-INF/application.xml
    util.jar
    client.jar
    client.jar should have a META-INF/MANIFEST.MF and that should contain Class-Path:util.jar and value for Main-Class attribute.
    Now deploy this new ear to your application server and execute it using Application Client Container that comes with your app server.
    If you don't want to write another EAR file, then bundle th client.jar in your original EAR file.
    Points to note are:
    you have to repackage util.jar again inside this ear file.
    For portability reason, you should use Class-Path manifest entry in client.jar. Refer to http://java.sun.com/j2ee/verified/packaging.html and J2EE platform spec section #8.2.
    Hope this helps,
    Sahoo

  • Web page breaks when adding utility JARs to my EAR

    Hi All,
    I am creating a Web Application (.war) that runs some java code and has some JSP web pages to control the code/display results (as a dashboard sort of thing). I have then put this .war file in an enterprise app (.ear file - I have done this as there is other functionality that I want to roll in to the application).
    I have been building this in Rational Software Architect and imported the required utility .jar files into the .war project, however when this is built the utility .jars are not included in the exported .ear file (the jsp dashboard pages still display correctly - it just means that the java code cant be run).
    To ensure that the utility jar files are included in the exported .ear file I the added the utility jars in to the main .ear project and referenced them from the web app project - this compiles fine - however, when i then view the jsp pages they are now showing blank!
    Any ideas as to what might be the problem or why my jsp pages are not showing up once I have added the dependent utility jars in to the ear file?
    Thanks in advance guys!

    Don't use layers, use tables. Outlook doesn't render with the
    Internet Explorer engine (since Outlook 2007 at least). You also
    can't use padding, background images, external CSS styles, and
    dozens of other things. You also need to provide a full path to the
    images in the newsletter.
    In short, it's NOTHING like designing for a browser.
    Here's a giant PDF that will make you cringe:
    http://www.campaignmonitor.com/css/reports/Guide_to_CSS_Support_in_Email_2008.pdf
    Here's a rough guide to HTML email:
    http://www.webmonkey.com/tutorial/Send_HTML-Formatted_E-mail
    Lastly, use a third party email service. If you send to more
    than fifty people at once you stand a really good chance of getting
    your domain blacklisted. Also, did you know that if you don't
    provide a way for people to unsubscribe you're breaking the law? Or
    if you don't show a physical street address you're in violation of
    the law as well? Again, use a third party service so you're
    protected against this crap. Also, they're cheap!
    http://www.streamsend.com/
    http://www.mailchimp.com/

  • Deploying the SQLJ files used by the Rentals EJB

    In a previous section of the documentation for acmevideo demo, we
    address the issue of deployment of the Rentals EJB. This contains
    the rentals.sqlj file.
    Due to an issue with the current versio of Oracle 8i(8.1.5), a
    workaround must be deployed to explicitly deploy the *.ser file
    used by the Rentals EJB to the Oracle 8i database. (I don't know
    or understand what the issue is - can someone explain ?)
    Anyway, I am using Oracles suggested workaround and the
    deployment fails.
    Here is the text:
    *** Invoking the Oracle JDeveloper deployment utility ***
    Scanning project files...done
    Generating classpath dependencies...done
    Generating archive entries table...done
    Writing archive...done
    *** Invoking the Oracle8i deployment utility ***
    interrupted by user
    <The dialog in JDeveloper displays>:
    Cannot load java classes into database
    Any suggestions or tips how to get this working ?
    Regards,
    Mark Battersby
    null

    Mark,
    I had the same problem. Have you increased your Java_pool and
    your shared pool? That and having the right classpath/path
    helped. Also, I think that there are some SQL prep scripts that
    need to be run.
    Todd Kromann
    mark tomlinson (guest) wrote:
    : You might try using the command line version of the deployejb
    : tool and see if you can get a more verbose error message
    : (Jdeveloper might be 'eating' the errors coming back). I have
    : seen that happen when the loadjava portion of deployment would
    : fail (i.e. not getting back an error).
    null

  • How many Ways jar files from ear file on a jboss can be downloaded on clien

    Aoa
    How many Ways jar files from ear file on a jboss can be downloaded on client side
    like jnlp etc..
    Regards
    M Fazal Ur Rehman

    First, you need to be able to boot from the Recovery HD:
    Boot Using Command+R keys:
      1. Restart the computer.
      2. Immediately after the chime press and hold down the
          "COMMAND" and the "R" keys together.
      3. Release the keys when the Utilities Menu appears.
    Once at the Utilities Menu select Terminal from the Utilities menu in the screen's menubar. Now, you need to know where these new files are located. You move to any location using the 'cd' command such as cd /Users/user_name/Documents, then press RETURN. Replace user_name with your actual username. Next you need to do a directory listing to see if your files are in that location, Documents. Use ls -al to do a directory listing of the files and folders in Documents. If you find your new files there, then connect an external drive or flash drive. You will need to know the name you have assigned to this drive. It needs to be already formatted. Copy your files using cp /Documents/filename /Volumes/volname/filename. Replace volname and filename with those that apply. Press RETURN.
    Or take it to your local Apple Store and see if they can do the chore for you.

  • Error deploying to .jar file

    Hi everyone,
    I am forms developer and as such i am a completly clueless as to how to do some basic things in this new tool i am trying to learn.
    As a start, i am building some simple ADF/Swing applications, everything goes fine until i reach the point when i want to deploy my little proyect. Here's what i have been doing based on what help i could find in this forum. Thanks in advance and sorry for my poor english.
    1) Create a deployment profile, i select all the dependencies using the "Dependency Analisis" option under file groups. Question: regarding the long list of dependencies shown in this section, is it necesary to include all the libraries listed? if i include everything the resulting jar file is 120Mb in size, and that is for a very simple form. Is this normal/correct.?
    2) After the jar is deployed i try to run it with "java -jar xxx.jar" but i get the following exceptions: It seems to be related to the manifest file, and i find it very weird that, when i look in the jar file, there are TWO manifest.mf under the same META-INF folder, one is all uppercase and is quite small, the second is lowercase and quite large in size. I dont know if this is what's causing the problem and i cant find any other person that is having this same issue.
    The error:
    Exception in thread "main" java.lang.SecurityException: no manifiest section for
    signature file entry javax/media/rtp/event/SessionEvent.class
    at sun.security.util.SignatureFileVerifier.verifySection(SignatureFileVe
    rifier.java:260)
    at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier
    .java:172)
    at java.util.jar.JarVerifier.processEntry(JarVerifier.java:239)
    at java.util.jar.JarVerifier.update(JarVerifier.java:194)
    at java.util.jar.JarFile.initializeVerifier(JarFile.java:300)
    at java.util.jar.JarFile.getInputStream(JarFile.java:362)
    at sun.misc.JarIndex.getJarIndex(JarIndex.java:92)
    at sun.misc.URLClassPath$JarLoader.<init>(URLClassPath.java:543)
    at sun.misc.URLClassPath$3.run(URLClassPath.java:320)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.misc.URLClassPath.getLoader(URLClassPath.java:309)
    at sun.misc.URLClassPath.getLoader(URLClassPath.java:286)
    at sun.misc.URLClassPath.getResource(URLClassPath.java:156)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:191)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    Thanks.

    Hello Avrom
    Thanks for the quick reply, in answer to your suggestion, in fact, as you recommended, excluding the manifest from the deployment profile solved "that" error but... (there's always a but, also, by excluding the manifest i had to include the classpath in the command line to indicate the "entry" point or main class), now i am receiving another error wich is completly unrelated (i think) to the previous one.
    Thank you very much.
    Fabian.
    The error:
    Exception in thread "main" java.lang.UnsupportedClassVersionError: view/NameOfMyCla
    ss (Unsupported major.minor version 50.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:1
    3)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

  • Error in deploying a jar file on JBOSS

    What could be the error here ?
    12:49:30,643 INFO [URLDeploymentScanner] Started
    12:49:31,074 INFO [MainDeployer] Deployed package: file:/C:/jboss-3.2.1_tomcat-4.1.24/server/all/conf/jboss-service.xml
    12:49:31,094 INFO [Server] JBoss (MX MicroKernel) [3.2.1 (build: CVSTag=JBoss_3_2_1 date=200305041533)] Started in 1m:11s:663ms
    12:49:57,121 INFO [MainDeployer] Undeploying file:/C:/jboss-3.2.1_tomcat-4.1.24/server/all/deploy/MyBank.jar
    12:49:57,121 WARN [ServiceController] Ignoring request to stop nonexistent service: null
    12:49:57,121 WARN [ServiceController] Ignoring request to destroy nonexistent service: null
    12:49:57,131 WARN [ServiceController] Ignoring request to remove nonexistent service: null
    12:49:57,171 WARN [DeploymentInfo] Could not delete directory file:/C:/jboss-3.2.1_tomcat-4.1.24/server/all/tmp/deploy/server/all/deploy/MyBank.jar/55.MyBank.jar restart will delete it
    12:49:57,171 INFO [MainDeployer] Undeployed file:/C:/jboss-3.2.1_tomcat-4.1.24/server/all/deploy/MyBank.jar
    12:49:57,181 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss-3.2.1_tomcat-4.1.24/server/all/deploy/MyBank.jar
    12:49:57,692 WARN [verifier] EJB spec violation:
    Bean : MySession
    Section: 22.2
    Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the <ejb-class> element.
    Info : Class not found: au.com.tusc.MySessionSession
    12:49:57,692 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-3.2.1_tomcat-4.1.24/server/all/deploy/MyBank.jar
    org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
         at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:487)
         at org.jboss.deployment.MainDeployer.create(MainDeployer.java:784)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
         at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
         at $Proxy7.deploy(Unknown Source)
         at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
         at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:458)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:200)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:211)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:190)
    12:49:57,702 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@7380f9af{ url=file:/C:/jboss-3.2.1_tomcat-4.1.24/server/all/deploy/MyBank.jar, deployedLastModified=1065501444000 }
    org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
         at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:487)
         at org.jboss.deployment.MainDeployer.create(MainDeployer.java:784)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
         at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
         at $Proxy7.deploy(Unknown Source)
         at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
         at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:458)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:200)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:211)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:190)

    check ure ejb-jar xml & <ejb-class> tag & fully completed path with all pakages are are correct or not
    <!-- Session Beans -->
    <session >
    <description><![CDATA[Description for Cal]]></description>
    <display-name>Name for Cal</display-name>
    <ejb-name>Cal</ejb-name>
    <home>com.abc.bo.interfaces.CalHome</home>
    <remote>com.abc.bo.interfaces.Cal</remote>
    *<ejb-class>com.abc.bo.ejb.CalBean</ejb-class>*
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>

  • Deploying a jar file into J2EE server

    Hello,
    I need to deploy a few jar files I need in my jsp pages I deploy into EP 6.  I'm using SAP Web AS 6.40.  I tried to copy them into F:\usr\sap\DEP\JC00\j2ee\cluster\server1\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\lib folder but after restarting J2EE server, I still have an error for each import I'm doing for the classes contained in my jar files.
    I also tried to pu them in PORTALINF/lib folder of my project but it doesn't work.
    Does anyone have an idea ?
    Thank you !

    Hi Olivier,
    you could try the following approach:
    1. Package your JAR files as J2EE Engine libraries and deploy them on it as described here: <a href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/2ade3fc6c6ec06e10000000a1550b0/frameset.htm">Working with J2EE Libraries</a>.
    2. Set reference to this library from the application that use them. Depending on your application, refer to the appropriate documentation:
    -- reference from a J2EE app -> see <a href="http://help.sap.com/saphelp_nw04/helpdata/en/15/d5d93fe80fed06e10000000a1550b0/frameset.htm">Referencing Libraries in Applications</a>
    -- reference from a portal app -> see <a href="http://help.sap.com/saphelp_nw04/helpdata/en/02/788540ae1dbb4de10000000a1550b0/frameset.htm">Referencing Elements</a>
    Hope that helps!

  • Deploying Runnable JAR Files

    I recently started working with Java 8.  I have been doing Java development on and off since the early 1990's.  Most recently I have been doing all my current work in Java 6.  I decided to "take the plunge" and to start getting involved with Java 8.  I have an imaging application for geologic research I started working on in Java 6 and Swing, and I am now continuing that development under Java 8.  It was a pleasant surprise that to find that all of my code built without any changes (I'm using Eclipse Luna and just deleted the Java 6 runtime and added the Java 8 runtime after downloading it).  The application launches fine from inside Eclipse.
    However I ran into a problem when exporting the application from Eclipse to a runnable JAR file and then trying to launch it.  After creating the runnable JAR I was not able to launch it by simply double clicking.  A command line box would open for a second, then close and the application window would never open.  To upgrade from Java 6 to Java 8 I only downloaded the Java 8 runtime environment, not the Java 8 JDK.  I am working in Windows 7 and tried updating the JAR file associations and experimented with various path entries in my environment variables.  No mater what I did I could not simply double click the runnable JAR to launch it.
    Then I deleted all my Java downloads and started over.  This time all I did was downloaded the Java 8 JDK and installed it.  I then pointed Eclipse to the Java 8 runtime environment that was installed with the Java 8 JDK.  My code built and executed perfectly in the Eclipse environment.  Then I exported the the Eclipse project as a runnable JAR again and tried to launch it.  This time it worked as expected.  Double clicking the runnable JAR launched the application!
    So my question is if I want to give this application to someone to run (i.e. deploy it) that is not a developer, do I have to have them install the Java 8 JDK?  I assumed that all someone would need to run the application as a runnable JAR is the Java 8 runtime environment, not the JDK.  However, when I had only the Java 8 runtime environment installed I could not launch the runnable JAR.  With the Java 8 JDK I was able to run the runnable JAR as expected, with no problem.
    Am I missing something?
    Thanks,
    Mike

    I found an answer to my own questions.
    I'm posting what I found to answer my questions so that anyone with a similar question looking here will have an answer.
    The following Oracle link appears to explain everything about deployment that a developer needs to know!
    http://docs.oracle.com/javase/8/docs/technotes/guides/deploy/
    Mike

  • Deploying 1 jar file in 2 diferent domains

    Hi,
    We have a requirement where single BPEL code needs to be deployed in 2 domains.Inside teh domains , we are going to chnage the configuraion of JMS, Oracle Db etc .But the JNDI names will be same accross the 2 domains and in the BPEL process we used this common JNDI name.I careted a doamin (Let assume domain1) and deployed my application after configuring the JNDI names for JMS and DB.My application deployed successfully and worked as expected.Now, I craeted 2nd domain and tried to use the same JNDI name with diffrent Database configurations.But when I tried to update, it says JNDI name already exist.Could you please advice me if I need to modify anything in my doamin?
    Also, when I tried to open my emanager with domain2 configurations, I can see the BPEL process which I deployed in domain1 .why is my 2nd domain showing the deployment under domain1 though I din't deployed anything in 2nd domain.
    Thanks Much,
    Madhuri

    You want it in a WAR file, not a JAR file - i.e. a zip file just like a JAR file but with a .war extension and the following path structure:
    ./WEB-INF/classes
    ./WEB-INF/lib
    ./WEB-INF/web.xml
    Where your JARs go in the lib directory, plain classes in their package structure under the classes directory and your JSPs, HTML etc anywhere you like other than WEB-INF.
    Then you just put the WAR in Tomcat/webapps.

  • Deployment Utility - log file errors/warnings not clear

    Hi,
    I'm doing my first deployment and have few questions:
    1) I tried to deploy ONLY the TS user directories. I checked the 'Deploy Files in TestStand User Directories' option and did not check 'Install TestStand Engine' since I deploy it into a system with TS3.0+CVI7.0 software(same as the source).
    The process was successful by I get the following warnings in the log file.
    Starting Log.
    Building...
    5:47 PM
    An installer is being created.
    The installer is finished
    The build process is done.
    5:48 PM
    Warning: You may need to add any sequence files referenced by the following expressions:
    "reportgen_" + RunState.Root.Locals.ReportOptions.Format + ".seq" in step 'Process Step Result', sequence 'SequenceFilePostResultListEntry', sequence file 'C:\Program Files\National Instruments\TestStand 3.0\Components\User\Models\TELRAD_SequentialModel.seq'
    "reportgen_" + RunState.Root.Locals.ReportOptions.Format + ".seq" in step 'Process Step Result', sequence 'ProcessModelPostResultListEntry', sequence file 'C:\Program Files\National Instruments\TestStand 3.0\Components\User\Models\TELRAD_SequentialModel.seq'
    "ReportGen_" + Parameters.ReportOptions.Format + ".seq" in step 'Get Report Footer', sequence 'TestReport', sequence file 'C:\Program Files\National Instruments\TestStand 3.0\Components\User\Models\TELRAD_SequentialModel.seq'
    "ReportGen_" + Parameters.ReportOptions.Format + ".seq" in step 'Get Report Header', sequence 'TestReport', sequence file 'C:\Program Files\National Instruments\TestStand 3.0\Components\User\Models\TELRAD_SequentialModel.seq'
    "ReportGen_" + Parameters.ReportOptions.Format + ".seq" in step 'Get Report Body (Sequence)', sequence 'TestReport', sequence file 'C:\Program Files\National Instruments\TestStand 3.0\Components\User\Models\TELRAD_SequentialModel.seq'
    "ReportGen_" + Parameters.ReportOptions.Format + ".seq" in step 'Set Report Disabled Message', sequence 'TestReport', sequence file 'C:\Program Files\National Instruments\TestStand 3.0\Components\User\Models\TELRAD_SequentialModel.seq'
    RunState.ProcessModelClient in step 'MainSequence Callback', sequence 'Single Pass', sequence file 'C:\Program Files\National Instruments\TestStand 3.0\Components\User\Models\TELRAD_SequentialModel.seq'
    RunState.ProcessModelClient in step 'MainSequence Callback', sequence 'Test UUTs', sequence file 'C:\Program Files\National Instruments\TestStand 3.0\Components\User\Models\TELRAD_SequentialModel.seq'
    +++++++++++++++++++++++++++++++++++++++
    What does it mean? What to do about it?
    2) The utility does not include the cfg/TypePalettes where I have a my own file.
    Is there a reason to it? Do I need to include it manually?
    3) When I included workspace in the utility I get the following errors:
    Starting Log.
    Processing Workspace...
    Done processing workspace file
    +++++++++++++++++++++++++++++++++++++++
    Processing Workspace...
    Done processing workspace file
    Building...
    6:08 PM
    Error could not open LabVIEW
    Distributing VIs requires the LabVIEW Development System
    Class not registered
    in TestStand - Get LV Reference.vi->TestStand - Package VIs.vi->TestStand - Build.vi->TestStand - Distribution Wizard GUI.vi->TestStand - Deployment Utility Splash Screen.vi
    An installer was not created due to an error
    The build process is done.
    6:08 PM
    Error Code:-2147221164
    Class not registered
    in TestStand - Get LV Reference.vi->TestStand - Package VIs.vi->TestStand - Build.vi->TestStand - Distribution Wizard GUI.vi->TestStand - Deployment Utility Splash Screen.vi
    +++++++++++++++++++++++++++++++++++++++
    In order to eliminate the problem source I un-checked the files presented by the 'Analyze Source Files' until all of them are un-checked. Even in that case I get the error message.
    What does the message mean?
    What to do about it?
    I don't use any LV in my system!!!!!
    Thanks and my apology for the long message
    Rafi

    Hi Rafi,
    On #1 the warnings appear whenever you have an expression that specifies a sequence file because many expressions are not valid until runtime, you can ignore it as long as ALL sequences that expression may evaluate to are included in the Workspace.
    >2) The utility does not include the cfg/TypePalettes where I have a my own file.
    >Is there a reason to it? Do I need to include it manually?
    No it does not include it because it is not needed unless you plan to edit on the deployed sequence (generally not recommended). If you add a custom type to a sequence the sequence file will have a copy of the type. You can include the types palettes manually in the workspace if desired.
    >3) When I included workspace in the utility I get the following errors:
    >What does the message mean?
    The deployment utility thinks you have a VI to deploy, it is trying to load LabVIEW and failing because LabVIEW is not installed.
    >What to do about it? I don't use any LV in my system!!!!!
    Somewhere there is a .vi or .llb in the system. Find the VI(s) and uncheck them. I did find a bug that the deployment utility caches the flag indicating if a VI is present, but it is easily worked around: Save a tsd file, Press the New button and then reload the tsd.
    -Rick Francis

Maybe you are looking for