Migration from Sun Java System Portal Server to the Oracle Portal

Hi, I'm in charge of evaluate the viability of a project that comprises the migration from Sun Java System Portal Server to the Oracle Portal. so I'm wondering if there is a kind of out of box migration tool in Oracle Portal or exists some guidelines to do the migration. In the other hand there is the option of migrate from Sun Java System Portal Server to Oracle WebCenter?
Thanks in advance!

The migration path for Sun Portal Server is Oracle WebCenter Suite. WebCenter is a significantly different architecture so there are no tools planned for the migration. However, we do plan to document and publish a whitepaper once we've assisted a few of the initial customer migrations.

Similar Messages

  • The Sun Java System Application Server could not start

    Hello All,
    I downloaded the Java Pet Store example from sun's website and followed the instructions for installation. After successful installation, I tried to deploy the project and gave the following error
    C:\Documents and Settings\sina\My Documents\Projects\services\nbproject\build-impl.xml:194: Deployment error:
    The Sun Java System Application Server could not start.
    More information about the cause is in the Server log file.
    Possible reasons include:
    - IDE timeout: refresh the server node to see if it's running now.
    - Port conflicts. (use netstat -a to detect possible port numbers already used by the operating system.)
    - Incorrect server configuration (domain.xml to be corrected manually)
    - Corrupted Deployed Applications preventing the server to start.(This can be seen in the server.log file. In this case, domain.xml needs to be modified).
    - Invalid installation location.
    See the server log for details.
    BUILD FAILED (total time: 5 minutes 20 seconds)
    The link above points to the following line in the build-impl.xml file
    <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}" clientUrlPart="${client.urlPart}" clientModuleUri="${client.module.uri}"/>
    Can any one help whats wrong.An early response will be highly appreciated.
    Kind Regards.
    Hasnain Javed.

    Hi,
    Maybe you already got this fix but here is a suggestion, a snippet from the readme index,html of the petstore download
    # Start the Sun Java System Application Server and the JavaDB database. To do so, open a command prompt and change directory to <javaeesdk.home>/bin and issue the following commands:
    asadmin start-database
    asadmin start-domain
    # Change directory to <petstore.home> and enter the following commands
    ant setup
    ant run
    This will setup, build and deploy the petstore on the application server, and then launch the application homepage in your default browser.
    The "ant setup" that you run from <petstore.home> (petstore.home is the directory where petstore is installed or where you unzipped it) will populate the database wth data and setup the proper database tables etc that are used by the application.
    hth,
    Sean

  • Webservice Connection Timeout Error in Sun Java System Application server

    I have a java code to connect to Ebay Shopping Webservice that uses the client stub generated through Axis. The code works fine when I run it from the main method of a stand alone Java application. Which means there is no issue with the Proxy settings or any other network setting that could block the webservice from my system. However when I use the same code inside a JSF based Web Application, a connection timeout error comes up. The Web application is deployed on the Sun Java System Application server. The stacktrace of the exception is
    java.net.ConnectException: Connection timed out: no further information
         at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
         at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:527)
         at com.sun.enterprise.server.ss.provider.ASClientSocketImpl.connect(ASClientSocketImpl.java:206)
         at java.net.Socket.connect(Socket.java:520)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)
         at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:125)
         at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
         at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:2443)
         at org.apache.axis.client.Call.invoke(Call.java:2366)
         at org.apache.axis.client.Call.invoke(Call.java:1812)
         at com.ebay.api.soap.ShoppingBindingStub.findProducts(ShoppingBindingStub.java:1217)
         at com.shopping.ebay.EbayServiceUtility.performEBaySearch(EbayServiceUtility.java:66)
         at searchProduct.SearchProductBean.search(SearchProductBean.java:98)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:96)
         at javax.faces.component.UICommand.broadcast(UICommand.java:383)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:450)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:759)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
         at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
         at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    The JDK version on my machine is 1.5.0_14. Can somebody point me as where I should be looking for errors?

    You need to delete all the files under the 'generated' directory to force the server to recompile them after the JDK upgrade. Also check in domain.xml and make sure the JVM parameter is pointing to the JDK that you have installed. It is also worthwhile to check asenv.conf to see which JDK that file is pointing to as well.

  • Adding a JDBC driver in Sun Java System Web Server 7

    I'm trying to configure JDBC database connection pooling for a Microsoft SQL Server 2005 Express Edition though the Sun Java System Web Server 7 administration console. I don't want to use the MSSQL JDBC driver that comes bundled with the SJSWS 7. So I've downloaded the lastest MSSQL JDBC driver from the Microsoft website and put in the "lib" subdirectory of the SJSWS installation directory. So when I go to add a new JDBC resource through the administration console, the newly added MSSQL database driver doesn't appear in the "Driver Vendor" drop-down box.
    How do I add the downloaded JDBC driver to the server so that it appears in the "Driver Vendor" drop-down under "Create JDBC resource".

    Check this documentation from MS on using the JDBC driver with DataSource
    http://msdn2.microsoft.com/en-us/library/ms379052.aspx
    SJS Web Server 7.0 should work with any driver that has support for javax.sql.DataSource. The great majority of drivers do.
    So instead of using the driver name, use the DataSource class name:
    com.microsoft.sqlserver.jdbc.SQLServerDataSource
    The properties to add should be:
    user=username
    password=password
    servername=sql_server_hostname
    portnumber=sql_server_port
    databasename=databasename
    In general, all the setters required to get the datasource configured can be set as properties.

  • Sun Java System Web Server 7.0 available

    I am delighted to announce that Sun Java System Web Server 7.0 is now available for download, purchase, deployment, and more.
    This release builds on the highly scalable and stable heritage of Web Server. It features an entirely re-designed Administration interface designed around clusters, easy access to frequently performed tasks, simplification of frequently performed tasks., and a fully scriptable command line interface featuring functional parity with the browser-based interface.
    In addition to the administration changes this release features:
    o Full 64-bit support for Solaris SPARC and Solaris AMD64 platforms
    o Regular expression pattern matching for URL re-writing and mass hosting
    o If/Then/Else constructs within request processing
    o Advanced sed based input and output filters
    o Dynamic loading of Certificate Revocation Lists (CRLs) without requiring daemon restart
    o Elliptic Curve Cryptography (ECC)
    o Built in request mapping for protection against abnormal load patterns and Denial of Service protection
    o WebDAV ACL support
    o Out-of-box Java support for Servlets 2.4, JSP 2.0, JSF 1.1, JSTL 1.1, JWSDP 2.0 based web services
    o Java session failover and recovery within a cluster of peers
    o Integrated HTTP reverse proxy User-Agent
    o Bundled FastCGI client for use with third party scripting environments such as Perl, PHP, Ruby on Rails, etc
    o Enhancement of perfdump, stats-xml, and SNMP as well as more ability to monitor the Java container and the ACL system
    o Much more
    The software can be downloaded from:
    http://www.sun.com/download/products.xml?id=45ad781d
    The documentation is available at:
    http://docs.sun.com/app/docs/coll/1308.3

    If 7.0 was released, how come http://www.sun.com/webserver still only talks about 6.1?

  • How to make weblogic proxy to work on Sun Java system web server 7?

    Hi Every one,
    I am working on upgrade our Sun one 6.1 webserver to Sun Java system web server 7. Our website uses weblogic server to process jsp, web server only send static pages. I did all configurations as on Sun one. But somehow, the webserver does not forward "get jsp page" request to weblogic. The log record is:
    for host 10.78.124.118 trying to GET /home.jsp, send-file reports: HTTP4142: can't find /www/a/WebServer7/docs/bmd9i/home.jsp (File not found)
    home.jsp is at weblogic server.
    And redirect "NameTrans fn="redirect" from="/" url="/home.jsp"" seems does not work. when I type on IE http://32.69.253.131/ (32.69.253.131 is http listener IP), it always shows index.html page under the document root.
    Could some on can help? I am the first time to configurate web server. Thanks in advance.
    The configuration files are like:
    1. magnus.conf
    # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
    # Use is subject to license terms.
    Init fn="load-modules" funcs="wl_proxy,wl_init" shlib="/www/a/WebServer7/weblogic6.1sp6/libproxy.so"
    Init fn="wl_init"
    2. obj.conf
    # Copyright 2010 Sun Microsystems, Inc. All rights reserved.
    # Use is subject to license terms.
    # You can edit this file, but comments and formatting changes
    # might be lost when you use the administration GUI or CLI.
    #<Object name="weblogic">
    #Service fn="wl_proxy" WebLogicCluster="32.69.253.86:7210" ConnectTimeoutSecs="240" ConnectRetrySecs="60"
    #</Object>
    <Object name="default">
    <Client method="TRACE">
    AuthTrans fn="set-variable" remove-headers="transfer-encoding" set-headers="content-length: -1" error="501"
    </Client>
    #AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
    NameTrans fn="strip-params"
    NameTrans fn="redirect" from="/" url="/home.jsp"
    NameTrans fn="redirect" from="/index.jsp" url="/home.jsp"
    NameTrans fn="redirect" from="/index.html" url="/home.jsp"
    NameTrans fn="document-root" root="$docroot"
    NameTrans fn="pfx2dir" from="/mc-icons" dir="/www/a/WebServer7/lib/icons" name="es-internal"
    NameTrans fn="home-page" path="index.html"
    <If $uri =~ "/*.jsp">
    Service method="(GET|HEAD|POST|PUT)" fn="wl_proxy" WebLogicCluster="32.69.253.86:7210" ConnectTimeoutSecs="240" ConnectRetrySecs="60"
    #Service method="(GET|HEAD|POST|PUT)" type="text/jsp" fn="wl_proxy" WebLogicCluster="32.69.253.86:7210" ConnectTimeoutSecs="240" ConnectRetrySecs="60"
    </If>
    PathCheck fn="unix-uri-clean"
    PathCheck fn="check-acl" acl="default"
    PathCheck fn="find-pathinfo"
    PathCheck fn="find-compressed" check-age="off" vary="on"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain" charset="iso_8859-1"
    ObjectType fn="set-default-type" charset="iso_8859-1"
    Service method="(GET|HEAD)" type="magnus-internal/directory" fn="send-error"
    Service method="(GET|HEAD)" type="*~magnus-internal/*" fn="send-file"
    AddLog fn="flex-log" name="access"
    </Object>
    <Object name="es-internal">
    PathCheck fn="check-acl" acl="es-internal"
    </Object>
    <Object name="send-precompressed">
    PathCheck fn="find-compressed"
    </Object>
    <Object name="compress-on-demand">
    Output fn="insert-filter" filter="http-compression"
    </Object>
    3.mime.types
    I add one line: type=text/jsp exts=jsp

    Quick obvious question - Are you positive you're editing the correct obj.conf? Check the config directory and see if there is a second one called something like <instance>.obj.conf (where <instance> is the name of your configured instance).
    Alternatively you can grep for object-file in the server.xml to see which obj.conf the server is using:
    # grep object-file server.xml
        <object-file>bare-php.obj.conf</object-file>Assuming that you are editing the correct obj.conf file, are you making certain to restart Web Server after making your changes?

  • Regarding Sun Java System Application Server Issue with JVM

    Regarding Sun Java System Application Server Issue with JVM
    Hi
    I have installed SJSAS9.1 on solaris system. I m trying to deploy war file which i compiled in windows enviorment by jdk1.5.0_05. Every time i got the following error :
    type Exception report
    message
    descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP
    PWC6199: Generated servlet error:
    [javac] javac: invalid target release: 1.5
    [javac] Usage: javac
    [javac] where possible options include:
    [javac] -g Generate all debugging info
    [javac] -g:none Generate no debugging info
    [javac] -g:{lines,vars,source} Generate only some debugging info
    [javac] -nowarn Generate no warnings
    [javac] -verbose Output messages about what the compiler is doing
    [javac] -deprecation Output source locations where deprecated APIs are used
    [javac] -classpath Specify where to find user class files
    [javac] -sourcepath Specify where to find input source files
    [javac] -bootclasspath Override location of bootstrap class files
    [javac] -extdirs Override location of installed extensions
    [javac] -d Specify where to place generated class files
    [javac] -encoding Specify character encoding used by source files
    [javac] -source Provide source compatibility with specified release
    [javac] -target Generate class files for specific VM version
    [javac] -help Print a synopsis of standard options
    note The full stack traces of the exception and its root causes are available in the Sun Java System Application Server 9.1 logs.
    I have cheked jvm version on both system the only difference is :
    Solaris points to jdk 1.5.0_09
    Windows point to jdk1.5.0_05
    Even i tried to run blank jsp also but again i got the same error.
    Can any help me to sort out the problem or give me any idea so i can do something by my own.
    Thanks in Advance
    Gagan

    Do you have ANT installed and available?
    Thanks,
    Kedar

  • Unable to install Sun Java System Web Server 6.1 Service Pack 7 on Wndows

    Dear All,
    I recently downloaded Sun Java System Web Server 6.1 Service Pack 7 and now I am trying to install it.
    The previous version of Web Server 6.1 that i installed is running successfully on Windows 2000 Prof. though it is not meant for it.
    To install SP7, i uninstalled the previous Web Server 6.1. I also removed the folder Sun and all the child folders of it. The Sun ONE Web Server services are still available and i can't able to delete them even from registry so i disabled them.
    Then I tried to install SP7. But after few steps, it gives error:
    You already have a Sun ONE Web Server installed. Install can not proceed.
    I am sure that i am able to remove completely the previous instance of webserver as i removed all the entries from registry also and also disabled the services related to it.
    Still why i am getting this error?
    Will it work on Windows 2000 Professional like its previous version?
    If not can i able to install previous version of the Web server 6.1 (without SP7) on Windows 2000 Prof?
    Please help me regarding this.
    -Sameer

    Sameer, you should have uninstalled Web Server 6.1 using the Web Server uninstallation program instead of just deleting its files and directories. Your Windows registry is now in an inconsistent state.
    If you can restore your previous Web Server 6.1 installation from a backup, you can run the uninstaller to correctly uninstall it.
    If you cannot uninstall Web Server 6.1 using its uninstallation program, you will need to manually delete the Windows services and edit the Windows registry to remove all references to the files you deleted. Note that you can render your computer inoperable by deleting services or modifying the Windows registry. Don't do this if you're not confident with what you're doing.
    To delete the services using SC.EXE:C:\>sc delete https-admserv61
    C:\>sc delete https-hostname(You can find the hostname for the Web Server 6.1 service(s) using the Services program in the Administrative Tools folder of the Control Panel.)
    To clean up the registry, use REGEDIT.EXE to delete HKEY_LOCAL_MACHINE/Software/Sun Microsystems/WebServer.

  • How to access JDBC Resource registered in Sun Java System App Server ?

    I want to create a stand-alone JDBC application with Java SE using Swing technologies and JNDI technology. The purpose of using JNDI technology is to avoid change of Java Source Code every time I move the database to different location. This Java application will be used in a standalone PC installed with Windows XP Professional with no LAN / WAN connection. Of course, Internet connection is available with the PC.
    I use JavaDB to store the data tables and the location of the database is D:\E-DRIVE\SAPDEV. Tomorrow, if I move this database to C:\SAPDEV or any network drive, I do not want to change the Java Source code. I want to use JNDI which, if I am not wrong, helps developers to avoid manual change of Java source code whenever the database location is changed. Changes have to be made only in the JNDI Name which contains all relevant information about the database in order to get connection no matter where the database SAPDEV is stored; it can be placed under D:\E-DRIVE directory or C:\ directory of the hard disk. To implement my intention, I started developing Java application as per the steps mentioned below:
    Step 1:
    To proceed, first, I sought the help of Sun Java System Application Server Admin Console. I created JNDI object for Connection Pool using the menu path Common Tasks->Resources->JDBC->Connection Pools.
    JNDI Name : ABAPRPY
    Resource Type : javax.sql.DataSource
    Datasource class : org.apache.derby.jdbc.ClientDataSource
    Description : ABAP Program Repository
    The Connection Pool creation has options for General, Advanced and Additional Settings tabs and I made all the settings relevant to the database I created in D:\E-DRIVE\SAPDEV.
    To confirm whether the above settings are correct, I pressed the Ping push button which is available in the General tab of the connection pool creation screen. The system responded with the message Ping Succeeded.
    Step 2:
    I created a JDBC Resource using the menu path Common Tasks->Resources->JDBC->JDBC Resources.
    JNDI Name : jdbc/SAPDEV
    Pool Name : ABAPRPY
    Description : Database Connection for SAPDEV database
    Status : Enabled
    I can see all the above settings recorded in the domain.xml which is placed in the folder
    C:\Sun\AppServer\domains\domain1\config
    Step 3:
    I have made sure that Sun Java System Application Server is up and running in the background with JavaDB server. I created a Java Program making sure the following JAR files are included in the classpath:
    appserv-admin.jar
    appserv-ee.jar
    appserv-rt.jar
    javaee.jar
    fscontext.jar
    Plus, the lib directory of JDK 1.6 & C:\Sun\AppServer\domains\domain1\config
    Source code of the program is as follows: I used NetBeans IDE to create my project file.
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.naming.*;
    import javax.activation.DataSource;
    public class JNDILookup {
    public static void main(String[] args) {
    try {
    InitialContext initCtx = new InitialContext();
    DataSource ds = (DataSource) initCtx.lookup("java:comp/env/jdbc/sapdev>");
    } catch (NamingException ex) {
    Logger.getLogger(JNDILookup.class.getName()).log(Level.SEVERE, null, ex);
    When I attempted to compile the above program in NetBeans IDE ,no compilation error reported. But while executing the program, I got the following run-time error message:
    SEVERE: null
    javax.naming.NameNotFoundException: No object bound for java:comp/env/jdbc/sapdev> [Root exception is java.lang.NullPointerException]
    at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:224)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:396)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at SAPConnect.JNDILookup.main(JNDILookup.java:21)
    Caused by: java.lang.NullPointerException
    at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
    ... 3 more
    Now, I want to come out of this situation; at the same time, I want to preserve the settings I have made in the Sun Java System Application Server Admin Console. That is, I want to programmatically access the data source using Connection Pool created in Sun Java System Application Server Admin Console.
    I request dear forum members to provide me an appropriate solution.
    Thanks and regards,
    K. Rangarajan.

    jay44 wrote:
    Bare in mind I am attempting the context.lookup() from inside the container (my code is in a session bean). I have accessed the server and have my bean "say hello" first to verify the bean works OK, then I call a method with this rather standard code:
    String jndiDataSourceName ="Second_EJB_Module_DataBase";
    Logger.getLogger(DynamicPU.class.getName()).log(Level.INFO,"Programatically acquiring JNDI DataDource: "+ jndiDataSourceName);
    InitialContext ctx;
    try {
    ctx = new InitialContext();
    ds =(DataSource)ctx.lookup("java:comp/env/jdbc/"+jndiDataSourceName);
    } catch (NamingException ex) {
    Logger.getLogger(DynamicPU.class.getName()).log(Level.SEVERE, null, ex);
    return "Exception generated trying to preform JDBC DataSource lookup. \n"+ex.toString();
    But when I run the code the server log shows the initial context is created Ok, but an exception is thrown becasue the resource name is not found:
    (and i have tried vriations of ctx.lookup("jdbc/"+jndiDataSourceName) etc etc
    You are fine here. It works in container because the InitialContext properties have been supplied already. That was the link I forwarded earlier. The InitialContext you create locally needs to locate the container JNDI. That is what the properties specify.
    Where I am confused is where you indicate the stack below is from the server log. So, you initiate a standalone (java main method) application, create an InitialContext, and you see the results in your app server log?
    LDR5010: All ejb(s) of [EJB_Module_1] loaded successfully!
    Programatically acquiring JNDI DataDource: Second_EJB_Module_DataBase
    The log message is null.
    javax.naming.NameNotFoundException: Second_EJB_Module_DataBase not found
    at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:216)
    at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:188)
    at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:192)...
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
    This is strange since I can see this resource (a JDBC connection named Second_EJB_Module_DataBase) is configured on the server from the server's admin console.
    That is why you can obtain a lookup from within the container (app server).
    For this lookup to work it may be that one must map the name inside an ejb-jar.xml deployed with the application, but I have also read some resources like jdbc connection should have a default name. Does anyone know if my lookup() should work without using an ejb-jar.xml mfile to explcitly map the reource for my application?
    Both EBJ's and data sources can be referenced via JNDI. It's a remote lookup (that is normally optimized if it is running in the same JVM). You should not have any dependencies on a JDBC data source being set-up on ejb-jar.xml. That file can of course impact your EJB's. However, data sources are normally set-up on a container-specific basis (e.g., you probably did it through a console, but there is a spec somewhere about how to set up a data source via a resource the app server looks for; it varies from app server to app server). However, once you have that container-specific data source set-up, JNDI operates vendor-neutral. You should be able to take the code above and move it to JBoss or Weblogic or Tomcat or whatever (this is an ideal, in practice, the vendors sometimes put a data source in a name you would not expect, but again, you can use their JMX console to see what the JNDI name is).
    (As I stated above if I have to use a deployment discriptor to get at this JNDI datasource, then solution is not "programmatic" as newly configured datasources could not be accessed without redeploying the entire application).
    As JSchell alluded to, you will always have at least something vendor-specific. JNDI itself (the code you wrote) is totally portable. However, you have to set the various JNDI environment properties to a given vendor's spec. Ideally, you should not need a vendor's actual InitialContext application, but it's a possibility. Once you can safely cast to Context, you should be vendor-neutral (if not, demand your money back).
    So that is exactly where I am stuck, trying to get the lookup to work and wondering if it should work without and xml file mapping the resource for my app.
    What we ended up doing for standalone was to provide our own JNDI. If you look at the open source project JOTM, there are examples on how to use that with XBean (if integrating with Spring, as we did), you can easily set up a data source that runs standalone exactly as you get in the container. Another benefit is you get full JTA/JTS support and the ability to run XA transactions. (This might all be alphabet soup, but the app server gives it to you, and this is the way we ended up doing the same: JNDI + JTA + JTS + XA). It ends up the same application code uses a "vanilla" InitialContext and all we have to do is write one or two xml files (one for our app server, a couple for JOTM), and our actual code works the same.
    I still think you have a shot at getting to the container's JNDI, just not using their full-blown app server JAR.
    I think there must be a simple way to do this with an ejb-jar.xml, I am no expert in JNDI, I could be missing something simple, I will keep at it and post an answer here if I come up with it.
    Thanks, jayIt is simple to code. Getting it to integrate with your app server, yes, that can be challenging. But it has nothing to do with EJB's. Write a simple test. Using nothing but DataSource and InitialContext. Let us know where you get stuck.
    - Saish

  • Can not start Messaging server in Sun Java System Messaging Server 6 2005Q1

    Hi all,
    I installed Sun Java System Messaging Server 6 2005Q1 from Solaris 10 DVD on Solaris 10.
    After the installation, I got directory server, admin server running but messaging server not running. I can not start Messaging server (start smtp, http, pop, imap). I found in directory which I installed messaging server but I could not see script "start-msg" and "stop-msg".
    # pwd
    /opt/SUNWmsgsr/sbin
    # ls
    MoveUser ha_ip_config imquotacheck imsdirmig mkbackupdir
    UpgradeMsg5toMsg6.pl hashdir imsbackup imsexport readership
    configure imexpire imsconnutil imsimport reconstruct
    control-params.txt iminitquota imscripter imsrestore relinker
    deliver immonitor-access imsdaaci mboxutil useconfig
    Any idea what might have gone wrong?
    Thanks.

    Thanks.
    I have a problem when I configure the Messaging Server (by running the /opt/SUNWmsgsr/sbin/configure script):
    Hostname mailtest for this machine is not a fully qualified domain name. Please
    correct this before attempting to configure Messaging Server. Please make sure
    that your DNS is working properly.
    <Press ENTER to continue> {"<" goes back, "!" exits}
    Can you help me fix this problem?
    Thanks.

  • Java 1.5, Servlet 2.4 support in Sun Java System Web Server?

    Hi All,
    Does anyone know when the next version of Sun Java System Web Server will be released? 6.1 has been around a while and it doesn't support the latest Java releases, which is odd for a Java product from the company that owns Java. My Sun rep didn't have an answer for me and suggested posting here.
    I have seen references to people trying to use 1.5 with their server in another forum, but they were reporting problems and their questions weren't answered.
    Thanks!
    Dennis

    Hi,
    Try the new
    SAP NetWeaver Application Server, Java EE 5 Edition
    thus you will have the chance to use the latest Servlet 2.5. The download package includes also the new SAP NetWeaver Developer Studio.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/index?rid=/library/uuid/da699d27-0b01-0010-99b0-f11458f31ef2">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/index?rid=/library/uuid/da699d27-0b01-0010-99b0-f11458f31ef2</a>
    Regards,
    Violeta

  • How to install Sun Java System Application Server PE 9 in debian

    Hi,
    I have ubuntu installed on my system. I wanted to install the Sun Java System Application Server PE 9 on it. I didn't see any debian package for it on Sun's downloads. I downloaded the linux version and tried to install it. I got the following result...
    root@vineet :/usr/src# ./java_ee_sdk-5-linux.bin
    Checking available disk space...
    Checking Java(TM) 2 Runtime Environment...
    Error: Could not find the required version of the Java(TM) 2 Runtime Environment.
    This application needs version 1.5 or higher of the Java(TM) 2 Runtime
    Environment. If the required Java(TM) 2 Runtime Environment is not installed,
    you can download it from the following website:
    http://java.sun.com/j2se
    Or if you already have the required Java(TM) 2 Runtime Environment
    installed, try rerunning this application with the following usage:
    'java_ee_sdk-5-linux.bin' -javahome <Java(TM) installation directory>
    root@vineet:/usr/src# ./java_ee_sdk-5-linux.bin -javahome /usr/lib/j2re1.5-sun
    Checking available disk space...
    Checking Java(TM) 2 Runtime Environment...
    Launching Java(TM) 2 Runtime Environment...
    Error: There are no files requiring installation.
    Deleting temporary files...
    Any suggestions will be highly appreciated.
    Thanks,
    Vineet

    Hi,
    I have ubuntu installed on my system. I wanted to
    install the Sun Java System Application Server PE 9
    on it. I didn't see any debian package for it on
    Sun's downloads. I downloaded the linux version and
    tried to install it. I got the following result...
    root@vineet :/usr/src# ./java_ee_sdk-5-linux.bin
    Checking available disk space...
    Checking Java(TM) 2 Runtime Environment...
    Error: Could not find the required version of the
    Java(TM) 2 Runtime Environment.
    This application needs version 1.5 or higher of the
    Java(TM) 2 Runtime
    Environment. If the required Java(TM) 2 Runtime
    Environment is not installed,
    you can download it from the following website:
    http://java.sun.com/j2se
    f you already have the required Java(TM) 2 Runtime
    Environment
    installed, try rerunning this application with the
    following usage:
    'java_ee_sdk-5-linux.bin' -javahome <Java(TM)
    installation directory>
    oot@vineet:/usr/src# ./java_ee_sdk-5-linux.bin
    -javahome /usr/lib/j2re1.5-sun
    Checking available disk space...
    Checking Java(TM) 2 Runtime Environment...
    Launching Java(TM) 2 Runtime Environment...
    Error: There are no files requiring installation.
    Deleting temporary files...
    Any suggestions will be highly appreciated.
    Thanks,
    VineetDo you have java 5 sdk on your machine (Or at the very least java 5 re) ?
    Have you tried the command that they gave ?

  • Sun Java System Application Server 9.1  errors

    Hi
    Please asiste me ,I am getting this errors from :
    |WARNING|sun-appserver9.1|javax.enterprise.resource.resourceadapter|_ThreadID=29;_ThreadName=Timer-31;orcale_sage_live;Connection could not be allocated because: Io exception: Socket is not connected;Error while Resizing pool orcale_sage_live. Exception : Connection could not be allocated because: Io exception: Socket is not connected|#]Alos IO:Network adapter could not establish connection
    Thanks,PAul

    ramiro wrote:
    Hi, im not able to deploy derby.war from derby 10.4.1.3, as indicated in the Derby Server and Administration Guide, using Sun Java System Application Server 9.1 Update 2.Best I can guess is that you are attempting to remotely install derby.
    That is a pretty specific question and I suspect there is a specific derb forum as well.
    As a guess you probably failed to follow the docs on pre-reqs.

  • I can't install Sun Java System Application Server!! Who can help me??

    I download Sun Java System Application Server(sjsas_pe-9_0_01-p01-windows.exe),and the first time of my installation, it was blocked after it was istalled 14%, half an hour later I canceled the installation and wanted to re-install it, and I tried many times,but every time after I choose the "Installation Directory" and cliced the "Next" button it would be blocded, all of the bttons was disabled except "Choose directory" and "X"(close) buttons.
    OS: Win2000 Service Pack 4
    Thanks in advance

    Yeah, I had the same problem!
    And The Wiki helped me http://wiki.java.net/bin/view/Projects/WinHang
    Even my Firewall had the function "Disabled Mode", I needed to fully stop all the services of Antivirus and Firewall. After that i deleted the "productregistr*" file and ran installation from the console.
    And it was the only right way to install!
    Now enjoying =)

  • Sun Java System Application Server Standard stops responding for no reason

    Dear Sun Users and Support.
    We ran into an issue that we can't find any cause for. For some reason our Sun Java System Application Server 8.2 Standard stops responding to HTTP calls. Even Admin console can't be invoked. The server by itself appears to be running according to the Windows Services window.
    It happens very rarely but once it happens the server needs to be restarted.
    There are no logs in the log files.
    This happens to multiple Sun Servers at the same time (As if some kind of timer shuts them off).
    The servers run on Windows Server 2003.
    Any help would be greatly appreciated.
    These servers are in the production environment and have expected uptime of 99.9%.
    Thank you.

    This has happened to us a couple of times and it was caused by Windows running out of TCP/IP connections. Next time it happens do a "netstat -an" to see if you have an extremely large amount of connections in time-wait state.
    If you do this is probably the culprit and I'm sorry to say that I don't know of a cure. From what I've heard (objection your honour, hearsay!) this is caused by bugs in Windows TCP/IP stack.
    If you require a 99.9% uptime you should perhaps consider switching to Linux or Unix. I know, easier said than done!
    Hope this helps,
    Gunnar

Maybe you are looking for

  • Do you need Internet acess to watch a music video bought from iTunes

    I want to buy a MUSIC VIDEO off of iTunes but I don't want to wait for our Internet to load it each time I want to watch it so if I buy one I want to make sure I can watch it no matter where and when is that possible. I would buy it off my iPod touch

  • Size of comment icon

    I would like to know how to change the size of the comment symbol. I don´t know what I did but the symbol (standard speech bubble) got much bigger than usual and I would like to get back to the original size.

  • Monitoring Oracle SQL queries in VBA

    I currently use VBA with Excel to generate reports based on data within an Oracle 9 database. The amount of data is very large and the reports can take a long time to process. I have added status bar progress indicators for the majority of the report

  • Can I run a .exe file on a Mac?

    I need to know know if it's possible to run a '.exe' file on an Intel-based Mac running Mac OS X. There's a CD with an application I need to run. In the Finder it has the icon of the black computer screen with green letters and it's titled 'startCD.e

  • VMware 5.0 and Esxi 5.0 with Windows 8

    Hi Guys, We have a Virtual server which got Esxi 5.0 installed and I am using Vmware Vsphere 5.0 to manage it. Today I was going to create a Windows 8.1 VM to perform troubleshooting regarding WSUS server. But when i was creating new VM in VSphere i