Sun One - Weblogic interoperability

I have a web app on Sun One. I am trying to use an EJB on a weblogic server. I get the following error.
Unexpected exception in LoginManagerHome:org.omg.CORBA.INITIALIZE: can't instantiate custom socket factory: weblogic.corba.client.cluster.ORBSocketFactory vmcid: 0x0 minor code: 0 completed: No
I have added the weblogic jar and the wlclient.jar to the path. Can anyone point me in the right direction???

SimpleRemoteStatelessSessionProxyFactoryBean can be substituted for SimpleRemoteStatelessSessionProxyFactoryBean2.
It's just overridden to correct a bug in spring m3 that's fixed in m4:
package org.springframework.ejb.access;
import java.util.Iterator;
import java.util.Map;
import java.util.Properties;
import javax.naming.NamingException;
public class SimpleRemoteStatelessSessionProxyFactoryBean2 extends
          SimpleRemoteStatelessSessionProxyFactoryBean {
     public void afterPropertiesSet() throws NamingException {
          Properties properties = new Properties();
          for (Iterator iter = getJndiEnvironment().entrySet().iterator(); iter.hasNext();) {
          Map.Entry property = (Map.Entry) iter.next();
          properties.setProperty((String) property.getKey(),(String) property.getValue());
          setJndiEnvironment(properties);
          super.afterPropertiesSet();
}

Similar Messages

  • Build a EJB/ Application with Sun One Studio and deploy to Weblogic

    Dear all,
    My boss require me to use Sun One Studio 4 update 1 to do the development, but
    I find it's a nightmare to deploy the EJB/ application to the WebLogic 6.1.
    I've already installed the weblogic plug-in in the Sun One Studio.
    During deploying I could not find any setting that ask me for the weblogic-ejb-jar.xml.
    So I think the deployment will fail.
    Is there any others tutorial or e-book that can help me to familiar with the deployment
    process?
    Many Thanks for all of you.
    Ivan

    where do you get the weblogic plugin from ?
    i am intrested in doing the same thing
    thanx
    prem
    "Ivan" <[email protected]> wrote in message
    news:[email protected]..
    >
    Dear all,
    My boss require me to use Sun One Studio 4 update 1 to do the development,but
    I find it's a nightmare to deploy the EJB/ application to the WebLogic6.1.
    >
    I've already installed the weblogic plug-in in the Sun One Studio.
    During deploying I could not find any setting that ask me for theweblogic-ejb-jar.xml.
    So I think the deployment will fail.
    Is there any others tutorial or e-book that can help me to familiar withthe deployment
    process?
    Many Thanks for all of you.
    Ivan

  • Migrating from weblogic 8.1 to sun one server

    I need some documentation that could guide, in steps involved, in migrating an J2ee application from weblogic 8.1 to sun one application server.
    Please help.

    Do you have any migration guide from weblogic 8.1 to sunserver 8.1?
    We want to know how to handle null in jsp? Because in weblogic 8.1, we can set printNulls to false in weblogic.xml file. Is there any way we can do this in sun server?

  • REDIRECT OF SUN ONE WEB SERVER--WEBLOGIC 10.0

    HI
    I have a problem with sun one webserver configuration of redirect the request.
    PLZ assume this scenario.
    I configure in obj.conf from sun-one to weblogic like this
    <Object name="weblogic" ppath="*/hw/*">
    Service fn="wl_proxy" WebLogicHost="------------------" WebLogicPort="------"
    </Object>
    IT was working fine.The request is gooing to specific host and port.Now i have to configure a scenario.IF weblogic server or application on weblogic is not available i have to redirect the request to Error.jsp which i presented in sun-one webserver docs. SO may i know what syntax or what strings and rules i have to follow.PLZ let me know if any one done this part.I had tried different things with NameTrans functions and assign-name function.PLZ give me the exact elements to work.
    Thanks
    Prashi

    which version of web server r u using here ? 6.1 or 7.0 ? if it is 6.1 then there is no easy <If> syntax. if u r using 7.0, then u need to be aware that the processing of 'ppath' is slightly different in 7.0
    in any case, this would be the syntax
    <Object name="weblogic" ppath="/hw/">
    Service fn="wl_proxy" WebLogicHost="------------------" WebLogicPort="------"
    # gateway timeout - back end web logic not responding handle differently
    <If code='504'>
    # send it to a different post..
    Service fn="wl_proxy" WebLogicHost="------------------" WebLogicPort="------"
    </If>
    </Object>
    - sriram

  • How do you get Sun One Web Server to read white spacing in a url

    Hi guys,
    I am currently using Sun One Web Server and this is the problem that i am currently facing.
    The url which is i am trying to read from the Sun One Web Server is http://test:8000/test/Testing%20A%20B
    The error which i am getting is java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in path
    The reason why this is happening is because the original url is http://test:8000/test/Testing A B It has spacing in between the url. I cannot get rid of the spacing thru the code where its bound to a Content Management System. So the only way is to get the Sun One Web Server to be able to read this kind of url. There are about 300 to 400 of this types of url as they are dynamically generated.
    I was looking at the obj.conf and magnum.conf file to see whether i can manipulate this url to work for this situation. But with no luck.
    Can anyone please let me know if they have came across this problem.
    Thanks.

    Hi,
    This is the stack Trace:
    Error 500--Internal Server Error
    java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in path at index 29: /models/Sportwagon/Sportwagon SS V-Series
         at au.com.holden.cs.assembler.FriendlyURLAssembler.getInputURI(FriendlyURLAssembler.java:329)
         at au.com.holden.web.mvc.ViewUtil.getInputModelAndView(ViewUtil.java:29)
         at au.com.holden.web.mvc.navigation.ModelNavigationController.handleNoSuchRequestHandlingMethod(ModelNavigationController.java:17)
         at org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(MultiActionController.java:375)
         at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
         at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:45)
         at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:820)
         at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:755)
         at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)
         at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:350)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.net.URISyntaxException: Illegal character in path at index 29: /models/Sportwagon/Sportwagon SS V-Series
         at java.net.URI$Parser.fail(URI.java:2809)
         at java.net.URI$Parser.checkChars(URI.java:2982)
         at java.net.URI$Parser.parseHierarchical(URI.java:3066)
         at java.net.URI$Parser.parse(URI.java:3024)
         at java.net.URI.(URI.java:578)
         at au.com.holden.cs.assembler.FriendlyURLAssembler.getInputURI(FriendlyURLAssembler.java:326)
         ... 26 more
    This is the path which was access by me using Sun One Web Server: http://poll:8006/models/Sportwagon/Sportwagon%20SS%20V-Series
    As you can see that Sun One Web Server dont like spacing between url.
    Does anyone know how to fix this problem thru configuration in Sun One Web Server?

  • I am beginner to sun one studio and sun one application server

    How can i access a cmp from a jsp page.
    in sun one application server.
    thanx in advance

    where do you get the weblogic plugin from ?
    i am intrested in doing the same thing
    thanx
    prem
    "Ivan" <[email protected]> wrote in message
    news:[email protected]..
    >
    Dear all,
    My boss require me to use Sun One Studio 4 update 1 to do the development,but
    I find it's a nightmare to deploy the EJB/ application to the WebLogic6.1.
    >
    I've already installed the weblogic plug-in in the Sun One Studio.
    During deploying I could not find any setting that ask me for theweblogic-ejb-jar.xml.
    So I think the deployment will fail.
    Is there any others tutorial or e-book that can help me to familiar withthe deployment
    process?
    Many Thanks for all of you.
    Ivan

  • Enabling Network Security with Sun One webserver

    Hi experts
    I have a sun server with solaris and sun one webserver loaded
    now when i am connecting the web server from any of the client browser it is not asking for any paassword
    how can i enable the network password for webserver
    Damu

    I can't believe it, the problem was because I have formated the object definition element in obj.conf with a tab before Service. It seems Service needs to start from column 1, was sun webserver made is cobol?
    <Object name="weblogic" ppath="*/weblogic/*">
    Service fn=wl_proxy WebLogicHost=laptop-vikas.nj.sena WebLogicPort=7001 PathTrim="/weblogic"
    </Object>

  • Sun One (Netscape) Plugin: Losing HTTP Session Problem

    Hi All,
    We are having some trouble with HTTP sessions. Sometimes our browser will have a session cookie set but will be issued a new session cookie anyways. This seems to occur only one in every 10 attempts, and seems to occur more frequently on certain machines. When this occurs we lose all of the session data that we were previously using.
    Our environment is as follows:
    We have three load balanced Sun One Web Servers fronting 6 mananged 8.1 sp5 web logic instances. We've verified that multicast is working and that we've configured the plugin/application to have a unique cookie name already. We've also set the persistence type to 'replicated'
    Only clue that we have so far comes from our plug-in logs. It seems to be complaining about connection pooling:
    Mon Jan 22 16:04:39 2007 getPooledConn: No more connections in the pool for Host[XXX.XXX.XXX.XXX] Port[8003] SecurePort[8004]
    Mon Jan 22 16:04:39 2007 Connect returns -1, and error no set to 55, msg 'A connect operation on a socket is not complete.'
    Any ideas? Thanks in advance!
    Regards,
    Ray Siu

    Check if your web app has the same cookie name (weblogic.xml) as defined in the obj.conf.
    Jin

  • Jdeveloper 9i with Sun ONE (iPlanet) Web Server 6.0

    Hi,
    Has any one working Jdeveloper 9i with Sun ONE (iPlanet) Web Server 6.0 ?
    When i add new application server it gives only Oracle App Server and Web Logic.
    Thanks
    Ramesh

    Currently JDeveloper provides Application server connections to Oracle9iAS and WebLogic, which can be used to deploy J2EE Modules.
    JDeveloper allows to create assemble generic J2EE archives from projects which can used to deploy to other application servers.
    Check out How-To documents on this topic
    http://otn.oracle.com/products/jdev/howtos/content.html
    raghu
    JDev Team

  • Bind a huge object to jndi tree in sun one 7

    Hi we are loading all the master tables in to objects at the app server startup (SUN ONE 7) and then binding the whole object to the jndi tree. All the tables data in text files comes to about 5 MB and the serilized object with data to about 8 MB. But when the app server tries to bind the object the app server process consumes over 500MB of ram and gives OutOfmemoryError as the total ram is 512MB. why is it consuming so much memory. It does bind an object of about 5 MB but when trying to lookup subsequent to the first lookup it fails. Is this a bug or what??? the same thing works perfectly with Weblogic and Websphere and also Weblogic is very efficient in memory consumption and response time is amazing. For a 5 MB object the lookup takes about 5Secs in Weblogic and about 15Mins in Sun One. We might have to drop the Sun One App Srv and go for Weblogic though we dont want. Kindly provide some guidance. Thanks in advance.

    Hi,
    Refer http://java.sun.com/products/jndi/tutorial/objects/storing/remote.html
    -amol

  • Sun One EJB problem - PortableRemoteObject.narrow ClassCastException...

    Hi all,
    I'm using Sun One app server 7 for the first time and am having a bit of difficulty. I have deployed a very simple EAR containing one stateless session bean just to test it. The ear appears to have deployed correctly but PortableRemoteObject.narrow is throwing a ClassCastException when trying to do a remote lookup on the bean.
    I'm using the following env settings...
    initialContextFactory = com.sun.enterprise.naming.SerialInitContextFactory
    providerUrl = iiop://127.0.0.1:3700The lookup appears to work okay - this line of code executes successfully
    Object objref = initialContext.lookup(jndiHomeName);...objref appears to initalise succesfully (if I toString() it I get an iiop stream of some sort). However, it is the next line that is failing...
    Object obj = PortableRemoteObject.narrow(objref, homeClass);...this is the exception I get...
    java.lang.ClassCastException
         at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(Unknown Source)
         at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
         at com.scorlog.ServiceLocator.getRemoteHome(ServiceLocator.java:145)Furthermore, when PortableRemoteObject.narrow() executes, I get the following console exception on the server...
    com.sun.corba.ee.internal.core.DuplicateServiceContext
            at com.sun.corba.ee.internal.core.ServiceContexts.put(ServiceContexts.java:208)
            at com.sun.corba.ee.internal.iiop.ServerRequestImpl.getServiceContextsForReply(ServerRequestImpl.java:258)
            at com.sun.corba.ee.internal.iiop.ServerRequestImpl.createResponse(ServerRequestImpl.java:89)
            at com.sun.corba.ee.internal.POA.SubcontractResponseHandler.createReply(SubcontractResponseHandler.java:50)
            at org.omg.CosNaming.NamingContextExtPOA._invoke(NamingContextExtPOA.java:377)
            at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:569)
            at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:211)
            at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:113)
            at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:275)
            at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:83)
            at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(ServicableWrapper.java:25)
            at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(FastThreadPool.java:288)
            at java.lang.Thread.run(Thread.java:534)
    FINE: No SAS context element found in service context listI have seen the forum that other users have had similar problems and the suggestion was that the client can't see the ejb stubs. I don't think this is the problem in my case as I deployed the same ear on weblogic 7 (obviously substituting sun-ejb-jar.xml for a weblogic-ejb-jar.xml) and successfully executed the same client code for the remote lookup.
    My feeling is that the problem revolves around the JNDI binding. Could it be the case that even though the object is binding properly, the app server doesn't realise it is an ejb and not a jdbc/jms/mail object? The documentation gives details on looking up a JDBC, javamail, URL, JMS resource (http://docs.sun.com/source/817-2177/djjndi.html) but not ejb so I could be doing something simple wrong here...
    My sun-ejb-jar.xml is as follows....
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Generated by XDoclet -->
    <sun-ejb-jar>
        <enterprise-beans>
            <ejb>
                <ejb-name>SBTest</ejb-name>
                <jndi-name>ejb/SBTestBean</jndi-name>
            </ejb>
        </enterprise-beans>
    </sun-ejb-jar>However, I noticed on another thread, a user had some additional elements under their <ejb> tag like this...
    <?xml version="1.0" encoding="UTF-8"?>
    <sun-ejb-jar>
      <enterprise-beans>
        <name>Ejb1</name>
        <ejb>
          <ejb-name>HelloBean</ejb-name>
          <jndi-name>HelloBean</jndi-name>
          <ejb-ref>
            <ejb-ref-name>ejb/helloBean</ejb-ref-name>
            <jndi-name>HelloBean</jndi-name>
          </ejb-ref>
        </ejb>
      </enterprise-beans>
    </sun-ejb-jar>However, when I tried to add and <ejb-ref> element to my xml doc the ear failed to deploy. This is the error I get in the admin console...
    Error
    Deployment Error -- Error while running ejbc -- Fatal Error from EJB Compiler -- --
    Failed to load deployment descriptor for: testApp cause: Error converting J2EE-
    specific ejb xml to object representation: testApp.jar app_testApp Generated by
    XDoclet This bean has no ejb reference by the name of [ejb/SBtest]
    ejb/SBTestSBTestThis problem is eating up my time and being made all the more frustrating by the fact that a) it deploys on weblogic and b) the documentation is terrible. Even the sample application that comes with sun one only provides the .class files for the code that does the ejb look up and not the .java so you can't see how they hell they do it!
    Unfortunately I am tied to using Sun One so I really need to solve this problem fast. If anyone can provide any help I'd greatly appreciate it.
    Cheers,
    John :)

    I am having the same problem after upgrading to Sun One from iplanet. Any clue?

  • Sun ONE Web Server & Remote User field

    Hi,
    I look for a tip to my Sun ONE Web Server 6.1 SP2 configuration.
    I have:
    - OS: Sun Solaris 8
    - Apache 1.3 (listen port :80)
    - Sun ONE Web Server 6.1 SP2 (listen port :81)
    - Weblogic 8.1 SP4 (listen port :8001)
    The 3 applications are in the same server.
    My first configuration works:
    - Apache works with basic authentification by password file (generate with htpasswd) and communicates with Weblogic
    - Weblogic listens http requests and work with the remote user id (use method HttpServletRequest.getRemoteUser())
    My second configuration doesn't work:
    - Apache works with basic authentification by password file (generate with htpasswd) + reverse proxy mode (use VirtuaHost) and communicates with Sun ONE Web Server
    - Sun ONE Web Server works with no authentification mode and communicates with Weblogic
    - Weblogic listens http requests and works with the remote user id (use method HttpServletRequest.getRemoteUser())
    The HttpServletRequest.getRemoteUser() returns null in my second configuration.
    How I can configure my Sun ONE Web Server to foward the remote user id ?
    Thank you.
    Christophe.

    Can you send your obj.conf?
    I do not have a 6.1 Web Server installed, by guess work try
    NameTrans fn="redirect" from="/index.html" url="/"
    Also remove find-index or any such SAFs if you have in your obj.conf
    PathCheck fn="find-index" index-names="index.html,home.html,index.jsp"Why do you need this?

  • Sun One Web Server 6.1 Eclipse Plugin?

    I have Eclipse 3.1 with WST tools and Visual Editor plug-in installed. I am a
    noob to this IDE and web solution. I want ot use Sun One Web Server for my web
    application testing and implementation. I want my Dynamic Web Application
    projects to build and use the Sun One Web Server I have installed and running on
    my machine. The only server options I see are some Generic WebLogic servers and
    JBOSS or Tomcat/Jakarta servers. How do I get the Sun One Web Server to show up
    as an option when building a web application in Eclipse using WST?

    I am look for the same like you did quite ago but I need free Eclipse Plugin for Sun One Web Server 7/8 and let me have ref if you could.

  • Using Sun ONE Initial Context from servelt

    Hi,
    i'm triyng to bind an rmi resources from a servlet.
    This simplified code worked fine with weblogic:
    props.put("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory");
    props.put("java.naming.provider.url", "t3://localhost:port");
    try{       
    ctx = new InitialContext(props);
    LoginImpl login = new LoginImpl();
    ctx.rebind("login", login);}
    catch (Exception e){
    e.printStackTrace();
    Now i'm trying to translate this code on Sun ONE 7,
    but i' m m not able to create jndi resouce.
    I've tried with
    props.put("java.naming.factory.initial", "com.sun.jndi.cosnaming.CNCtxFactory");
    props.put("java.naming.provider.url", "iiop://localhost:3700");
    but i've this error back:
    [2003-10-31 18:34:00,875] ERROR -- runJob -- service-j2ee -- com.ilsole24ore.wp.admin.init.LoginAdminInitializer -- java.lang.IllegalArgumentException: Only instances of org.omg.CORBA.Object can be bound
    java.lang.IllegalArgumentException: Only instances of org.omg.CORBA.Object can be bound
    I think i'm using wrong properties, what are the correct settings for using Rmi from JNDI.
    Thanks

    Hi,
    i'm triyng to bind an rmi resources from a servlet.
    This simplified code worked fine with weblogic:
    props.put("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory");
    props.put("java.naming.provider.url", "t3://localhost:port");
    try{       
    ctx = new InitialContext(props);
    LoginImpl login = new LoginImpl();
    ctx.rebind("login", login);}
    catch (Exception e){
    e.printStackTrace();
    Now i'm trying to translate this code on Sun ONE 7,
    but i' m m not able to create jndi resouce.
    I've tried with
    props.put("java.naming.factory.initial", "com.sun.jndi.cosnaming.CNCtxFactory");
    props.put("java.naming.provider.url", "iiop://localhost:3700");
    but i've this error back:
    [2003-10-31 18:34:00,875] ERROR -- runJob -- service-j2ee -- com.ilsole24ore.wp.admin.init.LoginAdminInitializer -- java.lang.IllegalArgumentException: Only instances of org.omg.CORBA.Object can be bound
    java.lang.IllegalArgumentException: Only instances of org.omg.CORBA.Object can be bound
    I think i'm using wrong properties, what are the correct settings for using Rmi from JNDI.
    Thanks

  • Websphere vs sun one microsystem..

    just curious what r the difference between these 2 s/w development????

    ok.. i experience that when i need to use nested
    query.. they show error.. means that i cannot run
    the program.. this happen when i used websphere..
    if i used sun one, it can run.. n everything is ok..I never heard anything of this sort from my WebSphere developer friends. And personally, I don't think they'd be using it with such a serious limitation. But I am certain I didn't hear anything of this sort.
    If SunOne works for you, I think you go using it! I have been meddling with WebLogic for a lot of time now!

Maybe you are looking for

  • I can't read my music I bought with my ID

    I have this problem with some of music I bought on iTunes Store. All my music has been bought with the same ID, sometimes it's some of songs in the same disc where I can read the others ones. It's asking me to authorize my computer to read this song,

  • Getting file not found exception in managed server

    Hi, Working on jdev 11.1.1.3.0, ADF BC with Rich faces. I am downloading file from network file system, i am successfully download file in integrated weblogic server, the same application when i am trying to run with my managed server(DEV Server), i

  • IPad 1 syncing error message

    For some reason, my iPad 1 stopped syncing Instapaper, so I uninstalled the app and went to reinstall and found that it still wouldn't work. So I did a clean install from a back up and now after every sync I get an error message saying (user name)> (

  • Retrive SQL from Webi report and process it for large volume of data

    We have a Scenario where, we need to extract large volumes of data into flat files and distribute them from u2018Teradatau2019 warehouse which we usually call them as u2018Extractsu2019. But the requirement is such that, Business users wants to build

  • .bnk files rendered as garbled text in Safari

    I'm working with a customer who links to .BNK files from their web application. .BNK files are a proprietary educational format, and they open natively in education software installed on the computer. But for some reason, Safari attempts to render th