How can I run a servlet with Sun Java System Application Server PE 8?

I've created a package with a TestServlet.class inside, used the deploytool to create a WAR and deployed this using the autodeploy folder.
The filestructure has been generated and I find the TestServlet.class in
[installdir]\domains\domain1\applications\j2ee-modules\testProject\WEB-INF\classes\[packagefolderstructure]\TestServlet.class.
The context root is working fine, but I have no clue how I can run the servlet directly via the URL.
I've tried many things like
http://localhost:8080/testProject/TestServlet
http://localhost:8080/testProject/servlet/TestServlet
http://localhost:8080/testProject/servlet/[packagenamewithpoints]TestServlet
http://localhost:8080/testProject/servlet/[packagenamewithslashes]TestServlet
etc etc
Can somebody tell me please how to write URLs to deployed servlets? Or send me an example url and xml descriptor files?
Thanks a lot in advance!

in web.xml use servlet mapping
<servlet-mapping>
    <servlet-name>TestServlet</servlet-name>
    <url-pattern>/doit</url-pattern>
</servlet-mapping>then use http://localhost:8080/testProject/doit

Similar Messages

  • ColdFusion compatibility with Sun Java System Application Server

    Background: A vendor that is doing a project for our
    department told us that ColdFusion MX 6.1 is not compatible with
    Sun Java System Application Server Enterprise Edition 8.1 and
    beyond. Since we are migrating our server environment to this
    release of Sun Java System Application Server Enterprise Edition,
    we face a difficult situation in that our ColdFusion applications
    will no longer run. Thus, we would like Adobe to answer a couple
    questions which will help us determine what course of action we
    ought to take.
    Q: Will applications we developed using ColdFusion MX 6.1 run
    on Sun Java System Application Server Enterprise Edition 8.1? Below
    is a detailed description of the Sun Java System Application Server
    Enterprise Edition we intend to migrate to.
    Q: Is Adobe aware of any compatibility issues with this
    configuration?
    Q: What is Adobe's support commitment regarding future
    releases of ColdFusion MX and Sun Java System Application Server
    Enterprise Edition? Does Adobe intend to continue support this
    environment?
    Configuration: Sun Java System Application Server Enterprise
    Edition 8.1_02 (build b24-p11)
    Below is the specification levels for the 8.1 server
    (J2EE1.4), note it can use J2SE 1.4.2_06 or 5.0 as the JAVA
    runtime.
    J2EE 1.4 compatible
    Components: J2SE 1.4.2_06 or J2SE 5.0
    Application and Application Client
    Enterprise JavaBeans (EJB) 2.1
    Java Servlet 2.4
    JavaServer Pages(JSP) 2.0
    J2EE Connector Architecture 1.5
    JMX 1.2
    JMS 1.1
    Java Naming and Directory Interface (JNDI) 1.2
    and Java Transaction API (JTA) 1.0
    Web Services:Java Web Services Developer Pack 1.5
    Java APIs for XML Registries (JAXR) 1.0
    Java API for XML-based Remote Procedure Calls (JAX-RPC) 1.1
    SOAP With Attachments API for Java (SAAJ) 1.2
    WS-I Basic Profile 1.0
    Other:J2EE Deployment 1.1
    J2EE Management 1.0
    Java API for XML Processing (JAXP) 1.2
    JavaMail 1.3
    Java Authentication and Authorization Service (JAAS) 1.0
    Java Authorization Contract for Containers (JACC) 1.0

    First of all, is there a reason why you are using jRockit?
    Since the issue appeared after upgrading the windows, the issue would potentially be in the interaction between JVM and OS.
    Also, there were some issues related to memory leak that were fixed in AS 8.2.
    May be you should try with a Sun JVM and AS 8.2.

  • Integrate p6SPY with Sun Java System Application Server 7 ...?

    Dear PALs,
    Let me know how can I Integrate p6SPY (w3.p6spy.com) with "Sun Java System Application Server 7 2004Q2" on Windows ?
    When I try to follow the steps given at http://www.p6spy.com/documentation/install.htm#unspec ,my server throws
    INFO ( 1820): JMS5035: Timed out after 30000 milliseconds while trying to verify if the JMS service startup succeeded.
    INFO ( 1820): JMS5036: More details may be available in the log file for the JMS service broker instance domain1_server1. Please refer to the JMS provider documentation for the exact location of this log file.
    [27/Dec/2004:18:37:35] SEVERE ( 1820): JMS5024: JMS service startup failed.
    [27/Dec/2004:18:37:35] SEVERE ( 1820): CORE5071: An error occured during initialization
    com.sun.appserv.server.ServerLifecycleException: [C4003]: Error occurred on connection creation [NARAYANA:7676]. - cause: java.net.ConnectException: Connection refused: connect
         at com.iplanet.ias.jms.JmsProviderLifecycle.onInitialization(JmsProviderLifecycle.java:247)
         at com.iplanet.ias.server.ApplicationServer.onInitialization(ApplicationServer.java:224)
         at com.iplanet.ias.server.J2EERunner.confPreInit(J2EERunner.java:114)
    Caused by: com.sun.appserv.server.ServerLifecycleException: [C4003]: Error occurred on connection creation [NARAYANA:7676]. - cause: java.net.ConnectException: Connection refused: connect
         at com.iplanet.ias.jms.JmsProviderLifecycle.onInitialization(JmsProviderLifecycle.java:231)
         ... 2 more
    expecting sagacious reply......
    thanks,
    SIMPLEbnm

    Hi,
    You can set the p6SPY on Sun Java System Application Server as follows.
    Create a connection pool using Admin Console, please don't specify any database vendor. Then use the following properties.
    Data Source Class Name : com.p6spy.engine.spy.P6DataSource
    Resource Type : javax.sql.DataSource
    and then provide the following property.
    user, password and url. Make sure you add the p6spy.jar and properties file to the classpath.
    Try to ping the connection pool, and it should work.

  • Apache,IIS integration with Sun Java System Application Server

    Hi,
    Is any one know the way to connect Sun Appserver with IIS and Apace server.
    Edited by: shiju707 on Oct 10, 2007 8:22 PM

    I'm also looking at the same solution of how to configure IIS as the front end for the Sun Java System Application Server 9.1. I went though the following document from Sun, but still unable to configure the IIS as the front end of the application server.
    http://docs.sun.com/app/docs/doc/819-3679/abdhq?a=view
    After i have configured the IIS, the ISAPI filter shown the status down for the Sun Load balancer plugin.
    Did anyone have any idea of how can i configure IIS to working the Sun Java System Application Server 9.1?

  • Solaris 10 Install - with Sun Java System Application Server (8.2)

    Hi guys:
    What is the reason for Solaris 10 to be installed with the Sun Java System Application Server (8.2). It is a really old version and gets in the way when I install GlassFish 2.1.1
    How does on avoid getting it in the install, and how does Sun stop adding it to the distribution?
    Thanks
    Leonid

    Hi guys:
    What is the reason for Solaris 10 to be installed with the Sun Java System Application Server (8.2). It is a really old version and gets in the way when I install GlassFish 2.1.1
    How does on avoid getting it in the install, and how does Sun stop adding it to the distribution?
    Thanks
    Leonid

  • Servlet on "Sun Java System Application Server Platform Edition 9.0"

    Hi Friends,
    I'm using Sun Java System Application Server Platform Edition 9.0
    my server is instatted on "C:\Sun\AppServer\" and rest is default istallation path
    my web page is calling from "C:\Sun\AppServer\domains\domain1\docroot\" folder
    I wrote a test servert and placed the complied
    using the command
    C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\classes\in\muk>javac -cp C
    :\Sun\AppServer\lib\j2ee.jar TestServlet.java
    C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\classes\in\muk>
    and placed the class file in "C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\classes\in\muk\TestServlet.class" having following code
    package in.muk;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.util.Date;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class TestServlet extends HttpServlet {
         public void doGet(HttpServletRequest req, HttpServletResponse res)
              throws IOException, ServletException {
              res.setContentType("text/html");
              PrintWriter out = res.getWriter();
              out.println("<html><head><title>TestServlet</title>");
              out.println("\t<style>body { font-family: 'Lucida Grande', " +
                   "'Lucida Sans Unicode';font-size: 13px; }</style>");
              out.println("</head><body><p>Current Date/Time: " +     new Date().toString() + "</p>");
              out.println("</body></html>");
              out.close();
    The content of my "C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\web.xml" file is
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
              http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         version="2.5">
         <servlet>
              <servlet-name>TestServlet</servlet-name>
              <servlet-class>in.muk.TestServlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>TestServlet</servlet-name>
              <url-pattern>/TestServlet</url-pattern>
         </servlet-mapping>
         <welcome-file-list>
              <welcome-file>index.jsp</welcome-file>
         </welcome-file-list>
    </web-app>--------------------
    The content of "C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\sun-web.xml"
    is
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd">
    <sun-web-app error-url="">
      <class-loader delegate="true"/>
      <jsp-config>
        <property name="keepgenerated" value="true">
          <description>Keep a copy of the generated servlet class' java code.</description>
        </property>
      </jsp-config>
    </sun-web-app>--------------
    The proble is I'm not able to call this servlet on web
    with URL
    *http://localhost:8080/TestServlet
    *it is giving "HTTP Status 404 - "
    Could anybody please help me in finding out why I'm not able to access the Servlet.
    Thank you with regards.
    Edited by: mu_kumar on Mar 5, 2008 9:00 PM

    Hello,
    Did you download the window version?
    Download it from
    https://sdlc4e.sun.com/ECom/EComActionServlet;jsessionid=127ACE07200555497A21DDC654885146
    And don't worry, it's the correct version. Also could you check on your PC,
    Start\Programs\ Sun Microsystems\ Application Server PE 9.
    Also which operative system are you using?
    eve

  • Can't deploy my app on  Sun Java System Application Server Platform Edition

    Hi,
    I am trying to deploy me app on the Sun's app server but I get the following error:
    I am using Sun Java System Application Server Platform Edition 8.2
    Invalid Deployment Descriptors in archive jag-ejb.jar in deployment descriptor file META-INF/ejb-jar.xml
    Line 29 Column 15 -- The content of element type "session" must match
    "(description?,display-name?,small-icon?,large-icon?,ejb-name,home?,remote?,local-home?,local?,ejb-class,session-type,transaction-type,env-entry*,ejb-ref*,ejb-local-ref*,security-role-ref*,security-identity?,resource-ref*,resource-env-ref*)". "It deploys on Orion 2.02
    The ejb.xml file is as follows:
      <enterprise-beans>
        <session>
          <display-name>Facade stateless session bean</display-name>
          <ejb-name>ejb/PetardsFacade</ejb-name>
          <home>com.jag.petardscmsbeans.interfaces.PetardsFacadeHome</home>
          <remote>com.jag.petardscmsbeans.interfaces.PetardsFacade</remote>
          <local-home>com.jag.businesslogic.interfaces.FacadeLocalHome</local-home
          ><local>com.jag.businesslogic.interfaces.FacadeLocal</local>
          <ejb-class>com.jag.petardscmsbeans.ejb.PetardsFacadeEJB</ejb-class>
          <session-type>Stateless</session-type>
          <transaction-type>Container</transaction-type>
          <resource-ref>
            <res-ref-name>jdbc/OracleDSRES</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Container</res-auth>
          </resource-ref>
          <env-entry>
            <env-entry-name>DSName</env-entry-name>
            <env-entry-type>java.lang.String</env-entry-type>
            <env-entry-value>jdbc/OracleDSRES</env-entry-value>
          </env-entry>
        </session>
      </enterprise-beans>also, in the error message what does ? and * signify?
    Thanks

    This is an element ordering issue. env-entry is before resource-ref in the schema so it must be declared in the same order.
    --ken                                                                                                                                                                                                                                                                               

  • Help for MDB, with Sun Java System Application Server Platform Edition 8.2

    Hi all,
    Iam having problem in working MDB. Have written & deployed the Bean sucessfully and when am trying to run the Client, to post a new message am getting exceptions
    The Exception i got is
    D:\krb\ejb\Message\MDB>appclient -client MDBClient.jar
    MQRA:MC:Constr:Exception on cnxn creation-[C4060]: Login failed:  user=admin, br
    oker=itech-4:7676(1339)
    com.sun.messaging.jms.JMSSecurityException: [C4060]: Login failed:  user=admin,
    broker=itech-4:7676(1339)
            at com.sun.messaging.jmq.jmsclient.ProtocolHandler.authenticate(Protocol
    Handler.java:824)
            at com.sun.messaging.jmq.jmsclient.ProtocolHandler.hello(ProtocolHandler
    .java:749)
            at com.sun.messaging.jmq.jmsclient.ProtocolHandler.hello(ProtocolHandler
    .java:679)
            at com.sun.messaging.jmq.jmsclient.ConnectionImpl.hello(ConnectionImpl.j
    ava:416)
            at com.sun.messaging.jmq.jmsclient.ConnectionImpl.openConnection(Connect
    ionImpl.java:1979)
            at com.sun.messaging.jmq.jmsclient.ConnectionImpl.init(ConnectionImpl.ja
    va:745)
            at com.sun.messaging.jmq.jmsclient.ConnectionImpl.<init>(ConnectionImpl.
    java:315)
            at com.sun.messaging.jmq.jmsclient.UnifiedConnectionImpl.<init>(UnifiedC
    onnectionImpl.java:33)
            at com.sun.messaging.jmq.jmsclient.XAConnectionImpl.<init>(XAConnectionI
    mpl.java:32)
            at com.sun.messaging.XAConnectionFactory.createXAConnection(XAConnection
    Factory.java:65)
            at com.sun.messaging.jms.ra.ManagedConnection.<init>(ManagedConnection.j
    ava:131)
            at com.sun.messaging.jms.ra.ManagedConnectionFactory.createManagedConnec
    tion(ManagedConnectionFactory.java:148)
            at com.sun.enterprise.resource.ConnectorAllocator.createResource(Connect
    orAllocator.java:90)
            at com.sun.enterprise.resource.IASNonSharedResourcePool.getUnenlistedRes
    ource(IASNonSharedResourcePool.java:437)
            at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResou
    rce(IASNonSharedResourcePool.java:355)
            at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASN
    onSharedResourcePool.java:250)
            at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolM
    anagerImpl.java:213)
            at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerIm
    pl.java:174)
            at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnec
    tion(ConnectionManagerImpl.java:286)
            at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnectio
    n(ConnectionManagerImpl.java:190)
            at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnectio
    n(ConnectionManagerImpl.java:121)
            at com.sun.messaging.jms.ra.ConnectionFactoryAdapter.createConnection(Co
    nnectionFactoryAdapter.java:118)
            at com.sun.messaging.jms.ra.ConnectionFactoryAdapter.createConnection(Co
    nnectionFactoryAdapter.java:89)
            at MessageClient.main(MessageClient.java:39)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:23
    7)
            at com.sun.enterprise.appclient.Main.<init>(Main.java:430)
            at com.sun.enterprise.appclient.Main.main(Main.java:99)
    Jun 8, 2006 12:40:26 PM com.sun.enterprise.connectors.ConnectionManagerImpl inte
    rnalGetConnection
    WARNING: RAR5117 : Failed to obtain/create connection. Reason : MQRA:MC:Constr:E
    xception on cnxn creation-[C4060]: Login failed:  user=admin, broker=itech-4:767
    6(1339)
    com.sun.messaging.jms.JMSException: MQRA:CFA:allocation failure:createConnection
    :Error in allocating a connection. Cause: MQRA:MC:Constr:Exception on cnxn creat
    ion-[C4060]: Login failed:  user=admin, broker=itech-4:7676(1339)
            at com.sun.messaging.jms.ra.ConnectionFactoryAdapter.createConnection(Co
    nnectionFactoryAdapter.java:122)
            at com.sun.messaging.jms.ra.ConnectionFactoryAdapter.createConnection(Co
    nnectionFactoryAdapter.java:89)
            at MessageClient.main(MessageClient.java:39)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:23
    7)
            at com.sun.enterprise.appclient.Main.<init>(Main.java:430)
            at com.sun.enterprise.appclient.Main.main(Main.java:99)
    Caused by: javax.resource.spi.ResourceAllocationException: Error in allocating a
    connection. Cause: MQRA:MC:Constr:Exception on cnxn creation-[C4060]: Login fai
    led:  user=admin, broker=itech-4:7676(1339)
            at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnec
    tion(ConnectionManagerImpl.java:301)
            at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnectio
    n(ConnectionManagerImpl.java:190)
            at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnectio
    n(ConnectionManagerImpl.java:121)
            at com.sun.messaging.jms.ra.ConnectionFactoryAdapter.createConnection(Co
    nnectionFactoryAdapter.java:118)
            ... 9 more
    Caused by: com.sun.enterprise.resource.PoolingException: MQRA:MC:Constr:Exceptio
    n on cnxn creation-[C4060]: Login failed:  user=admin, broker=itech-4:7676(1339)
            at com.sun.enterprise.resource.ConnectorAllocator.createResource(Connect
    orAllocator.java:100)
            at com.sun.enterprise.resource.IASNonSharedResourcePool.getUnenlistedRes
    ource(IASNonSharedResourcePool.java:437)
            at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResou
    rce(IASNonSharedResourcePool.java:355)
            at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASN
    onSharedResourcePool.java:250)
            at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolM
    anagerImpl.java:213)
            at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerIm
    pl.java:174)
            at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnec
    tion(ConnectionManagerImpl.java:286)
            ... 12 more
    My MessageDrivenBean is:
    import java.io.Serializable;
    import java.rmi.RemoteException;
    import javax.ejb.EJBException;
    import javax.ejb.MessageDrivenBean;
    import javax.ejb.MessageDrivenContext;
    import javax.ejb.CreateException;
    import javax.naming.*;
    import javax.jms.*;
    public class MyMessageDrivenBean implements MessageDrivenBean, MessageListener {
         private MessageDrivenContext mdc = null;
         private Context context;
         public MyMessageDrivenBean() { }
         public void setMessageDrivenContext(MessageDrivenContext mdc){
              this.mdc = mdc;
         public void ejbCreate() { }
         public void onMessage(Message msg){
              try{
                   if(msg instanceof TextMessage) {
                        TextMessage txtMsg = (TextMessage) msg;
                        System.out.println("The Received Message is: "+txtMsg.getText());
                   } else {
                        System.out.println("Incorrect Message Type");
              } catch(JMSException e){
                   e.printStackTrace();
         public void ejbRemove() { }
    My Client is:
    import javax.jms.*;
    import javax.naming.*;
    import java.util.*;
    public class MessageClient {
         public static void main(String arg []) {
              InitialContext ctx = null;
              ConnectionFactory conFact = null;
              Connection con = null;
              Session ses = null;
              Destination dest = null;
              MessageProducer msgPrd = null;
              TextMessage msg = null;
              try {
                   ctx = new InitialContext();
              } catch(NamingException e) {
                   e.printStackTrace();
              try {
                   conFact = (ConnectionFactory) ctx.lookup("java:comp/env/jms/BankConnectionFactory");
                   dest = (javax.jms.Queue) ctx.lookup("java:comp/env/jms/BankPhysicalDest");
              } catch(NamingException e) {
                   e.printStackTrace();
              try {
                   con = conFact.createConnection();
                   ses = con.createSession(false, Session.AUTO_ACKNOWLEDGE);
                   msgPrd = ses.createProducer(dest);
                   msg = ses.createTextMessage();
                   msg.setText("This is first Message");
                   msgPrd.send(msg);
                   msg.setText("This is second Message");
                   msgPrd.send(msg);
              } catch(JMSException e){
                   e.printStackTrace();
              } catch(Exception e){
                   e.printStackTrace();
              } finally{
                   if(con != null){
                        try{
                             con.close();
                        } catch(JMSException e){
                             e.printStackTrace();
                        } catch(Exception e){
                             e.printStackTrace();
    My JMS CONNECTION FACTORY RESOURCES are:
    1.     CONNECTION FACTORIES
    a.     JNDI NAME: jms/QueueConnFactory
    b.     TYPE: javax.jms.QueueConnectionFactory
    2.     PHYSICAL DESTINATION
    a. NAME: PhysicalQueue
    3.     DESTINATION RESOURCES
    a.     JNDI: jms/MessageQueue
    b.     TYPE: javax.jms.Queue
    c.     ADDITIONAL PROPERTIES � NAME: PhysicalQueue
    My Message-Driven Bean Settings:
    i.     Destination Type: javax.jms.Queue
    ii.     Target Destination: PhysicalQueue
    iii.     Connection Factory JNDI Name: jms/QueueConnFactory
    My MDBClient Settings are
    a.     Resource Refs
    i.     Coded Name: jms/BankConnectionFactory
    ii.     Type: javax.jms.ConnectionFactory
    iii.     Authentication: Container
    iv.     JNDI Name: jms/QueueConnFactory
    v.     User Name: admin
    vi.     Password: password
    b.     Msg Dest Refs
    i.     Coded Name: jms/BankPhysicalDest
    ii.     Destination Type: javax.jms.Queue
    iii.     Usage: ConsumesProduces
    iv.     Target Destination: PhysicalQueue
    c.     Message Destinations
    i.     Destination Name: PhysicalQueue
    ii.     JNDI Name: jms/MessageQueue
    My MDBAppl settings
    a.     JNDI Name: jms/MessageQueue
    b.     References: jms/QueueConnFactory
    My MDBJAR Settings
    a.     Message Destinations
    i.     Destination Name: PhysicalQueue
    ii.     JNDI Name: jms/MessageQueue
    My MyMessageDrivenBean File Settings
    a.     Transactions: Container-Managed
    b.     Transaction Attribute: Required
    and am RUNNING THE APPLICATION using
    appclient -client MDBClient.jar
    Pls help me to solve this problem
    rgds
    Ravi Bharathi

    Default username/password is admin/admin.
    Since the auth-type is container do not provide any username/password in the client descriptor and try.

  • Configuration of Sun Java System Application Server PE 8.2

    Hello,
    I want to start learning Enterprise JavaBean with Sun Java System Application Server PE 8.2. Pls, can any person let me know how to set the CLASSPATH.
    Again, I would be happy if I'm introduced to the site where I can learn how to use it.
    Thanks

    SJSAS PE 8.1
    http://sunsolve.sun.com/search/printfriendly.do?assetkey=1-21-119173-18-1

  • How can I deploy JBI Application in Sun Java System Application Server 9?

    I developed a demo "Loan Processing Composite Application " in Netbeans.org(http://www.netbeans.org/kb/55/loanprocessing.html).
    The guide only show the deployment using Netbeans6.Now I want to deploy it directly using Server9 , how can I do?
    How to deploy a soa application in Sun Java System Application Server 9? Is there any doc?
    Please~~I'm puzzled.

    To deploy a JBI application to Sun's App Server, you will need a JBI compliant ESB installed. OpenESB would be my first choice here. Then as far as installing your components without Netbeans, there are two choices. 1) Copy your SA's to the JBI/ESB autodeploy directory and you binding components and service engines to the JBI/ESB autoinstall directory. 2) Use the ant tasks that the JBI specification (http://jcp.org/en/jsr/detail?id=208) requires for all JBI implementations. OpenESB's JBI tasks are detailed here: http://wiki.open-esb.java.net/Wiki.jsp?page=JBIAntTaskReference. These ant tasks can be wrapped with maven goals if needed.
    Jeff

  • 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

  • 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

  • How deploy the EJB in security on the Sun Java System Application Server 9?

    I hava deploied a simple Hello EJB Object on PE 9(Sun Java System Application Server Platform Edition 9). I can use this EJB object without user name an password On any client. See the following code section:
         public static void main(String[] args) {
              try{
                   Properties props = System.getProperties();
                   props.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.enterprise.naming.SerialInitContextFactory");
                   props.put(Context.PROVIDER_URL,"iiop://localhost:3700");
                   Context ctx = new InitialContext(props);
                   Hello h = (Hello) ctx.lookup("ejb/test/Hello");
                   System.out.println(h.sayHello());
              }catch(Exception e){
                   e.printStackTrace();
    Please tell me how deploy the EJB in security on the Sun Java System Application Server 9? So that, The client must set the user name and password when lookup the ejb object. Like the following:
    props.put(Context.SECURITY_PRINCIPAL,"admin")
    props.put(Context.SECURITY_CREDENTIALS,"1234");

    Guys,
    I too have the same issue. If anyone has an answer, please let me know.
    Is this GlassFish problem? or Prgram issue?
    Find below the source code
    package TransactionSecurity.bean;
    import javax.annotation.Resource;
    import javax.annotation.security.DeclareRoles;
    import javax.annotation.security.PermitAll;
    import javax.annotation.security.RolesAllowed;
    import javax.ejb.Remote;
    import javax.ejb.SessionContext;
    import javax.ejb.Stateless;
    import javax.ejb.TransactionAttribute;
    import javax.ejb.TransactionAttributeType;
    @Stateless
    @Remote(TSCalculator.class)
    @DeclareRoles({"student", "teacher"})
    public class TSCalculatorBean implements TSCalculator {
         private @Resource SessionContext ctx;
         @PermitAll
    //     @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
         public int add(int x, int y) {
              System.out.println("CalculatorBean.add  Caller Principal:" + ctx.getCallerPrincipal().getName());
              return x + y;
         @RolesAllowed( { "student" })
         public int subtract(int x, int y) {
              System.out.println("CalculatorBean.subtract  Caller Principal:" + ctx.getCallerPrincipal().getName());
              System.out.println("CalculatorBean.subtract  isCallerInRole:" + ctx.isCallerInRole("student"));
              return x - y;
         @RolesAllowed( { "teacher" })
         public int divide(int x, int y) {
              System.out.println("CalculatorBean.divide  Caller Principal:" + ctx.getCallerPrincipal().getName());
              System.out.println("CalculatorBean.divide  isCallerInRole:" + ctx.isCallerInRole("teacher"));
              return x / y;
    package TransactionSecurity.bean;
    import javax.ejb.Remote;
    @Remote
    public interface TSCalculator {
            public int add(int x, int y);
            public int subtract(int x, int y);
            public int divide(int x, int y);
    package TransactionSecurity.client;
    import java.util.Properties;
    import javax.ejb.EJBAccessException;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import TransactionSecurity.bean.TSCalculator;
    public class TSCalculatorClient {
         public static void main(String[] args) throws Exception {
              // Establish the proxy with an incorrect security identity
              Properties env = new Properties();
              env.setProperty(Context.SECURITY_PRINCIPAL, "kabir");
              env.setProperty(Context.SECURITY_CREDENTIALS, "validpassword");
            env.setProperty(Context.INITIAL_CONTEXT_FACTORY,"com.sun.appserv.naming.S1ASCtxFactory");
            env.setProperty(Context.PROVIDER_URL,"iiop://127.0.0.1:3700");
            env.setProperty("java.naming.factory.initial","com.sun.enterprise.naming.SerialInitContextFactory");
            env.setProperty("java.naming.factory.url.pkgs","com.sun.enterprise.naming");
            env.setProperty("java.naming.factory.state","com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
            env.setProperty("org.omg.CORBA.ORBInitialHost", "127.0.0.1");
            env.setProperty("org.omg.CORBA.ORBInitialPort", "3700");
              InitialContext ctx = new InitialContext(env);
              TSCalculator calculator = null;
              try {
                   calculator = (TSCalculator) ctx.lookup(TSCalculator.class.getName());
              } catch (Exception e) {
                   System.out.println ("Error in Lookup");
                   e.printStackTrace();
                   System.exit(1);
              System.out.println("Kabir is a student.");
              System.out.println("Kabir types in the wrong password");
              try {
                   System.out.println("1 + 1 = " + calculator.add(1, 1));
              } catch (EJBAccessException ex) {
                   System.out.println("Saw expected SecurityException: "
                             + ex.getMessage());
              System.out.println("Kabir types in correct password.");
              System.out.println("Kabir does unchecked addition.");
              // Re-establish the proxy with the correct security identity
              env.setProperty(Context.SECURITY_CREDENTIALS, "validpassword");
              ctx = new InitialContext(env);
              calculator = (TSCalculator) ctx.lookup(TSCalculator.class.getName());
              System.out.println("1 + 1 = " + calculator.add(1, 1));
              System.out.println("Kabir is not a teacher so he cannot do division");
              try {
                   calculator.divide(16, 4);
              } catch (javax.ejb.EJBAccessException ex) {
                   System.out.println(ex.getMessage());
              System.out.println("Students are allowed to do subtraction");
              System.out.println("1 - 1 = " + calculator.subtract(1, 1));
    }The user kabir is created in the server and this user belongs to the group student.
    Also, I have enabled the "Default Principal To Role Mapping"
    BTW, I'm able to run other EJB3 examples [that does'nt involve any
    security features] without any problems.
    Below is the ERROR
    Error in Lookupjavax.naming.NamingException: ejb ref resolution error for remote business interfaceTransactionSecurity.bean.TSCalculator [Root exception is java.rmi.AccessException: CORBA NO_PERMISSION 0 No; nested exception is:
         org.omg.CORBA.NO_PERMISSION: ----------BEGIN server-side stack trace----------
    org.omg.CORBA.NO_PERMISSION:   vmcid: 0x0  minor code: 0  completed: No
         at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.handle_null_service_context(SecServerRequestInterceptor.java:407)
         at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.receive_request(SecServerRequestInterceptor.java:429)
         at com.sun.corba.ee.impl.interceptors.InterceptorInvoker.invokeServerInterceptorIntermediatePoint(InterceptorInvoker.java:627)
         at com.sun.corba.ee.impl.interceptors.PIHandlerImpl.invokeServerPIIntermediatePoint(PIHandlerImpl.java:530)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.getServantWithPI(CorbaServerRequestDispatcherImpl.java:406)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:224)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1846)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1706)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:1088)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:223)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:806)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:563)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2567)
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
    ----------END server-side stack trace----------  vmcid: 0x0  minor code: 0  completed: No]
         at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:425)
         at com.sun.ejb.containers.RemoteBusinessObjectFactory.getObjectInstance(RemoteBusinessObjectFactory.java:74)
         at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
         at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:403)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at TransactionSecurity.client.TSCalculatorClient.main(TSCalculatorClient.java:35)
    Caused by: java.rmi.AccessException: CORBA NO_PERMISSION 0 No; nested exception is:
         org.omg.CORBA.NO_PERMISSION: ----------BEGIN server-side stack trace----------
    org.omg.CORBA.NO_PERMISSION:   vmcid: 0x0  minor code: 0  completed: No
         at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.handle_null_service_context(SecServerRequestInterceptor.java:407)
         at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.receive_request(SecServerRequestInterceptor.java:429)
         at com.sun.corba.ee.impl.interceptors.InterceptorInvoker.invokeServerInterceptorIntermediatePoint(InterceptorInvoker.java:627)
         at com.sun.corba.ee.impl.interceptors.PIHandlerImpl.invokeServerPIIntermediatePoint(PIHandlerImpl.java:530)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.getServantWithPI(CorbaServerRequestDispatcherImpl.java:406)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:224)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1846)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1706)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:1088)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:223)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:806)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:563)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2567)
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
    ----------END server-side stack trace----------  vmcid: 0x0  minor code: 0  completed: No
         at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:277)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:205)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:152)
         at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:225)
         at com.sun.ejb.codegen._GenericEJBHome_Generated_DynamicStub.create(com/sun/ejb/codegen/_GenericEJBHome_Generated_DynamicStub.java)
         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.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:372)
         ... 5 more
    Caused by: org.omg.CORBA.NO_PERMISSION: ----------BEGIN server-side stack trace----------
    org.omg.CORBA.NO_PERMISSION:   vmcid: 0x0  minor code: 0  completed: No
         at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.handle_null_service_context(SecServerRequestInterceptor.java:407)
         at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.receive_request(SecServerRequestInterceptor.java:429)
         at com.sun.corba.ee.impl.interceptors.InterceptorInvoker.invokeServerInterceptorIntermediatePoint(InterceptorInvoker.java:627)
         at com.sun.corba.ee.impl.interceptors.PIHandlerImpl.invokeServerPIIntermediatePoint(PIHandlerImpl.java:530)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.getServantWithPI(CorbaServerRequestDispatcherImpl.java:406)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:224)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1846)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1706)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:1088)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:223)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:806)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:563)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2567)
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
    ----------END server-side stack trace----------  vmcid: 0x0  minor code: 0  completed: No
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:913)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:131)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(CorbaMessageMediatorImpl.java:685)
         at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:472)
         at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:363)
         at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:219)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:192)
         ... 13 moreAny help is appreciated.
    Regards!
    Nithi.
    Edited by: EJB3 on Aug 17, 2008 8:17 PM

  • Servlet configration on "Sun Java System Application Server Platform Editio

    Hi Friends,
    I'm using Sun Java System Application Server Platform Edition 9.0
    my server is instatted on "C:\Sun\AppServer\" and rest is default istallation path
    my web page is calling from "C:\Sun\AppServer\domains\domain1\docroot\" folder
    I wrote a test servert and placed the complied class file in "C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\classes\in\muk\TestServlet.class" having following code
    using the command
    C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\classes\in\muk>javac -cp C
    :\Sun\AppServer\lib\j2ee.jar TestServlet.java
    C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\classes\in\muk>
    {noformat}<code>package in.muk;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.util.Date;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class TestServlet extends HttpServlet {
    public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws IOException, ServletException {
              res.setContentType("text/html");
              PrintWriter out = res.getWriter();
              out.println("<html><head><title>TestServlet</title>");
              out.println("\t<style>body { font-family: 'Lucida Grande', " +
                   "'Lucida Sans Unicode';font-size: 13px; }</style>");
              out.println("</head><body><p>Current Date/Time: " +     new Date().toString() + "</p>");
              out.println("</body></html>");
              out.close();
    </code>{noformat}
    The content of my "C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\web.xml" file is
    {noformat}<code><?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
              http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         version="2.5">
         <servlet>
              <servlet-name>TestServlet</servlet-name>
              <servlet-class>in.muk.TestServlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>TestServlet</servlet-name>
              <url-pattern>/TestServlet</url-pattern>
         </servlet-mapping>
         <welcome-file-list>
              <welcome-file>index.jsp</welcome-file>
         </welcome-file-list>
    </web-app>
    </code>{noformat}
    The content of "C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\sun-web.xml"
    is -----
    {noformat}<code><?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd">
    <sun-web-app error-url="">
    <class-loader delegate="true"/>
    <jsp-config>
    <property name="keepgenerated" value="true">
    <description>Keep a copy of the generated servlet class' java code.</description>
    </property>
    </jsp-config>
    </sun-web-app>
    </code>{noformat}
    The proble is I'm not able to call this servlet on web
    with URL
    http://localhost:8080/TestServlet
    it is giving "HTTP Status 404 - "
    Could you please help me in finding out where is the error

    Thanks for the reply.
    I am using Sun Java System Application Server Platform Edition 8.2 (build b06-fcs). Could be some problem in the application itself. Can you suggest what may be missing? As suggested in the bug description i used the wscompile -infix option as well.

  • 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 ?

Maybe you are looking for

  • SPA504g provisioning, firmare update failure, file not found.

    Hello all, I am provisioning SPA504g phones using a tftp server and it works well, however there is something that annoys me. I have the phones doing firmware updates with the update rule: tftp://sip.XXXXXXXXX.net/Cisco/spa$PSN/Firmware/from-$SWVER/s

  • Cost Components

    HI All, What are the cost components for the WIP process. I understand this is been defined in the Overhead key for the Materials in the Production order. I would like to know the Cost components which are added as the factors of production in the WI

  • Best method for archiving .mpp files on a separate server or location?

    We want to be able to run a program or job on Project Server 2013 that will export all current published project .mpp files to a separate server or location on our network. What is the best, or suggested, method for something like this? Our managers

  • FF tabbar does not appear even though the option is checked.

    I just got a new hard drive and installed FF 12 and transferred my profile. My profile was from FF 11 and I just hadn't gotten around to updating. My profile and everything works fine so far, but every time I start FF the tabbar is not there. I must

  • 8.0.1 has broken Content Link in Piano Roll Editor

    Logic 8.0.1 has managed to break Content Link in Piano Roll Editor... Select a MIDI region in Arrange, choose a Screenset for Piano Roll and, with Link active, you'll see the contents for the selected MIDI region. From that point on though, you'll on