Sun App Server 8 as a Windows Service

Is it possible to install Sun App Server 8 as a Windows Service so I could run it under Windows 2003 Server? If yes, how -- I could not find any information on it.
Sincerely,
Sergei Batiuk.

I received a reply from Paul Ko at Sun Microsystems.
Paul is the product line manager for Sun's Java application server.
>
Sean,
To run the AppServer as a Windows service, you need to use 3rd party
software to enable this. The AppServer is designed to run as a
Windows application, not as a service. You can do a Google search to
find a suitable 3rd party software to fulfill you needs.
Unfortunately, we do not publish which 3rd party software can be used
to do this -- as a policy, we don't endorse any particular vendor.
Best,
Paul

Similar Messages

  • Sun App Server 9.1 on Windows - Many TCP connections

    Hi,
    I have a problem with Sun Application Server 9.1 running on Windows (both XP and 2003). When I start a server I see in netstat many (about 50) TCP connections established within server process like this:
    java.exe:3616     TCP     localhost:1687     localhost:1688     ESTABLISHED     
    java.exe:3616     TCP     localhost:1688     localhost:1687     ESTABLISHED     
    All these connections are in pairs (port and port + 1) like the example above.
    What does it mean and why the server creates these connections? How can I decrease number of them?
    (The server is without any application, it is pure installation.)
    Thank you for your reply!
    Jiri Vitinger

    Yes, it works.
    I suppose you are able to install, but can not start Access Manager?
    There is a description at
    http://wiki.java.net/bin/view/OpenPortal/PortalInstallInstructions#Install_Access_Manager_and_Direc
    I had to follow the instructions for glassfish, although I'm using AppServer 9.1.
    Replaced the values of the according lines in AMConfig.properties like this:
    com.iplanet.security.SecureRandomFactoryImpl=com.iplanet.am.util.SecureRandomFactoryImpl com.iplanet.security.SSLSocketFactoryImpl=netscape.ldap.factory.JSSESocketFactory com.iplanet.security.encryptor=com.iplanet.services.util.JCEEncryption
    Regards,
    Juergen

  • Opensso.war deployment fails in Sun App server 8.2 windows vissta business

    I tried deploying opensso.war in Sun App server 8.2 on windows vista business machine. Am getting following error.
    Deploying application in domain failed; C:\Program Files\Sun\JavaES5\appserver\domains\domain1\applications\j2ee-modules\opensso\assets\js\AjaxUtils.js (Access is denied) ; requested operation cannot be completed C:\Program Files\Sun\JavaES5\appserver\domains\domain1\applications\j2ee-modules\opensso\assets\js\AjaxUtils.js (Access is denied)
    Am I missing something

    This is windows permission to the folder issue

  • Sun App server 8 update 1 as NT service ?

    Hi !
    I have installed Sun App server 8 update 1 on a Windows server 2003.
    Is it possible to run the application server as a NT service ?
    If so, how can I accomplish this ?
    /Regards Krister

    While this feature is not included in the product , it has been reported that it is possible to run application server as Windows service using 3rd party utilities. Please check this thread for more information:
    http://forum.java.sun.com/thread.jspa?threadID=476402

  • Web Services with Sun App Server

    We are load testing a simple web service running in SJSAS 8.0 Standard. With 1 or 2 users concurrent it seems OK, but once we move up to 5 concurrent users calling the WS, the domain in SJSAS crashes.
    Does anyone have experience or information regarding the app server and load with web services? Are there some config options that we can tweak? Are there any numbers out there about how many simultaneous connections the server can handle?
    A final note, things seem fine if we are just serving a simple web page from the server, its only when we try to call a WS that we run into these performance issues.
    Thanks.

    Are you connecting to any external resource using JNDI by any chance? If you're using Unix, check the number of file descriptors being opened on the Sun App server. "new dirContext(env)" creates OS file descriptors each time it's invoked (calling the web service for example).
    use
    $ps -ax
    get the process number of sjas and try issuing a:
    lsof -p <sjas_process_number> |wc -l
    and keep invoking the web service. If this number keeps increasing then you've an "fd" leak (perhaps not closing the dirContext). Linux for example has a default max file limit of 1024 under "root" user and when depleted, sjas will hang.
    Could this be the problem?
    Cheers
    Steve

  • Exceptions trying to run JSF on Sun App Server

    Hi!
    I have downloaded the Sun App Server and am trying to run the JSF Sample on it. The first page comes up fine, and when I enter data, it processes but does not come back with the response. I get the following errors:
    java.lang.ClassNotFoundException: com.sun.faces.application.StateManagerImpl$TreeNode
    java.lang.ClassNotFoundException: com.sun.faces.application.WebappLifecycleListener
    java.lang.IllegalStateException: No FacesContext is available to process this request.
    Not sure if this is the right forum..
    Thanks

    Make sure you started the default server. Try
    http://localhost:8080. This will allow you to see if the appserver is running. The first page is a jsp an will run regardless of if the server is running. To start the defaul server look at you windows menu under Sun Microsystems.

  • Is soap provider agent only available for Sun app server 9.1?

    See the blue print on securing web services with soap provider agent. Is this agent embedded within the J2EE agent for sun app server 9.1? Is the same "soap provider agent" available for websphere 6.x or iis server?
    Thanks

    the agentadmin --install script does not seem to add all the required things to the server-classpath in the domain.xml
    mine now looks like this:
    /opt/j2ee_agents/appserver_v9_agent/lib/agent.jar
    /opt/j2ee_agents/appserver_v9_agent/locale
    /opt/j2ee_agents/appserver_v9_agent/Agent_001/config
    /opt/j2ee_agents/appserver_v9_agent/lib/amclientsdk.jar
    /opt/j2ee_agents/appserver_v9_agent/lib/fmclientsdk.jar
    /opt/j2ee_agents/appserver_v9_agent/lib/opensso-installtools.jar
    /opt/j2ee_agents/appserver_v9_agent/lib/opensso-installtools-launcher.jar
    AND, I've added a system property:
    -Dcom.sun.identity.agents.config.location=/opt/j2ee_agents/appserver_v9_agent/Agent_001/config/AMAgent.properties
    I now at least get a different error:
    Servlet.service() for servlet jsp threw exception
    java.lang.ExceptionInInitializerError
         at com.sun.identity.agents.filter.URLPolicyTaskHandler.initialize(URLPolicyTaskHandler.java:63)
    com.sun.enterprise.web.HttpServiceWebContainer.service(HttpServiceWebContainer.java:2114)
    Caused by: java.lang.RuntimeException: Exception caught in AmWebPolicyManager initializer: Unable to load IAmWebPolicy: com.sun.identity.agents.policy.AmWebPolicy
         at com.sun.identity.agents.policy.AmWebPolicyManager.<clinit>(AmWebPolicyManager.java:135)
         ... 24 more

  • JAX-WS 2.1.1 RI on Sun App Server 8.1

    I'm trying to deploy a JAX-WS 2.1.1 web service on Sun App Server 8.1 and I keep getting these "no such method" exceptions thrown:
    java.lang.NoSuchMethodError:
    javax.xml.soap.MessageFactory.newInstance(Ljava/lang/String;)Ljavax/xml/soap/MessageFactory;
    I've found the javax.xml.soap.MessageFactory class in j2ee.jar packaged with Sun App Server 8.1, which indeed does not have that method. And I've also found javax.xml.soap.MessageFactory in saaj-api.jar that came with the JAX-WS 2.1.1 RI distribution, which does have that method.
    Is there some way to get JAX-WS 2.1.1 RI to play nice in Sun App Server 8.1?

    If possible specify saaj-api.jar before j2ee.jar on your runtime classpath.
    I am not familiar with Sun App Server 8.1. I had to patch domain classpath to resolve similar issues on weblogic. Also, there may be some configuration options to specify which jars get loaded first.

  • Sun App server can't start

    Hello,
    I've got Sun One Studio and I can't start the Application Server. I have created a domain like this int the command prompt :
    asadmin> create-domain path /global/appserver  adminport=4848 adminuser xxx adminpassword xxx scdomain
    Domain scdomain successfully
    But when I start the server, I've got a message :
    Le service Sun App Server 7 Admin Server (domain1:admin-server) d�marre.....
    Le service Sun App Server 7 Admin Server (domain1:admin-server) n'a pas pu �tre
    lanc�.
    Le service n'a pas signal� d'erreur.
    Vous obtiendrez une aide suppl�mentaire en entrant NET HELPMSG 3534.
    C:\Sun\jstudio\AppServer7\domains\domain1\admin-server\bin>net helpmsg 3534
    Le service n'a pas signal� d'erreur.
    In english, it is said that the server can't have been started. And there isn't any error ...
    Whith Sun Studio one, I've got this message :
    Could not start the instance
    server failed to start: abnormal subprocess termination
    Can somenone help me please ?
    Thanks in advance.

    OK thanks caseylou. The server.log file contains that :
    [12/Oct/2004:14:29:02] INFO ( 2612): CORE1116: Sun ONE Application Server
    [12/Oct/2004:14:29:03] FATAL ( 2612): CORE4005: Internal error: unable to create JVM
    [12/Oct/2004:14:29:03] SEVERE ( 2612): CORE4009: Failed to load JVM (check your JRE)
    [12/Oct/2004:14:29:03] SEVERE ( 2612): CORE3187: Late initialization failed: Error running init function(late) init-j2ee: unknown error
    Sorry, I have created two topics in the forum (J2SE and J2EE) because on the J2SE I have been recommended this forum.
    Maybe it is better to continue on the first topic ?
    http://forum.java.sun.com/thread.jsp?forum=17&thread=561619&tstart=0&trange=15
    Sorry for "flooding".

  • Running Sun App Server 7 and 8 on the same box

    Hello,
    Are there any known issues with running Sun App Server 7 and 8 in the same host box ? Currently I am encountering some class not found exceptions with Sun App Server 8 . Sun App Server 7 runs just fine.
    Thanks,
    Aswin.

    It's not advisable to run separate installations of
    ColdFusion 7 and ColdFusion 8 single server on the same machine the
    re are several services that will try to use the same ports.
    However, you can install ColdFusion Enterprise using the
    multi-server configuration and then deploy the J2EE versions of
    ColdFusion to JRun. You can change the JVM that each instance uses
    (we recommend the latest 1.4 for CF7 and the latest 1.6 for CF8),
    and everything should run fine.
    ColdFusion itself is essentially just a J2EE application, the
    J2EE server itself is JRun 4. So the specific answer to your
    question is "don't install 2 copies of JRun 4 to the same machine".
    But yes, it's 100% possible, I'm running this configuration in my
    own development environment.

  • Deployed webservices is not compatible on sun app server 9

    I build my webservices in automated form provided by excelent wizards of jdev.
    I was not changed any name, and let all default descriptors generated to after I try to run it, and it run perfectly on oc4j, who is compatible with j2ee specification....
    But when I deploy it on Sun App Server 9(stable), the follow error is throwed
    "Invalid url pattern" like my screenshot: http://img115.imageshack.us/img115/4673/errojf1.gif
    I have tried to replace this url, but without sucess to run my web services. Someone with more experience can help me?
    I need to run it on SunAppServer.
    Thanks all

    You probably need to add the Sun specific deployment descriptor files to your WAR.
    JDeveloper doesn't have a utility to do that automatically for Sun.

  • Unable to Register Sun App Server 9 in Netbeans 5.5

    Hi,
    I used to work on netbeans 5.5 and bundled sun app server 9. Everything was going fine. Today in the middle of a deployment in app server through netbeans, my system got hanged. So I killed the java.exe process.
    Now when I again attempted to open netbeans it showed me an error that some modules in sun app server could not be found and so sun app server could not be loaded. I tried registering sun app server again in netbeans but the server name was not even coming in the drop down list of app servers.
    Impatiently I uninstalled the bundled app server + netbeans through the uninstaller, and again installed the server and netbeans in a different directory. But again the same problem is coming and it is not showing the sun app server. Netbeans is opening and Sun App Server 9 is also working in isolated mode but I cant seem to find the sun app server still in the server list of netbeans.
    Kindly help. I am just too frustrated.

    Hi,
    I have installed J2EE 5 SDK on windows XP. When I installed NetBeans 5.5.1 and tried to register it with Application Server, it got registered automatically. I had to uninstall both due to some reasons, now when I installed both j2ee and netbeans again, i see D:/Sun/AppServer folder empty and not able to register NetBeans 5.5.1 with application server. I tried again and again by reintalling but AppServer folder remains empty and not able to register. Any help for this issue??????????

  • HELP - Can't connect to Sun App Server

    Hi,
    I'm confused. The Sun App Server documentation states that the protocol to use in the JNDI context lookup is jms or tcpjms, and that the service runs on port 7676:
    javax.naming.ConfigurationException: Invalid URL: jms://localhost:7676 [Root exception is java.net.MalformedURLException: unknown protocol: jms]
    When I use the other (commented-out) line: iiop://localhost:3700, I get a different error (and I don't think this is the protocol I want to use anyway).
    JNDI API lookup failed: javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
    javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
    So which is it?? Here is my code...thanks in advance for your help!
    package com.tpc.jms.simpleProducer;
    import javax.jms.*;
    import javax.naming.*;
    import java.util.Hashtable;
    import java.util.Properties;
    public class SimpleJMSTest {
    // public static final String PROVIDER_URL = "iiop://localhost:3700";
    public static final String PROVIDER_URL = "jms://localhost:7676";
    public static final String CONTEXT_FAC = "com.sun.jndi.cosnaming.CNCtxFactory";
    public static void main (String argv[]) {
    try {
    Properties properties = new Properties();
    properties.put(Context.PROVIDER_URL, PROVIDER_URL);
    properties.put(Context.INITIAL_CONTEXT_FACTORY, CONTEXT_FAC);
    properties.put(Context.SECURITY_PRINCIPAL, "guest");
    properties.put(Context.SECURITY_CREDENTIALS, "guest");
    InitialContext initialCtx = new InitialContext(properties);
    System.out.println("Good!");
    //TopicConnectionFactory topicConnFactory = (TopicConnectionFactory) initialCtx.lookup (fac);
    //Topic nasdaqTopic = (Topic)initialCtx.lookup(topic);
    /* System.out.println("Creating topic connection");
    TopicConnection topicConnection = topicConnFactory.createTopicConnection();
    topicConnection.start ();
    System.out.println("Creating topic session: not transacted, auto ack");
    TopicSession topicSession = topicConnection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
    System.out.println("Creating topic, subscriber");
    TopicSubscriber nasdaqTopicSubscriber = topicSession.createSubscriber (nasdaqTopic);
    System.out.println ("Ready to subscribe for messages :");
    nasdaqTopicSubscriber.setMessageListener(new SubscriberListener());*/
    catch (Exception e) {
    e.printStackTrace ();
    }

    Hi,
    First of all, you don't use iiop in JMS.
    And also for your problem, did you by any chance forget to create your connectionfactory in the application server?

  • Deploying a WAR file to Sun App Server 8.1 PE

    So I thought that if I downloaded Sun App Server PE 8.1 and put it on my soon-to-be production machine, it should be pretty easy right?
    Nope. So I have JSC update 6 (which includes Sun Application Server 8.0) (God how I wish there was a catchy name like Tomcat or something)
    And I have a machine running a good copy, installed and everything, of Sun Application Server 8.1 Platform Edition (another catchy name) up on the production target.
    I create a WAR file in JSC, scp it up.
    Then try to deploy it - so I get bit by the no DB connection thing.
    Ok, but when I copy each of my connection's attributes (the driver (which I did copy up to the lib directory) is MySQL's Connector/J)
    I copy the username, password, URL and DriverClass attributes to the connection pool.
    I still get a
    "Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Class name is wrong or classpath is not set for : com.sun.sql.datasource.DriverAdapter"
    when I try to Ping the ConnectionPool
    I have javax.sql.DataSource as the resource type... (same as 8.0 uses)
    what JAR file is DriverAdapter in? anyone know?
    cheers,
    Kris

    Okay. mysql folks - this works......
    here's what happened, on the production server, different from the dev machine....
    mysql 4.1.9
    sun application server platform edition PE 8.1
    connector/j - latest
    and on the dev machine: JSC Update 6 and the app works fine on the dev machine.
    first, there is a JAR file in ~whatever/Create/SunAppServer/lib/ named
    driveradaptor.jar
    and it it comtains
    com.sun.sql.datasource.DriverAdapter
    which 8.1 ain't got
    and should be copied up to
    /installdir/SunAppServer/domains/domain1/lib/ext/driveradapter.jar
    (domain1 is your app svr domain that runs your app.)
    your Connector/J JAR needs to go here too. I used:
    mysql-connector-java-3.2.0-alpha-bin.jar
    downloaded from mysql.com.
    and then there is the whole thing about Added Properties in the Connection Pool page inside the 8.1 Admin Console (which is nice work guys). Gawd, I added a bunch of properties and am, frankly, not sure which ones actually work (for the Ping, for the initial connection creation and the eventual successful connection all seem to use different combinations...)
    and I found this in the domain's domain.xml once all the admin console page filling was done - but you'll need to add each one as a Property in the connection pool:
    <jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="com.sun.sql.datasource.DriverAdapter" fail-all-connections="false" [blah...]
    <property name="Username" value="root"/>
    <property name="Password" value="secret"/>
    <property name="ValidationQuery" value="SELECT 1"/>
    <property name="DriverClassName" value="com.mysql.jdbc.Driver"/>
    <property name="LoginTimeout" value="0"/>
    <property name="Url" value="jdbc:mysql://localhost/databasename?autoReconnect=true"/>
    <property name="User" value="root"/>
    <property name="password" value="secret"/>
    <property name="PasswordCredential" value="secret"/>
    </jdbc-connection-pool>
    (and you see how User and Username and username are all the same thing? well, different parts of 8.1 seem to use different attributes...)
    Just keep Adding Properties in the connection pool until you get them all....
    Oh and, the two key class references for the pool are:
    datasource class: com.sun.sql.datasource.DriverAdapter
    resource type: javax.sql.ConnectionPoolDataSource
    Finally: in the /installdir/SunAppServer/domains/domain1/applications/j2ee-modules/YourAppName/WEB-INF/
    your 'sun-web.xml' (don't delete it, like some have advocated, I think that wrong) needs to look like:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.1 Servlet 2.4//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd">
    <sun-web-app xmlns="http://java.sun.com/xml/ns/j2ee">
    <context-root>/yourcontext</context-root>
    <resource-ref>
    <res-ref-name>jdbc/Yourname</res-ref-name>
    <jndi-name>jdbc/Yourname</jndi-name>
    <default-resource-principal>
    <name>root</name>
    <password>secret</password>
    </default-resource-principal>
    </resource-ref>
    </sun-web-app>
    and I think that's all of it. the only Bug I would I would say is that the sun-web.xml should have the right res-ref-name, but then I think the Creator Team knows this and will fix it sometime soon.
    cheers,
    and Roger Federer lost in the Aussie Open. (I think he lost tomorrow too, that whole time zone thing being so damn Einsteinian...)
    -Kristofer

  • How to install j2ee sun app server 8.0 in debain linux

    hi guys
    i am new to linux and i have downloaded the j2ee sun app server 8.0(linuxversion) from sun.java
    in sun.java documentation says first we have to change the mode to excecutable
    then he is saying to do this
    1. To run the installation program that uses a graphical interface, at the command prompt type the name of the bundle file at the command prompt.
    2.To run the installation program that uses the command-line interface, at the command prompt type the name of the bundle file followed by the -console option.
    after chmod + x <bundle name >
    the next step i am not able to do it
    what to do next
    any suggestions
    regards
    sandeep

    Hi rlubke
    Thanks for the suggestion
    1.Change the permission of the bundle file so that you have execute access:
    chmod +x <bundle-file-name>
    2. To run the installation program that uses a graphical interface, at the command prompt type the name of the bundle file at the command prompt.
    3.To run the installation program that uses the command-line interface, at the command prompt type the name of the bundle file followed by the -console option.
    Step 1. After chmod + x <bundle name >
    Step 2. sun/appserver/# <bundle name>
    bash: <bundle name>: command not found
    Step 3. sun/appserver# <bundle name>
    bash: <bundle name#>: command not found
    any suggestions
    i have done what u have said now
    Step 1. After chmod + x <bundle name >
    Step 2. sun/appserver/#./ <bundle name>
    Checking available disk space....
    Checking Java(TM) 2 Runtime Environment...
    Extracting Java(TM) 2 Runtime Environment files...
    Extracting installation files...
    Launching Java(TM) 2 Runtime Environment....
    Error: There are no files requiring installation.
    Deleting Temporary files...
    Step 3. sun/appserver# <bundle name>
    Checking available disk space....
    Checking Java(TM) 2 Runtime Environment...
    Extracting Java(TM) 2 Runtime Environment files...
    Extracting installation files...
    Launching Java(TM) 2 Runtime Environment....
    Error: There are no files requiring installation.
    Deleting Temporary files...
    this is what happening excatly

Maybe you are looking for

  • "error while downloading jar file"

    I receive this error while trying to download a MIDlet from the web (using the P800 device).I write the jad URL , then continue to installation , and then receive the error I wrote in the subject. I have no idea what it is , this MIDlet was downloade

  • Way to check who created PO and input the Goods Receipt?

    SAP Experts A question to you all.  Is there a way/report/number of tables to validate which user ID create or changed a Purchase Order and if they also entered the Goods Receipt?  We want to be able to check this on a monthly basis as a management c

  • Sync error incorrect account name or password

    I attempted to activate sync between my desktop and my Android phone today. I have used Firefox as my desktop browser for probably about a decade. I had synced this computer once before without issue to a previous phone, but I did not like the mobile

  • SQL Query in SE11

    Hi All,    This idea just occured to me while I was fetching data from a table through SE11.    I was wondering is there any way of specifying an SQL Query in the selection creiteria for data selection in SE11.    For example say in S031 table I want

  • Add Transition to Grid control when it is made Visible.

    Hi. I have a collapsed Grid and when I tap a HyperLinkButton I want the Grid to start getting visible from the closest point from the Button or any other transition effect similar to this. To simplify my question, how do I add a transition effect to