When I try to start the webshere server 8.5, I get the following error:
20-05-26 22:49:12:697 EDT] 000000a7 UserRegistryI E SECJ0330E: Le fichier d'implémentation du registre com.vmd.common.test.userregistry.DummyVmdUserRegistry ne peut pas être chargé en raison de l'exception suivante java.lang.ClassNotFoundException: com.vmd.common.test.userregistry.DummyVmdUserRegistry
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:176)
at com.ibm.ws.security.registry.UserRegistryImpl.createCustomImplInstance(UserRegistryImpl.java:313)
at com.ibm.ws.security.registry.UserRegistryImpl.initialize(UserRegistryImpl.java:183)
at com.ibm.ws.security.config.UserRegistryConfigImpl.do_createRegistryObjects(UserRegistryConfigImpl.java:729)
at com.ibm.ws.security.config.UserRegistryConfigImpl.createRegistryObjects(UserRegistryConfigImpl.java:686)
at com.ibm.ws.security.config.UserRegistryConfigImpl.getUserRegistryImpl(UserRegistryConfigImpl.java:671)
at com.ibm.ws.security.server.SecurityServerImpl.getRegistryImpl(SecurityServerImpl.java:659)
at com.ibm.ws.security.ltpa.LTPAServerObject.getUserRegistry(LTPAServerObject.java:2628)
at com.ibm.ws.security.ltpa.LTPAServerObject.authenticate(LTPAServerObject.java:986)
at com.ibm.ws.security.server.lm.ltpaLoginModule.login(ltpaLoginModule.java:657)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:796)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:211)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:710)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:708)
at java.security.AccessController.doPrivileged(AccessController.java:280)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:707)
at javax.security.auth.login.LoginContext.login(LoginContext.java:604)
at com.ibm.ws.security.auth.JaasLoginHelper.jaas_login(JaasLoginHelper.java:357)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:4759)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:4385)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:4381)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:3973)
at com.ibm.ws.management.util.SecurityHelper.authenticate(SecurityHelper.java:305)
at com.ibm.ws.management.connector.ipc.CallRouter.basicAuth(CallRouter.java:532)
at com.ibm.ws.management.connector.ipc.CallRouter.route(CallRouter.java:120)
at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink.doWork(IPCConnectorInboundLink.java:360)
at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink$IPCConnectorReadCallback.complete(IPCConnectorInboundLink.java:602)
at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1784)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1814)
[20-05-26 22:49:12:697 EDT] 000000a7 UserRegistryC E SECJ0281E: Erreur de création de l'objet registre d'utilisateurs. L'exception est java.lang.ClassNotFoundException: com.vmd.common.test.userregistry.DummyVmdUserRegistry
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:176)
at com.ibm.ws.security.registry.UserRegistryImpl.createCustomImplInstance(UserRegistryImpl.java:313)
at com.ibm.ws.security.registry.UserRegistryImpl.initialize(UserRegistryImpl.java:183)
at com.ibm.ws.security.config.UserRegistryConfigImpl.do_createRegistryObjects(UserRegistryConfigImpl.java:729)
at com.ibm.ws.security.config.UserRegistryConfigImpl.createRegistryObjects(UserRegistryConfigImpl.java:686)
at com.ibm.ws.security.config.UserRegistryConfigImpl.getUserRegistryImpl(UserRegistryConfigImpl.java:671)
at com.ibm.ws.security.server.SecurityServerImpl.getRegistryImpl(SecurityServerImpl.java:659)
at com.ibm.ws.security.ltpa.LTPAServerObject.getUserRegistry(LTPAServerObject.java:2628)
at com.ibm.ws.security.ltpa.LTPAServerObject.authenticate(LTPAServerObject.java:986)
at com.ibm.ws.security.server.lm.ltpaLoginModule.login(ltpaLoginModule.java:657)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:796)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:211)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:710)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:708)
at java.security.AccessController.doPrivileged(AccessController.java:280)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:707)
at javax.security.auth.login.LoginContext.login(LoginContext.java:604)
at com.ibm.ws.security.auth.JaasLoginHelper.jaas_login(JaasLoginHelper.java:357)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:4759)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:4385)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:4381)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:3973)
at com.ibm.ws.management.util.SecurityHelper.authenticate(SecurityHelper.java:305)
at com.ibm.ws.management.connector.ipc.CallRouter.basicAuth(CallRouter.java:532)
at com.ibm.ws.management.connector.ipc.CallRouter.route(CallRouter.java:120)
at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink.doWork(IPCConnectorInboundLink.java:360)
at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink$IPCConnectorReadCallback.complete(IPCConnectorInboundLink.java:602)
at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1784)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1814)
.
[20-05-26 22:49:12:698 EDT] 000000a7 RoleBasedAuth A SECJ0305I: Echec du contrôle d'autorisation basée sur le rôle pour admin-authz opérations Server : getState. L'utilisateur UNAUTHENTICATED (ID unique : UNAUTHENTICATED) n'a pas reçu un des rôles requis suivants : deployer, operator, configurator, monitor, administrator, adminsecuritymanager, auditor.
I looked for a solution in IBM pages and over the net but I am not able to find a solution for now,
do you have any suggestion to resolve this please ?
Assuming that you are trying to implement your custom user registry by class com.vmd.common.test.userregistry.DummyVmdUserRegistry, which you didn't describe in the question, you have to put that class to the AppServer\lib\ext folder, as it clearly cannot be found right now by server infrastructure.
Related
Anyone have a clue about this exception I got when starting Weblogic 12 :
<25 sept. 2019 09 h 28 GMT> <Error> <Socket> <BEA-000403> <IOException occurred on socket: Socket[addr=/127.0.0.1,port=55554,localport=7001]
java.io.IOException: Une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte.
java.io.IOException: Une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte.
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
at sun.nio.ch.IOUtil.read(IOUtil.java:197)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:379)
Truncated. see log file for complete stacktrace
>
I didn't find any similar issue!
Thanks
environment:
Server IBM MQ 9, JVM 8, Wildfly 10
Error log wildfly:
2017-09-15 10:53:33,955 WARN [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (default task-16) IJ000604: Throwable while attempting to get a new connection: null: com.ibm.mq.connector.DetailedResourceException: MQJCA1011: No se ha podido asignar una conexión JMS., error code: MQJCA1011 Un error interno ha hecho que falle un intento de asignar una conexión. Consulte la excepción enlazada para obtener detalles de la anomalía.
at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:169)
at org.jboss.remoting3.EndpointImpl$TrackingExecutor$1.run(EndpointImpl.java:731)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.ibm.msg.client.jms.DetailedJMSException: JMSWMQ0018: No se ha podido conectar con el gestor de colas 'MQ.MQAWSHOM.01' con modalidad de conexión 'Client' y nombre de host '172.16.34.210(1414)'.
Compruebe que el gestor de colas esté iniciado y, si se está ejecutando en modalidad de cliente, compruebe que haya un escucha en ejecución. Consulte la excepción enlazada para obtener más información.
at com.ibm.msg.client.wmq.common.internal.Reason.reasonToException(Reason.java:595)
at com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:215)
at com.ibm.msg.client.wmq.internal.WMQConnection.<init>(WMQConnection.java:422)
at com.ibm.msg.client.wmq.internal.WMQXAConnection.<init>(WMQXAConnection.java:67)
at com.ibm.msg.client.wmq.factories.WMQXAConnectionFactory.createV7ProviderConnection(WMQXAConnectionFactory.java:188)
at com.ibm.msg.client.wmq.factories.WMQConnectionFactory.createProviderConnection(WMQConnectionFactory.java:7814)
at com.ibm.msg.client.wmq.factories.WMQXAConnectionFactory.createProviderXAConnection(WMQXAConnectionFactory.java:98)
at com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl.createXAConnectionInternal(JmsConnectionFactoryImpl.java:354)
at com.ibm.mq.jms.MQXAConnectionFactory.createXAConnection(MQXAConnectionFactory.java:131)
at com.ibm.mq.connector.ConnectionBuilder.createConnection(ConnectionBuilder.java:134)
... 90 more
Caused by: com.ibm.mq.MQException: JMSCMQ0001: La llamada de IBM MQ ha fallado con código de terminación '2' ('MQCC_FAILED') razón '2058' ('MQRC_Q_MGR_NAME_ERROR').
at com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:203)
... 98 more
2017-09-15 10:53:33,958 INFO [stdout] (default task-16) MQJCA0002: Se ha producido una excepción en la capa IBM MQ. Consulte la excepción enlazada para obtener detalles.
Why am I receiving this error?
The error is this:
Caused by: com.ibm.mq.MQException: JMSCMQ0001: La llamada de IBM MQ ha fallado con código de terminación '2' ('MQCC_FAILED') razón '2058' ('MQRC_Q_MGR_NAME_ERROR').
This indicates that the queue manager listening at 172.16.34.210(1414) is not called MQ.MQAWSHOM.01. Check that the IP and port are correct for the queue manager you want to connect to, if those are correct check for any typos in the name of the queue manager you are specifying.
If your do not care what queue manager name is listening on the IP and Port specified you can prefix the queue manager name with a * character, this will instruct the API to disregard the name of the queue manager. For example: *MQ.MQAWSHOM.01.
I failed to generate a plugin file from a Liberty Cluster.
I use this script.
Caused by: java.lang.RuntimeException: java.io.IOException: CWWKX0229E: Un problème est survenu avec les données d'identification de l'utilisateur fournies. Le serveur a répondu avec le code 401 et
message 'Unauthorized'
at com.ibm.ws.collective.repository.internal.ClusterManager.generateClusterPluginConfig(ClusterManager.java:320)
at com.ibm.ws.collective.repository.internal.ClusterManagerMBeanImpl.generateClusterPluginConfig(ClusterManagerMBeanImpl.java:1216)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:507)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:83)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:507)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:287)
at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:124)
at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:58)
at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:249)
at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:150)
at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:264)
at javax.management.StandardMBean.invoke(StandardMBean.java:416)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:831)
... 53 more
Caused by: java.io.IOException: CWWKX0229E: Un problème est survenu avec les données d'identification de l'utilisateur fournies. Le serveur a répondu avec le code 401 et le message 'Unauthorized'
at com.ibm.ws.jmx.connector.client.rest.internal.RESTMBeanServerConnection.getBadCredentialsException(RESTMBeanServerConnection.java:1758)
at com.ibm.ws.jmx.connector.client.rest.internal.RESTMBeanServerConnection.loadJMXServerInfo(RESTMBeanServerConnection.java:267)
at com.ibm.ws.jmx.connector.client.rest.internal.RESTMBeanServerConnection.<init>(RESTMBeanServerConnection.java:161)
at com.ibm.ws.jmx.connector.client.rest.internal.Connector.connect(Connector.java:371)
at com.ibm.ws.jmx.connector.client.rest.internal.Connector.connect(Connector.java:112)
at com.ibm.ws.collective.repository.internal.ClusterManagerMBeanImpl.getMBeanServerConnection(ClusterManagerMBeanImpl.java:1284)
at com.ibm.ws.collective.repository.internal.ClusterManager.generateClusterPluginConfig(ClusterManager.java:314)
The user/password you pass to this script need to be established in the application servers server.xml as someone with the administrator role.
One way to do that is the quickStartSecurity feature:
https://www.ibm.com/support/knowledgecenter/was_beta_liberty/com.ibm.websphere.wlp.nd.multiplatform.doc/ae/twlp_sec_mapadmin.html
Would like to setup Derby database table authentication in Glassfish and Netbeans. For a start I try to use plain text passwords that are not hashed.
Struggling with this for 3 days now.
Guesses:
1. Glassfish does not see the database.
2. A problem with the realm in Glassfish.
Here are the Finest log entries:
Précis: [Web-Security] Policy Context ID was: Coiffure/Coiffure
Précis: [Web-Security] hasUserDataPermission perm: ("javax.security.jacc.WebUserDataPermission" "/faces/admin/j_security_check" "POST")
Précis: [Web-Security] hasUserDataPermission isGranted: true
Le plus précis: Processing login with credentials of type: class com.sun.enterprise.security.auth.login.common.PasswordCredential
Précis: Logging in user [admin] into realm: jdbcRealm using JAAS module: jdbcRealm
Précis: Login module initialized: class com.sun.enterprise.security.ee.auth.login.JDBCLoginModule
Grave: SEC1112: Cannot validate user [admin] for JDBC realm.
Précis: Cannot validate user
javax.security.auth.login.LoginException: Cannot connect to the data source jdbc/Coiffure for the database user null.
at com.sun.enterprise.security.ee.auth.realm.jdbc.JDBCRealm.getConnection(JDBCRealm.java:585)
at com.sun.enterprise.security.ee.auth.realm.jdbc.JDBCRealm.isUserValid(JDBCRealm.java:408)
at com.sun.enterprise.security.ee.auth.realm.jdbc.JDBCRealm.authenticate(JDBCRealm.java:324)
at com.sun.enterprise.security.ee.auth.login.JDBCLoginModule.authenticate(JDBCLoginModule.java:78)
at com.sun.enterprise.security.auth.login.PasswordLoginModule.authenticateUser(PasswordLoginModule.java:116)
at com.sun.enterprise.security.BasePasswordLoginModule.login(BasePasswordLoginModule.java:146)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:755)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at javax.security.auth.login.LoginContext.login(LoginContext.java:587)
at com.sun.enterprise.security.auth.login.LoginContextDriver.doPasswordLogin(LoginContextDriver.java:383)
at com.sun.enterprise.security.auth.login.LoginContextDriver.login(LoginContextDriver.java:241)
at com.sun.enterprise.security.auth.login.LoginContextDriver.login(LoginContextDriver.java:154)
at com.sun.web.security.RealmAdapter.authenticate(RealmAdapter.java:695)
at com.sun.web.security.RealmAdapter.authenticate(RealmAdapter.java:636)
at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:279)
at org.apache.catalina.authenticator.AuthenticatorBase.processSecurityCheck(AuthenticatorBase.java:991)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:580)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:702)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.naming.NamingException: Lookup failed for 'jdbc/Coiffure' in SerialContext[myEnv # com.sun.enterprise.connectors.jndisuffix # __nontx, java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state # com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs # com.sun.enterprise.naming [Root exception is javax.naming.NameNotFoundException: Coiffure not found]
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:491)
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:438)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
at org.glassfish.resourcebase.resources.naming.ResourceNamingService.lookup(ResourceNamingService.java:236)
at com.sun.enterprise.connectors.service.ConnectorResourceAdminServiceImpl.lookup(ConnectorResourceAdminServiceImpl.java:224)
at com.sun.enterprise.connectors.ConnectorRuntime.lookupNonTxResource(ConnectorRuntime.java:553)
at com.sun.enterprise.connectors.ConnectorRuntime.lookupNonTxResource(ConnectorRuntime.java:538)
at com.sun.enterprise.security.ee.auth.realm.jdbc.JDBCRealm.getConnection(JDBCRealm.java:573)
... 48 more
Caused by: javax.naming.NameNotFoundException: Coiffure not found
at com.sun.enterprise.naming.impl.TransientContext.doLookup(TransientContext.java:237)
at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:204)
at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:208)
at com.sun.enterprise.naming.impl.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:66)
at com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:114)
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:478)
... 56 more
Précis: JAAS authentication aborted.
Le plus précis: doPasswordLogin fails
javax.security.auth.login.LoginException: Security Exception
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:840)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at javax.security.auth.login.LoginContext.login(LoginContext.java:587)
at com.sun.enterprise.security.auth.login.LoginContextDriver.doPasswordLogin(LoginContextDriver.java:383)
at com.sun.enterprise.security.auth.login.LoginContextDriver.login(LoginContextDriver.java:241)
at com.sun.enterprise.security.auth.login.LoginContextDriver.login(LoginContextDriver.java:154)
at com.sun.web.security.RealmAdapter.authenticate(RealmAdapter.java:695)
at com.sun.web.security.RealmAdapter.authenticate(RealmAdapter.java:636)
at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:279)
at org.apache.catalina.authenticator.AuthenticatorBase.processSecurityCheck(AuthenticatorBase.java:991)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:580)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:702)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.SecurityException
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:841)
... 38 more
Avertissement: WEB9102: Web Login Failed: com.sun.enterprise.security.auth.login.common.LoginException: Login failed: Security Exception
Please let me know if you need anything else.
The problem was mostly that one needs to use UPPERCASE for table and column names when creating the tables in Derby (in Netbeans).
Wow, it is amazing that nobody else on the World Wide Web knows this.
This is the example that I followed. And I couldn't find anything wrong with it: https://sites.google.com/site/saultcollegeit/courses/csd322-java-III/authentication-and-authorization--jsf-jdbcrealms-mysql
Except that it is for a MySQL DB, so here is the code for creating the tables:
CREATE TABLE "HENNIE"."USERS" (
"USERID" int NOT NULL,
"USERNAME" varchar(128) NOT NULL,
"FIRSTNAME" varchar(128) DEFAULT NULL,
"LASTNAME" varchar(128) DEFAULT NULL,
"PASSWORD" char(64) DEFAULT NULL,
PRIMARY KEY ("USERID")
);
CREATE TABLE "HENNIE"."GROUPS" (
"USERNAME" varchar(128) NOT NULL,
"GROUPNAME" varchar(128) NOT NULL,
PRIMARY KEY ("USERNAME","GROUPNAME")
);
INSERT INTO "HENNIE"."GROUPS"("USERNAME", "GROUPNAME") VALUES
('admin', 'admin'),
('jannie', 'standard');
INSERT INTO "HENNIE"."USERS"("USERID", "USERNAME", "FIRSTNAME", "LASTNAME", "PASSWORD") VALUES
(1, 'admin', 'hennie', 'r', '8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918'), /*admin = 8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918*/
(2, 'jannie', 'jan', 'j', 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'); /*<empty string> = e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855*/
Notes:
'hennie' was the username I used when creating the DB. The DB name is not in the code above.
When creating the pool and realm, the names can be quite confusing, so be careful. After creating the realm, refresh the Glassfish browser tab to see the new realm name on the left as well.
It helps to set one type of log entry to FINEST in GF: (a) Go to this page: http://localhost:4848/common/monitor/serverInstMonitoringServerPage.jsf .
(b) Set this property to Finest: javax.enterprise.system.core.security
I'm using Websphere, JSF 1.2, JPA (Eclipselink)
On my project I have the following structure:
-APHP0000_EJB
.APHP0000FacadeEJB.java
.Controllers (Managers)
.persistence.xml
-APHP0000_EJBClient
.APHP0000FacadeEJBLocal.java
.APHP0000FacadeEJBRemote.java
.Entyties
.TO
-APHP0000_EJBEAR
-APHP0000_Web (depends on APHP0000_EJBClient )
.jsp
.ManageBeans
-APHP0000_WebEAR
-->persistence.xml
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="APHP0000_EJB" transaction-type="JTA">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<jta-data-source>java:comp/env/ds_aphp_web</jta-data-source>
<jar-file>APHP0000_EJBClient.jar</jar-file>
<class>su.aphpweb.jpa.entities.UnidadeProdutiva</class>
<class>su.aphpweb.jpa.entities.TipoParadaN4</class>
...
<class>su.aphpweb.jpa.entities.MaquinaProdutiva</class>
<properties>
<property name="eclipselink.logging.level" value="FINE" />
<property name="eclipselink.target-server" value="org.eclipse.persistence.platform.server.was.WebSphere_7_Platform" />
<property name="javax.persistence.jtaDataSource" value="jdbc/ds_aphp_web" />
<property name="eclipselink.cache.shared.default" value="false" />
<property name="eclipselink.logging.parameters" value="true" />
</properties>
</persistence-unit>
</persistence>
When I Start my container, my APHP0000_EJBEAR is deployed, but my APHP0000_WebEAR is not. and get the following exception. Please, I'm stuck on this thing since last week.
[19/12/12 13:33:49:898 BRST] 00000006 JPAPUnitInfo E CWWJP0015E: Ocorreu um erro no provedor de persistência org.eclipse.persistence.jpa.PersistenceProvider quando ele tentou criar factory de gerenciador de entidade do contêiner para a unidade de persistência APHP0000_EJB. Ocorreu o seguinte erro: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Predeployment of PersistenceUnit [APHP0000_EJB] failed.
Internal Exception: java.lang.RuntimeException: java.io.FileNotFoundException: D:\Equipe\APHP\APHP0000_EJB\ejbModule\APHP0000_EJBClient.jar (O sistema não pode encontrar o arquivo especificado.)
[19/12/12 13:33:49:898 BRST] 00000006 JPAPUnitInfo E CWWJP0009E: O servidor não pode criar um depósito de informações EntityManagerFactory para a unidade persistente APHP0000_EJB do provedor org.eclipse.persistence.jpa.PersistenceProvider no módulo file:/D:/Equipe/APHP/APHP0000_EJB/ejbModule/.
[19/12/12 13:33:49:914 BRST] 00000006 EJBContainerI I WSVR0037I: Iniciando o jar do EJB: APHP0000_EJB.jar
[19/12/12 13:33:49:914 BRST] 00000006 EJBContainerI I CNTR0167I: O servidor está ligando a interface su.aphpweb.jpa.entities.controller.ResponsParadaUnidManagerRemote do enterprise bean ResponsParadaUnidManager no módulo APHP0000_EJB.jar do aplicativo APHP0000_WebEAR. O local de ligação é: ejb/APHP0000_WebEAR/APHP0000_EJB.jar/ResponsParadaUnidManager#su.aphpweb.jpa.entities.controller.ResponsParadaUnidManagerRemote
[19/12/12 13:33:49:914 BRST] 00000006 EJBContainerI I CNTR0167I: O servidor está ligando a interface su.aphpweb.jpa.entities.controller.UnidadeMotivoTipoManagerRemote do enterprise bean UnidadeMotivoTipoManager no módulo APHP0000_EJB.jar do aplicativo APHP0000_WebEAR. O local de ligação é: ejb/APHP0000_WebEAR/APHP0000_EJB.jar/UnidadeMotivoTipoManager#su.aphpweb.jpa.entities.controller.UnidadeMotivoTipoManagerRemote
[19/12/12 13:33:49:914 BRST] 00000006 ComponentData E CWMDF0015E: O carregador de classes não pode carregar a interface su.aphpweb.negocio.ejb.APHP0000FacadeEJBRemote no arquivo su.aphpweb.negocio.ejb.APHP0000FacadeEJB Enterprise JavaBeans (EJB).
[19/12/12 13:33:49:914 BRST] 00000006 EJBContainerI E WSVR0040E: Falha no addEjbModule para APHP0000_EJB.jar [class com.ibm.ws.runtime.component.DeployedEJBModuleImpl]
com.ibm.ejs.container.EJBConfigurationException: CWMDF0015E: O carregador de classes não pode carregar a interface su.aphpweb.negocio.ejb.APHP0000FacadeEJBRemote no arquivo su.aphpweb.negocio.ejb.APHP0000FacadeEJB Enterprise JavaBeans (EJB).
at com.ibm.ws.metadata.ComponentDataObject.setInterfacesFromImplements(ComponentDataObject.java:783)
at com.ibm.ws.metadata.ComponentDataObject.finishCDO(ComponentDataObject.java:424)
at com.ibm.ws.runtime.component.EJBContainerImpl.startModule(EJBContainerImpl.java:2609)
at com.ibm.ws.runtime.component.EJBContainerImpl.start(EJBContainerImpl.java:3827)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1120)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1313)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:619)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:938)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:723)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1264)
at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:4476)
at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:4654)
at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1269)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2041)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:437)
at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:122)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:380)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:651)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:613)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1175)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:243)
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1086)
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:967)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1320)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1213)
at com.ibm.ws.management.application.AppManagementImpl._startApplication(AppManagementImpl.java:1284)
at com.ibm.ws.management.application.AppManagementImpl.startApplication(AppManagementImpl.java:1180)
at com.ibm.ws.management.application.AppManagementImpl.startApplication(AppManagementImpl.java:1140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:243)
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1086)
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:967)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1320)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1213)
at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:181)
at com.ibm.ws.management.connector.rmi.RMIConnectorService.invoke(RMIConnectorService.java:282)
at com.ibm.ws.management.connector.rmi._RMIConnectorService_Tie.invoke(_RMIConnectorService_Tie.java:395)
at com.ibm.ws.management.connector.rmi._RMIConnectorService_Tie._invoke(_RMIConnectorService_Tie.java:160)
at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:622)
at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:475)
at com.ibm.rmi.iiop.ORB.process(ORB.java:513)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:1574)
at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2841)
at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2714)
at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:63)
at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)
The error seems to indicate that it can't find the jar file, APHP0000_EJBClient.jar. Is the jar in the ear? It needs to be.
You could try removing the tag, and just list the entity classes (as long as there are on the classpath they will be found).
For EJB Exception :CWMDF0015E
It is necessary to click in the paramètrage of publication for WebSphere Application Server of Eclipse IDE "to execute the server and the resources on the server"
and run a server