Custom Jar file

hi,
Please let us know the procedure for deploying custom jar file to E-Sourcing -5.1 syatem.
Thanks in advance,
Venkat

Hi Ankush,
Sourcing version used is 5.1.08.
Error while we click "Deploy and Start" button on visual Admin and select the newly created fcsourcing.ear file is as below:
  com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException: Incorrect War file.
at com.sap.engine.services.servlets_jsp.descriptor.jar.WebWar.getWebDescriptor(WebWar.java:130)
at com.sap.engine.services.servlets_jsp.descriptor.jar.WebWar.getWebDescriptor(WebWar.java:170)
at com.sap.engine.deploy.tool.deployer.ExtendedEarReader.loadDescriptorFromFile(ExtendedEarReader.java:238)
at com.sap.engine.deploy.tool.deployer.ExtendedEarReader.getFullEarDescriptor(ExtendedEarReader.java:123)
at com.sap.engine.services.deploy.gui.runtime.EarLoader.loadEar(EarLoader.java:137)
at com.sap.engine.services.deploy.gui.runtime.MainDeployPanelLogical.loadEarAction(MainDeployPanelLogical.java:169)
at com.sap.engine.services.deploy.gui.runtime.EarDialog.setEar(EarDialog.java:79)
at com.sap.engine.services.deploy.gui.DeployDialogLogical.okButtonAction(DeployDialogLogical.java:294)
at com.sap.engine.services.deploy.gui.DeployDialogLogical.actionPerformed(DeployDialogLogical.java:71)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.Component.processMouseEvent(Component.java:5115)
at java.awt.Component.processEvent(Component.java:4912)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3630)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:141)
at java.awt.Dialog$1.run(Dialog.java:542)
at java.awt.Dialog$3.run(Dialog.java:569)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:567)
at java.awt.Component.show(Component.java:1133)
at java.awt.Component.setVisible(Component.java:1088)
at com.sap.engine.services.deploy.gui.DeployDialogLogical.showDialog(DeployDialogLogical.java:378)
at com.sap.engine.services.deploy.gui.ApplicationsPanel.deployAction(ApplicationsPanel.java:413)
at com.sap.engine.services.deploy.gui.ApplicationsPanel.actionPerformed(ApplicationsPanel.java:357)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.Component.processMouseEvent(Component.java:5115)
at java.awt.Component.processEvent(Component.java:4912)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3630)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Caused by: com.sap.engine.services.servlets_jsp.server.exceptions.WebContainerSAXException: Cannot parse web.xml.
at com.sap.engine.services.servlets_jsp.descriptor.jar.WebWar.getConvertedWebDescriptor(WebWar.java:368)
at com.sap.engine.services.servlets_jsp.descriptor.jar.WebWar.getWebDescriptor(WebWar.java:84)
... 61 more
Caused by: com.sap.engine.services.servlets_jsp.server.exceptions.WebWrongDescriptorException: Incorrect value [$SESSION_TIMEOUT$] for tag [session-timeout].
at com.sap.engine.services.servlets_jsp.descriptor.xml.WebDescriptorDocument.initTimeOut(WebDescriptorDocument.java:465)
at com.sap.engine.services.servlets_jsp.descriptor.xml.WebDescriptorDocument.loadDescriptorFromElement(WebDescriptorDocument.java:182)
at com.sap.engine.services.servlets_jsp.descriptor.xml.WebDescriptorDocument.loadDescriptorFromDocument(WebDescriptorDocument.java:134)
at com.sap.engine.services.servlets_jsp.descriptor.jar.WebWar.getConvertedWebDescriptor(WebWar.java:366)
... 62 more
Caused by: java.lang.NumberFormatException: For input string: "$SESSION_TIMEOUT$"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:468)
at java.lang.Integer.<init>(Integer.java:609)
at com.sap.engine.services.servlets_jsp.descriptor.xml.WebDescriptorDocument.initTimeOut(WebDescriptorDocument.java:463)
... 65 more
While developing code in Eclipse, there are no compilation errors but when I try to run code, I am getting "Session" Object as nulll.
Please let me know if we need to set Session object. And how to resolve this issue.
Thanks,
Saloni

Similar Messages

  • Customized Jar files in ODI 11g

    Hi guys:
    I've searched the ODI 11 documentation but I'm not able to find where can I put my customized jar files with the classes that I've create.
    For instance:
    I need to put an Apache Commons Lang3 jars in ODI 11g to be able to use the StringUtils class in my Beanshell scripts.
    Where do I put these Jar files now? I had put them into /ODI_HOME/agent/drivers, JAVA_HOME/lib, JAVA_HOME/jre/lib and also in my WINDOWS_APP_DATA\USER\ODI\ORACLEDI\USERLIB and still got the same error of Class not Found.
    I'm using ODI_11.1.1.6.0_GENERIC_111219.1055
    Thanks in advance.
    Luiz Araujo

    Please restart your agent and odistudio. Then try it.

  • JDev 10.1.3: Create custom JAR file

    I was wondering what the best practice is to include a custom JAR file or third-party-jar file into a Project in JDeveloper.
    For example, if I have a jar named customjar.jar and I store it in c:\jars\customjar.jar. I then in my project properties --> Libraries --> Add Jar/Directory add this to my project. I can then access all my classes in customjar.jar. When I deploy this, this customjar.jar get thrown into my WEB-INF\lib when I deploy to the app server. I would like to store this on my pc in a common directory and not package it into my ear file. Then, when deployed to the app server, I would like that same copy there.
    I've read a lot of references to including paths in the server.xml, application.xml, orion-application.xml, shared-lib, etc. It's become quite confusing. TIA.

    repost

  • 10.1.3.4 - How to deploy custom jar file in SOA ?

    I want to deploy a custom jar file whose methods will be used in various application that I am building like BPEL, ADF etc. How can I do that ?

    When deploying an ear or a war using EM/Application Control in the Deployment Settings page you can add extra jar files. Click on the 'Go to task' button of the Configure Class Loading task. There you should be able to upload your jar.
    If you need the jar in just one or two apps then I would go this way. Otherwise you might consider creating a shared library, but I've tried that once, but could not make that work.
    Regards,
    Martien

  • Custom JAR file placement

    Hi,
    I have created a jar file that has some custom utilities within that I would like to use inside our custom developed par's.  Where do I put the jar on the portal?  Is there any documentation on this?  We are using EP6 SP12.
    I have read some other posts that attempt to address this situation, but I have not been successful in getting my projects to recognize my jar.
    If you browse the portal content directory under ROOT/WEB-INF/portal/lib, I can see my jar file.
    Any ideas?
    Cheers,
    Kevin

    Hi Kelvin,
    You need not put the jar in of the location. Just go the project you are working on and click on
    <b>Project -> Properties-> Java Build Path -> Libraries -> Add External Jar's</b>
    here browse the location of the Jars you want to include in the par. And now your project will recognize the jar you want to use for your utilities.
    Also if you want to exporta this jar in the .par file then copy this jar in the lib folder of your project. And while exporting the par click on the option for <b>include the code with the par.</b>
    I hope this solves your problem.
    Regards
    Pravesh
    PS: Please consider rewarding points on SDN for helpful answers. Thanks in Advance.

  • Where to put custom .jar-files in order to use them in scripting QPAC?

    Hi,
    For testing purposes, I wrote a simple class and put it in a .jar-file to use in scripting QPAC. Unfortunately, I get the following error message in JBOSS:
    Class: FooBar not found in namespace
    Where do I have to put custom library (jar-)files in order for JBOSS to find them? I already tried
    [...]\jboss\lib as well as
    [...]\jboss\server\all\lib.
    Regards,
    Steve

    Hi Steve
    You need to put them in two places:
    1. In the server classpath, so that they can be found at runtime. jboss\server\all\lib should work, or you can even drop them into the server/all/deploy directory. I think if you put them in the lib directory, you need to restart Jboss, whereas if you put them in the deploy directory, they should be dynamically picked up.
    2. For testing purposes, the extra jars need to be in the classpath of the Workflow Designer. Please download our SQLPlus QPAC from:
    http://www.avoka.com/avoka/qpac_library.shtml
    It includes a document that describes a technique for adding extra jars to the classpath.
    Regards,
    Howard
    http://www.avoka.com

  • How to deploy custom jar (forms PJC)  file in R12.1.x

    Hi ,
    we need use forms pjc connecting to client pc'com port with ebs form,
    we can deploy with ias standard form server , but EBS 's appsweb.cfg
    was automatically generated by AutoConfig , so i don't know how to config our jar in EBS env.
    i had search document in metalink for serval days , can some help us to solve this problem !
    thanks for any help...
    BR,Nolem

    Hi all, I am confronted by the same problem.
    I have manually added my custom Jar files to the archive=2 section of the appsweb.cfg config file in the $INST_TOP/ora/10.1.2/forms/server and placed the Jar files in the $COMMON_TOP/java/classes/oracle/apps/fnd/jar.
    I know that this is probably not the way to go, as autoconfig will override these settings, but my first priority is getting these jar files to run in Apps Forms without errors. I got as far as that my forms don't error out anymore but not all of them are working as they should. I am also trying to deploy the WebUitl utility in EBS R12. As far as I can tell this should be supported by Oracle as it comes as part of a standard Apps Installation (except for the Jacob.jar) it can be found in: $ORACLE_HOME/forms/webutil directory and the WEBUTIL_CONFIG reference to the webutil.cfg file can be found in the default.env in the same directory as the appsweb.cfg.
    If you want to look at some very good examples of PJC's there is a very good blog: http://forms.pjc.bean.over-blog.com/. You can also look at Francois Degrelle's blog on Read/Write files on the client machine without Webutil.
    Nevertheless information on how to deploy and run these PJC's under EBS is scarce. Metalink offers no solutions except very outdated notes.
    I would appreciate to know how to properly deploy these jar files in EBS
    I am also on 12.1.x. Btw there are more threads on this subject on OTN but most are outdated (threadID=1067917, 686329, 4246525) and don't provide the solution for EBS R12.1.x.
    Any help would be appreciated.

  • NOT WORKING: Putting a jar file requiring native library in bootclasspath

    Hi,
    I put my own jar file into the bootclasspath like this:
    java -Xbootclasspath/p:myboot.jar TestClass
    Some classes in the jar require a native library. For JVM 1.3 on Solaris, I put the native library in $JAVA_HOME/jre/lib/sparc and everything works just fine.
    However, when I try the same thing on JVM1.4, I got the following error when my class containing the native methods is called:
    Failed to load the native library: myboot_native
    java.lang.UnsatisfiedLinkError: no myboot_native in java.library.path
    I tried to put that native library in several different directories in jre/lib but still had no luck.
    Is there anybody know the solution? Does JVM1.4 allow me to put a custom jar file that requires a native library in the bootclasspath?
    Regards,
    Eman

    Well is your file in a directory included in the java.library.path environement variable. I use java on windows but I have to add the directory where my native library is to the path variable (not classpath) in order to avoid the error you get.

  • Custom classpath and custom jar entry in R12

    Hi all,
    I have created the custom classpath and custom jar file for isrore process. I had put custom jar and custom class entry in orien_application.xml file. But it was working on R12 at doveloper mode. It will creates the classes for custom jsp file using custom import class or custom jar. But once i revert back the devloper mode means it won't work.
    Could you please help..

    Oracle apps R12 - Compiling JSP with custom classpath
    We all know that to compile JSP manually on the Oracle Application R12 instance, we need to run the file $FND_TOP/patch/115/bin/ojspCompile.pl.
    Its help is as follows:
    syntax: ./ojspCompile.pl COMMAND {ARGS}
    COMMAND --compile               update dependency, compile delta
    --create                rebuild entire dependency file
    -delta.out update dependency, list delta to file
    -dep.out update dependency, output heirarchy to file
    ARGS -s matching condition for JSPs filenames
    -p number of parallel compilations
    -log to override logfile from ojspCompile.conf
    You are
    recommended to set the log file location
    outside of any network file system shared (NFS) area/drive.
    -conf to override ojspCompile.conf
    --retry         retry previously failed compilation attempts
    --flush         forces recompilation of all parent JSPs
    --quiet         do not provide an actively running progress meter
    --fast          instantly fail jsps that are possibly invalid
    example1: ojspCompile.pl compile -s 'jtf%' -p 20 retry
    example2: ojspCompile.pl compile -s 'jtflogin.jsp,jtfavald.jsp' flush
    example3: ojspCompile.pl compile fast --quiet
    If your JSP uses custom classes, then compiling jsp manually can fail if proper classpath is not set. Yes, even though if you have setup the classpath correctly in orion-application.xml, it will fail because this jsp compile utility does not read orion-application.xml classpath.
    So, the problem is to identify where to set the classpath so that above utility can pick it up. After several search and looking into code, I found following:
    By default, the jsp compiler script uses following configuration file
    $INST_TOP/appl/admin/ojspCompile.conf
    This conf file has a classpath field in it which is usually pointed to file
    $INST_TOP/appl/admin/ojspCompile.properties
    This property file lists the classpath used for JSP compilation.
    So if your classes are not listed in this file, your jsps will not compile by ojspCompile.
    Ofcourse, you can always set the "main_mode" to "recompile" in orion-web.xml, but that for production you do not want to change it and compile the JSP on file deployment.
    References:
    458338.1 How to Enable Automatic Compilation of JSP pages in R12 Environment
    433386.1 JSP Pages Hanging in R12 After Removing Cached Class Files in _pages
    783094.1 Compile jsp files at Application R12 at Windows

  • Can Test Custom Jars with 6i Run Form - Client/Server?

    I want to test custom Jar files with Forms 6i from my desktop, but I cannot get the Run Form->Web to work. Is it possible for the run time to load the just jars for PJC when you do Run Form -> Client/Server? So far, when I have done this, it does not execute any PJC. Any ideas, tips?
    Thanks,
    Kurz

    Hi Kurz
    Any ideas, tips?pls have a look
    http://www.dulcian.com/papers/ODTUG/2004/ODTUG%202004_Balcu1_JavaBean.htm
    http://www.oracle.com/technology/sample_code/products/forms/extracted/getclientinfo/readme.html
    http://www.scribd.com/doc/1027764/Forms-6i-Deploying-Forms-Applications-to-the-Web-with-Oracle-Forms-Server
    Hope it helps u
    Regards,
    Abdetu...

  • Custom Jars and R12

    Hi
    Is there an example of adding a custom jar file to R12 (such as setup directions within OC4J.properties)?  Specifically looking to migrate custom jar files from 11i to R12 (12.1.3)
    Thanks
    Linda

    Linda, are you sure you are posting  in the right forum?
    Neither 11i nor R12 are jdev version. You might want to ask your question in the Fusion Applications space.
    Timo

  • How to find the JAR files of a custom portal service?

    Hi all,
    I have created and deployed a custom protal service on to the portal. Now for any of the other apps to make use of this service, i need the JAR files which correspond to this portal service. Where do I find them??
    Regards,
    Narahari
    Message was edited by: Narahari Vedula

    Hi,
    Can you check up if this is located in the following path.
    System Administration ->Support->Portal Runtime
    Here navigate to ROOT/WEB-INF/portal/portalapps
    Open the folder with the name of the par file and check up if you can locate the jar.
    Regards,
    Harish
    (Please award points in case this helps)

  • Custom Fault Policy java class is not able to access mediator.jar file

    Hi,
    I am trying to implement the custom java class for mediator fault handling. However when this class is invoked its not able to access the "oracle.tip.mediator.common.error.recovery.MediatorRecoveryContext" class during run time (which exists in mediator.jar). However its able to access all the other imported class files which exists in other library files.
    Do we need to add mediator.jar to the weblogic classpath manually or should we place that jar file in some location in the server ?? Its currently residing in the path -- /app/oracle/product/soastg/11.1.0/SOA/soa/modules/oracle.soa.mediator_11.1.1/mediator.jar. I tried to copy the same jar into domain lib and admin lib path but there was no luck.
    Any input on this will be helpful.
    Thanks,
    Ramesh

    Hi Ramesh,
    Try out the following
    1) Copy mediator.jar from SOA_HOME>/soa/modules/oracle.soa.mediator_11.1.1 to <MW_HOME>//soa/modules/oracle.soa.ext_11.1.1/classes
    2) Goto <MW_HOME>//soa/modules/oracle.soa.ext_11.1.1/classes and run the following command:
    a. jar -xvf mediator.jar
    3) Now remove the jar file, i.e., mediator.jar from classes folder.
    4) Restart the server.
    Regards,
    Srijith

  • Custom tags & re-creating jar file

    Question from a novice!
    How, when I have made changes to a custom tag library tld file, do I get the deployment JAR file to re-zip the new files? The ones in that I have in the JAR file are out of date compared with the new files that I have edited after creating the tag library.
    Thanks

    Yes, you would need to either re-deploy to a JAR file to re-create the JAR file containing the new Tag Library.
    Rob

  • Where to place my customed mbean jar file?

    Hi all,
    I am totally new to weblogic, and our server is version 6.1. I would like to know
    where should I place my mbean class jar file?
    Mike

    Thanks Bala.
    "Bala" <[email protected]> wrote:
    >
    Hi Mike,
    Adding to start script (startwls.cmd/sh) is fine.
    Bala
    "Mike" <[email protected]> wrote:
    Would you please give more details on what is server's classpath?
    Should I place under %JAVA_HOME%/lib? Or Add the jar to the startWLS.cmd?
    Satya Ghattu <[email protected]> wrote:
    If you have written a custom MBean and would like to register in wls
    mbean server, you should make these classes available to the system
    class loader, i.e place the classes in the server's classpath.
    -satya
    Mike wrote:
    Hi all,
    I am totally new to weblogic, and our server is version 6.1. I wouldlike to know
    where should I place my mbean class jar file?
    Mike

Maybe you are looking for

  • Text  not  shown in swf file in browser

    hi, m using flash8 and was created site. The problem is dat when client c site on her pc and from cyber cafe. the font/text is not visible to her. What behind that. pls solve it. i think dat it's a problem of flash8 version.

  • I want to be able to open my favorite bookmarks without having to open firefox first

    When I had IE 9 I could send my favorites to a "tab" in the lower right hand corner called Links and I could open any one of my favorites without opening IE first. When I want to open a favorite bookmark from Firefox, I have to open Firefox first. Is

  • Syncing iphone to itunes on a new computer

    My laptop was stolen and I have a new one - which of course is not allowing me to sync my music library to.from my iphone Is there any way deauthorize the previous computer that the phone is synced to.?  I know how to deauthorize the computer and aut

  • How do I get my apps from my Ipad to my Macbook Pro

    How do I get my apps from my Ipad onto my Macbook Pro?

  • Save my array in mysql db

    Hi, I have the neccesity to save my java array into mysql db, as I must make?? I have felt to speak of blob... I can use this object?? mysql have blob how type of field, but after as I must make for to recover my array?? thanks in advance by ps.sorry