Portalizing existing J2EE App

All,
I am having an existing application which has to render the UI using Servlets as well Portlets. The approach I am thinking to take is:-
1. Port the servlet's logic to Portlet's doView method.
2. In the JSP's add Portlet taglib.
3. Create and Ear and deploy on JSR-168 compliant server.
Of course, there will be few more steps in between, but I am not mentioning those at this point.
After going thru "http://dev2dev.bea.com/pub/a/2004/09/deployJava81sp3.html", I found out that there is a way to deploy multiple war files in the WLS Portal server. But is there a way to deploy an ear file which contains the war file having portlets ?
Regards,
Ani

Anirudh
I am not sure what you are trying to ask. But all the portal web projects
are part of ear file. But this EAR file will work only if it is portal
domain and this EAR is a valid portal application.
Thanks
Rajneesh
<Anirudh Chitnis> wrote in message news:[email protected]..
All,
I am having an existing application which has to render the UI using
Servlets as well Portlets. The approach I am thinking to take is:-
1. Port the servlet's logic to Portlet's doView method.
2. In the JSP's add Portlet taglib.
3. Create and Ear and deploy on JSR-168 compliant server.
Of course, there will be few more steps in between, but I am not
mentioning those at this point.
After going thru
"http://dev2dev.bea.com/pub/a/2004/09/deployJava81sp3.html", I found out
that there is a way to deploy multiple war files in the WLS Portal server.
But is there a way to deploy an ear file which contains the war file
having portlets ?
Regards,
Ani

Similar Messages

  • Add WebDynpro views to existing J2EE app

    I am having a hard time understanding how i can add webdynpro views to my existing war file.  I use Spring, and not EJB's. 
    I would prefer to have the deployment coupled such that the WebDynpro is within the same classloader as my existing servlets(struts, velocity).  I need this because the application uses Toplink for it's O-R, and I would like to share the cache between the Dynpro views, and my struts views.
    How would I set up such a project within developer studio?
    thanks,
    Craig

    Ok, my previous email has skipped too many steps, as I am unable to get things wired as I would have hoped.
    Here is the problem in more detail.  I have a jar file pago.jar.  It has all the domain modeling.  We have use AspectJ in creating our domain model (pago.jar) so I understand that I cannot compile that within the SAP DevStudio.  I continue to build that within eclipse.
    I have a web-application which contains jsp's, velocity files, etc which reference the pago.jar.
    I would like to add Dynpro components to access the pago.jar.  Ideally I need pago.jar to be loaded within the same classloader as the existing web-application which can be deployed on the SAP j2ee server.  However, I am quite happy just getting a WebDynpro hitting my domain model as a first step.
    I thought I could create a DC for the pago.jar.  But then i quickly get stuck.  How do i create a DC which simply wraps this pago.jar?  Which type of DC do I create?  How do I add the pago.jar to it? 
    Then with this DC, do I just add a reference to it from my Dynpro DC?
    Thanks alot in advance!
    craig

  • Your tips?  portlet wraping of legacy j2ee apps?

    We're starting the design phase of a portal project that will take 20-40 existing J2ee apps and attempt to put a portlet interface over them.
    The delivered value will be classic portal; tntitlement, preferences, desktop per role, overview portlet and detail portlets listening on user data context events.
    Any tips, your experiences, what not to do, any example portal source etc you can share?
    Thanks, curt

    You can play with avitek portal in sample portals that comes with weblogic
    Seenu.

  • Portal sessionId to J2EE App

    Hello
    I have a page in portal which has the menu of my site, when I click on any of the options in the menu I am redirected to an j2ee app in OC4J, but I need to pass the portal sessionId to this app.
    Does anybody know how to do that?
    Please help me, I am desperate.
    Thanks in advance

    A little more detail.  Our j2ee is just a war file right now, however we wrap it as an ear to deploy it within the sap app server.  We have our own user interface with Struts/velocity which we want to keep.  However, we want to add some views which can be deployed within the SAP portal container.
    So, I am looking for advice on what kind of project i should be setting up within the developer studio, and how I should deploy this.
    Thanks,
    craig

  • Exist an app to watch the system logs in a better way? More organize?

    HI,
         Every time that I present a portal issue I past hours verifing portal logs, etc to find the issues occurred..
    Exist an app or a way to watch the logs in a better way?
    Thanks!
    Carlos

    Hi,
    You can use log4j for logging. You can write your logs wherever you want and categorize it.
    You can view an example: http://nwturk.com/blog/2010/04/16/logging-using-log4j-in-java-applications/

  • Installing Portal Platform: Error "Portal Exist"

    I am trying to install the Sneak preview. I am now at the stage where I have to install the Portal.
    However, I get the following error:
    Analyzer found the following mismatch
    Pre-installation/J2EE/Portal Existence Check that portal exists
    The error description: "Portal exist"
    Does anybody know how to continue?
    I have already installed:
    - Java(TM) 2 SDK, Standard Edition Version 1.4.2
    - the SAP Web Application Server Java 6.40 SP9 and MaxDB 7.5
    - the SAP NetWeaver Developer Studio SP9

    Have solved it. Contrary to what is said in the FAQ, there is no uninstall in the SAPINST program (the one you can download). But there's an uninstall executable in C:\USR\SAP\J2E\JC00\UNINSTSAP.EXE
    I uninstalled the J2E, then reinstalled it. After that I could install the portal... Maybe it would have been enough to re-install the J2E.
    But anyway, I can continue the installation.

  • Options to utilise the CQ5 features in existing J2EE web applications

    Hi All,
    Can some one let me the options to integrate existing J2EE application with Day CQ CMS ?
    I mean how can i display the CQ content on the JSP pages in J2EE application ?
    Thanks in advance !!

    As I understand the JavaFX 2.0 technology, it provides a rich interface to client or desktop apps written in Java. JavaFX 2.0 runs on the JVM, the API it provides is a Java API. You can access the API from any JVM language, so you can use Java to develop your applications (which is what i would advise when
    first starting using JavaFX). But you can also use other JVM languages for applications development if desired (eg. JRuby, Scala, Groovy, etc).
    Can you take an existing Web-based j2ee application and embed Java FX 2.0 technology in its jsp pages You can embed a JavaFX application in an html web page which was created using jsp (or any other web page assembly) technology. This works in much the same way as embedding a Flash App in an html page. See http://docs.oracle.com/javafx/2.0/deployment/deployment_toolkit.htm for documentation on how to do this.
    to provide a richer interface, better user experience to overcome issues associated with the stateless nature of http and the UI controls utilized in web-based applications?JavaFX is one technology which could be used to do this, other technologies would be things like AJAX, Flash, Silverlight embedded in web pages or standalone applications written in JavaFX or other client technology. Essentially if you are doing this, you are developing what used to be known as a client-server application where some of the logic and control happens on the client and some happens on the server and you have some kind of network communication layer between them, as referred to by gimbal2.

  • Installing XI 3.0 on existing J2EE

    Hi
    Are there any techical issues with istalling the XI 3.0 J2EE Only version on existing J2EE Middeware running, for example ICSS and IC Web Client.  It would appear to me that as long as the existing J2EE is at the same release level as the XI 3.0 J2EE, it should not be a problem.  Our XI 3.0 requiremets are low; just a few data imports during off-hours, so performance should not be a concern.
    Greetings
    Frank Deijkers

    What you might try is to install XI 3.0 first.  Then, install the other J2EE applications on the XI's J2EE.
    Regards,
    Bill

  • Can I add my existing, licensed apps to my list of 'Purchases' on the Mac App Store so I don't have to buy them twice?

    Hello,
    I was wondering if I could add my existing, licensed apps to the list of app 'Purchases' that I have on the Mac App Store.
    The reason for this is that I recently suffered the inevitable hard disk failure and I had to rebuild my MacBook Pro from scratch (with the help of Time Machine and Migration Assistant, etc.). As usual, I hadn't really maintained my MBP for quite a while and things sort of got away from me, in terms of data, apps, preferences, permissions, users (my personal account, my wife's account, my old work account...), etc.
    So I wanted to rebuild my MBP on a clean slate. I like having the ability to quickly download and install just the right apps that I "really" need from MAS safe in the knowledge that:
    they are there (assuming they're still available through MAS) with a full description of what they do and when I bought them, etc.
    they are going to be in the most up-to-date version,
    I'll be able to download and install them cleanly with no corruption from years of multiple user preference changes and permissions, etc.
    that they will be managed and maintained (updated) through the same mechanism,
    so much more.
    The benefits of having apps from MAS are easy to see when compared to going through my downloads folder and emails looking for the latest installers, working out what they're for in the first place, finding the license key in some forgotten e-mail, etc.
    I am aware that I can build a clean machine and then restore just the right apps in their most up-to-date version as I had them on my backups.  The one thing to say about that is that the apps may have been used and abused once too many times and their preferences, etc. may not be in the most desirable form. It's just not as elegant as the MAS solution.
    I realise that not all apps, app versions, or app vendors, are available through MAS. But I still have a fair few apps currently available on MAS that were bought prior to the existence of MAS, prior to them becoming available on MAS, or were bought directly for some other reason (by mistake).
    So I wondered if there was any way I could convert my legitimate licenses from simply a direct purchase to one through MAS and have those apps listed under my 'Purchases' list. It would reduce the amount of work I'd have to do, not only to rebuild my machine but also to maintain it.
    I cannot find any reference or way of having this work the way I would like it to. But I was hoping that some Apple guru would enlighten me.
    I have thought about the possible mechanisms something like this would need to work and I must admit I see some not insurmountable issues (not as much technical as legal or possibly logistical). I realise that MAS is a service in its own right and as such has its own Terms, Conditions and Licensing that may not be compatible with the licenses that I already have. I also realise that when I purchase an app from MAS that I'm paying for the entire service including updates and use on multiple machines that I may own, etc. Obviously I do not want to pay the full purchase cost again for the same app twice, but I am willing to pay a small conversion/upgrade fee to have it managed as part of my 'Purchases' on MAS.  Think of it in the same terms as iTunes works.  I can purchase music, etc. but I can also add my own CD collection and have it managed by iTunes and store it in the cloud should anything go wrong with my local machine, etc.
    So if this is currently not possible, then for the Apple MAS product managers out there, consider this as a suggestion/feedback.  I'd be happy to discuss my thoughts in more detail about not only how to achieve this for now but also for the future when you may add existing applications to MAS that people may have previously bought direct and would like to have managed through MAS going forward. The benefits to the users are hopefully clear, but from Apple's perspective I hope that you can see the advantages too, commercially, etc.
    PS: I apologise for the wordiness of my query and overuse of 'etc.', etc.

    Can I add my existing, licensed apps to my list of 'Purchases' on the Mac App Store so I don't have to buy them twice?
    No. Only apps purchased from the App Store can be re downloaded for free including updates.

  • URGENT: How to Run an existing Oracle apps page in Jdev 10g

    Hi All,
    I have downloaded Jdeveloper 10G with OA Extension from the patch 5856648. I am able to successfully run the "test_fwktutorial.jsp" and "HelloWordPG.xml". I need to customize an existing Oracle apps page for one of our client requirement. I've done the following:
    1. Downloaded the BC4J components of the page which include xml and .class files from $JAVA_TOP/oracle/apps/ego and placed it in myproject( C:\p5856648_R12_GENERIC\jdevhome\myprojects) and also myclasses( C:\p5856648_R12_GENERIC\jdevhome\myclasses) folder of my jdeveloper.
    2. Downloaded the mds PG.xml from $APPL_TOP/ego/mds and placed it in C:\p5856648_R12_GENERIC\jdevbin\jdev\oamdsxml\fwk with the appropriate folder structure.
    I need to extend one of the VO and one of the controllers from the above standard oracle files. But since there are only .class files in the server, if I open the .class files, the methods are missing in those files. By decompiling the class files also, during run time it gives me error.
    What is the right approach and steps to use the existing Oracle apps files. Is there some way in Jdeveloper where we can set the source of java file with compiled .class files. I'm not able to work in the Jdeveloper for this customization. Please could some one help.
    Thanks & Regards,
    Anita

    1st thing to make sure is that you want to do changes for an R12 instance because that's this version of Jdev is provided for.
    Class files are required in myclasses folder only. Also page xml files should be in myprojects folder with the appropriate folder path.
    Decompiling class files are only way to work with them.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • I had to buy a new computer because my old one died. When I sync my iPhone to my new computer, none of the existing content (apps, music, whatever) transfers. What do I have to do?

    When I sync my iPhone to my new computer, none of the existing content (apps, music, whatever) transfers. What do I have to do?
    iPhone 5 iOS 7.1.2
    Old computer Windows XP SP3
    New computer Windows 8

    Anything you purchased from the iTunes Store can be downloaded again, as often as necessary, as long as it still exists in the iTunes Store.
    Read:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • I synced my new iPad with my new macbook and when I tried to then sync my iPhone as well it says that all apps will be replaced with apps in my library. How do I sync without losing all of my existing iPhone apps?

    I synced my new iPad with my new macbook and when I tried to then sync my iPhone as well it says that all apps will be replaced with apps in my library. How do I sync without losing all of my existing iPhone apps?

    My guess is that you previously synced the iPhone with a different computer in the past. You will probably want to set up Home Sharing.
    http://support.apple.com/kb/HT4620
    Also see here:
    http://support.apple.com/kb/HT3819

  • MMS J2ee app made with JBOSS want to use it with JRUN

    Hello fellow developers,
    I am very interested in creating a small website for uploading photos from my cell phone to a j2ee app running on a JRUN 4 server.
    I've downloaded the J2, JSR-212 SAMS Messaging API EJB Reference Implementation, from the nokia site. II also down load an MMSC and SMSC simulator from NOkia, which I believe developers can use in conjunction with testing the above ejb web application.
    Briefly this is what I think is happening so far from reading tid bits here and there like the aritcle in Java Boutique.
    It seems todescribe the SAMS api as being generic enough to accept all clients that supply SPI, which I believe is the interface that verizon, cingular, or that some other cell phone service might provide. This interface allows the forwarding of a text message or media message to another operation ( like yahoo mobile). Thus, when I send my photo to a [email protected], it goes to the MMSC that communicates through SPI say a SAMS J2EE applicaiton running on yahoo, which presents my recently snapped cell phone photo in my yahoo phone album.
    I would like to test this J2ee app I download from nokia. However, in part of the instructions it claims that a person must down load JBOSS 4.0.
    Does any one know if this Nokia J2ee app for JBoss can be used on a JRUN 4?
    Can the NOKIA SMSC/MMSC simulator I downloaded work as well with JRUN4, as I notice the word JBOSS when I was installing this Simulator?
    Does anyone know where, I can get anymore information on SAMS and how to implement it in a simple J2ee app?
    When we can upload a cell phone photofrom the web browser of our phone than we will have arrived!.

    Hello fellow developers,
    I am very interested in creating a small website for uploading photos from my cell phone to a j2ee app running on a JRUN 4 server.
    I've downloaded the J2, JSR-212 SAMS Messaging API EJB Reference Implementation, from the nokia site. II also down load an MMSC and SMSC simulator from NOkia, which I believe developers can use in conjunction with testing the above ejb web application.
    Briefly this is what I think is happening so far from reading tid bits here and there like the aritcle in Java Boutique.
    It seems todescribe the SAMS api as being generic enough to accept all clients that supply SPI, which I believe is the interface that verizon, cingular, or that some other cell phone service might provide. This interface allows the forwarding of a text message or media message to another operation ( like yahoo mobile). Thus, when I send my photo to a myphone#@photo.yahoo.com, it goes to the MMSC that communicates through SPI say a SAMS J2EE applicaiton running on yahoo, which presents my recently snapped cell phone photo in my yahoo phone album.
    I would like to test this J2ee app I download from nokia. However, in part of the instructions it claims that a person must down load JBOSS 4.0.
    Does any one know if this Nokia J2ee app for JBoss can be used on a JRUN 4?
    Can the NOKIA SMSC/MMSC simulator I downloaded work as well with JRUN4, as I notice the word JBOSS when I was installing this Simulator?
    Does anyone know where, I can get anymore information on SAMS and how to implement it in a simple J2ee app?
    When we can upload a cell phone photofrom the web browser of our phone than we will have arrived!.

  • J2EE app server not able to compile JSP

    Hi,
    I have just installed J2EE app server and am trying to deploy a JSP. The following error is generated. can anyone help me please.
    Thank you,
    Deepika.
    org.apache.jasper.JasperException: Unable to compile class for JSP
    No Java compiler was found to compile the generated source for the JSP.
    This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
    to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
    If using an alternate Java compiler, please check its installation and access path.
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:348)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:424)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:448)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:551)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:300)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:284)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:306)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:200)

    This is a known issue.
    Here's an explanation of the behaviour you are seeing:
    The misleading error message is printed only in the case where a javac
    compilation error line number cannot be mapped back to a line number
    in the JSP source code.
    The internal representation of a JSP element ("JSP node") in the JSP compiler
    contains the following info:
    - The begin line number of the JSP element in the JSP page
    - The begin and end line numbers ("range") of the Java code that was
    generated for the JSP element
    When attempting to map a javac error line number back to the JSP
    source line, we determine the range into which the javac error line
    number falls, and retrieve the JSP source number of the JSP element
    associated with that range.
    However, in some cases, it is impossible to trace a javac error line
    number back to the JSP element that caused the error. For example,
    consider the following scriptlet:
    <%
    String query = request.getParameter("query");
    if(query != null) {
    out.println(query);
    } else {
    out.println("(null)");
    // } // <-- !Missing brace syntax error
    %>
    Since the JSP compiler wraps the generated code into a
    try-catch-finally block, the above syntax error in the scriptlet
    causes havoc with that try-catch-finally block, and results in 3 javac
    errors:
    <file>jsp.java:<line1>: 'catch' without 'try'
    } catch (Throwable t) {
    ^
    <file>jsp.java:<line2>: 'try' without 'catch' or 'finally'
    try {
    ^
    <file>jsp.java:<line3>: '}' expected
    Notice that all of the above javac error numbers are outside the range
    of the java line numbers corresponding to the scriptlet that caused the
    error, and therefore cannot be mapped back to any line numbers in the
    JSP page source.
    AS 8.0 PE does not handle this case correctly, and prints out the
    misleading error message (though the real error message can be found
    in the server log).
    Notice that this problem is going to be fixed in AS 8.1, so that if a
    javac error line number cannot be mapped back to a JSP page line
    number, the javac error is still returned to the client.
    In AS 8.0 PE, you need to check your server log to find out why the compilation failed.
    If you still have any problems, send me your JSP, and I will take a look at it.
    Thanks,
    Jan

  • How to run a background process in a J2EE App ?

    Hi guys,
    Here is the requirement which totally stumped me.
    " The web app should have a feature like a background process or something like cron jobs.. which keeps on running in the background and at a particular time each day calls a method". User intervention is not an option.
    Now had this been a stand alone app .. I could have done this using Threads.. but i cant possibly use threads in a J2EE app. Any pointers.. how I can go about realizing this
    Thanks for your replies.
    Cheers!

    You could take the approach that SoulTech mentioned and spawn a new thread from the Servlet's init method. To have the servlet invoke this method with no intervention, you would need to set the following parameter in your servlet definition in your web.xml:
    <servlet>
      <servlet-name>MyStartupServlet</servlet-name>
      <servlet-class>com.my.company.MyStartupServlet</servlet-class>
      *<load-on-startup>1</load-on-startup>*
    </servlet>When you deploy your application, the servlet will be loaded, and its init method will be called.
    If your application is running in a servlet container, I believe you are allowed (by the specification) to spawn your own threads, but you should do so carefully. Since you're writing a scheduler and not some kind of worker threads that are messing with your database, I think you should be okay. Still, just to keep it clean you should add any clean-up logic you may need to your servlet's destroy method. I know that in an EJB container, spawning your own threads can definitely be a problem and the container makes no guarantees that they will function correctly. The J2SE Timer class could be used if you're not using EJB, but the Timer class doesn't have support for J2EE - that's at least part of what led to the introduction of the timer beans in J2EE 1.4. If you're already using EJB, especially EJB 3.0, then the timer service provides a convenient built-in mechanism to do exactly what you want.
    There are always multiple ways to solve any problem...
    Edited by: proflux on May 15, 2008 1:04 PM

Maybe you are looking for

  • Problem with configuration Internet SMTP/POP3 Server profile in Siebel

    I cannot recieve in siebel mail from mail server. First problem is my mail server using IMAP protocol instead POP3 Is the config in profile the same as POP3 but using another port (143 for IMAP)? Second security of mail server wants to Check authenti

  • Problemo

    I'm having a weird problem and am wondering if someone can help me fix it. I'm trying to make a game with a player spaceship that is controlled by keyboard input. But it won't move with the keyboard input until I click the mouse button. the problem m

  • Having some troubles with annotations, hyperlinks, images within PDFs

    Hello all. I am having a few issues with my PDFs and I hope that someone can assist me. First, I want to state that we are using LCES2 SP1, with Workbench, Designer, Workspace, PDF generator and Reader Extensions. We do not currently have Output. Sit

  • What is the best mail program for AT&T server?

    Why does Mail lose my password once a quarter and when I try to input it is says it is bad.  It works at the ATT/Yahoo site.  Is there a better mail program I can use.  I hate internet mail sites. Thanks

  • Silverlight plug-in problem

    Have just downloaded Silverlight which appeared to install OK but when I try to run it I get a window that says "need to check that the programme will work" but this step had already been completed during the installation. Has anyone got it to work?