Run Servlet Class on Sun Application Server  PE 9.0

Hi,
I have a problem to run an servlet class on Sun Application Server PE 9.0.
My directory struture are given below :-
C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\classes\test.class
C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\web.xml
please give me answer in detail.

Did you web archive the WEB-INF into .war file and then deployed it with AppServer admin console?

Similar Messages

  • Can I run Servlets in the Sun App Server?

    I am trying to run a servlet. I am not sure if I can run the same using the Sun app server. any help to clarify the following queries would be appreciated.
    1. Should I have to specify a path in the environmental variables?
    2. Is there a web site that tells me the same with respect to running the servlet on a Sun app server.
    Thanks in advance.
    --Srikanta                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

    I'm not sure what you want in regards to question, but I can assure you that you can run servlets in S1AS7. My recommendation is to just package your servlet into a web archive (war) and deploy it. You can deploy it via the commandline (asadmin) or the web based administrative client (likely http://localhost:4848). For more information on this I suggest reading:
    http://docs.sun.com/source/816-7150-10/index.html
    You must likely want to read the section on assembling and deploying web applications.
    Matt Bauer

  • How to run servlets in Oracle 10g Application server

    I have tried running the simple servlet given in this URL
    oracle.com/technology/sample_code/tech/java/servlets/samples/hellouser.
    The following error comes when i try to access it
    "Invalid protocol verification, illegal ORMI request or request performed with an incompatible version of this protocol"
    I have used simple deploying method and followed alll the steps given

    The following error comes when i try to access it
    "Invalid protocol verification, illegal ORMI request or request performed with an
    incompatible version of this protocol"You are using the rmi port of oc4j in your URL. Instead, your should use the http port. Yes, of course, the http port.
    The initial ports are defined at ORACLE_HOME/install/portlist.ini ... if you reconfigure (say, by changing the ORACLE_HOME/Apache/Apache/conf/*.conf or the ORACLE_HOME/Apache/conf/* files), the portlist.ini will not be updated. Well, you can always use "opmnctl status -l" to find the http port.

  • To run samples on Sun Application server

    I had installed Sun Java System Application Server Platform Edition 9.0 and then installed the WSDP. WSDP recognized the application server and I believe integrated them.
    However, when I wanted to run the examples on the http://localhost:8080/JWSDP.html page:
    SAAJ Simple Sample
    SAAJ book Sample
    SAAJ translator Sample
    I got Page not found.
    previously I was running tomcat with WSDP and I was able to run those examples. Could that be that prevented me from running it on the Sun Application server. I uninstalled the WSDP before i installed the Sun Application server.
    what do I need to do to be able to run them?
    Thanks for your help.

    Permissions need to be opened up for BlazeDS on the application server. You can either do this at the JRE level (jre/lib/security/java.policy) or in the application server.

  • How can I call a Stateless-EJB3  from MBeans in Sun Application Server 9.1?

    Hi,
    I have some jobs running as Timer-Service-EJB in Sun Application Server 9.1. The Timer will be startet by a Lifecycle-Modul and it works fine.
    I have also some MBeans running in the same App-Server which should start or stop the Timer-Services by invoking dedicated methods
    in the Timer-Service-EJB.
    InitialContext ctx = new InitialContext();
    MyJob job = (MyJob) ctx.lookup("ejb/MyJob");
    job.startTimer();But I get the following error;
    javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.enterprise.naming.SerialInitContextFactory [Root exception is java.lang.ClassNotFoundException: com.sun.enterprise.naming.SerialInitContextFactory]
    ..... Why is it impossible to get an reference of the SerialInitContextFactory? The appserv-rt.jar is in the classpath of the Appserver ( installdir/lib ).
    Following the Sun Application Server 9.1 Developer Guide, I tried to copy the dependent classes (including appserv-rt.jar ) into domain-dir/lib.
    But I got the same error.
    Any ideas?
    Thanks,
    Stefan

    Hi Santanu,
    You need to write SoapHandler in order to pass username and pwd. You will need 2 classes namely HeaderHandlerResolver & SoapHandler. This is how i do in in my JAX-WS clients. I generate stubs and then attach handler to webserviceinterface
    PFA HeaderHandlerResolver.java and SoapHandler.java you would attach soap handler something like this in your code i have never done this via ADF so not sure.
    HeaderHandlerResolver soapHandlerResolver = new HeaderHandlerResolver();
    docInfo.setHandlerResolver(soapHandlerResolver);
    In SoapHandler class you will mention username and pwd like this
    soapMessageContext.put(BindingProvider.USERNAME_PROPERTY,"username");
    soapMessageContext.put(BindingProvider.PASSWORD_PROPERTY,"pwd");
    Regards,
    Amol Gavali

  • JMS problem with Sun Application Server 8.2

    Hi!
    I've just started trying JMS and found a problem.
    I set a connection factory called "QueueConnectionFactory" in the Sun Application Server Admin Consol.
    After this I test this code:
    import javax.jms.*;
    import javax.naming.*;
    public class Sun_JNDI
    public static void main(String args[]) throws Exception
    Context jndiContext = null;
    System.setProperty("java.naming.factory.initial","com.sun.enterprise.naming.SerialInitContextFactory" );
    System.setProperty("java.naming.factory.url.pkgs","=com.sun.enterprise.naming");
    System.setProperty("java.naming.provider.url","localhost:1024");
    jndiContext = new InitialContext();
    Object O = jndiContext.lookup("QueueConnectionFactory");
    System.out.println(jndiContext);
    in result I got this long Exception message:
    2006.02.12. 10:52:59 com.sun.corba.ee.spi.logging.LogWrapperBase doLog
    INFO: "IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/1356"
    2006.02.12. 10:53:00 com.sun.enterprise.connectors.ActiveRAFactory createActiveResourceAdapter
    SEVERE: RAR6001 : Class Not found : com.sun.messaging.jms.ra.ResourceAdapter
    2006.02.12. 10:53:00 com.sun.enterprise.connectors.ActiveRAFactory createActiveResourceAdapter
    SEVERE:
    com.sun.enterprise.connectors.ConnectorRuntimeException: Error in creating active RAR
    at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:76)
    at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:267)
    at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:189)
    at com.sun.enterprise.naming.factory.ConnectorObjectFactory.getObjectInstance(ConnectorObjectFactory.java:71)
    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:293)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at Sun_JNDI.main(Sun_JNDI.java:40)
    Caused by: java.lang.ClassNotFoundException: com.sun.messaging.jms.ra.ResourceAdapter
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:50)
    ... 7 more
    2006.02.12. 10:53:00 com.sun.enterprise.naming.SerialContext lookup
    SEVERE: NAM0004: Exception during name lookup : {0}
    com.sun.enterprise.connectors.ConnectorRuntimeException: Error in creating active RAR
    at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:76)
    at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:267)
    at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:189)
    at com.sun.enterprise.naming.factory.ConnectorObjectFactory.getObjectInstance(ConnectorObjectFactory.java:71)
    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:293)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at Sun_JNDI.main(Sun_JNDI.java:40)
    Caused by: java.lang.ClassNotFoundException: com.sun.messaging.jms.ra.ResourceAdapter
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:50)
    ... 7 more
    Exception in thread "main" javax.naming.CommunicationException: serial context communication ex [Root exception is com.sun.enterprise.connectors.ConnectorRuntimeException: Error in creating active RAR]
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:317)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at Sun_JNDI.main(Sun_JNDI.java:40)
    Caused by: com.sun.enterprise.connectors.ConnectorRuntimeException: Error in creating active RAR
    at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:76)
    at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:267)
    at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:189)
    at com.sun.enterprise.naming.factory.ConnectorObjectFactory.getObjectInstance(ConnectorObjectFactory.java:71)
    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:293)
    ... 2 more
    Caused by: java.lang.ClassNotFoundException: com.sun.messaging.jms.ra.ResourceAdapter
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:50)
    ... 7 more
    So I tested this code under Netbeans5 and I don't where to find jar file contains the class: com.sun.messaging.jms.ra.ResourceAdapter
    Other time I tryied to lookup this URL: "java:comp/env/jms/QueueConnectionFactory"
    The result was: javax.naming.NameNotFoundException
    I know it is a small code example but if I'm not able to solve this problem I can't go on with JMS.
    I would be glad by any help.
    Regards:
    Sandor

    Hello
    In my code it looks like that:
    1: System.setProperty("com.sun.jndi.ldap.LdapCtxFactory", "iiop://localhost:3700");
    2: Context ctx = new InitialContext();
    3: TopicConnectionFactory factory = (TopicConnectionFactory)ctx.lookup("jms/DailyDestinationFactory");
    4: TopicConnection connection = factory.createTopicConnection();
    5: TopicSession session = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
    6: Topic topic = (Topic)ctx.lookup("jms/DailyBean");
    7: TopicPublisher pub = session.createPublisher(topic);
    8: TextMessage msg = session.createTextMessage();
    9: msg.setText("NewMessage");
    10: pub.send(msg);
    and it work with Sun App Server 8.2.

  • How iReport can work in Sun Application Server??

    I am success to use the iReport to show out the pdf file in Tomcat which i am using jsp code, but, when I run them in sun application server, it throws out the following exception.
    //=====================
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Error compiling report design.
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:830)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:763)
         org.apache.jsp.Report_005fJSP.payroll_005frec_005fstaff_jsp._jspService(payroll_005frec_005fstaff_jsp.java:165)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    root cause
    net.sf.jasperreports.engine.JRException: Error compiling report design.
         net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:231)
         net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:131)
         net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:127)
         net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:86)
         org.apache.jsp.Report_005fJSP.payroll_005frec_005fstaff_jsp._jspService(payroll_005frec_005fstaff_jsp.java:106)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server logs.
    //==========================
    Would someone can tell me why??This is urgent for me!!

    Here is the log file information I get from the sun application server, when i run my iReport file.
    //==================
    DetailsTimestamp: 2006-5-28 22:50:02.768
    Log Level: INFO
    Logger: javax.enterprise.system.stream.out
    Name-Value Pairs: _ThreadID=11;
    Record Number: 2808
    Message ID: exception 3
    Complete Message
    java.lang.NullPointerException
    Diagnostic Causes
    Diagnostic Checks
    //==================
    Do you mean this server.log file message? and can you know why problem with me??

  • Can't  fix error 404 in sun application server 8 2005Q1 and need help......

    i am using sun application server 8 2005Q1.........
    i an getting the err 404(requested resources not available......)
    I have did the following:
    the following are my files
    employeedetails.java(which implements the servlet class)
    findemployee.html(which gets the employee id)
    1.First I have designed the interface with URL as
    http://localhost:1050(which is my port no)/emp_details/servlet/EmployeeDetails
    2.Then I have coded the servlet with class name as EmployeeDetails
    3.I have compiled it in the following manner:
    e:\>path=%path%;c:\j2sdk1.4.2_12\bin;
    e:\>set classpath=%classpath%;e:\sun\Appserver\lib\j2ee.jar;
    e:\>javac e:\Employee\EmployeeDetails.java
    It compiled successfully without any errors
    4.Then I have started the sun application server
    5.I have also opened the deploy tool
    6.In that,
    New->Application
    the application wizard opens.......
    then I browsed and given the new application name as e:\Employee\EmployeeDetails.jar
    The application display name appears as EmployeeDetails
    7.It also appears at the left end of the tree structure
    8.Then I opened the New->Web Component
    the web component wizard appears
    9.I have clicked next
    10.In that panel I have chosen the option
    Create new WAR Module in application
    I have given the WAR display name as Emp
    11.Then in the bottom I have clicked the option 'edit contents'
    12.The edit contents pane opens.......
    13.In that I have selected EmployeeDetails.class and FindEmployee.html and clicked 'Add'
    14.It gets added in the content pane
    15.Then I have chosen the component type as Servlet
    16.In the next wizard ,the servlet class name,web component name and display name,everything
    is given as EmployeeDetails
    17.With this I have finished the web component wizard
    18.Then the context root name is given as emp_details and saved
    19.Then I have chosen the Tools->deploy
    20.In that wizard,
    I have typed the admin user name and pswd
    21.It gets deployed successfully.
    22.Then I have opened th browser and typed the following URL
    http://localhost:1050/emp_details/FindEmployee.html
    23.The html form appears.....
    24.I have kept oracle as my backend with datasource name Mine
    and in the servlet I have changed the datasource name with user name and pswd scott & tiger
    25.But when i click the submit button,it gives the error
    http status 404 -/emp_details/servlet/EmployeeDetails
    the requested resource not available
    anybody who knows the anwser plz reply me soon and help me to get rid of this error..........................

    Your code looks fine. Unless you actually made a typo in the URL I can't explain this problem. To verify this I even copied your web.xml and the SimpleServlet without any changes to my playground environment and it ran just flawlessly at http://localhost:8080/playground/servlets/HelloWorld
    To exclude things, have you tried another applicationserver (Tomcat 6? Glassfish? Jetty?) or maybe another OS?

  • No response from Sun Application Server PE 8.2

    Hi all,
    I am using Sun Application Server PE 8.2 on windows XP service pack 2 professional edition, and jdk 1.4.1_01.
    The problem I am facing is that the server is not responding, even though it is listening at the respective ports(4848 for admin, 8080 for http..etc) as I can see 'netstat' command.
    I have checked the server logs and it shows the following output :-
    [#|2006-08-23T13:38:13.890+0530|WARNING|sun-appserver-pe8.2|javax.enterprise.tools.launcher|_ThreadID=10;|LAUNCHER005:Spaces in your PATH have been detected. The PATH must be consistently formated (e.g. C:\Program Files\Java\jdk1.5.0\bin; ) or the Appserver may not be able to start and/or stop.  Mixed quoted spaces in your PATH can cause problems, so the launcher will remove all double quotes before invoking the process. The most reliable solution would be to remove all spaces from your path before starting the Appservers components.  |#]
    [#|2006-08-23T13:38:13.890+0530|INFO|sun-appserver-pe8.2|javax.enterprise.tools.launcher|_ThreadID=10;|
    C:/j2sdk1.4.1_01\bin\java
    -client
    -Xmx512m
    -XX:NewRatio=2
    -Dcom.sun.aas.defaultLogFile=C:/Sun/AppServer/domains/domain1/logs/server.log
    -Djava.endorsed.dirs=C:/Sun/AppServer/lib/endorsed
    -Djava.security.policy=C:/Sun/AppServer/domains/domain1/config/server.policy
    -Djava.security.auth.login.config=C:/Sun/AppServer/domains/domain1/config/login.conf
    -Dsun.rmi.dgc.server.gcInterval=3600000
    -Dsun.rmi.dgc.client.gcInterval=3600000
    -Djavax.net.ssl.keyStore=C:/Sun/AppServer/domains/domain1/config/keystore.jks
    -Djavax.net.ssl.trustStore=C:/Sun/AppServer/domains/domain1/config/cacerts.jks
    -Djava.ext.dirs=C:/j2sdk1.4.1_01/jre/lib/ext;C:/Sun/AppServer/domains/domain1/lib/ext;C:/Sun/AppServer/derby/lib
    -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
    -Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
    -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
    -Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
    -Dcom.sun.enterprise.taglisteners=jsf-impl.jar
    -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
    -Dcom.sun.aas.configName=server-config
    -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter
    -Ddomain.name=domain1
    -Djmx.invoke.getters=true
    -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
    -Dcom.sun.aas.promptForIdentity=true
    -Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser
    -Dcom.sun.aas.instanceRoot=C:/Sun/AppServer/domains/domain1
    -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
    -Dcom.sun.aas.domainName=domain1
    -Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
    -Dproduct.name=Sun-Java-System/Application-Server
    -Dcom.sun.enterprise.overrideablejavaxpackages=javax.faces,javax.servlet.jsp.jstl,javax.xml.bind,javax.help
    -Dcom.sun.aas.configRoot=C:/Sun/AppServer/config
    -Djava.library.path=C:\j2sdk1.4.1_01\jre\bin\client;C:\Sun\AppServer\lib;C:\Sun\AppServer\lib;C:\j2sdk1.4.1_01\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Sun\AppServer\lib;C:\Sun\AppServer\bin;C:\Sun\AppServer\lib;C:\Sun\AppServer\bin;C:\Sun\AppServer\bin;C:\Sun\AppServer\bin;C:\oracle\ora92\bin;C:\Program Files\ActiveState Perl Dev Kit 6.0 Deployment\bin\;C:\j2sdk1.4.1_01\bin;C:\j2sdk1.4.1_01\jre\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\MSSQL7\BINN;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\Rational1\common;C:\PROGRA~1\CA\SHARED~1\SCANEN~1;C:\Sun\AppServer\bin
    -Dcom.sun.aas.instanceName=server
    -Dcom.sun.aas.processLauncher=SE
    -cp
    C:/Sun/AppServer/lib/appserv-rt.jar;C:/j2sdk1.4.1_01/lib/tools.jar;C:/Sun/AppServer/lib\activation.jar;C:/Sun/AppServer/lib\admin-cli.jar;C:/Sun/AppServer/lib\appserv-admin.jar;C:/Sun/AppServer/lib\appserv-cmp.jar;C:/Sun/AppServer/lib\appserv-ext.jar;C:/Sun/AppServer/lib\appserv-jstl.jar;C:/Sun/AppServer/lib\appserv-upgrade.jar;C:/Sun/AppServer/lib\commons-launcher.jar;C:/Sun/AppServer/lib\commons-logging.jar;C:/Sun/AppServer/lib\dom.jar;C:/Sun/AppServer/lib\j2ee-svc.jar;C:/Sun/AppServer/lib\j2ee.jar;C:/Sun/AppServer/lib\jax-qname.jar;C:/Sun/AppServer/lib\jaxr-api.jar;C:/Sun/AppServer/lib\jaxr-impl.jar;C:/Sun/AppServer/lib\jaxrpc-api.jar;C:/Sun/AppServer/lib\jaxrpc-impl.jar;C:/Sun/AppServer/lib\jmxremote.jar;C:/Sun/AppServer/lib\jmxremote_optional.jar;C:/Sun/AppServer/lib\jsf-api.jar;C:/Sun/AppServer/lib\jsf-impl.jar;C:/Sun/AppServer/lib\mail.jar;C:/Sun/AppServer/lib\relaxngDatatype.jar;C:/Sun/AppServer/lib\rmissl.jar;C:/Sun/AppServer/lib\saaj-api.jar;C:/Sun/AppServer/lib\saaj-impl.jar;C:/Sun/AppServer/lib\xalan.jar;C:/Sun/AppServer/lib\xercesImpl.jar;C:/Sun/AppServer/lib\xsdlib.jar;C:/Sun/AppServer/lib/install/applications/jmsra/imqjmsra.jar;C:/Sun/AppServer/imq/lib/jaxm-api.jar;C:/Sun/AppServer/imq/lib/fscontext.jar;C:/Sun/AppServer/lib/ant/lib/ant.jar
    com.sun.enterprise.server.PEMain
    start
    display
    native|#]
    [#|2006-08-23T13:38:20.484+0530|INFO|sun-appserver-pe8.2|javax.enterprise.resource.jms|_ThreadID=10;|JMS5023: JMS service successfully started. Instance Name = imqbroker, Home = [C:\Sun\AppServer\imq\bin].|#]
    [#|2006-08-23T13:38:20.484+0530|INFO|sun-appserver-pe8.2|javax.enterprise.system.core|_ThreadID=10;|CORE5098: AS Socket Service Initialization has been completed.|#]
    [#|2006-08-23T13:38:21.046+0530|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadID=10;|ADM0047:The Platform MBeanServer is not available. Platform MBeans will not be available for browsing while using standard JMX Console.|#]
    [#|2006-08-23T13:38:21.187+0530|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadID=10;|ADM0001:MBeanServer initialized successfully|#]
    [#|2006-08-23T13:38:21.359+0530|INFO|sun-appserver-pe8.2|javax.enterprise.system.core.security|_ThreadID=10;|SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.|#]
    [#|2006-08-23T13:38:22.000+0530|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|Created virtual server server|#]
    [#|2006-08-23T13:38:22.000+0530|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|Created virtual server __asadmin|#]
    [#|2006-08-23T13:38:22.750+0530|INFO|sun-appserver-pe8.2|javax.enterprise.resource.corba.ee.S1AS-ORB.rpc.transport|_ThreadID=10;|"IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/3700"|#]
    [#|2006-08-23T13:38:22.750+0530|INFO|sun-appserver-pe8.2|javax.enterprise.resource.corba.ee.S1AS-ORB.rpc.transport|_ThreadID=10;|"IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/3820"|#]
    [#|2006-08-23T13:38:22.937+0530|INFO|sun-appserver-pe8.2|javax.enterprise.resource.corba.ee.S1AS-ORB.rpc.transport|_ThreadID=10;|"IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/3920"|#]
    [#|2006-08-23T13:38:23.859+0530|INFO|sun-appserver-pe8.2|javax.enterprise.system.core.transaction|_ThreadID=10;|JTS5014: Recoverable JTS instance, serverId = [3700]|#]
    [#|2006-08-23T13:38:26.484+0530|WARNING|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadID=10;|ADM1080: Initialization of AMX MBeans failed. Detailed message:
    java.lang.IncompatibleClassChangeError
         at com.sun.appserv.management.util.jmx.JMXUtil.listenToMBeanServerDelegate(JMXUtil.java:103)
         at com.sun.enterprise.management.support.Loader.preRegister(Loader.java:477)
         at com.sun.management.jmx.MBeanServerImpl.preRegisterInvoker(MBeanServerImpl.java:2264)
         at com.sun.management.jmx.MBeanServerImpl.registerMBean(MBeanServerImpl.java:866)
         at com.sun.enterprise.admin.server.core.AdminService.initializeAMXMBeans(AdminService.java:868)
         at com.sun.enterprise.admin.server.core.AdminService.start(AdminService.java:277)
         at com.sun.enterprise.admin.server.core.AdminServiceLifeCycle.onStartup(AdminServiceLifeCycle.java:99)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
    --------------- nested within: ------------------
    javax.management.RuntimeErrorException: Error thrown in preRegister method
         at com.sun.management.jmx.MBeanServerImpl.preRegisterInvoker(MBeanServerImpl.java:2270)
         at com.sun.management.jmx.MBeanServerImpl.registerMBean(MBeanServerImpl.java:866)
         at com.sun.enterprise.admin.server.core.AdminService.initializeAMXMBeans(AdminService.java:868)
         at com.sun.enterprise.admin.server.core.AdminService.start(AdminService.java:277)
         at com.sun.enterprise.admin.server.core.AdminServiceLifeCycle.onStartup(AdminServiceLifeCycle.java:99)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
    |#]
    [#|2006-08-23T13:38:26.531+0530|WARNING|sun-appserver-pe8.2|javax.enterprise.system.stream.err|_ThreadID=10;|java.lang.IncompatibleClassChangeError
         at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:201)
         at $Proxy1.getstate(Unknown Source)
         at com.sun.enterprise.admin.mbeans.DomainStatusHelper.getstate(DomainStatusHelper.java:63)
         at com.sun.enterprise.management.util.J2EEManagementObjectManager.registerDasJ2EEServer(J2EEManagementObjectManager.java:1689)
         at com.sun.enterprise.management.util.J2EEManagementObjectManager.registerDasJ2EEServers(J2EEManagementObjectManager.java:1645)
         at com.sun.enterprise.admin.server.core.AdminService.start(AdminService.java:287)
         at com.sun.enterprise.admin.server.core.AdminServiceLifeCycle.onStartup(AdminServiceLifeCycle.java:99)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
    |#]
    Please someone show the way of solving this, as it is driving me nuts..!!!
    Kind Regards,
    Rudy

    "Spaces in your PATH have been detected"
    There are spaces in the the library.path - C:\Program Files
    Wrap the entier path with double quotes "C:\Program Files"

  • Policy Agent on Sun Application Server 9.1

    I'm attempting to deploy the Access Manager Policy Agent to Sun Application Server 9.1 and I'm running into some issues.
    Environment:
    amhost - Access Manager 7.0 on Sun Webserver can do both http and https
    ashost - Access Manager Policy AGent 2.2 on Sun Application Server 9.1
    If everything is set to http:
    When i attempt to access a simple servlet application (Headersnooper) I am redirected the the access manager server and when authentication is successful I see the browser attempting to redirect back to the application server and I see the following error in the Policy Agent debug logs amJAXRPC:
    11/13/2007 02:46:18:055 PM EST: Thread[httpSSLWorkerThread-8080-79,10,Grizzly]
    JAXRPCHelper: Connection to URL: https://ssodev.queensu.ca:443/amserver/jaxrpc/SMSObjectIF failed
    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:150)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1518)
    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:174)
    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:168)
    Why would it think to attempt to connect to https when everything in the agent is configured for http?
    Any thoughts or recommendations would be appreciated.

    Hi,
    One thing that could help is to look at the info in the agent logs, first increase Debug Logging Level, then restart the agent server and click thru your app, then look in agent runtime logs which should have more descriptive errors. For more detail on how to do this, try http://wikis.sun.com/display/OpenSSO/GlassFishAgentTrouble#GlassFishAgentTrouble-generaltips
    You could look on this page, which is mostly based on GlassFish server but could help for other servers as well.
    http://wikis.sun.com/display/OpenSSO/GlassFishAgentTrouble
    I have not installed either of the policy agents you mentioned. But with some of the other agents, like the Sun App server 9 (GlassFish) agent, it comes with a sample application, and I find that this is the best way to ensure your setup is good and you are following all steps etc. Once sample app is up, you can try your own apps with confidence.
    Since you already have the SJSAS 9 installed, maybe you could create a new domain and download/install the SJSAS 9 policy agent on the new domain. Then try out the sample app?
    Or if those other agents have a sample app then try it out.
    hth,
    Sean

  • Configuring Realm on Sun Application Server 9.0

    Hi,
    I was able to configure file realm on Sun Application Server 9.0 . But after getting authenticated (login is success), in the server.log it generates the following log & does not allow me to navigate in my application .
    [#|2007-07-31T18:10:51.281+0530|INFO|sun-appserver-pe9.0|javax.enterprise.system.core.security|_ThreadID=14;_ThreadName=httpWorkerThread-8080-1;|JACC Policy Provider: PolicyWrapper.implies, context(jscreator/jscreator)- permission((javax.security.jacc.WebRoleRefPermission /faces/Index.jsp appadmin)) domain that failed(ProtectionDomain  (file:/jscreator/jscreator <no signer certificates>)
    null
    (principals com.sun.enterprise.deployment.PrincipalImpl "admin",
    com.sun.enterprise.deployment.Group "appadmin")
    java.security.Permissions@148853d (
    (java.net.SocketPermission localhost:1024- listen,resolve)
    (java.net.SocketPermission * connect,resolve)
    (unresolved javax.security.jacc.WebRoleRefPermission jsp appadmin)
    (unresolved javax.security.jacc.WebRoleRefPermission Faces Servlet appadmin)
    (unresolved javax.security.jacc.WebRoleRefPermission appadmin)
    (unresolved javax.security.jacc.WebRoleRefPermission XmlHttpProxy appadmin)
    (unresolved javax.security.jacc.WebRoleRefPermission default appadmin)
    (unresolved javax.security.jacc.WebRoleRefPermission ThemeServlet appadmin)
    (unresolved javax.security.jacc.WebUserDataPermission /faces/* null)
    (unresolved javax.security.jacc.WebUserDataPermission /:/faces/* null)
    (unresolved javax.security.jacc.WebResourcePermission /faces/* GET,POST)
    (unresolved javax.security.jacc.WebResourcePermission /:/faces/* null)
    (unresolved javax.security.jacc.WebResourcePermission /faces/* !GET,POST)
    (unresolved com.sun.enterprise.security.CORBAObjectPermission * *)
    (java.io.FilePermission C:\DOCUME~1\SRIDHA~1\LOCALS~1\Temp\\- delete)
    (java.io.FilePermission C:/sun/domains/domain1\lib\databases\- delete)
    (java.io.FilePermission <<ALL FILES>> read,write)
    (javax.security.auth.PrivateCredentialPermission javax.resource.spi.security.PasswordCredential * "*" read)
    (java.lang.RuntimePermission loadLibrary.*)
    (java.lang.RuntimePermission modifyThreadGroup)
    (java.lang.RuntimePermission accessDeclaredMembers)
    (java.lang.RuntimePermission queuePrintJob)
    (java.lang.RuntimePermission stopThread)
    (java.util.PropertyPermission java.version read)
    (java.util.PropertyPermission java.vm.name read)
    (java.util.PropertyPermission java.vm.vendor read)
    (java.util.PropertyPermission os.name read)
    (java.util.PropertyPermission java.vendor.url read)
    (java.util.PropertyPermission java.vm.specification.vendor read)
    (java.util.PropertyPermission java.specification.vendor read)
    (java.util.PropertyPermission os.version read)
    (java.util.PropertyPermission java.specification.name read)
    (java.util.PropertyPermission java.class.version read)
    (java.util.PropertyPermission file.separator read)
    (java.util.PropertyPermission java.vm.version read)
    (java.util.PropertyPermission os.arch read)
    (java.util.PropertyPermission java.vm.specification.name read)
    (java.util.PropertyPermission java.vm.specification.version read)
    (java.util.PropertyPermission java.specification.version read)
    (java.util.PropertyPermission java.vendor read)
    (java.util.PropertyPermission * read)
    (java.util.PropertyPermission path.separator read)
    (java.util.PropertyPermission line.separator read)
    (javax.management.MBeanTrustPermission register)
    (javax.management.MBeanPermission [com.sun.messaging.jms.*:*] *)
    Can anyone help me out..???
    Thanks in advance.

    http://forums.java.net/jive/forum.jspa?forumID=56&start=0

  • Deployment Error as Enterprise application in Sun Application server 7

    Hi folks,
    I am tring to deploy some jdbc application in Sun Application server 7
    While deployment of jdbc-simple.ear as Enterprise application, I get following error.
    ==============================================================
    Deployment Error -- Error while running ejbc -- Fatal Error from EJB Compiler -- -- Compilation failed: com.iplanet.ias.ejb.codegen.ProcessExecutorException: Abnormal process termination -- process returned: 11 Attempted command: $HOME/appserver7/studio4/bin/fastjavac/fastjavac.sun -jdk $HOME/appserver7/jdk -g -d $HOME/appserver7/domains/domain1/server1/generated/ejb/j2ee-apps/jdbc-simple -classpath $HOME/appserver7/lib/appserv-rt.jar:$HOME/appserver7/jdk/lib/tools.jar:$HOME/appserver7/lib/appserv-ext.jar:$HOME/appserver7/lib/appserv-cmp.jar:$HOME/appserver7/imq/lib/imq.jar:$HOME/appserver7/imq/lib/imqadmin.jar:$HOME/appserver7/imq/lib/imqutil.jar:$HOME/appserver7/lib/appserv-admin.jar:$HOME/appserver7/lib/appserv-ideplugin.jar::.:$HOME/lib/common/servlet.jar:/usr/java/lib/tools.jar:$HOME/appserver7/domains/domain1/server1/generated/ejb/j2ee-apps/jdbc-simple:$HOME/appserver7/domains/domain1/server1/generated/ejb/j2ee-apps/jdbc-simple:$HOME/appserver7/domains/domain1/server1/generated/ejb/j2ee-apps/jdbc-simple $HOME/appserver7/domains/domain1/server1/generated/ejb/j2ee-apps/jdbc-simple/samples/jdbc/simple/ejb/GreeterDBBean_RemoteHomeImpl.java $HOME/appserver7/domains/domain1/server1/generated/ejb/j2ee-apps/jdbc-simple/samples/jdbc/simple/ejb/GreeterDBBean_EJBObjectImpl.java Output from command:
    ==============================================================
    Any help would be appreciated.

    Hi Vchavan,
    can you see the that actual compilation problem in server.log?
    Thanks,
    -- markus.

  • JBoss 4 to Sun Application Server...where to start

    Hi there...
    I'm charged with making sure my company's product, which has mostly been running on JBoss, works w/ Sun Application Server.
    I've been trying to use the Migration Tool with poor results...I know some of it is because it's for JBoss 3 and not 4....
    giving it the entire .EAR for our product tells me that it doesn't handle webservices...diving into the EAR's JAR containing our services and removing webservices.xml gives the same result of various permutations of putting in source code / xml leads , namely it runs and then freezes with
    DefaultValidationEventHandler: [FATAL_ERROR]: Premature end of file.
    Location:
    DefaultValidationEventHandler: [ERROR]: Unexpected element {}:ejb-local-ref
    Location:
    back on the console I launched the UI from
    To possibly oversimplify, I copied out some of the most relevant .xml we have,
    ejb-jar.xml
    jboss.xml
    jbosscmp-jdbc.xml
    jboss-web.xml
    web.xml
    and put them in a single directory...now the Migration tool runs, leaves most of the files unchanged, and for our ejb-jar.xml it fails, and says
    Unknown error.
    EjbJar is Null
    Admittedly our ejb-jar.xml is handcrafted and maybe suspect, but still.
    So I guess right now I'm not too optimistic about this tool.
    Some of the problem is my understanding of what all goes in an EAR in terms of DD is weak. I'm trying to smarten up, but haven't found a good description of "these are the typical DD files for Sun Application Server", with examples or precise descriptions of the contents...and the migration tool doesn't get to the point where it's making some of the files i expected based on
    http://java.sun.com/j2ee/tools/migration/doc/JBOSS3.0_S1AS7.html
    (for example sun-cmp-mappings.xml doesn't appear anywhere in the AppServer\docs directory... )
    Any pointers or advice appreciated...

    There is an article, while it is for Application Server 7, it still could be useful:
    http://developers.sun.com/prodtech/javatools/jsenterprise/reference/docs/jse7/jse7_jboss_plugin.html

  • Sun Application Server 8.1 remote deplyment database connection

    I use the deploy to Remote server to deply a project to Sun Application Server 8.1. When i try to connect to the database I get connection error
    javax.servlet.ServletException: javax.faces.FacesException: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: Access denied for user ''@'testserver.com' (using password: YES)
    it seems it doesnt pick the User from the Connection pull settings. The settings at the server seem correct.
    This works fine when i deply to Application server 8.0 that comes with the Sun creator

    The user is correct and it does work from 8.0/
    The server doesnt pick the username from the
    configuration
    the error message says use '' emptyWhat "configuration" are you referring to? Do you mean the way that you have the 8.1 server set up?
    Since you cannot ping, then there is something wrong with the configuration on the 8.1 server.
    Why don't you remove the connection pool and start over from scratch and cut/paste the settings from the 8.0 app server over. Then make sure you can ping once everything is set up.
    Also, where is the 8.1 box located? Are you sure it has access to the database that you are trying to reach?
    You might try posting this to the App Server forum as it really isn't a Creator problem.

  • How to run ear file in java application server

    i want how to run .ear file in java application server
    1. i m created ear file
    2. i m created jar file (bean,home,remote)
    3.i m created war file(in the form of jsp)
    but till now i couldnt run ear file
    how to run
    please hel me

    You must create :
    1.Jar file
    2.War file
    And then put them into an ear file
    Exemple : myapp.ear contains
    myappEJB.jar
    myappWEB.war
    META-INF/application.xml
    and application.xml looks like this :
    <application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com /xml/ns/j2ee
                            http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
        <display-name>myapp</display-name>
        <description>Demo application</description>
        <module>
            <ejb>myappEJB.jar</ejb>
        </module>
        <module>
          <web>
             <web-uri>myappWAR.war</web-uri>
             <context-root>/myapp</context-root>
          </web>
        </module>
    </application>Good luck

Maybe you are looking for

  • OCA in Oracle 10g database administration certificate yet not received.

    Hi, Can anyone please help me out in getting OCA 10g Certificate which I have cleared in May,2010 but yet its not delivered to my residential address. I gavewhen vendor was Prometric. Please guide me. Regards, Shrikant Edited by: user10398617 on May

  • Issue when Calling the RFC from external system

    Hi, I have created one RFC, in which I am using one function module to get the material customer status. Functional Module name is "QC01_BATCH_VALUES_READ". When I run this in SAP, it is giving a value for Cusotmer Status. But when this RFC is called

  • Iphone 3GS turns off and goes dead after i make or receive a call.

    Hi i bought a Iphone 3Gs unlocked from a Grainger Games store in liverpool two days ago. I live in Ireland so returning would be hard but possible. I have charged the phone for 9 hours and it said 100 % charge but any time i make or receive a call it

  • After Effects won't render quicktime

    Hello, I'm trying to render quicktime files and recieve this - After Effects error: Rendering error while wriring to file . Unable to open file. (-1610153459) My rig i7 CPU 93- @ 2.800 2 x GeForce GTX 460 16 GB Ram These are files which I've previous

  • What is the procdure to store a PDF converted Smartform into an ext drive?

    Hi All,          I have a requirement in which I have to save a smartform converted as .PDF into an external drive(in network like VSS).If its for saving in local system,we can use GUI_DOWNLOAD.But how to do it for an external drive. Thanks in advanc