[EJB 3.0] - Re: Deployment dependencies...
by jactor
> please describe how you have packaged your application. Are things in an
> EAR? If not, what is in which jars?
As I mentioned earlier:
anonymous wrote : I am creating a jar including all the beans except the MBean. I am creating a sar including the MBean and the jar created earlier. Both of these files are copied into the deploy folder and this error message is logged... Since the name of the jar was concept, I renamed the name of the persistence unit to be concept, but this did not help. This is: I deploy a jar (all beans except MBean and Interface) and a sar (MBean and Interface which includes the jar)
> Also,
> @PersistenceContext.name() corresponds to the ENC name.
What is the ENC name? Do I need to configure this somewhere?
> The JNDI lookup name in the EJB's ENC. i.e. : jndi.lookup("java:comp/env/THENAME")
I am using annotations and not JNDI lookup.
> The unitName() corresponds to the unit name defined in persistence.xml
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974801#3974801
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974801
19 years, 6 months
[Beginners Corner] - Re: Access log for Jboss AS
by jaikiran
I guess what jbchurn is looking for is the "localhost_accessxxx.log" files that get created in the %JBOSS_HOME%/server/default/log directory.
The contents will be similar to:
127.0.0.1 - admin [12/Apr/2006:18:04:37 +0530] "GET /myApp/myApp/jsp/framework/notificationCounter.jsp?message=Notifications HTTP/1.1" 200 442
| 127.0.0.1 - - [12/Apr/2006:18:04:37 +0530] "GET /myApp/myApp/script/resource_en.js HTTP/1.1" 304 -
| 127.0.0.1 - admin [12/Apr/2006:18:05:07 +0530] "GET /myApp/myApp/jsp/framework/notificationCounter.jsp?message=Notifications HTTP/1.1" 200 442
| 127.0.0.1 - - [12/Apr/2006:18:05:07 +0530] "GET /myApp/myApp/script/resource_en.js HTTP/1.1" 304 -
| 127.0.0.1 - admin [12/Apr/2006:18:05:37 +0530] "GET /myApp/myApp/jsp/framework/notificationCounter.jsp?message=Notifications HTTP/1.1" 200 442
| 127.0.0.1 - - [12/Apr/2006:18:05:37 +0530] "GET /myApp/myApp/script/resource_en.js HTTP/1.1" 304 -
| 127.0.0.1 - admin [12/Apr/2006:18:06:08 +0530] "GET /myApp/myApp/jsp/framework/notificationCounter.jsp?message=Notifications HTTP/1.1" 200 442
| 127.0.0.1 - - [12/Apr/2006:18:06:08 +0530] "GET /myApp/myApp/script/resource_en.js HTTP/1.1" 304 -
| 127.0.0.1 - admin [12/Apr/2006:18:06:38 +0530] "GET /myApp/myApp/jsp/framework/notificationCounter.jsp?message=Notifications HTTP/1.1" 200 442
| 127.0.0.1 - - [12/Apr/2006:18:06:38 +0530] "GET /myApp/myApp/script/resource_en.js HTTP/1.1" 304 -
| 127.0.0.1 - admin [12/Apr/2006:18:07:08 +0530] "GET /myApp/myApp/jsp/framework/notificationCounter.jsp?message=Notifications HTTP/1.1" 200 442
| 127.0.0.1 - - [12/Apr/2006:18:07:08 +0530] "GET /myApp/myApp/script/resource_en.js HTTP/1.1" 304 -
| 127.0.0.1 - admin [12/Apr/2006:18:07:38 +0530] "GET /myApp/myApp/jsp/framework/notificationCounter.jsp?message=Notifications HTTP/1.1" 200 442
| 127.0.0.1 - - [12/Apr/2006:18:07:38 +0530] "GET /myApp/myApp/script/resource_en.js HTTP/1.1" 304 -
| 127.0.0.1 - admin [12/Apr/2006:18:08:08 +0530] "GET /myApp/myApp/jsp/framework/notificationCounter.jsp?message=Notifications HTTP/1.1" 200 442
| 127.0.0.1 - - [12/Apr/2006:18:08:08 +0530] "GET /myApp/myApp/script/resource_en.js HTTP/1.1" 304 -
| 127.0.0.1 - admin [12/Apr/2006:18:08:38 +0530] "GET /myApp/myApp/jsp/framework/notificationCounter.jsp?message=Notifications HTTP/1.1" 200 442
| 127.0.0.1 - - [12/Apr/2006:18:08:38 +0530] "GET /myApp/myApp/script/resource_en.js HTTP/1.1" 304 -
| 127.0.0.1 - admin [12/Apr/2006:18:09:08 +0530] "GET /myApp/myApp/jsp/framework/notificationCounter.jsp?message=Notifications HTTP/1.1" 200 442
| 127.0.0.1 - - [12/Apr/2006:18:09:08 +0530] "GET /myApp/myApp/script/resource_en.js HTTP/1.1" 304 -
| 127.0.0.1 - admin [12/Apr/2006:18:09:39 +0530] "GET /myApp/myApp/jsp/framework/notificationCounter.jsp?message=Notifications HTTP/1.1" 200 442
| 127.0.0.1 - - [12/Apr/2006:18:09:39 +0530] "GET /myApp/myApp/script/resource_en.js HTTP/1.1" 304 -
| 127.0.0.1 - - [12/Apr/2006:18:10:09 +0530] "GET /myApp/myApp/jsp/framework/notificationCounter.jsp?message=Notifications HTTP/1.1" 500 848
The file name for these log files is mentioned in the jboss-service.xml present in %JBOSS_HOME%/server/default/deploy/jbossweb-tomcatxxx.sar/META-INF folder:
<Valve className="org.apache.catalina.valves.AccessLogValve"
| prefix="localhost_access" suffix=".log"
| pattern="common" directory="${jboss.server.home.dir}/log"/>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974798#3974798
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974798
19 years, 6 months
[Security & JAAS/JBoss] - Re: Can't get access right from Java Client
by jaikiran
anonymous wrote : I was first using LoginInitialContextFactory. Does this module perform client-side authentication ?
As per the javadocs of LoginInitialContextFactory:
anonymous wrote : /** A naming provider InitialContextFactory implementation that combines the authentication phase
| * with the InitialContext creation. During the getInitialContext callback from the JNDI naming
| * layer a JAAS LoginContext is created using the login configuration name passed in as
| * the Context.SECURITY_PROTOCOL env property. The CallbackHandler used is a
| * org.jboss.security.auth.callback.UsernamePasswordHandler that is populated
| * with the username obtained from the Context.SECURITY_PRINCIPAL env property
| * and the credentials from the Context.SECURITY_CREDENTIALS env property.
| */
In brief, the LoginIntialContextFactory uses the login module to which you passed through env.put(Context.SECURITY_PROTOCOL,...). In your case this happens to be:
env.put(Context.SECURITY_PROTOCOL,"CPIProject");
And your "CPIProject" points to the ClientLoginModule:
CPIProject {
| org.jboss.security.ClientLoginModule required
| password-stacking="useFirstPass"
| ;
| };
As already mentioned the ClientLoginModule will just copy the login information and will not do any authentication.
anonymous wrote : If not, can you send me a piece of code that does perform client-side authentication ?
If you require authentication to be done, then the simplest one would be to use the UsersRolesLoginModule which authenticates using users.properties file and roles.properties file. So your "CPIProject" context will look like:
CPIProject {
| org.jboss.security.auth.spi.UsersRolesLoginModule required;
| };
Your properties file should be present in the classpath. Typically the users.properties file will contain something like:
#username=password
| root=root
| someotheruser=pass1
The roles.properties will contain the username and role mappings.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974795#3974795
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974795
19 years, 6 months