How to config IAS NOT TO extract classes of ejb jar

We are deploying an application in .ear file. I noticed that IAS always
extracts our ejb jar into flat classes under APPS dir. Is there a way to
instruct IAS to use the jar instead of extracting it into classes 'cuase we
sign our jar and our classes check the signature. It won't work if IAS
deploys it into classes.
Thanks

Which SP of iAS6 are you using?
In SP1b iAS loads the extracted classes of the ejb first, but if they do
not exist, it will try to load it from the jar file instead.
Xiaolong Hao wrote:
>
We are deploying an application in .ear file. I noticed that IAS always
extracts our ejb jar into flat classes under APPS dir. Is there a way to
instruct IAS to use the jar instead of extracting it into classes 'cuase we
sign our jar and our classes check the signature. It won't work if IAS
deploys it into classes.
Thanks--
Han-Dat Luc ([email protected])
Senior Consultant
SUN Professional Services (SUNPS)
iPlanet e-commerce Solutions
Sun Microsystems Australia Pty Ltd

Similar Messages

  • JNI: How to use FindClass to get a class in a Jar file?

    Is it possible to use the FindClass method of the JNI environment object to get a class that is in a jar file? My sample application was working when my class files were in the local directory. Now that I have replaced the class files with a jar file containing the classes, the app no longer works. I'd appreciate tips from anyone who knows how to do this.
    -Andreas

    Is it possible to use the FindClass method of the
    JNI environment object to get a class that is in a
    jar file? My sample application was working when my
    class files were in the local directory. Now that I
    have replaced the class files with a jar file
    containing the classes, the app no longer works. I'd
    appreciate tips from anyone who knows how to do this.It has nothing to do with JNI.
    The method uses the class path just like any other class loading situation in java. The reason it worked before is because your class path included the directory. It doesn't work now because either the jar is not in the class path or there is something wrong with the class path.

  • JPA - How-to have 2 classes, 2 ejb-jar, and 1-N between them

    I have two classes - Person and ProbateCase. A ProbateCase can have one or more people working on it.
    However, Case and Person are in two different EJB's, Doing this the obvious way leads to: Use of @OneToMany or @ManyToMany targeting an unmapped class: on the array.
    Here's how I have them mapped:
    @Entity
    public class ProbateCase extends Organization {
         @OneToMany
         private List<Person> lawyers = new ArrayList<Person>();And
    @Entity
    public class Person extends Party The persistence.xml files work individually just fine, as do the mappings. It's only when I cross them like this that I get the exception.
    Any ideas on how to fix this?
    Edited by: Jim.Barrows on Feb 23, 2008 1:16 PM

    The jar utility allows you to extract files as well as put them into a jar. This is in the java docs.
    You might have to hand modify the manifest file if it was hand modified in the first place. All you should have to do is copy the text from one file to another. The manifest will have the same name so you will have to extract to different dirs so it isn't overwritten.
    Steps:
    -Create dir1 and dir2
    -Extract jar1 into dir1, Extract jar2 into dir2.
    -Manually examine manifests and combine if needed.
    -Copy files from one dir to another.
    -Use jar tool to create new jar.

  • Could not find Main Class while executing JAR

    Hello all,
    I am having a simple Jar file that contains one java class that merely displays a window. I am using NetBeans IDE to create the JAR file. When i execute this JAR file by double clicking on the file, it works fine on the machine. However, if i try to execute this same file on any other windows computer, it gives an error "Could not find the main class. Program will exit."
    In other words, the JAR file is only working on the computer that has NetBeans and JDK installed on. Not on any other machine. Although the other machines have the JAVA Virtual Machine installed.
    I would appreciated any help on this topic.

    I had the same problem (i.e. Message-Box with "Could not find the main class. Program will exit.")
    After insuring that the manifest contained a Main-Class: argument and that the argument pointed to the right class, I started the jar via java -jar myjar.jar and read the stacktrace, which is much better than the popup-window.
    In my case the error was, that the Main-Class could not be loaded due to another referenced class, which was not on the classpath. (i.e. it was not in the same jar-File and the manifest didn't include a Class-Path: argument.)
    After adding the correct Class-Path: argument in the manifest, the problem went away.
    I now have the following setup:
    myjar.jar and somethirdparty.jar in the same directory.
    myjar.jar contains a manifest which includes the lines
    Class-Path: somethirdparty.jar
    Main-Class: my.package.and.MainClassafter the normal Manifest-header.

  • How to config POF to handle inner class

    Hi, I have the following vo object:
    public class Obj implements java.io.Serializable, PortableObject
    public static class InnerObj implements java.io.Serializable, PortableObject
    1) If i put both classes in the pof config xml, it throws class not found exception for the inner class InnerObj (as expected since there is no separate class files for it). My question is what is the correct way to handle the inner class? Should i just leave it out of the pof config xml and coherence will be smart enough to handle it?
    <pof-config>
    <user-type-list>
    <user-type>
    <type-id>111</type-id>
    <class-name>some.package.Obj</class-name>
    </user-type>
    <user-type>
    <type-id>222</type-id>
    <class-name>some.package.InnerObj</class-name>
    </user-type>
    </user-type-list>
    </pof-config>
    2) Also want to confirm if implement both java.io.Serializable & PortableObject in the vo, coherence will ALWAYS take the portable object serialization if <pof-enabled>true</pof-enabled> is set in the config?
    thanks!

    Hi i got the inner class config to work but now struggling to get it to run from the java client that connects to the cache. Went through the documents, it only made me more confused, so many config files...
    The exception i am getting now is from the java application that connects to the cache, when it tried to do a cache.putAll() it's throwing the following exception:
    An exception occurred while encoding a PutAllRequest for Service=ExtendTcpCacheService:TcpInitiator: java.io.IOException: unknown user type: some.package.Obj
    So far I have done the below to enable POF:
    1) On cache server I made the below changes, and both the cacheserver and extendproxy are running fine now.
    - changed xml to: <pof-enabled>true</pof-enabled>
    - dropped the jar containing the pof objects in the classpath
    - added override pof config xml:
    <pof-config>
    <user-type-list>
    <user-type>
    <type-id>8888</type-id>
    <class-name>some.package.Obj</class-name>
    </user-type>
    <user-type>
    <type-id>8889</type-id>
    <class-name>some.package.Obj$InnerObj</class-name>
    </user-type>
    </user-type-list>
    </pof-config>
    2) On the java project that connects to the cache:
    - changed -Dtangosol.coherence.cacheconfig xml file and added:
    <defaults>
    <serializer>pof</serializer>
    </defaults>
    I am sure i am missing some config somewhere, thank you for your help.
    Edited by: 920558 on Mar 28, 2012 2:15 PM

  • How to run 1 or more main classes in a jar?

    Hi there,
    I have 2 or more main classes in a java project. How do I create more than one application entry point in my MANIFEST.INF? I create my jar file from my java project using Eclipse, and it asked me to "Select the class of the application entry point". I was only able to select one main class.
    I noticed the MANIFEST.INF file that eclipse generated looks like:
    Manifest-Version: 1.0
    Main-Class: Automobile
    When I tried to run my other classes not specify in the MANIFEST.INF it failed and only look for the Automobile class:
    java -jar /tmp/Auto.jar TestMe

    Your app. can have as many entry points as you like, as atmguy demonstrated. But you can only specify one in the manifest,which - if you think about it - makes perfect sense. How is the machine to determine - from you clicking on the jar - which entry point you meant to invoke?

  • Could not find Main Class while running JAR   outside /dist directory

    Hello
    I can make jar on netbeans by clicking Shift+F11. But the problem occurs when I copy paste my jar file out of /dist directory. It only works at /dist directory. I think my way making jar is incorrect. Anyone knows a way to make runnable jar by NetBeans instead of Shift + F11

    Crossposted here:
    [http://forums.sun.com/thread.jspa?threadID=5369074]
    Don't do that.

  • Accessing war classes from ejb-jar

    Hi,
    I've a.ear with b.war and c.jar. c.jar contains ejbs.
    I've some classes in b.war which i need to access from the ejbs.
    How may I achieve it? what do i need to configure in the app server or the ejb deployment descriptor?
    tx in adv
    Kejal

    are you absolute sure that the needed jar / class is
    in the classpath?Yes, there is no question about that. Because I can run the same app (unjarred version) with a command such as
    java MyApp
    without specifying classpath explicitly. And I also double checked that the postgresql.jar is listed in the CLASSPATH of my Windows box.
    Is the Class.forName the line where the ClassNotFound
    Exception is thrown?Yes, I caught the exception exactly at that line.
    I use the same for cloudscape�
    Object driver =
    Class.forName("com.ibm.db2.jcc.DB2Driver").newInstance
    ();and it works fine!Probably your app is not a jarred one, or is it?
    By the way, I have written JDBC codes hundreds of times, each time without any trouble. This is my first time I happened to run a JDBC app as an executable jar. And it failed. So I guess there must be other ways to load the class in this case.

  • Using classes from another jar?

    Hello,
    Could anybody show me an example for how to put a shared library of classes in one jar file, and put an applet in another jar while the applet can use classes in the first jar file? Is this even possible at all???
    Thanks!

    norsez, did you had a look at the Java Tutorial:
    Using the APPLET Tag
    http://java.sun.com/docs/books/tutorial/applet/appletsonly/html.html
    It says: 'You specify JAR files using the ARCHIVE attribute of the <APPLET> tag. You can specify multiple archive files by separating them with commas [...]'. I assume all listed JAR files are in the classpath then and you should have access to their classes.
    Let us know if it works!
    HTH, Markus

  • Ejb jars not being read from application.xml

    Hello. If somebody wouldn't mind reading this, I've been wrestling wiht this most of the day. I have a coupe of entity ejbs and a stateless session ejb, each packed into it's own jar. When I deploy the ear, the war deploys fine but the three ejb jar files are not read as per the application.xml. As a test, I put the jars into the default server lib directory and after I did that, the enterpise app launched as expected. I can't figure out why the server, resin 3.0.12, is not able to see these ejb jars. I've tried to add the directory after deployment to the classpath in the autoexec.bat but no dice. I've moved the ejb jars around into subdirectories and modified the application.xml accordingly but to no avail. I've also looked into the server configuration file but resin doesn't seem to have any taggings within it's ejb server tag that would dictate where the container would look for jar or class files. Does anybody have any ideas what this could be?...this is the application.xml...pretty straightforward...the ejb jars are located in the root of the ear...
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE web-app (View Source for full doctype...)>
    - <application>
    <display-name>MyApp</display-name>
    - <module>
    <ejb>cn.jar</ejb>
    </module>
    - <module>
    <ejb>cnf.jar</ejb>
    </module>
    - <module>
    <ejb>cni.jar</ejb>
    </module>
    - <module>
    - <web>
    <web-uri>nctims.war</web-uri>
    <context-root>/nctims</context-root>
    </web>
    </module>
    </application>
    Thank you very much for taking your time to read my post.

    Hello. Thank you very much for the reply.
    Yeah, application.xml is sitting in META-INF. The war referenced wihtin application.xml deploys fine...the container jsut seems to ignore the <module><ejb>..</ejb></module> tags when it reads the ejb deployment descriptors and tries to locate the classes. I've tried everything...shouldn't application.xml take care of all class-loader issues with the module references? Thank you again to everybody reading this or whatever.

  • How to extract .class files?

    Hello,
    I have four .class files I need to take a look inside, and manage the files. How may I go about doing this? I am not a programmer so I will not understand code. Is there any free app that works and extracts .class files? I have tried RAR Extractor Free and The Unarchiver, but none worked.
    Please help!

    Why bother? Just distribute the 3rd-party JAR as it is. All it costs you is a little disk space. Why bother to look inside, understand which classes you do and don't need, repackage, ... repeat every 3rd-party release? repeat for every 3rd-party product?
    Just ship it the way they ship it.

  • How to config the oracle database connection pool in IAS

    Hi,
    Does anyone who hows to config the oracle database connection pool in IAS?
    Thanks so much!!!
    [email protected]
    Jacky

    Jacky,
    You need do the following for oracle type4 driver:
    1) register the driver:
    $IAS_HOME/bin/jdbcsetup
    Driver Identifier: Oracle_Type4_816 (whatever name you like)
    Driver Classname: oracle.jdbc.driver.OracleDriver
    Driver Classpath: .../classes12.zip (install this this zip file somewhere
    and add this zip into the Classpath later).
    2) DataSource Setup:
    start iAS Administration Tool (iASAT)
    Choose Database, unfold iAS1 (your app server instance),
    choose External JDBC Datasource -> add: DataSource Registration
    JNDI Name: yourPoolName
    Driver Type: Oracle_Type4_816 (select what you just register)
    DataSource Url: jdbc:oracle:thin:@hostName:portName:dbName
    Username: your_user_name
    Password: your_passwd
    (Datasource Pool: using defaults for now): you can also customrize the
    parameters for the pool.
    3. Add classes12.zip into CLASSPATH.
    In your application, you can use JNDI lookup to get the DataSource from
    which you get the connection from the pool.
    Hope this helps.
    Good luck.
    Xuran
    "Jacky Yan" <[email protected]> wrote in message
    news:9m0tmp$[email protected]..
    Hi,
    Does anyone who hows to config the oracle database connection pool in IAS?
    Thanks so much!!!
    [email protected]
    Jacky

  • How to deal with the rule that do not use "object" class to declear a class

    I run my flex project in sonar. And there is a rule "Do not use Object class ".
    I just want to know how to deal with this problem.
    I mean, when I try to write a base class, I don't know which kind of class will be transfered in by reference, which type I can declear instead of "object"?

    Check out this example:
    The moment I put in the code >> box1.addItem("hello"); << and run the application, the BusNameListener is fired. Hope this makes sense.
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    public class JFrameExample {
    private JComboBox box1;
    public JFrameExample() {
    box1 = new JComboBox();
    box1 .setMinimumSize(new Dimension(300, 24));
    box1 .setPreferredSize(new Dimension(300, 24));
    box1.addActionListener(new BusNameListener());
    box1.addItem("hello");
    JFrame f = new JFrame("This is a test");
    f.setSize(400, 150);
    Container content = f.getContentPane();
    // content.setBackground(Color.white);
    content.setLayout(new FlowLayout());
    content.add(box1);
    f.setVisible(true);
    class BusNameListener implements ActionListener {
    public void actionPerformed(ActionEvent e) {
    JComboBox cb = (JComboBox) e.getSource();
    String item = (String) cb.getSelectedItem();
    if (item != null) {
    JOptionPane.showInputDialog(null,
    "Specify...", "File Import",
    JOptionPane.OK_CANCEL_OPTION);
    }

  • How do I enable Javascript in Foxfire 29.0? about:config does not work.

    I've just downloaded the newest available Foxfire (29.0) in the hope I can access my gmail account. But it still says "Javascript is not enabled". about:config does NOT show a preferences menu, so I can't toggle Javascript on. I tried downloading add-ons to toggle Javascript on/off, but they are not compatible with Firefox 29.0.
    Must I stop using Firefox altogether? I cannot access my banks, my credit cards, or my gmail accounts, nor can I access YouTube. This is all I use my browser for -- so Firefox is no longer useful to me, unless you can give me a fix for this!
    Carol Stromek

    This solution didn't work, because the page was redirecting and never arrived. It might have been because I was using Internet Explorer, which also is not Javascript enabled -- but the Mozilla Support Forum requires Javascript enabled in order to access it!
    I used Chrome, and was able to toggle it when the about:config field ''finally'' opened. The originally posted instructions omitted the instruction that the command about:config will only work if you do it from the Firefox home screen, where the orange word 'Firefox' appears at the beginning of the destination.

  • Rest.items would not influence the payment days ,how to config?

    Hello,everyone!
    I have a question,you know the Rest.items would influence the payment days,how to config can avoid the influence?
    Thank you!
    Best regards
    Doris

    Dear Gladys,
    Than you very much,i get it !
    I can config "payment term from invoice" to realize!
    Best regards
    Doris
    Edited by: doris feng on Apr 6, 2010 3:20 PM
    Edited by: doris feng on Apr 6, 2010 3:22 PM

Maybe you are looking for

  • LookoutDirect crashes when trying to open older .lks file

    I am providing a new WinXP Pro SP3 PC with LookoutDirect v4.5.1 (build19) to upgrade/replace and older lookout system at a water treatment plant. Being my first Lookout system I worked through the tutorials and everything worked great. I then tried t

  • SMART PLAYLISTS

    I have created a smart playlist, and I have given a bunch of songs ratings of 5 stars, and I want to have the playlist do that. So i pull down the list and hit My Rating, and the next one and hit "is" but I can't edit the amount of stars that the son

  • Call appModule function inside a managed bean?

    How can I call an Application Module public function from a managed bean?

  • IPod won't be shown in source list

    Hi. I succesfully intalled iTunes in my laptop but when I connect an iPod shuffle or a motorola rokr, despite I can access them by windows like any usb pen drive, they aren't displayed in the source list. How could I solve this? pls Bye.

  • Olympus E-3 support- when?

    This is one of the cameras I have and though I am not a fan of post processing in general, it's good to have that option when I feel I really need it + organize some work. I can understand supporting Nikon/Canon from the get go, but Sony Alpha 700 an