Problem instantiating an entityBean

Hi,
i'm using the CabinBean-example from O'reilly's EJB2.0 3rd edition.
i wrote the bean, the HomeRemote- and Remote-Interface, deployed it on jboss (it's creating the tables and says the jar-file is ok)
but when i run the client, it says:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.ServerException: EJBException:; nested exception is:
javax.ejb.EJBException: Could not instantiate bean; nested exception is: java.lang.InstantiationException
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
this is the client code:
package com.titan.cabin;
import com.titan.cabin.CabinHomeRemote;
import com.titan.cabin.CabinRemote;
import javax.naming.InitialContext;
import javax.naming.Context;
import javax.naming.NamingException;
import java.rmi.RemoteException;
import java.util.Properties;
import javax.rmi.PortableRemoteObject;
public class CabinClient1 {
public static void main(String[] args) {
try {
Context jndiContext = getInitialContext();
Object ref = jndiContext.lookup("CabinEJB");
CabinHomeRemote home = (CabinHomeRemote)
PortableRemoteObject.narrow(ref, CabinHomeRemote.class);
CabinRemote cabin_1 = home.create(new Integer(1));
cabin_1.setName("Master Suite");
cabin_1.setDeckLevel(1);
cabin_1.setShipId(1);
cabin_1.setBedCount(3);
Integer pk = new Integer(1);
CabinRemote cabin_2 = home.findByPrimaryKey(pk);
System.out.println(cabin_2.getName());
System.out.println(cabin_2.getDeckLevel());
System.out.println(cabin_2.getShipId());
System.out.println(cabin_2.getBedCount());
} catch (java.rmi.RemoteException re) { re.printStackTrace(); }
catch (javax.naming.NamingException ne) { ne.printStackTrace(); }
catch (javax.ejb.CreateException ce) { ce.printStackTrace(); }
catch (javax.ejb.FinderException fe) { fe.printStackTrace(); }
public static Context getInitialContext()
throws javax.naming.NamingException {
Properties props = System.getProperties();
props.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
props.put(Context.PROVIDER_URL, "jnp://localhost:1099");
return new javax.naming.InitialContext(props);
i hope someone is able to help me ...
thanks
fb

i think u r going in worng way,u intiallize home by "CabinHomeRemote"
bt hor jboss would know what is "CabinHomeRemote"
CabinHomeRemote home = (CabinHomeRemote)
ur client code should be like this:
Context ctx = null;
Properties prop = new Properties();
prop.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
prop.put(Context.PROVIDER_URL, "localhost:1099");
     prop.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces" );
     ctx = new InitialContext(prop);
//lookup ur bean
Object objref = ctx.lookup("CabinEJB");
CabinHomeRemote home =
(CabinHomeRemote)javax.rmi.
PortableRemoteObject.narrow(objref,
CabinHomeRemote.class);
CabinRemote cabin_1 = home.create(new Integer(1));
ok and before it plz read some document abt EJB. i think u r little bit confuse
regards
sachin

Similar Messages

  • Problem instantiating COM+ object

    Hi,
    I'm trying to instantiate a com+ object using
    <cfobject> and I'm getting:
    An exception occurred when instantiating a Com object
    The cause of this exception was that: AutomationException:
    0x80070002
    The com object is built in c# .net and implements the
    iDispatch interface. We're running mx 7, and using the following
    syntax to instantiate the object:
    <cfobject type = "com" action = "create" class =
    "COMService" name = "myCOMService" context = "local" />
    Can anyone suggest any pointers?
    Thanks,

    Turns out it was a problem with the COM+ component. Googling
    the specific error code 0x80070002 helped to uncover the
    problem.

  • Problems instantiating oracle xdk class CXmlCtx

    I'm having problems using the CXmlCtx C++ class in XDK 10g when I define my own ErrorHandler class. The default version appears to be working but does not allow any errors to be dealt with properly.
    I believe there is some kind of memory corruption occurring as I'm getting inconsistent results when I instantiate CXmlCtx. There are times when the CXmlCtx class is instantiated and then I can successfully parse an xml doc BUT most of the time I'm getting a mix between Error 19 returned (which is XMLERR_PROP_NOT_FOUND) and a core dump.
    Does anyone know what error 19 actually means and more importantly how can I avoid it? (and hopefully the core dumps).

    Hi,
    I am facing a similar problem. Please let me know if you were able to resolve this/

  • Problem instantiating bean when system locale is Japanese

    Hi,
    My application is built using VC++ and I use a java bean. This I instantiate uing CoCreateInstance and then call its methods.
    This setup works fine on normal PC using English system locale. I have also tried on PC with system locale set to Hebrew and Dutch. It works there as well.
    Today I set the system locale of my PC to Japanese (Katanaka). When i run my application, it terminates abruptly. On investigation, it was found that when CoCrateInstance tries to instantialte the object of bean, the problem occurs. No exceptions are thrown and no error messages appear. The application simple disappears from the screen.
    Can any body pls help me out.
    Thanx in advance,
    Manish Chaudhary

    I'm not using CoCreateInstance in my VC++ project, tell me where you saw an example using that or why you choose to use that so I can learn. Is your bean not visual?
    All of the packaged java bean Objects inherit from CWnd when imported into VC++ (the header file and cpp file are auto generated)
    With that in mind, I just declare an instance in my View or Document's header file and int he cpp file I call the Create() method of CWnd and pass it some window stuff as well as a CRect.
    As for japanese, I saw on the reallyusefulcomputing article mentioned on other messages in this forum that you should use internal version only. I haven't dealt with this, but figured it was worth a mention.

  • Problems instantiating javax.xml.ws.Service object

    i'm at a total loss here: on my development machine everything works fine. when i switch to our test production server, it blows up.
    My dev machine is OS X 10.5 and test production machine is OS X 10.6. Both are using Java 1.5 and Tomcat 6.0.x...
    The web services I'm calling all reside on other machines on our rack and I'm using internal IP addresses to call them.
    My Service class is below. The blow-up occurs in the constructor right before the info log. The exception message follows the class. help!
    @WebServiceClient(name = "gnwSoap", targetNamespace = "gnwSoapNamespace", wsdlLocation = "http://192.168.1.12/4DWSDL/DOC")
    public class GnwSoap extends Service {
         private static final Log log = LogFactory.getLog(GnwSoap.class);
         public GnwSoap(URL wsdlLocation, QName serviceName) {
              super(wsdlLocation, serviceName);
              log.info("Endpoint sucessfully created: " + wsdlLocation.getHost());
          * @return returns GnwSoapDocument
         @WebEndpoint(name = "gnwSoapPort")
         public GnwSoapDocument getGnwSoapPort() {
              return super.getPort(new QName("gnwSoapNamespace", "gnwSoapPort"),
                        GnwSoapDocument.class);
    }The Exception:
    javax.servlet.ServletException: java.lang.Exception: javax.faces.FacesException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[4,12]
    Message: Scanner State 24 not Recognized
    com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:179)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
    org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
    org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(SessionFixationProtectionFilter.java:67)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:109)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:278)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.concurrent.ConcurrentSessionFilter.doFilterHttp(ConcurrentSessionFilter.java:99)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)
    org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)
    org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
    ...

    I have Oracle JDeveloper Studio Edition Version 10.1.3.2.0.4066.
    Please note I have already added following libaries, jars to Tool->Project Properties->Libraries in JDeveloper.
    EJB3.0, TopLink Essentials JPA, J2EE, Jws-api.jar, Ejb30.jar, JSP Runtime, JAX-RPC Client, TopLink, JDeveloper Runtime, Embedded OC4J client, Jaxrpc-api.jar, Wsserver.jar
    Thank you.

  • Problem instantiating static nested class

    How come this doesn't work?
    public class A {
        public static class B {
    public class Test {
        A.B test = new A.B(); 
    }The errors i got are:
    -Not an enclosing class: A
    -No enclosing instance of type A is in scope.
    TIA

    The code you posted compiled just fine for me.Ya you're right... stupid JBuilder failed me again; had to do a clean rebuild for JBuilder to recognize its not an error.

  • Problem instantiating a class defined in an external file

    I'm new to java and I'm having difficulties creating an instance of a class that is defined in another file. The source file and the file containing the class I wish to instantiate exist within the same folder.
    I have my classpath set so that it is pointing at my java install folder
    and the folder in which the source file and the file containing the class I wish to instantiate
    Here is the sourcefile
    import Deck;
    Deck myDeck = new Deck();
    public class soli {
    public static void main(String[] args) {
    Here is the compile error
    soli.java:11: 'class' or 'interface' expected
    Deck mydeck = new Deck();
    I'm sure I'm making an extremely silly mistake somewhere, thanks in advance for any replies

    Here is the sourcefile
    import Deck;
    Deck myDeck = new Deck();
    public class soli {
    public static void main(String[] args) {
    well, there is something missin frm this CLASS!
    try this:
    public class Soli {
    Deck deck = new Deck();
    // main and stuff
    }you see, that variable deck is IN the class, not outside of it...

  • Problem Instantiating a JdbcOdbcDriver

    I wrote an applet to access a Microsoft Access database. The applet works fine under the Appletviewer; however, I get the following error if the run the applet under Internet Explorer 6:
    java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc)
    Does anyone know how to solve this error?

    You should sign your applet to allow it working with local file system.

  • Problem instantiating maps

    I want to create a deck of cards in a Map. The Key is an integer, Ace = 1, Two = 2...... Ten = 10, Jack = 11 and so on. The Value is a string of its suit, Hearts, Diamonds, Clubs, or Spades.
    package card;
    import java.util.Map;
    public class Card {
         Map<Integer, String> cardMap = new Map <Integer, String>();This is what I have so far, and its giving me an error on the second "Map" in the constructing line, saying that it cant instantiate it.
    How can I fix this, or is there a more efficient way I can go about doing this?

    secretempire1 wrote:
    public class Deck {
         private Map<Integer, String> cardMap;
         public void CreateCards()
              for (int i = 1; i <= 13; i++)
                   cardMap.put(i, "Heart");
    Even when / if you get your map working, it still looks like the entirely wrong data structure here. Does it make any sense to get "Heart" from your map when you put in 2? Your not really needing to map anything here. Your deck should be a collection, say an ArrayList of Card objects, each Card holding a value and a suit. The value can be an int, the suit should be a constant value of some sort, again enums are often used here, and in fact it is a classic example of what enums are best for.
    Good luck.

  • Factory Instantiation Problem when publishing WSDL in Service Registry

    I have installed SOA Suite 10.1.3.1 and OSR 10.1.3. and am trying to publish a WSDL for a new business created as admin. This causes an UDDI error, though:
    "Invalid WSDL location! WSDLException: faultCode=CONFIGURATION_ERROR: Problem instantiating factory implementation.: oracle.j2ee.ws.wsdl.factory.WSDLFactoryImpl."
    I checked the jars in {oracle.home}/j2ee and couldn't find WSDLFactoryImpl in any of these. It is contained in orawsdl.jar under jdeveloper and bpel, though.
    Anyone seeing the same problem or are you guys able to use the OSR and publish services ? Hints on how to patch the OSR classpath ? (I am running it as standalone within OC4J).
    cheers,
    Diego

    yes, I do have one tip:
    ..don't install in the "home" instance. Well, to be more precise, don't install in the same instance as your BPEL PM and ESB - which by default is the "home" instance.
    You have to create a new instance (e.g. "registry") for your OSR, see "Integrating Oracle BPEL Process Manager with the Oracle Application Server Service Registry", page 2-32, step 6 in the "Oracle BPEL Process Manager Administrator's Guide".
    Maybe also have a read in
    Re: Anyone successfully installed SOA [Advanced] & Service Registry 10.1.3.1 ?
    good luck :-)
    Message was edited by:
    Diego Tognola

  • Weblogic 10.0 Problems with stripes/struts

    When trying to deploy the sample application for the stripes framework on weblogic 10.0 I get the following error when deploying.
    <Dec 3, 2009 12:16:51 PM CET> <Error> <HTTP> <BEA-101165>
    <Could not load user defined filter in web.xml:
    net.sourceforge.stripes.controller.StripesFilter.net.sourceforge.stripes.exception.StripesRuntimeException:
    Problem instantiating default configuration objects.I actually had to switch to using the Sun JDK to get this error. JRockit does not report it, and just fails when I try to use the application. The problem appear to be weblogic 10.0 specific. No problems with jetty or tomcat, and I've heard reports that it is resolved in weblogic 10.3. Have ayone come accross similar problems when using stripes/struts on weblogic 10.0, and found a solution to this? Is there a patch available for 10.0 than fix this?
    Regards
    Morten
    PS: I have ommited the complete stack trace, since it is monstrously huge.

    Guess I was wrong in thinking that this was an isolated weblogic 10.0 problem. I just downloaded weblogic 10.3 and tried to deploy the same application there, and the same error happened.
    <03.des.2009 kl 15.12 CET> <Error> <HTTP> <BEA-101165>
    <Could not load user defined filter in web.xml:
    net.sourceforge.stripes.controller.StripesFilter.net.sourceforge.stripes.exception.StripesRuntimeException:
    Problem instantiating default configuration objects.
            at net.sourceforge.stripes.config.DefaultConfiguration.init(DefaultConfiguration.java:220)
            at net.sourceforge.stripes.config.RuntimeConfiguration.init(RuntimeConfiguration.java:272)
            at net.sourceforge.stripes.controller.StripesFilter.init(StripesFilter.java:125)
            at weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:329)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            Truncated. see log file for complete stacktrace
    java.lang.NullPointerException
            at java.io.FilterInputStream.read(FilterInputStream.java:116)
            at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
            at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
            at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
            at java.io.InputStreamReader.read(InputStreamReader.java:167)
            Truncated. see log file for complete stacktraceSo is there anyone out there with experience with struts/stripes, that can tell why this does not work? If you need to try this yourself, you can download the stripes sample application here:
    http://sourceforge.net/projects/stripes/files/stripes/Stripes%201.5.2/stripes-1.5.2.zip/download
    There is an example WAR called "stripes-examples.war" in the zip that is ready to be deployed.
    Regards
    Morten
    PS: you still need to start weblogic with Sun JDK rather than JRockit to get the error. With JRockit the application simply fails when used.

  • WLS 7.0 Active Directory authenticator - problems starting managed server (Solaris 8)

    Has anyone managed to setup a WLS 7.0 Active Directory authenticator and booted
    a managed server using the node manager? I can boot the server without the AD
    authenticator and I can also boot the server using a script and successfully authenticate
    through AD. My AD control flag is set to OPTIONAL and I have also setup a default
    authenticator to boot weblogic - the control flag here is set to SUFFICIENT. This
    configuration works fine with weblogic running on W2K, but not on Solaris (it
    looks like the control flag is being ignored). Errors as follows
    ####<Oct 1, 2002 1:59:08 PM BST> <Info> <Logging> <mymachine> <server01> <main>
    <kernel identity> <> <000000> <FileLo
    gger Opened at /opt/app/live/appserver/domains/test/NodeManager/server01/server01.log>
    ####<Oct 1, 2002 1:59:09 PM BST> <Info> <socket> <mymachine> <server01> <main>
    <kernel identity> <> <000415> <System
    has file descriptor limits of - soft: 1,024, hard: 1,024>
    ####<Oct 1, 2002 1:59:09 PM BST> <Info> <socket> <mymachine> <server01> <main>
    <kernel identity> <> <000416> <Using e
    ffective file descriptor limit of: 1,024 open sockets/files.>
    ####<Oct 1, 2002 1:59:09 PM BST> <Info> <socket> <mymachine> <server01> <main>
    <kernel identity> <> <000418> <Allocat
    ing: 3 POSIX reader threads>
    ####<Oct 1, 2002 1:59:19 PM BST> <Critical> <WebLogicServer> <mymachine> <server01>
    <main> <kernel identity> <> <0003
    64> <Server failed during initialization. Exception:weblogic.security.service.SecurityServiceRuntimeException:
    Problem instantiating
    Authentication Providerjavax.management.RuntimeOperationsException: RuntimeException
    thrown by the getAttribute method of the Dynam
    icMBean for the attribute Credential>
    weblogic.security.service.SecurityServiceRuntimeException: Problem instantiating
    Authentication Providerjavax.management.RuntimeOper
    ationsException: RuntimeException thrown by the getAttribute method of the DynamicMBean
    for the attribute Credential
    at weblogic.security.service.PrincipalAuthenticator.initialize(PrincipalAuthenticator.java:186)
    at weblogic.security.service.PrincipalAuthenticator.<init>(PrincipalAuthenticator.java:236)
    at weblogic.security.service.SecurityServiceManager.doATN(SecurityServiceManager.java:1506)
    at weblogic.security.service.SecurityServiceManager.initializeRealm(SecurityServiceManager.java:1308)
    at weblogic.security.service.SecurityServiceManager.loadRealm(SecurityServiceManager.java:1247)
    at weblogic.security.service.SecurityServiceManager.initializeRealms(SecurityServiceManager.java:1364)
    at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:1107)
    at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:703)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:588)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:276)
    at weblogic.Server.main(Server.java:31)
    ####<Oct 1, 2002 1:59:19 PM BST> <Emergency> <WebLogicServer> <mymachine> <server01>
    <main> <kernel identity> <> <000
    342> <Unable to initialize the server: Fatal initialization exception
    Throwable: weblogic.security.service.SecurityServiceRuntimeException: Problem
    instantiating Authentication Providerjavax.management.
    RuntimeOperationsException: RuntimeException thrown by the getAttribute method
    of the DynamicMBean for the attribute Credential
    weblogic.security.service.SecurityServiceRuntimeException: Problem instantiating
    Authentication Providerjavax.management.RuntimeOper
    ationsException: RuntimeException thrown by the getAttribute method of the DynamicMBean
    for the attribute Credential
    at weblogic.security.service.PrincipalAuthenticator.initialize(PrincipalAuthenticator.java:186)
    at weblogic.security.service.PrincipalAuthenticator.<init>(PrincipalAuthenticator.java:236)
    at weblogic.security.service.SecurityServiceManager.doATN(SecurityServiceManager.java:1506)
    at weblogic.security.service.SecurityServiceManager.initializeRealm(SecurityServiceManager.java:1308)
    at weblogic.security.service.SecurityServiceManager.loadRealm(SecurityServiceManager.java:1247)
    at weblogic.security.service.SecurityServiceManager.initializeRealms(SecurityServiceManager.java:1364)
    at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:1107)
    at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:703)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:588)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:276)
    at weblogic.Server.main(Server.java:31)

    Solved the problem. The 'domain root' directory specified in the remote start configuration,
    must contain a copy of the file 'SerializedSystemIni.dat' that was created along
    with the domain, in order to boot when an AD authenticator is configured. If an
    AD authenticator is not configured, no file is required. This was not a platform
    specific issue; on Win2K I had configured the 'domain root' remote start parameter
    to point to an existing domain root and not a new directory.
    "Andrew Walker" <[email protected]> wrote:
    >
    Has anyone managed to setup a WLS 7.0 Active Directory authenticator
    and booted
    a managed server using the node manager? I can boot the server without
    the AD
    authenticator and I can also boot the server using a script and successfully
    authenticate
    through AD. My AD control flag is set to OPTIONAL and I have also setup
    a default
    authenticator to boot weblogic - the control flag here is set to SUFFICIENT.
    This
    configuration works fine with weblogic running on W2K, but not on Solaris
    (it
    looks like the control flag is being ignored). Errors as follows
    ####<Oct 1, 2002 1:59:08 PM BST> <Info> <Logging> <mymachine> <server01>
    <main>
    <kernel identity> <> <000000> <FileLo
    gger Opened at /opt/app/live/appserver/domains/test/NodeManager/server01/server01.log>
    ####<Oct 1, 2002 1:59:09 PM BST> <Info> <socket> <mymachine> <server01>
    <main>
    <kernel identity> <> <000415> <System
    has file descriptor limits of - soft: 1,024, hard: 1,024>
    ####<Oct 1, 2002 1:59:09 PM BST> <Info> <socket> <mymachine> <server01>
    <main>
    <kernel identity> <> <000416> <Using e
    ffective file descriptor limit of: 1,024 open sockets/files.>
    ####<Oct 1, 2002 1:59:09 PM BST> <Info> <socket> <mymachine> <server01>
    <main>
    <kernel identity> <> <000418> <Allocat
    ing: 3 POSIX reader threads>
    ####<Oct 1, 2002 1:59:19 PM BST> <Critical> <WebLogicServer> <mymachine>
    <server01>
    <main> <kernel identity> <> <0003
    64> <Server failed during initialization. Exception:weblogic.security.service.SecurityServiceRuntimeException:
    Problem instantiating
    Authentication Providerjavax.management.RuntimeOperationsException:
    RuntimeException
    thrown by the getAttribute method of the Dynam
    icMBean for the attribute Credential>
    weblogic.security.service.SecurityServiceRuntimeException: Problem instantiating
    Authentication Providerjavax.management.RuntimeOper
    ationsException: RuntimeException thrown by the getAttribute method of
    the DynamicMBean
    for the attribute Credential
    at weblogic.security.service.PrincipalAuthenticator.initialize(PrincipalAuthenticator.java:186)
    at weblogic.security.service.PrincipalAuthenticator.<init>(PrincipalAuthenticator.java:236)
    at weblogic.security.service.SecurityServiceManager.doATN(SecurityServiceManager.java:1506)
    at weblogic.security.service.SecurityServiceManager.initializeRealm(SecurityServiceManager.java:1308)
    at weblogic.security.service.SecurityServiceManager.loadRealm(SecurityServiceManager.java:1247)
    at weblogic.security.service.SecurityServiceManager.initializeRealms(SecurityServiceManager.java:1364)
    at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:1107)
    at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:703)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:588)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:276)
    at weblogic.Server.main(Server.java:31)
    ####<Oct 1, 2002 1:59:19 PM BST> <Emergency> <WebLogicServer> <mymachine>
    <server01>
    <main> <kernel identity> <> <000
    342> <Unable to initialize the server: Fatal initialization exception
    Throwable: weblogic.security.service.SecurityServiceRuntimeException:
    Problem
    instantiating Authentication Providerjavax.management.
    RuntimeOperationsException: RuntimeException thrown by the getAttribute
    method
    of the DynamicMBean for the attribute Credential
    weblogic.security.service.SecurityServiceRuntimeException: Problem instantiating
    Authentication Providerjavax.management.RuntimeOper
    ationsException: RuntimeException thrown by the getAttribute method of
    the DynamicMBean
    for the attribute Credential
    at weblogic.security.service.PrincipalAuthenticator.initialize(PrincipalAuthenticator.java:186)
    at weblogic.security.service.PrincipalAuthenticator.<init>(PrincipalAuthenticator.java:236)
    at weblogic.security.service.SecurityServiceManager.doATN(SecurityServiceManager.java:1506)
    at weblogic.security.service.SecurityServiceManager.initializeRealm(SecurityServiceManager.java:1308)
    at weblogic.security.service.SecurityServiceManager.loadRealm(SecurityServiceManager.java:1247)
    at weblogic.security.service.SecurityServiceManager.initializeRealms(SecurityServiceManager.java:1364)
    at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:1107)
    at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:703)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:588)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:276)
    at weblogic.Server.main(Server.java:31)

  • Instantiating a List of objects containing list fields

    I have two data objects TableBean and Column.The TableBean has a list of Column objects. I want to instantiate a TableBean on the fly. I am attaching the three classes TableBean, Column and main class. I am having difficulty instantiatng
    Instanting Class
    public class MetadataSessionBean implements MetadataSession,
    MetadataSessionLocal {
    @Resource(name="jdbc/DWDS")
    private DataSource dataSource;
    private Connection connection;
    private List<TableBean> tables = new ArrayList<TableBean>();
    private List<Column> columns = new ArrayList<Column>();
    private DatabaseMetaData dmd;
    public MetadataSessionBean() {
    public List<TableBean> getTables(){
    try{ connection = dataSource.getConnection();
    DatabaseMetaData dmd;
    dmd = connection.getMetaData();
    if (dmd ==null){
    //Not available
    }else{
    ResultSet rs = dmd.getSchemas();
    ResultSet rs1 = null;
    ResultSet rsColumns = null;
    while(rs.next()) {
    if (rs.getString(1).equalsIgnoreCase("AV_DATA")){
    rs1 = dmd.getTables(null,rs.getString(1),"%",null);
    while(rs1.next()) {
    //PROBLEM instantiating Table Bean and add the column list to the new created TableBean
    tables.add(new TableBean(rs1.getString(3)));
    rsColumns = dmd.getColumns("", rs.getString(1), rs1.getString(3), null);
    while(rsColumns.next()){
    //How do I add the below columns to the Table created using new operator
    columns.add(new Column(rsColumns.getString(4)));
    }catch (SQLException sqle){
    sqle.printStackTrace();
    return tables;
    TableBean Class
    package domain;
    import java.io.Serializable;
    import java.util.List;
    public class TableBean implements Serializable{
    private String name;
    private List<Column> columns;
    public TableBean(String name){
    this.name=name;
    public void setName(String name) {
    this.name = name;
    public String getName() {
    return name;
    public void setColumns(List<Column> columns) {
    this.columns = columns;
    public List<Column> getColumns() {
    return columns;
    Column Class
    package domain;
    import java.io.Serializable;
    public class Column implements Serializable{
    private String name;
    private String description;
    public Column(String name){
    this.name = name;
    public void setName(String name) {
    this.name = name;
    public String getName() {
    return name;
    public void setDescription(String description) {
    this.description = description;
    public String getDescription() {
    return description;
    }Edited by: jthomas1 on Aug 30, 2010 6:08 PM

    I got it, change the constructor and pass columns to the parent object

  • Simple compilation problem?

    On one of my computers (RedHat7.1) I have the following problem instantiating a class. This is the story:
    (an import statement does not seem to help)
    Any help would be appreciated.
    Henrik
    [henrik@porten javatst]$ ls
    Kl1.java Kl2.java
    [henrik@porten javatst]$ javac Kl1.java
    [henrik@porten javatst]$ javac Kl2.java
    Kl2.java:5: cannot resolve symbol
    symbol : class Kl1
    location: class Kl2
    Kl1 kl1 = new Kl1();
    ^
    Kl2.java:5: cannot resolve symbol
    symbol : class Kl1
    location: class Kl2
    Kl1 kl1 = new Kl1();
    ^
    2 errors
    [henrik@porten javatst]$ cat Kl1.java
    public class Kl1
    public String getMsg() { return "Hej fra Kl1-instans"; }
    [henrik@porten javatst]$ cat Kl2.java
    public class Kl2 {
    public static void main(String[] args)
    Kl1 kl1 = new Kl1();
    System.out.println(kl1.getMsg());
    [henrik@porten javatst]$

    Post your CLASSPATH variable please.
    Seems as if the first part is not a '.' (compiler will look for other clases in the current directory as well)

  • Problem instatiating factory implementation when invoking a service in java

    Hello,
    I' have the following problem: When I invoke a service from java code (it is a customized policy step implementation of a server agent), I get the following exception (some part of the error message description is german because it's a german versin of the SOA Suite, my translations are in []):
    error.build.wsdl.model: oracle.j2ee.ws.common.tools.api.WsdlValidationException: modeler error: Problem instantiating factory implementation.:
         Fehlende Klasse [missing class]: oracle.webservices.wsdl.WSDLFactoryImpl
         Abhängige Klasse [dependent class]: javax.wsdl.factory.WSDLFactory
         Loader: oracle.jwsdl:10.1.3
         Code-Source: /C:/product/10.1.3.1/OracleAS_1/webservices/lib/orawsdl.jar
         Konfiguration [Configuration]: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar
    Diese Load wurde um oracle.wsm.agent:10.1.3.1 mit der Methode Class.forName() eingeleitet [This load was introduced/caused with/by method Class.forName() on...].
    Die fehlende Klasse ist in den folgenden Speicherorten verfügbar [The missing class is available in the following location]:
         1. Code-Source: /C:/product/10.1.3.1/OracleAS_1/webservices/lib/orawsdl.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar)
         Diese Code-Source ist im Loader oracle.jwsdl:10.1.3 verfügbar [This source code is available in loader oracle.jwsdl:10.1.3].
    : oracle.classloader.util.AnnotatedClassNotFoundException:
         Fehlende Klasse [missing class]: oracle.webservices.wsdl.WSDLFactoryImpl
         Abhängige Klasse [dependent class]: javax.wsdl.factory.WSDLFactory
         Loader: oracle.jwsdl:10.1.3
         Code-Source: /C:/product/10.1.3.1/OracleAS_1/webservices/lib/orawsdl.jar
         Konfiguration: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar
    Diese Load wurde um oracle.wsm.agent:10.1.3.1 mit der Methode Class.forName() eingeleitet.
    Die fehlende Klasse ist in den folgenden Speicherorten verfügbar:
         1. Code-Source: /C:/product/10.1.3.1/OracleAS_1/webservices/lib/orawsdl.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar)
         Diese Code-Source ist im Loader oracle.jwsdl:10.1.3 verfügbar.
         at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2068) [C:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@10469011]
         at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1679) [C:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@10469011]
         at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1635) [C:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@10469011]
         at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1620) [C:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@10469011]
         at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre bootstrap, by jre.bootstrap:1.5.0_06]
         at java.lang.Class.forName0 (Native method) [unknown, by unknown]
         at java.lang.Class.forName (Class.java:242) [jre bootstrap, by jre.bootstrap:1.5.0_06]
         at javax.wsdl.factory.WSDLFactory.newInstance (WSDLFactory.java:75) [C:/product/10.1.3.1/OracleAS_1/webservices/lib/orawsdl.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oracle.jwsdl:10.1.3]
         at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLModeler.buildModel (WSDLModeler.java:137) [C:/product/10.1.3.1/OracleAS_1/webservices/lib/wsclient.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oracle.ws.client:10.1.3]
         at oracle.j2ee.ws.common.processor.config.ModelInfo.buildModel (ModelInfo.java:167) [C:/product/10.1.3.1/OracleAS_1/webservices/lib/wsclient.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oracle.ws.client:10.1.3]
         at oracle.j2ee.ws.client.dii.ServiceInfoBuilder.getModel (ServiceInfoBuilder.java:196)
    at ... ...
    at ... ...
    Here is the relevant part of my source code:
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.Call;
    // create service
    Service service = null;
    try{
         service = factory.createService(wsdlLocation, serviceName);
    // HERE (the line above) the exception is thrown!!!!
    catch (Exception e) {
    Does anybody have an idea what the reason for this problem is and how I can fix it?
    Thank you very much,
    Stefan

    Hello,
    I had to add the information, which jar-file has to be used, into the build.xml that is used by the ant script.
    Now the missing class problem is solved, but now there is another (similar) problem:
    error.build.wsdl.model: oracle.j2ee.ws.common.tools.api.WsdlValidationException: modeler error: Problem instantiating factory implementation.: oracle.webservices.wsdl.WSDLFactoryImpl: java.lang.ClassCastException: oracle.webservices.wsdl.WSDLFactoryImpl
    at javax.wsdl.factory.WSDLFactory.newInstance(WSDLFactory.java:77)
    at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:137)
    at oracle.j2ee.ws.common.processor.config.ModelInfo.buildModel(ModelInfo.java:167)
    at oracle.j2ee.ws.client.dii.ServiceInfoBuilder.getModel(ServiceInfoBuilder.java:196)
    at oracle.j2ee.ws.client.dii.ServiceInfoBuilder.getModel(ServiceInfoBuilder.java:199)
    at oracle.j2ee.ws.client.dii.ServiceInfoBuilder.getModel(ServiceInfoBuilder.java:181)
    at oracle.j2ee.ws.client.dii.ServiceInfoBuilder.buildServiceInfo(ServiceInfoBuilder.java:114)
    at oracle.j2ee.ws.client.dii.ConfiguredService.<init>(ConfiguredService.java:54)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:43)
    at customsteps.StefansAspektStep.invokeService(Unknown Source)
    Any ideas? Do I have to set some System properties? What is the reason for this class cast error?

Maybe you are looking for

  • How to Trigger / execute a rule directly from an XML form?

    I am in the process of customizing User Forms, and I would like to implement a trigger (if that's the right name for it) in the XML script, which will execute a Rule (or some code) that will result in an email being sent. For example, the following s

  • Error Invoking Web Service Action: Status (500): null

    Hi forum I am getting an "Invoking Web Service Action: Status (500): null" error  when invoking a web service action block .  The BLS transaction used as a web service outputs a text string which I tested using an xacute query . while executing the t

  • Query about oldest entry in a Collection/List

    Hi, I need to access the oldest entry from a List. something on the lines of removeEldestEntry from LinkedHashMap ... but I need to work with the entry before deleting it. any hints or pointers will be greatly appreciated

  • Re: variants

    Hi,      Iam using one logical databse to retrieve the data from bsis table. I have to run this program by using submit by using another program along with the parameters. I could able to send the parameters on the selection screen values. But i coul

  • Mini Display to Mini Display cable

    Hello. I have a 27inch mid 2010 iMac and I'm soon to buy the new 27inch 2012 iMac. Is there a reason the apple store does not carry a mini displayport to mini displayport (male to male) cable to connect the older iMac as a 2nd monitor?  Has Apple dee