Sun-acc.xml - can't auth to ejb

hi
i cannot auth successfully to the server ejb, which access is controlled by server container thru deployment descriptors. if i understand correctly, i should be able to tell the client side container to send to the server my credentials listed in sun-acc.xml. but the problem is that the realm is never picked up (always reported as "default" instead of "file" in the logs). here is the sun-acc.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE client-container SYSTEM
     "file:///C:/Sun/AppServer7/lib/dtds/sun-application-client-container_1_0.dtd">
<client-container send-password="true" >
     <target-server      name="localhost" address="localhost" port="3700" />            
     <client-credential realm="file" user-name="syncFes" password="abc123"  />
     <log-service file="D:/TempFTP/client.log" level="FINEST"/>
</client-container> and here is the logs
<code>
&#32048;&#32251;: No SAS context element found in service context list
2004/11/16 &#19979;&#21320; 03:04:39 com.sun.enterprise.iiop.security.SecClientRequestInterceptor setreplyStatus
&#32048;&#32251;: Status to be set : 0
2004/11/16 &#19979;&#21320; 03:04:39 com.sun.enterprise.iiop.security.SecurityServiceImpl receivedReply
&#32048;&#32251;: Passed status
2004/11/16 &#19979;&#21320; 03:04:39 com.sun.enterprise.iiop.security.SecClientRequestInterceptor setreplyStatus
&#32048;&#32251;: Invoked receivedReply()
2004/11/16 &#19979;&#21320; 03:04:39 com.sun.enterprise.appclient.AppContainer preInvoke
&#32048;&#32251;: Callback Handler:null
2004/11/16 &#19979;&#21320; 03:04:39 com.sun.enterprise.appclient.AppContainer preInvoke
&#36039;&#35338;: ACC007: Initiating Login ...
2004/11/16 &#19979;&#21320; 03:04:39 com.sun.enterprise.security.auth.LoginContextDriver$10 run
&#32048;&#32251;: LCD post login subject :&#20027;&#38988;&#65306;
     Principal: user1
     &#31169;&#20154;&#25480;&#27402; Realm=default Username=user1 Password=******** TargetName = [B@7e8c4d
2004/11/16 &#19979;&#21320; 03:04:39 com.sun.enterprise.security.auth.LoginContextDriver postClientAuth
&#32048;&#32251;: In LCD user-pass login:syncFes realm :default
2004/11/16 &#19979;&#21320; 03:04:39 com.sun.enterprise.naming.NamingManagerImpl bindObjects
&#32048;&#32251;: Binding name:`java:comp/env/SMCPhoneBookEJB`
2004/11/16 &#19979;&#21320; 03:04:39 com.iplanet.ias.appclient.Main <init>
&#36039;&#35338;: ACC009: Load Application Class: [hk.com.smartone.addressbook.test.TestApiClient]
2004/11/16 &#19979;&#21320; 03:04:40 com.sun.corba.ee.internal.iiop.ConnectionTable getConnection
&#26368;&#32048;&#32251;: Connection Table GetConnection Called
2004/11/16 &#19979;&#21320; 03:04:40 com.sun.corba.ee.internal.iiop.ConnectionTable getConnection
</code>
did i miss anything in the configuration?

This looks like the usual TNSListener not running problem. I use a datasource for that and don't specify the connection details directly... Could be tested independently.
--olaf                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Starter question: ear created on sun one studio can't be redployed

    Just start learning sun one studio. Followed the tutorial of helloworld, test succeed on sun one studio's RI server. I tried to redeploy the ear file on sun one's application 7, got error message:
    Deployment Error -- Error while running ejbc -- Fatal Error from EJB Compiler -- -- Failed to load deployment descriptor for: hello cause: Error reading from file: C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\hello_2\sun-EJBModule_Greeter.xml
    under hello_2 folder, the applicaiton server unzipped descriptor is named: EJBModule_Greeter.xml.
    shouldn't the ear file be able to redeploy without modification on any J2EE complied application server? what did I do wrong?
    Thanks for your help.
    regards.

    I'll answer my own question - for anyone else who may want to know. The tool is SUN ONE Migration tool for application servers, and it can be found at URL http://www.sun.com/migration/sunonetools.html.
    The migration is from J2EERI to S1AS. I haven't tried it out yet , but will soon.
    Earlier I asked ...
    Do I understand correctly - I must use a migration
    tool to migrate from SUN ONE to SUN ONE?

  • How can I deploy the EJB to the remote AP Server

    Dear All,
    Any one know how can I deploy an EJB to the AP server which is not located on the local machine, using Jdev9.0.3.1.
    I have try to new a connection with the server name and the testing connection section is successful, however when I deploy the EJB to that connection the error comes out as following:
    java.lang.InstantiationException: Illeagal values: min-instances is greater than max-instances
         at com.evermind.server.ejb.deployment.BeanDescriptor.parseOrionAttribute(BeanDescriptor.java:410)
         at com.evermind.server.ejb.deployment.ExposableBeanDescriptor.parseOrionAttribute(ExposableBeanDescriptor.java:352)
         at com.evermind.server.ejb.deployment.SessionBeanDescriptor.parseOrionAttribute(SessionBeanDescriptor.java:260)
         at com.evermind.sFatal Error: Illeagal values: min-instances is greater than max-instances
    erver.ejb.deployment.BeanDescriptor.parseOrionXML(BeanDescriptor.java:423)
         at com.evermind.server.ejb.deployment.SessionBeanDescriptor.parseOrionXML(SessionBeanDescriptor.java:265)
         at com.evermind.server.ejb.deployment.EJBPackage.parseOrionBean(EJBPackage.java:804)
         at com.evermind.server.ejb.deployment.EJBPackage.parseOrionEnterpriseBeans(EJBPackage.java:646)
         at com.evermind.server.ejb.deployment.EJBPackage.parseDeploymentMainNode(EJBPackage.java:455)
         at com.evermind.xml.XMLConfig.parseRootNode(XMLConfig.java:268)
         at com.evermind.xml.XMLConfig.init(XMLConfig.java:147)
         at com.evermind.server.ServerComponent.initDeployment(ServerComponent.java:305)
         at com.evermind.server.ServerComponent.copyAndDeploy(ServerComponent.java:374)
         at com.evermind.server.ServerComponent.initDeployment(ServerComponent.java:276)
         at com.evermind.server.ejb.EJBPackageDeployment.getPackage(EJBPackageDeployment.java:607)
         at com.evermind.server.administration.ServerApplicationInstallation.finish(ServerApplicationInstallation.java:464)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:80)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    Thank you very much!!

    Your question is a bit unclear.
    If you are referring to converting from using JInitiator to JRE, pl see MOS Doc 290807.1 (Deploying Sun JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite 11i).
    If you are referring to upgrading Java versions for use by EBS, pl see MOS Doc 401561.1 (Using J2SE Version 6 with Oracle E-Business Suite 11i).
    MOS Doc 300482.1 (Overview of Using Java with Oracle E-Business Suite Release 11i) gives an overview of Java usage with 11i.
    HTH
    Srini

  • (261936172) Q general How can I access an EJB hosted on a remote server?

    Q<general> How can I access an EJB hosted on a remote server?
    A<general> The ability to add EJB control files enables you to access an EJB that
    is deployed to the server on which your web service is running. When you select
    "add EJB control" you need to supply the home and remote interfaces for the EJB
    as well as the JNDI name. This does not provide you with the capability for creating
    a control for a remotely hosted EJB. To use a EJB hosted on another server you
    will have to provide the appropriate code within your web service itself. You
    will have to programmatically gain to access the JNDI for the remote server, lookup
    up the home stub and use it to create the remote stub for the EJB. Of course,
    to make this work you must have the necessary client interfaces in you classpath
    (home and remote interfaces) which can easliy be achieved by adding the EJB client.jar
    file to the lib directory in the webservice WEB-INF folder.

    just define the different server path in the description xml file
    <jndi-name>jnp://serverA(B)/....</jndi-name>

  • Where is the file "sun-resources.xml"?

    I tried out this example once,
    http://www.netbeans.org/kb/60/javaee/ejb30.html
    Then I removed this project from Netbeans. Today when I want to play with this example again, I found there is already an existing "Server Destinations" when I want to create a new Message-Driven Bean. Because of that I can't use the same name for "Project Destinations". I googled and thought it should be controlled by the file "sun-resources.xml". But where is it?
    Thanks!
    Netbeans 6.1, Ubuntu 8.04

    Under the folder Server Resources ->sun-resources.xml -OR from the command line {yourProjectDir}/setup/sun-resources.xml

  • Why XML can't extract data in JSTL?

    I have a xml file,named test.xml,I put it into Tomcat5\webapps\ROOT directory, it's content like follows:
    <rolodex>
    <contact>
    <firstName>Anna</firstName>
    <lastName>Keeney</lastName>
    <email>[email protected]</email>
    <phone type="work">716-873-9644</phone>
    <phone type="home">716-834-8772</phone>
    </contact>
    </rolodex>
    Then I write a JSP,and put it into same directory of Tomcat5\webapps\ROOT too,the code is follows:
    <%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c' %>
    <c:import var='rolodex_xml' url='http://localhost:8080/test.xml'/>
    <x:parse var='document' xml='${rolodex_xml}'/>
    <table>
    <x:forEach select='$document//contact'>
    <table>
    <tr>
    <td>First Name:</td>
    <td><x:out select='firstName'/></td>
    </tr>
    <tr>
    <td>Last Name:</td>
    <td><x:out select='lastName'/></td>
    </tr>
    <tr>
    <td>Email:</td>
    <td><x:out select='email'/></td>
    </tr>
    <tr>
    <td>Work Phone:</td>
    <td><x:out select='phone[@type="work"]'/></td>
    </tr>
    <x:if select='phone[@type="home"]'>
    <tr>
    <td>Home Phone:</td>
    <td><x:out select='phone[@type="home"]'/></td>
    </tr>
    </x:if>
    </table>
    <br>
    </x:forEach>
    </table>               
    </body>
    </html>
    I want to extract data from test.xml and show the results in this JSP page,but when I run it,the page don't show the data,and only show:
    First Name:
    Last Name:
    Email:
    Work Phone:
    Home Phone:
    Why XML can't extract data from test.xml?
    Thanks in advance!

    View source on your page. What does it generate?
    Unless you import the xml taglib you can't actually use it.
    Try putting this on your page:
    <%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>Cheers,
    evnafets

  • Change the JSESSIONID name in sun-web.xml

    Hi,
    i saw the sun document, we can change the JSESSIONID to user defined name. This we can set in the sun-web.xml. I did this, but still it's using the JSESSIONID. How can we change the JSESSIONID to my own name. It will be very great if any one provide the solution.

    Could you please shed some light on what exactly you're refering to with the 'sun document' and the 'sun-web.xml' ?
    I'm only asking this because I've never heard of customizing the JSESSIONID to your own name in the web.xml ...
    BTW, the session id having to a unique identifier in order for session tracking to work correctly, I don't think it is such a good idea to be able to customize it to your own name, since names (even indian names) are far from being unique.

  • My sun-web.xml file doesn't seem to be getting processed.

    I've made another topic in this forum because my pre-compiled JSPs are not working but I think that I may have found the root of that problem, and it is this...
    My sun-web.xml file does not seem to be getting processed (run?) by the web server. I have this theory because I made some changes to it that should have caused an error as the server starts up, but there was nothing. For example, I added some random text as a tag that should have been an error, and there was none.
    Now, I did the same thing in my web.xml file, and sure enough, there was an error on start up. So, this coupled with the fact that my "use-precompiled" property seems not to be working makes me think that the sun-web.xml file is not being used by the sever.
    Is there anything I need to do other than drop it in the /WEB-INF directory with the web.xml file?
    Thanks.

    It might be possible that the extra tags in sun-web.xml are just ignored (ie. not validated). I have seen cases where this has occurred.
    A simple test you should perform is to enable some obvious setting in sun-web.xml, and see if that takes effect. Ex.
    <sun-web-app>
    <session-config>
    <session-manager persistence-type="mmap"/>
    </session-config>
    </sun-web-app>
    During startup time the logs should indicate that the persistence type has been set to MMAP. Like the following:
    [02/Nov/2005:20:21:25] info (12566): WEB3006: Initializing MMapSession Manager to hold a maximum of (1,000) sessions, each of which can store a maximum of (10) values each about (4,096) bytes size, with a timeout value of (1,800) seconds; please ensure that this configuration fits total size of the serialized byte stream of all the attributes of a session

  • Sun-web.xml memory based sessioning issue

    I recently installed Sun WebServer 7.0 Update 8 on Fedora 20. Everything seems to be working fine with my webserver except for the memory based sessioning.
    My First Configuration - no sun-web.xml file defined
    Expected Behavior - I would assume that memory based sessioning would be used.
    Actual Behavior on my local instance - Every 1-2 minutes my session would abruptly end and a new JSESSIONID would be issued. This does not happen on other machines running the same webapp, so it does seem to be a sun webserver configuration problem.
    My Second Configuration - using the following sun-web.xml file:
    <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.1 Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd">
    <sun-web-app>
      <session-config>
         <session-manager persistence-type="memory">
              <manager-properties>
                   <property name="reapIntervalSeconds" value="20000" />
             </manager-properties>
         </session-manager>
        </session-config>
    </sun-web-app>
    Expected Behavior - Memory based sessioning would be used
    Actual Behavior on my local instance - Same as with no sun-web.xml. Every 1-2 minutes my session would abruptly end and a new JSESSIONID would be issued.
    Does anyone see what is wrong with my sun-web.xml file? I'm also not sure if the file permissions/ownerships are correct on all of my sun webserver files. Is there a particular temp file or location that Sun Webserver uses to track active sessions? Or are in-memory sessions completely stored in memory and not on disk? Is there a default sun-web.xml file somewhere that is overriding my settings (and if so, where is it located)?
    Thanks for your help!

    Hi,
    Firstly you should know Fedora is not a support platform. it might work but you could run into a load of issues as your go.
    in any case you don't need a sun-web.xml file at all. For any deployed Web app the default session manager is memory. So remove that 1st. After that check that
    the requests are really sending a JSESSIONID. This kind of issue can occur when you have a Load balancer.
    regards,
    Russell

  • Sun ProjectX XML parser

    Hi,
    I need to download the Sun ProjectX XML parser. Someone know where I can find It?
    The reason is that I'm using a package: com.sun.xml.tree
    Thanks for any information
    Amine

    I don't know where I can find the file xml.jar.
    I've been informed that this file is in the Sun ProjectX XML.
    Does Sun ProjectX correspond to JAXP
    I've foud only xerces.jar et xalan.jar in JAXP but no xml.jar.
    I need this file because I'm using the package com.sun.xml.tree.
    Someone have an idea?
    thanks for any help!
    Amine

  • How can i access the EJB from a Webdynpro

    Dear all,
    How can i access the ejb , from a webdynpro?.
    Is there any way to do that?.
    I want to write the entire code (business functions) within the EJB and i wan to access the entire methods from a WebDynpro Application.This is the situation.
    Please help me to , resolve this problem.(Here im using JDBC Connection .. etc.).
    I want to do the basic connection setting's and data retrieval part within the EJB and use that within the WebDynpro..
    how can i seperate this two(i mean, i want to seperate the JDBC connections and WebDynpro,i dont want to hard code any connection parameters within the webdynpro code)
    So that i want use that saet of particular function's in many webdynpro applications..
    (i dont need any help regarding webservice way.)
    If anyone can , please help me..
    I tried that javabean class , manifest file , that way (importing javabean model).
    but im getting errors.
    I cant properly utilize that..
    So please help me with steps regarding that,,
    for javabean
    and if any , for EJB also..
    with regards
    Kishor.G

    HI,
    Since webdynpros follows Model View Controller Architecture You can access EJBs in webdynpro(views/frontend) infact to connec to database uding JDBC you have to utilise EJB ( opening connection to database closing, and other Business functionality).See this link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/unkown/web dynpro tutorial and sample applications.faq#q-7
    <b>How to access the Car Rental Web Service?</b>
    Regards,
    RK

  • I have Design and Web Prem (Mac) I just got a new PC can I auth this too?

    I have Design and Web Prem (Mac) I just got a new PC can I auth this too?

    No. Standalone licenses use a platform-specific serial number. Only Creative Cloud is avialable on both platforms with the same license.
    Mylenium

  • Error in faces-config.xml, sun-web.xml, web.xml

    Hi
    I am new bea in jsf. I tried the tutorials for JSF and found that faces-config.xml, sun-web.xml and web.xml gives me following errors:
    faces-config.xml
    <faces-config 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-facesconfig_1_2.xsd"
    version="1.2">
    CANNOT FIND THE DECLARATION OF FACES_CONFIG
    sun-web.xml
    <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.0 Servlet 2.4//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-0.dtd">
    NO ROUTE TO CONNECT TO HOST.
    I am not able to get the required dtds from sun's website, and it will not work anyways if I am not connected to internet.
    I thought I need to copy the desired dtds, and xsds in the classpath. I tried that and copied the requird path in xmls, but it still does not work. Please help....

    Hi
    I am new bea in jsf. I tried the tutorials for JSF and found that faces-config.xml, sun-web.xml and web.xml gives me following errors:
    faces-config.xml
    <faces-config 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-facesconfig_1_2.xsd"
    version="1.2">
    CANNOT FIND THE DECLARATION OF FACES_CONFIG
    sun-web.xml
    <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.0 Servlet 2.4//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-0.dtd">
    NO ROUTE TO CONNECT TO HOST.
    I am not able to get the required dtds from sun's website, and it will not work anyways if I am not connected to internet.
    I thought I need to copy the desired dtds, and xsds in the classpath. I tried that and copied the requird path in xmls, but it still does not work. Please help....

  • Can't load service ejb

    Hi everybody:
    This error happens in our server in the night:
    [GC 482880K->402270K(1007616K), 0.0517355 secs]
    [GC 484190K->401323K(1007616K), 0.0495883 secs]
    [GC 483243K->401305K(1007616K), 0.0492152 secs]
    [GC 483225K->401760K(1007616K), 0.0501447 secs]
    [GC 483664K->401810K(1007616K), 0.0495283 secs]
    [GC 483718K->401693K(1007616K), 0.0474358 secs]
    [GC 483597K->401671K(1007616K), 0.0466509 secs]
    Element 342588564 disconnected.    Fri Jan 27 00:59:15 CST 2006
    Shutting down the J2EE Engine [Fri Jan 27 00:59:18 CST 2006]
    Stopping additional services.
    Shutting down service LogViewer
      Stopping: service logviewer ... done.
      Stopping: service javamail ... done.
      Stopping: service telnet ... done.
      Stopping: service appclient ... done.
      Stopping: service runtimeinfo ... done.
      Stopping: service PRTBridge ... done.
      Stopping: service pinger ... done.
      Stopping: service shell ... done.
      Stopping: service eisconnector ... done.
    [Dynamic-linking native method com.sap.mw.jco.rfc.MiddlewareRFC.nativeInitialize ... JNI]
    [Dynamic-linking native method com.sap.mw.jco.rfc.MiddlewareRFC.nativeSetTraceLevel ... JNI]
      Stopping: service rfcengine ... done.
      Stopping: service ejb ... done.
      Stopping: service dbpool ... done.
      Stopping: service ts ... done.
    [GC 483590K->401469K(1007616K), 0.0484396 secs]
      Stopping: service metamatrix ... done.
      Stopping: service jms ... done.
    ........Enterprise Portal is shutting down ........
    [Releasing Portal Component ] com.sap.portal.navigation.detailedtree.DetailedNavigationTree
    [Releasing Portal Component ] com.sap.portal.runtime.config.component.ConfigUI
    [Releasing Portal Component ] com.sap.netweaver.coll.appl.ui.rtc.RTCComponent
    [Releasing Portal Component ] com.sap.portal.appdesigner.contentcatalog.PersonalizedPageSearch
    And now I can't start the server service:
    [Dynamic-linking native method java.io.RandomAccessFile.readBytes ... JNI]
    [Dynamic-linking native method java.io.RandomAccessFile.writeBytes ... JNI]
    Loading: ServiceManager ...
    ID000539: Classload error; Can't load service ejb because referenced service eisconnector not found
    ID000538: Classload error; Can't load service deploy because an error in loading referenced service ejb is occured
    ID000541: Classload error; Can't load core service deploy
    [ServiceManager]: ID000541: Classload error; Can't load core service deploy
    Loading: ServiceManager returned false!
    Kernel not loaded. System halted.
    [Framework -> criticalShutdown] [Fri Jan 27 09:15:27 CST 2006] Kernel startup failed.
    [Dynamic-linking native method java.lang.Shutdown.halt ... JNI]
    Fri Jan 27 09:21:15 CST 2006
    [Dynamic-linking native method java.lang.StrictMath.sin ... JNI]
    [Dynamic-linking native method java.lang.StrictMath.cos ... JNI]
    [Dynamic-linking native method java.lang.Float.intBitsToFloat ... JNI]
    [Dynamic-linking nat
    Any Idea of what is happenning?
    Thanks in andvance
    Flavio Jasso S

    Let me take a shot:
    services have a heirarchy of dependency. When one of the base required services does not start, the rest wouldn't start.
    "Can't load service ejb because referenced service eisconnector not found"
    So you need this configured connector. if not remove its reference from the EJB configuration file. Else try testing it seperately.
    Regards,
    Kumar

  • Can I write java/EJB in forms 6i builder

    Can I write java/EJB in forms 6i builder? As I want to know except PL/SQL, what other programming languages can be used in forms 6i

    There are a couple of different ways - You can use ORA_FFI to call out to other foreign functions. You can use the Java Importer which creates PL/SQL wrappers to call Java. You can also integrate Java on the client side (Java Beans and Pluggable Java Components).
    Info on this can be accessed from the on line help and there are a couple of good papers on OTN about the Java integration.
    Regards
    Grant Ronald
    null

Maybe you are looking for