Java proxy and EAR file in NDS

Hi,
I'm new in java and also proxy development and I need some help
I have followed the pdf how to create java proxies in 3.0.
But i have some doubts:
Must I delete aii*.jar libraries from the EAR create?
I have no other .jar archive in that .ear... why? I suppose that is not correct and why my EJB module .jar is not included?
Thanks
carme,

Hi, Shabarish
I have followed the same steps point out in this two blogs.
I recreated all my EJB project and application.
The EAR file created only contains:
guidgenerator.jar
aii_utilxi_misc.jar
aii_proxy_xirt.jar
aii_msg_runtime.jar
sda-dd.xml
application-j2ee-engine.xml
application.xml
Sap_manifest.mf
Manifest.mf
and also a file WITHOUT NAME and size 0.
That is not correct... right?

Similar Messages

  • Error when deploy Java Proxy Server EAR to PI

    We are trying to deploy our Java Proxy Server EAR to PI using Visual Administrator. However, it gives the following error:
    Deploy of the ear has errors :
    java.rmi.RemoteException: Cannot deploy application sap.com/TestBatch
    Reason: Errors while compiling:
    .... .java:91 illegal escape character
    if (method.equals("U0024descriptor")) { ....
    We have tried to deploy the same EAR to another PI system and it works fine. As a result, we think we might have missed something when installing or configuring this PI but don't have a clue where to start. We have also tried deploying using SDM but also didn't succeed.

    Hi Pikad !
    I understand that it the very same EAR deployed with no hassle in another PI, here it should work ok, but I think you should check the backslash you are using. If you need to use the backslash character, you must use ("
    U0024descriptor") or change the U to \u0024 for the dollar sign.
    Check:
    Regards,
    Matias.

  • Difference between .jar, .war and .ear file

    Hi,
    I am pretty new to J2EE technology.
    I would like to know what is the difference between .jar, .war and .ear files and how they are deployed on webserver.
    Thanks,

    Files with a .jar extension or JAR files, are essentially just a collection of files compressed using the ZIP/ZLIB compression format.
    JAR (short for Java Archive) files were introduced in the early days of Java as a means to conveniently package and distribute Java applications and components. Since then, a number of additions to the Java platform have followed suit. The introduction of the EAR file is one such addition.
    An EAR (Enterprise Archive) file is a JAR file that contains a J2EE application.
    A J2EE application is a group of Web modules that collectively perform as a single entity.
    A Web Module is an entity consisting of one or more resources such as HTML files, Java class files, XML files, etc. Web Modules are packaged in Web Archive (WAR) files.
    Looking at it from a top-down view, EAR files contain JAR files and WAR files. Packaging resources in WAR files, JAR files and eventually EAR files, makes it easy to reuse and reassemble components as new J2EE applications and distribute them to new environments.
    For example, Tomcat deals only with WAR files.
    So, in order to auto-deploy a Web application to a Tomcat environment, you must place an application's WAR file in the appropriate directory or use Tomcat's deployment tools to manually deploy the file.
    If you already have an EAR file that contains the WAR file, you can extract the WAR file and use it as is. If you do not have the EAR file or the WAR file, you can use any number of compliant tools to create the WAR file. Tomcat is a servlet/JSP container available from the jakarta.apache.org site.

  • Java Proxy and ABAP Proxy

    hi,
    can any one send me some documents on Java Proxy and ABBAP Proxy
    regards,
    John

    hi,
    Proxies are nothing but a mechanism to shift the application logic from the XI server onto the sender or reciever system so as to reduce the effort on the side of XI.Depending upon where the proxies are generated ,it is differentiated as client proxy ( sender ) and server proxy ( receiver ) .In R3 system having WAS 6.2 and above its already has an inbuilt small IE so the proxy generation is favoured and possilbe,for more on this please go thru the following links
    Proxies: are interfaces which will get executed in the application system. They can be created only in the system from message interfaces using the proxy generation functions.
    The biggest advantage of the proxy is that it always by passes the Adapter Engine and will directly interact with the application system and Integration engine - so it will and should give us a better performance.
    The literal definition of a proxy is an object / process authorized to act for another; an agent or a substitute. In simpler terms, proxies in the XI context are objects used to encapsulate the creation (from a sender system) or parsing of XML (at a receiver system) as well as the communication with the relevant runtime components required to send or receive those messages. The Proxy Runtime controls these objects / processes, and can itself be controlled by the applications it communicates with.
    The Proxy currently has the following components available:
    1. ABAP Proxy – Communication using XI or Web Services
    2. Java Proxy– Communication using XI (J2EE)
    For further reference, visit the following sites,
    To test a connection - /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    Client Proxy - /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    Server Proxy - /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    Testing proxy - /people/stefan.grube/blog/2006/07/28/xi-debug-your-inbound-abap-proxy-implementation
    JAVA Proxies:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
    ABAP Proxies:
    /people/sap.user72/blog/2005/12/13/integration-builders-through-proxy-server-part--2
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    /people/arulraja.ma/blog/2006/08/18/xi-reliable-messaging-150-eoio-in-abap-proxies
    /people/stefan.grube/blog/2006/07/28/xi-debug-your-inbound-abap-proxy-implementation
    /people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments
    /people/sukumar.natarajan/blog/2007/01/07/how-to-raise-alerts-from-abap-proxy
    /people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies
    ON SDN TV
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=abap%20proxy%20xi&cat=sdn_all&start=11#

  • I have a created a directory structure ias\ias-samples\myapps\src\docroot.In docroot folder i have a single jsp.i created a war file having that jsp,and ear file having the war file

    I deployed the ear file.Now i try calling http://localhost/myapps/test.jsp ??
    i'm i doing the right thing ?

    Hi,
    This is right provided you have installed the webserver & app server
    on the same machine and the port number for the web server is 80 by
    default.
    Regards
    Raj
    Arif Khan wrote:
    I have a created a directory structure
    ias\ias-samples\myapps\src\docroot.In docroot folder i have a single
    jsp.i created a war file having that jsp,and ear file having the war
    file
    I deployed the ear file.Now i try calling
    http://localhost/myapps/test.jsp ??
    i'm i doing the right thing ?
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Difference between .war file and .ear file

    Hi,
    what is the difference between .war file and .ear file ?
    Please let me know with appropriate explanation.

    War file means web application archive. It is archived file having a collection of JSP, servlets and static pages that together costitute a web application. It contains one WEB-INF directory which will have a file named web.xml which defines the structure of the web application.
    On the other side EAR file is Enterprise application archive. It is file having packaged content of one or more modules into a single archive so that the deployment of all the modules can be done simultaneously on the application server. It also contains XML files called deployment descriptors which gives the details of the deployment method. This deployment descriptor will be present in the folder META-INF folder.
    So the main difference betwwen the two is that Ear file is having collection of various modules to be deployed on the application server while the WAR file is used to deploy the web applications.

  • Porting *.war files and *.ear files to Weblogic 10.3

    If we can figure this issue out, I'll see if I can't publish/post a
    maven-based solution in the Maven and Oracle forums so that others
    will not have to go through our pain.
    We are having all the usual problems regarding where Weblogic expects
    to find things and what exclusions need to be made in weblogic.xml for
    war files and weblogic-application.xml for ear files. Any insights
    would be deeply appreciated.
    Here is what our exploded war structure currently looks like.
    |____index.jsp
    |____WEB-INF
    | |____lib
    | | |____...a long list of jar files
    | |____tags
    | | |____...a short list of tag files
    | |____applicationContext.xml
    | |____web.xml
    | |____content
    | | |____...a bunch of jsps
    | |____tlds
    | | |____...some tlds
    | |____classes
    | | |____mailProperties.properties
    | | |____struts.xml
    | | |____logback.xml
    | | |____com ... the root of our class heiarchy
    |____images
    | |____...a list of images
    |____META-INF
    | |____maven
    | | |____com
    | | | |____project-name
    | | | | |____pom.xml
    | | | | |____pom.properties
    | |____MANIFEST.MF
    |____script
    | |____...some java script files
    |____style
    | |____...some css files
    Exceptions when trying to deploy are as follows:
    INFO: ... initialized Struts-Spring integration successfully
    java.lang.Exception: Could not load
    servers/AdminServer/tmp//appmergegen_1254502686535_OurApp/war/WEB-INF/classes/com...
    at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder.java:745)
    at com.opensymphony.xwork2.util.finder.ClassFinder.<init>(ClassFinder.java:148)
    The exception above repeats for every .class file found below
    WEB-INF/classes/com, i.e. the the ones in this module rather than the
    ones in included modules.
    Checking the file system shows that there is no such directory as
    "appmergegen_1254502686535_conap". I'm uncertain if there is actually
    supposed to be anything there, but it would seem like it.
    I've a theory that if we can solve the above issue, we can solve the
    rest ourselves.
    It would also be handy to know what packages may cause conflicts.

    Alright, my research points to the idea that this might have something to do with staging. Since this is a dev setup we don't have any managed servers or anything. All we have is AdminServer and that is it. We have only one domain and it is "base_domain". Does anyone know if this is wrong?

  • Is there a maximum size for and EAR file?

    I'm using Jdeveloper 10.1.3.3.0. I've used it to deploy to OAS before with success. This past week I added a ton of content to the site. Now when I deploy the ear file is over 1GB. It used to be 120MB. During the deploy process the log shows "Deployment Incomplete". I never get the dialog box to complete the deployment (i.e. to undeploy the app then finish deployment).
    I've checked the disk space on OAS and have 7GB free.
    Is there some adjustment that I need to make? Is there a size limit? If so, how do I get my content on to the site?
    TIA,
    Dave

    Update on manually deploying my application.
    On OAS:
    I tried uploading from local machine to server in step 2 but after 10 minutes or so it had appeared to hang.
    I retried after manually copying the file to the server. In this case I got to step 2 where I set application attributes. On step 3 I left defaults and clicked deploy. In the progress message window after the Unpacking ...ear message I received error message:
    Operation failed with error: java.lang.OutOfMemoryError.
    I'm sure that I can increase memory to the compiler with a command line flag. Finding the command line though...
    It looks like the /tmp directory size is part of the problem. It's only .9GB.
    Note:
    On the jdeveloper side when I deployed to EAR I checked the compress flag. That reduced the overall size by 150MB.
    Regards,
    Dave
    Edited by: dgress on Jan 7, 2009 11:37 AM

  • Junit and Ear file

    I have a ear file **
    and want to write junit test cases for some classes in the ear.
    the ear file has the following structure:
    ->ear
    ----> ejb.jar
    ----> utils.jar
    ----> some.jar
    ----> app-inf
    ------------> lib/third.jar
    ----> meta-inf
    ----------->application.xml
    Q1) Do i have to have the ear file running inside the container to test it?
    Q2) I just want to write test case for some standalong classes in utils.jar..but
    when i run juni ant task with classpath=ear , its gives classnot found, alghouth
    the uitls.jar is part of the ear?
    please help.
    thanks

    Hi,
    "java guy" <[email protected]> wrote in message news:[email protected]..
    I have a ear file **
    and want to write junit test cases for some classes in the ear.
    the ear file has the following structure:
    ->ear
    ----> ejb.jar
    ----> utils.jar
    ----> some.jar
    ----> app-inf
    ------------> lib/third.jar
    ----> meta-inf
    ----------->application.xml
    Q1) Do i have to have the ear file running inside the container to test it?Yes if you are going to test classes that require to run within a container.
    Such classes could be EJB and servlets.
    Q2) I just want to write test case for some standalong classes in utils.jar..but
    when i run juni ant task with classpath=ear , its gives classnot found, alghouth
    the uitls.jar is part of the ear?EAR itself is a JAR file. Java classloader does not look for classes
    in jars that are packaged in to a jar.
    To test your utility jar you should place/access it outside of the EAR.
    Regards,
    Slava Imeshev

  • Weblogic startup class and EAR file

    Hi,
    I am using WL 8.1.5.
    I have a weblogic starup class MyStartup that implements T3StartupDef. (it does not specify package).
    I jar-ed it. And I placed MyStartup.jar file into the MyEA.ear file. And I placed that into applications dir.
    With WL Console I defined the startup class and for the ClassName specified MyStartup.
    Yet I get the java.lang.ClassNotFoundException.
    I also have a Manifest.mf file with
    Class-Path: MyStartup.jar
    Please help me solve this problem, I literally don't know what to do next.
    MB

    Hi,
    thanks.
    This seems like a completely opposite method of the depplying startup class with weblogic console.
    Does my class still need to implement T3StartupDef?
    I get this exception. And my classnotfound is still there.
    Exception:weblogic.management.ApplicationException: startup.MyStartup
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2484)
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2396)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:883)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:591)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    Regards,
    MB

  • Deployment and .ear files

    I have two questions; one may relate to the other.
    First, I would like to know the best way to deploy Session beans which have dependencies on other EJBs, be they Entity Beans or other Session Beans. The dependency is limited to the implementation class, not the interfaces. I have tried just putting all my EJBs in the classpath in startWebLogic.sh, but I get the "bean cannot be redeployed while the server is running" warning. Is there another way?
    Second, I have read of .ear files, which seem to be a good way of dealing with many EJBs/JSPs en masse(I'm working with ~100 EJBs and ~2000 JSPs). However, I haven't found anything on exactly what they are, how to use them, or how to generate them.
    If anyone has these answers, or can point me to a good site on the matter, I'd appreciate it.
    Thanks, --Tom Seufert

    Hi Tom,
    The "best" way to generate EAR files is to use an IDE that has built-in
    tools to do it -OR- to use ANT (kind of an xml-based gnu-make-like utility
    for Java).
    Most dev groups that I've seen start by using .sh/.cmd (i.e. batch) files to
    generate the JAR/WAR/EAR files. ANT allows you to do things like
    dependency-based builds, to avoid re-generating parts that are not
    necessary. That was very handy with WL 5.1 when EJBC could take several
    minutes (even running locally with a fast compiler like JIKES). (I have
    only used ANT a tiny bit, but Jesse Tilly who frequents this newsgroup is an
    expert with it.)
    The EAR is just a means to bundle different parts of your application
    together. For example, your EJBs will be bundled into a JAR, and your JSPs
    will be bundled into a WAR, and you can put both into an EAR. WL6.0 will
    accept an EAR file for deployment, will auto-deploy, and will even re-deploy
    it if the EAR changes!
    The easiest way to build a JAR or WAR or EAR file within a batch or build
    file is to use the JAR command. If you have a directory structure that is
    exactly how the JAR file will be layed out, then I believe the command is
    "jar -cfm0 my.jar *" or "jar -cfm0 my.jar .".
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com
    +1.617.623.5782
    WebLogic Consulting Available
    "Tom Seufert" <[email protected]> wrote in message
    news:[email protected]...
    >
    >
    I have two questions; one may relate to the other.
    First, I would like to know the best way to deploy Session beans whichhave dependencies on other EJBs, be they Entity Beans or other Session
    Beans. The dependency is limited to the implementation class, not the
    interfaces. I have tried just putting all my EJBs in the classpath in
    startWebLogic.sh, but I get the "bean cannot be redeployed while the server
    is running" warning. Is there another way?
    >
    Second, I have read of .ear files, which seem to be a good way of dealingwith many EJBs/JSPs en masse(I'm working with ~100 EJBs and ~2000 JSPs).
    However, I haven't found anything on exactly what they are, how to use them,
    or how to generate them.
    >
    If anyone has these answers, or can point me to a good site on the matter,I'd appreciate it.
    >
    Thanks, --Tom Seufert

  • Problem with Java Proxy and Socket Connection

    Hi Gurus!!
    I have developed a Java Proxy that connects via socket with a Server Socket application. This Server Socket application accepts more than one connection at the same time.
    When I connect the first time from my Java Proxy, the connection is correctly established. When the first connection opened, if a try a second connection, this is not established.
    I use "new Socket(SocketServer,SocketPort);" to open the connection.
    I think that all time the Java Proxy is trying to open the same connection, and this is a problem.
    Is there a way to indicate to the server that is a new connection and that the existing connections remain?
    Anybody could help me, please?
    Thanks and regards,
    Manuel Míguez.

    Sorry!!!!i must give you more information.
    The error which i have when i push the submit button is
    HTTP Status 404 -
    type Status report
    message
    descriptionThe requested resource () is not available.
    GlassFish Server Open Source Edition 3.0.1
    My thought is that the error is in this line
    String connectionURL = "jdbc:mysql://localhost/mybooking";in mysql when i write this code then the table opens with no problems:
    mysql>show databases;
    mysql>usebooking;
    mysql>showtables;
    mysql>describe booking;Furthermore i have added in my web application the library mysql JDBC driver my-sql-connector-java-5.1.6.bin.jar
    Edited by: 813355 on Nov 22, 2010 1:50 AM
    Edited by: 813355 on Nov 22, 2010 2:00 AM

  • Timestamp in Java log and trace files.

    Hi SAP'ies
    Running PI 7.11 on AIX 6.3 we face an issue with the content of log and trace files from Java.
    Eg.
    The file DefaultTrace_00.0.trc is timestamped 18-05-10 11:16:15. (The same time as the time of the OS/AIX)
    Looking inside the file the last statement is timestamped 2010 05 18 09:16:15.
    How can we ensure that the content of these Java files are timestamped with OS time?
    Looking into ABAP files like dev_w0 the timestamp of the file and the content are equal.
    Best regards,
    Teddy Løv Andersen

    Hello All
    Best way to convert the default trace time is , visit the site
    http://www.csgnetwork.com/epochtime.html
    here enter , for example if you have the following in default trace
    #1.#00265510DE7300120000000F000022030004C77AD7309DF5#1345230317066#com.sap.portal.fpn.rdl
    1345230317066   is time stamp , enter this in the above site to get the time
    Fri Aug 17 2012 21:05:17 GMT+0200
    Regards

  • What is ABAP/JAVA Proxy and whats the use of it?

    Hello All,
    What is ABAP/JAVA Proxy. And why do we need to use them? I am not sure of the definitions given on help.sap.com. Thats the reason I am posting this question. Right answer will be rewarded. Thanks in advance.
    Regards,
    Farooq.

    HI Farooq
    <u><i>ABAP Proxy</i></u>
    ABAP server proxy is created for the inbound interface creted in XI's Integration repository proxy should be created in the business system for which the interface is created .
    U can reference following link :
    http://help.sap.com/saphelp_nw2004s/helpdata/en/02/265c3cf311070ae10000000a114084/frameset.htm
    Server Proxies are generated for Inbound Message Interfaces. These are used to Process the Data coming into SAP System from an external application.
    Sproxy is the transaction to generate Proxies.
    Plz refer to this blog on abap server proxies
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    <u><i>Java Proxy</i></u>
    Java Proxoies are used to allows your java Applications ( j2ee, j2se applications )to interact directly to the Integration Server of XI without any special adapters.
    All documents are available on SDN itself .
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7d4db211-0d01-0010-1e8e-9b07fc2113ab - How To Work with XI 3.0 Java Proxies
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9- Java Proxies and SAP XI - The Inside Story, Part 1
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d - Java Proxies and SAP XI - The Inside Story, Part 2
    Proxies help you achieve non-standard functionality for which the out of box XI adapters do not suffice. Just to give you an example, consider a system with which XI has to integrate , the only interface the system offers is a TCP / IP socket based interface. You could write a Java proxy which would interact over sockets with your target system, which is not possible with other standard adapters which are shipped with your XI installation
    You can refer demo on SDN TV, on this link
    https://www.sdn.sap.com/irj/sdn?rid=/webcontent/uuid/110ff05d-0501-0010-a19d-958247c9f798 [original link is broken]
    Cheers..
    Vasu
    <i>** Reward Points if found useful **</i>

  • How to Include Java sourcecode into EAR File in Web Dynpro

    Hi Everyone,
    There should be a setting in the developer studio , where in which we can include the source code into a EAR File after we build the source code.
    I am unable to get this settings.
    Please help me out
    Regards,
    Raj

    Hi,
    Well i don't think any of the source codes comes under the ear file when you deploy your application. You can see this.
    First open your project folder, here you will find the ear file.
    Open the command prompt, change the location to the place where ear file is located and then enter :
    jar xvf myearfile.ear
    This will give the extract of the ear file.
    thanks & regards,
    Manoj

Maybe you are looking for

  • Network users no being able to open/see iCloud documents

    I have a local network. All the network users are working without any glitch. They are able to use mail/contacts/etc from iCloud. iWork is able to open/see only local/network files but iCloud ones. Is anyone having the same problem?

  • TS3354 HOW TO CHANGE HD MOVIES INTO REGULAR MOVIE

    how to change hd movies on itunes to regular movies

  • The report displays more than 3000 pages with same content.

    Respected Sir I have a report with form letter layout. The report contains only one page,but while running the paper layout ,the report displays more than 3000 pages with same content. please anyone give a solution to this problem

  • I want to fix the output type neu permanently.

    hi gurus, while taking print output of po.i click on messages  and put output type as neu.and then take print preview. but i permanently want fix the output type neu .i dont want to put output type neu every time .so as to take quick preview of purch

  • Dear Moderators

    Dear Moderators, Can we make a rule for General Posting..? For example: If, there are general queries like: Posting only possible in periods 2009/01 and 2008/12 in company or, Account xxxxx requires an assignment to a CO object' or What is Third Part