[EJB 3.0] - Re: There is no default persistence unit in this deployment
by davestar
JBoss version - 4.2.2, Yes I meant META-INF
Here's my application.xml
<?xml version="1.0" encoding="ASCII"?>
| <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
| <display-name>MXIntegrationEAR</display-name>
| <module>
| <ejb>MXIntegrationEJB.jar</ejb>
| </module>
| <module>
| <web>
| <web-uri>MXIntegrationWEB.war</web-uri>
| <context-root>MXIntegrationWEB</context-root>
| </web>
| </module>
| </application>
C:\jboss-4.2.2.GA\server\default\deploy>jar tvf MXIntegrationEAR.ear
| 25 Thu Jan 15 14:50:58 MST 2009 META-INF/MANIFEST.MF
| 53 Wed Jan 07 16:21:26 MST 2009 .svn/prop-base/commons-discovery-0.2.jar.svn
| -base
| 53 Wed Jan 07 16:21:26 MST 2009 .svn/prop-base/wsdl4j-1.5.1.jar.svn-base
| 0 Thu Jan 15 14:49:06 MST 2009 .svn/text-base/
| 0 Thu Jan 15 14:49:06 MST 2009 .svn/
| 0 Wed Jan 07 16:21:26 MST 2009 META-INF/.svn/props/
| 0 Wed Jan 07 16:21:26 MST 2009 META-INF/.svn/tmp/prop-base/
| 18979 Wed Jan 07 16:21:26 MST 2009 .svn/text-base/saaj.jar.svn-base
| 31191 Wed Jan 07 16:21:26 MST 2009 .svn/text-base/jaxrpc.jar.svn-base
| 0 Wed Jan 07 17:01:58 MST 2009 .svn/tmp/
| 603 Wed Jan 07 16:21:26 MST 2009 META-INF/.svn/text-base/application.xml.svn-
| base
| 53 Wed Jan 07 16:21:26 MST 2009 .svn/prop-base/saaj.jar.svn-base
| 126771 Wed Jan 07 16:21:26 MST 2009 .svn/text-base/wsdl4j-1.5.1.jar.svn-base
| 0 Wed Jan 07 17:01:58 MST 2009 META-INF/.svn/tmp/
| 33202 Wed Jan 07 16:21:26 MST 2009 .svn/text-base/axis-ant.jar.svn-base
| 283 Wed Jan 07 16:21:26 MST 2009 META-INF/.svn/all-wcprops
| 1133 Wed Jan 07 16:21:26 MST 2009 .svn/all-wcprops
| 2 Wed Jan 07 16:21:26 MST 2009 .svn/format
| 53 Wed Jan 07 16:21:26 MST 2009 .svn/prop-base/axis-ant.jar.svn-base
| 0 Wed Jan 07 16:21:26 MST 2009 META-INF/.svn/tmp/props/
| 0 Wed Jan 07 16:21:26 MST 2009 META-INF/.svn/prop-base/
| 53 Wed Jan 07 16:21:26 MST 2009 .svn/prop-base/axis.jar.svn-base
| 603 Wed Jan 07 16:21:26 MST 2009 META-INF/application.xml
| 33202 Thu Jan 15 14:50:58 MST 2009 axis-ant.jar
| 367444 Thu Jan 15 14:50:58 MST 2009 log4j-1.2.14.jar
| 0 Wed Jan 07 16:21:26 MST 2009 .svn/tmp/text-base/
| 2 Wed Jan 07 16:21:26 MST 2009 META-INF/.svn/format
| 18979 Thu Jan 15 14:50:58 MST 2009 saaj.jar
| 0 Thu Jan 15 14:49:06 MST 2009 .svn/prop-base/
| 0 Thu Jan 15 14:49:06 MST 2009 META-INF/
| 71442 Wed Jan 07 16:21:26 MST 2009 .svn/text-base/commons-discovery-0.2.jar.svn
| -base
| 53 Wed Jan 07 16:21:26 MST 2009 .svn/prop-base/jaxrpc.jar.svn-base
| 363004 Thu Jan 15 14:50:58 MST 2009 MXIntegrationEJB.jar
| 0 Wed Jan 07 16:21:26 MST 2009 .svn/tmp/props/
| 429 Wed Jan 07 17:01:58 MST 2009 META-INF/.svn/entries
| 598 Wed Jan 14 13:20:20 MST 2009 META-INF/persistence.xml
| 71442 Thu Jan 15 14:50:58 MST 2009 commons-discovery-0.2.jar
| 0 Wed Jan 07 16:21:26 MST 2009 .svn/props/
| 1599570 Wed Jan 07 16:21:26 MST 2009 .svn/text-base/axis.jar.svn-base
| 126771 Thu Jan 15 14:50:58 MST 2009 wsdl4j-1.5.1.jar
| 1400 Wed Jan 07 17:01:58 MST 2009 .svn/entries
| 31191 Thu Jan 15 14:50:58 MST 2009 jaxrpc.jar
| 53 Wed Jan 07 16:21:26 MST 2009 .svn/prop-base/log4j-1.2.14.jar.svn-base
| 0 Thu Jan 15 14:49:06 MST 2009 META-INF/.svn/
| 1599570 Thu Jan 15 14:50:58 MST 2009 axis.jar
| 367444 Wed Jan 07 16:21:26 MST 2009 .svn/text-base/log4j-1.2.14.jar.svn-base
| 0 Thu Jan 15 14:49:06 MST 2009 META-INF/.svn/text-base/
| 0 Wed Jan 07 16:21:26 MST 2009 META-INF/.svn/tmp/text-base/
| 0 Wed Jan 07 16:21:26 MST 2009 .svn/tmp/prop-base/
| 30955 Thu Jan 15 14:51:00 MST 2009 MXIntegrationWEB.war
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4202272#4202272
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4202272
17 years, 5 months
[Security & JAAS/JBoss] - JAAS - LDAPExtLoginModule
by shetty2k
I have pasted the JBoss configuration files (below) which authenticate against LDAP. The authentication seems to be working fine, but the authorization piece is still not working. After authentication, I get the following error message in the browser:
HTTP Status 403 - Access to the requested resource has been denied
The server.log file does not show any error message.
I would like to understand the following:
- Do we have a document detailing a JAAS configuration against LDAP?
- If the JBoss roles are being used to authorize the user, can I get an example settings for LDAP?
- What is the ideal way to configure authentication and authorization in login-config.xml?
- I debug the JAAS configuration on JBoss using Eclipse IDE. If one of the parameters in login-config.xml / web.xml / jboss-web.xml is wrongly set, how do I debug through these xml configuration files? Eclipse does not seem to provide a way to do the same.
The reason I am not using LDAPLoginModule is because it creates the UserDN as follows:
UserDN = principalDNPrefix (cn=) + <username entered during authentication> + principalDNSuffix (,cn=Users,dc=company,dc=com)
But my data is organized as follows:
UserDN = cn=<Full Name>,cn=Users,dc=company,dc=com
So, during the authentication, the LDAPLoginModule will not be able to find the UserDN. To overcome this limitation, LDAPExtLoginModule was designed. LDAPExtLoginModule makes use of an ldap filter to lookup the user (baseFilter) and role (roleFilter).
Thanks & Regards,
shetty2k
LDAP Data:
dc=company,dc=com
- cn=Users
- - cn=Pitt\, Brad
- - cn=Redford\,Robert
- - cn=Spielberg\,Steven
- cn=Groups
- - cn=Actors
- - cn=Directors
login-config.xml:
<login-module code="org.jboss.security.auth.spi.LdapExtLoginModule" flag="required">
<module-option name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</module-option>
<module-option name="java.naming.provider.url">ldap://iamdev1:9389</module-option>
<module-option name="java.naming.security.authentication">simple</module-option>
<module-option name="java.naming.security.principal">cn=myAdmin</module-option>
<module-option name="java.naming.security.credentials">hollywood1</module-option>
<module-option name="bindDN">cn=myAdmin</module-option>
<module-option name="bindCredential">hollywood1</module-option>
<module-option name="baseCtxDN">ou=Users,dc=company,dc=com</module-option>
<module-option name="baseFilter">(uid={0})</module-option>
<module-option name="rolesCtxDN">ou=Groups,dc=company,dc=com</module-option>
<module-option name="roleFilter">(uniquemember={1})</module-option>
<module-option name="roleAttributeID">cn</module-option>
<module-option name="roleAttributeIsDN">false</module-option>
<module-option name="roleNameAttributeID">cn</module-option>
<module-option name="roleRecursion">0</module-option>
<module-option name="searchTimeLimit">5000</module-option>
<module-option name="searchScope">SUBTREE_SCOPE</module-option>
<module-option name="allowEmptyPasswords">false</module-option>
<module-option name="debug">true</module-option>
</login-module>
web.xml:
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>
JAAS</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<security-constraint>
<display-name>Constraints of the Administration Console's Security Environment</display-name>
<!--URI security patterns and the HTTP methods to protect on them.-->
<web-resource-collection>
<web-resource-name>Protected Administration Console Resources</web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<!--Anyone with these roles may enter this area.-->
<auth-constraint>
<role-name>OCS_PORTAL_USERS</role-name>
</auth-constraint>
<user-data-constraint>
no description
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<!-- Default login configuration uses form-based authentication -->
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>My Company</realm-name>
</login-config>
<!-- Security roles referenced by this web application -->
<security-role>
<role-name>OCS_PORTAL_USERS</role-name>
</security-role>
</web-app>
jboss-web.xml:
<jboss-web>
<security-domain>java:/jaas/mySecurityDomain</security-domain>
</jboss-web>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4202268#4202268
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4202268
17 years, 5 months
[JBoss Cache: Core Edition] - ObjectName with invalid character
by ipeel
I'm following the information in the cache user guide and no matter what I do I keep getting the same exception.
Using the most basic cache config:
<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.0">
| </jbosscache>
I'm attempting to create the cache like this:
CacheFactory factory = new DefaultCacheFactory();
| Cache cache = factory.createCache("cache-config.xml", true);
I keep getting the following exception:
anonymous wrote : 14:18:24,646 ERROR [STDERR] org.jboss.cache.CacheException: java.lang.reflect.InvocationTargetException
| 14:18:24,647 ERROR [STDERR] at org.jboss.cache.util.reflect.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:148)
| 14:18:24,647 ERROR [STDERR] at org.jboss.cache.factories.ComponentRegistry$PrioritizedMethod.invoke(ComponentRegistry.java:970)
| 14:18:24,647 ERROR [STDERR] at org.jboss.cache.factories.ComponentRegistry.internalStart(ComponentRegistry.java:746)
| 14:18:24,647 ERROR [STDERR] at org.jboss.cache.factories.ComponentRegistry.start(ComponentRegistry.java:610)
| 14:18:24,647 ERROR [STDERR] at org.jboss.cache.invocation.CacheInvocationDelegate.start(CacheInvocationDelegate.java:355)
| 14:18:24,647 ERROR [STDERR] at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:121)
| 14:18:24,647 ERROR [STDERR] at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:93)
| 14:18:24,647 ERROR [STDERR] at net.ussouth.incomm.security.domain.DomainAuthenticator.authenticate(DomainAuthenticator.java:29)
| 14:18:24,647 ERROR [STDERR] at net.ussouth.incomm.security.AuthenticatorBean.authenticate(AuthenticatorBean.java:20)
| 14:18:24,648 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 14:18:24,648 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 14:18:24,648 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 14:18:24,648 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
| 14:18:24,648 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122)
| 14:18:24,648 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
| 14:18:24,648 ERROR [STDERR] at org.jboss.ejb3.EJBContainerInvocationWrapper.invokeNext(EJBContainerInvocationWrapper.java:69)
| 14:18:24,648 ERROR [STDERR] at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:73)
| 14:18:24,648 ERROR [STDERR] at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:59)
| 14:18:24,648 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 14:18:24,648 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 14:18:24,648 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 14:18:24,648 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
| 14:18:24,648 ERROR [STDERR] at org.jboss.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)
| 14:18:24,649 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| 14:18:24,649 ERROR [STDERR] at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:72)
| 14:18:24,649 ERROR [STDERR] at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_17267367.invoke(InvocationContextInterceptor_z_fillMethod_17267367.java)
| 14:18:24,649 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| 14:18:24,649 ERROR [STDERR] at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:88)
| 14:18:24,649 ERROR [STDERR] at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_17267367.invoke(InvocationContextInterceptor_z_setup_17267367.java)
| 14:18:24,649 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| 14:18:24,649 ERROR [STDERR] at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62)
| 14:18:24,649 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| 14:18:24,649 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)
| 14:18:24,649 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| 14:18:24,649 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| 14:18:24,649 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| 14:18:24,649 ERROR [STDERR] at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
| 14:18:24,650 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| 14:18:24,650 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:68)
| 14:18:24,650 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| 14:18:24,650 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| 14:18:24,650 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)
| 14:18:24,650 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| 14:18:24,650 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| 14:18:24,650 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| 14:18:24,650 ERROR [STDERR] at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
| 14:18:24,651 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| 14:18:24,651 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:159)
| 14:18:24,651 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| 14:18:24,651 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
| 14:18:24,651 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| 14:18:24,651 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| 14:18:24,651 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| 14:18:24,651 ERROR [STDERR] at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:65)
| 14:18:24,651 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| 14:18:24,651 ERROR [STDERR] at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
| 14:18:24,652 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| 14:18:24,652 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:486)
| 14:18:24,652 ERROR [STDERR] at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:56)
| 14:18:24,652 ERROR [STDERR] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)
| 14:18:24,652 ERROR [STDERR] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
| 14:18:24,652 ERROR [STDERR] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:908)
| 14:18:24,652 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:742)
| 14:18:24,652 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:695)
| 14:18:24,652 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:522)
| 14:18:24,652 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:230)
| 14:18:24,653 ERROR [STDERR] Caused by: java.lang.reflect.InvocationTargetException
| 14:18:24,653 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 14:18:24,653 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 14:18:24,653 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 14:18:24,653 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
| 14:18:24,653 ERROR [STDERR] at org.jboss.cache.util.reflect.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:144)
| 14:18:24,653 ERROR [STDERR] ... 65 more
| 14:18:24,654 ERROR [STDERR] Caused by: org.jboss.cache.CacheException: Failure while registering mbeans
| 14:18:24,654 ERROR [STDERR] at org.jboss.cache.jmx.JmxRegistrationManager.registerAllMBeans(JmxRegistrationManager.java:163)
| 14:18:24,654 ERROR [STDERR] at org.jboss.cache.jmx.PlatformMBeanServerRegistration.registerToPlatformMBeanServer(PlatformMBeanServerRegistration.java:70)
| 14:18:24,654 ERROR [STDERR] ... 70 more
| 14:18:24,654 ERROR [STDERR] Caused by: javax.management.MalformedObjectNameException: Invalid character ':' in value part of property
| 14:18:24,654 ERROR [STDERR] at javax.management.ObjectName.construct(ObjectName.java:602)
| 14:18:24,654 ERROR [STDERR] at javax.management.ObjectName.(ObjectName.java:1403)
| 14:18:24,655 ERROR [STDERR] at org.jboss.cache.jmx.JmxRegistrationManager.registerAllMBeans(JmxRegistrationManager.java:147)
| 14:18:24,655 ERROR [STDERR] ... 71 more
How can I make sure the ':' character doesn't end up in the ObjectName?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4202263#4202263
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4202263
17 years, 5 months
[EJB 3.0] - Re: There is no default persistence unit in this deployment
by ALRubinger
JBossAS Version?
"davestar" wrote : My persistence.xml is in the MET-INF folder in the ear file.
I assume you mean "META-INF"?
For reference:
"EJB 3.0 Persistence Specification 6.2.2" wrote : When referencing a persistence unit using the unitName annotation element or persis-
| tence-unit-name deployment descriptor element, the visibility scope of the persistence unit is determined by its point of definition. A persistence unit that is defined at the level of an EJB-JAR, WAR, or application client jar is scoped to that EJB-JAR, WAR, or application jar respectively and is visible to
| the components defined in that jar or war. A persistence unit that is defined at the level of the EAR is generally visible to all components in the application.
And what about the packaging within your EAR? Are the modules all listed in the manifest META-INF/application.xml?
jar -tvf nameOfYourEar.ear
If you can provide an isolated (failing) test case w/ this issue, we can open a JIRA and attach the EAR.
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4202259#4202259
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4202259
17 years, 5 months