[JBoss-user] [JBossWS] - Web Service Deployment: NullPointerException
I'm trying to deploy a simple web service to JBoss 4.0.2 on Windows XP but I'm getting the following NullPointerException. I've been checking that my web.xml, webservices.xml, and wsdl are all linked properly and all seems OK. Has anyone come across this before? 16:07:55,000 ERROR [ServiceDeployer] Cannot startup webservice for: GetStatus.war java.lang.NullPointerException at org.jboss.webservice.metadata.WebserviceDescriptionMetaData.replaceAddressLocations(WebserviceDescriptionMetaData.java:274) at org.jboss.webservice.metadata.WebserviceDescriptionMetaData.updateServiceAddress(WebserviceDescriptionMetaData.java:253) at org.jboss.webservice.ServiceDeployer.startWebservice(ServiceDeployer.java:211) at org.jboss.webservice.ServiceDeployer.handleNotification(ServiceDeployer.java:112) at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138) at $Proxy30.handleNotification(Unknown Source) at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:112) at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:95) at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerSupport.java:238) at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:206) at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:410) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738) at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121) at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127) at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy8.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:325) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:501) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204) at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:897) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:418) at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at
[JBoss-user] [Installation, Configuration Deployment] - Re: Container Interceptor runs as Client Interceptor
Hello, i am no more sure, if the interceptor runs in Client or server VM. I get System.out messages in JBOSS Console and the Exception in Client VM (in the same Method). org.hibernate.HibernateException: Unable to locate current JTA transaction Maybe a wrong Bean Configuration that i cannot obtain the session? Please Help!! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908054#3908054 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908054 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Portlet title not working for my own portlet
Hello everyone, after successfully deploying the HelloWorld portlet I started extending it with some functionality. I basically just copied the HelloWorld.war, edited all neccessary xml files and wrote some portlet code. Now everything works fine except the title of the portlet. I'm refering to the following lines in portlet.xml: | portlet-info | titleMy HelloWorld Portlet/title | /portlet-info | I can change this to any string I like and it shows up correctly. but my own portlet only shows null. Any ideas ? Greetings Thorsten View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908055#3908055 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908055 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Portlet title not working for my own portlet
I just realized a possible connection, the maximize/minimize/normal buttons do not have an effect either (contrary to the helloworld portlet). I really don't understand this, the only real difference is some naming changes and more portlet sourcecode... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908056#3908056 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908056 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - LdapLoginModule troubles and fix
Hi, I've used the LdapLoginModule in previous versions of JBoss and it seemed to work fine. I've just tried using it with multiple roles and found very weird behaviour. It would tell me that every user was in every role. With the example schema below, it would tell me that user1 is in roles `myldap-ipc', `myldap' and `myldap-admin', when he is only listed as part of `myldap'. I feel that the problem is caused by LdapLoginModule not correctly creating the filter to send to the LDAP server. I have created MyLdapLoginModule.java with a modified roleFilter and it works the way I would expect: String uidAttrName = (String) options.get(UID_ATTRIBUTE_ID_OPT); if (uidAttrName == null) uidAttrName = uid; String roleAttrName = (String) options.get(ROLE_ATTRIBUTE_ID_OPT); if (roleAttrName == null) roleAttrName = roles; StringBuffer roleFilter = new StringBuffer((); roleFilter.append(uidAttrName); // This line commented by Daniel //roleFilter.append(=*)); //BasicAttributes matchAttrs = new BasicAttributes(true); String userToMatch = username; if (matchOnUserDN == true) userToMatch = userDN; // Added by Daniel roleFilter.append(=).append(userToMatch).append()); Here is a sample of the login-config.xml I have been using: application-policy name=myldap-policy !-- for users -- login-module code=org.jboss.security.auth.spi.MyLdapLoginModule flag=required module-option name=java.naming.factory.initialcom.sun.jndi.ldap.LdapCtxFactory/module-option module-option name=java.naming.provider.urlldap://localhost:389//module-option module-option name=java.naming.security.authenticationsimple/module-option module-option name=principalDNPrefixuid=/module-option module-option name=principalDNSuffix,ou=Webusers,dc=mydomain,dc=net/module-option module-option name=rolesCtxDNou=Roles,dc=mydomain,dc=net/module-option module-option name=uidAttributeIDmember/module-option module-option name=matchOnUserDNtrue/module-option module-option name=roleAttributeIDcn/module-option module-option name=roleAttributeIsDNfalse/module-option module-option name=searchScopeONELEVEL_SCOPE/module-option /login-module /application-policy Here is an example of my schema (filtered with sed to remove my domain and application name): # extended LDIF # # LDAPv3 # base ou=Roles,dc=mydomain,dc=net with scope sub # filter: (objectclass=*) # requesting: ALL # # Roles, mydomain.net dn: ou=Roles,dc=mydomain,dc=net objectClass: top objectClass: organizationalUnit ou: Roles # myldap-ipc, Roles, mydomain.net dn: cn=myldap-ipc,ou=Roles,dc=mydomain,dc=net objectClass: top objectClass: groupOfNames description: blah member: uid=ipc-user,ou=Webusers,dc=mydomain,dc=net cn: myldap-ipc # myldap-admin, Roles, mydomain.net dn: cn=myldap-admin,ou=Roles,dc=mydomain,dc=net description: myldap users objectClass: top objectClass: groupOfNames cn: myldap-admin member: uid=dpocock,ou=Webusers,dc=mydomain,dc=net # myldap, Roles, mydomain.net dn: cn=myldap,ou=Roles,dc=mydomain,dc=net description: Users of myldap logger objectClass: top objectClass: groupOfNames member: uid=dpocock,ou=Webusers,dc=mydomain,dc=net member: uid=user1,ou=Webusers,dc=mydomain,dc=net cn: myldap # search result search: 2 result: 0 Success # numResponses: 5 # numEntries: 4 Regards, Daniel View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908057#3908057 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908057 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Portlet title not working for my own portlet
does your portlet extends javax.portlet.GenericPortlet ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908060#3908060 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908060 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Re: Using the LdapExtLoginModule in a Web Application
Hi Neil, Do you need a user to bind to, before querying the LDAP Directory? I left a response on your other thread. If you want to know more about what's going on behind the scenes, try turning DEBUG logging on for the security module org.jboss.security. You should see more information in the server.log. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908068#3908068 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908068 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Get DN from LdapExtLoginModule
Hey everyone. Is there a way to get the DN returned by the LdapExtLoginModule into the WAR? Obviously, I can do it myself, but am trying to save the trouble of issuing another query if LdapExtLoginModule already got it. I know the ExtendedFormAuthenticator will pass the j_username into the session context, but not the DN from the LdapExtLoginModule. Any ideas? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908069#3908069 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908069 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Re: JAAS Caller identity null on second EJB call in a transa
I've been trying to dig through the JBoss source to understand how the caller principal is set for the home.create() call, and I think it's possible that there is a bug in the JBoss code. It's definitely possiblet hat Im wrong and I am just not understanding something correctly, but let me show you what I looked at. In org.jboss.ejb.plugins.SecurityInterceptor#setContainer, if the runAsCallerIdentity() == true, which is default, the runAsIdentity is never initialized and remains null. |public void setContainer(Container container) |{ | super.setContainer(container); | if (container != null) | { | BeanMetaData beanMetaData = container.getBeanMetaData(); | ApplicationMetaData applicationMetaData = beanMetaData.getApplicationMetaData(); | AssemblyDescriptorMetaData assemblyDescriptor = applicationMetaData.getAssemblyDescriptor(); | securityRoles = assemblyDescriptor.getSecurityRoles(); | | SecurityIdentityMetaData secMetaData = beanMetaData.getSecurityIdentityMetaData(); | if (secMetaData != null secMetaData.getUseCallerIdentity() == false) | { | String roleName = secMetaData.getRunAsRoleName(); | String principalName = secMetaData.getRunAsPrincipalName(); | | // the run-as principal might have extra roles mapped in the assembly-descriptor | Set extraRoleNames = assemblyDescriptor.getSecurityRoleNamesByPrincipal(principalName); | runAsIdentity = new RunAsIdentity(roleName, principalName, extraRoleNames); | } | | securityManager = container.getSecurityManager(); | realmMapping = container.getRealmMapping(); | | try | { | // Get the timeout method | ejbTimeout = TimedObject.class.getMethod(ejbTimeout, new Class[]{Timer.class}); | } | catch (NoSuchMethodException ignore) | { | } | } |} Later on, in when an EJB looks up another EJB, the org.jboss.ejb.plugins.SecurityInterceptor#invokeHome is called. There is a call that indiscrimintately pushes the runAsIdentity onto the stack. Since this is null from before, the next call is run with a null caller identity. This is confirmed by the TRACE below. |public Object invokeHome(Invocation mi) throws Exception |{ | // Authenticate the subject and apply any declarative security checks | checkSecurityAssociation(mi); | | /* If a run-as role was specified, push it so that any calls made |by this bean will have the runAsRole available for declarative |security checks. | */ | SecurityActions.pushRunAsIdentity(runAsIdentity); | | try | { | Object returnValue = getNext().invokeHome(mi); | return returnValue; | } | finally | { | SecurityActions.popRunAsIdentity(); | SecurityActions.popSubjectContext(); | } |} | Here is the trace where you can see the caller identity of null being pushed, and the subsequent exception that is caused by it. | 2005-11-20 08:14:53,140 TRACE [org.jboss.security.plugins.JaasSecurityManager.mwo] doesUserHaveRole(Set), subject: Subject: | Principal: admin | Principal: Roles(members:Guest,Administrator) | | 2005-11-20 08:14:53,140 TRACE [org.jboss.security.plugins.JaasSecurityManager.mwo] roles=Roles(members:Guest,Administrator) | 2005-11-20 08:14:53,140 TRACE [org.jboss.security.plugins.JaasSecurityManager.mwo] hasRole(Administrator)=true | 2005-11-20 08:14:53,140 TRACE [org.jboss.security.plugins.JaasSecurityManager.mwo] hasRole=true | 2005-11-20 08:14:53,140 TRACE [org.jboss.security.SecurityAssociation] pushRunAsIdentity, runAs=null | 2005-11-20 08:14:53,140 DEBUG [com.myejb.jboss.Session2SecurityProxy] Entered setEJBContext(EJBContext) | 2005-11-20 08:14:53,156 TRACE [org.jboss.security.plugins.JaasSecurityManager.mwo] getPrincipal, cache info: null | 2005-11-20 08:14:53,156 TRACE [org.jboss.security.SecurityAssociation] popRunAsIdentity, runAs=null | 2005-11-20 08:14:53,156 TRACE [org.jboss.security.SecurityAssociation] popSubjectContext, [EMAIL PROTECTED],subject=7683106} | 2005-11-20 08:14:53,156 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackException in method: public abstract com.myejb.Session1Remote com.myejb.Session1Home.create() throws javax.ejb.CreateException,java.rmi.RemoteException, causedBy: | java.lang.IllegalStateException: No valid security context for the caller identity | It seems the StatelessSessionInstanceInterceptor is responsible for pushing the caller identity into the
[JBoss-user] [Security JAAS/JBoss] - Re: JAAS Caller identity null on second EJB call in a transa
I'm sure you've loved watching me have a conversation with myself, but I found the problem. In the security proxy for Session2, in the setEJBContext method, I was calling getCallerPrincipal(). Per table 3 in the EJB 2 spec, this isn't allowed. Thanks Scott, for the solution which I found in http://jira.jboss.com/jira/browse/JBAS-751. Matt View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908072#3908072 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908072 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Custom Login Module and Web Context?
Hi I've got a situation where the context-root of each of a number of web applications should be used as part of the WHERE clause in the principalsQuery of a database login module. Specifically, I have a number of web applications that should share a single login module. But when the query to find the principal is done, it should include part of the URI of the request that triggered the query. In this way, user names need not be unique across all deployed web applications, even though these applications share a single login module and a single authentications table. Note that all these applications access the same EJBs. There seem to me to be two possible routes here: 1. Have a different security-domain / application-policy for each application - but would I have to edit login-config.xml and restart JBoss each time I added a new application? 2. Write a custom login module - but how can this custom login module find the URI of the original request? I've written and tested a sample module that reproduces the behavior of the DatabaseServerLoginModule, but I can't see how to access this information. What's the most elegant solution here? I would very much appreciate any advice. Bruno Beloff. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908073#3908073 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908073 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - EJB spec violation
I have an entity bean with an ejbCreate ejbPostCreate with xdoclets as MyEclipse generated by default: /** * @throws CreateException Thrown if method fails due to system-level error. * @throws CreateException * @throws RemoteException * @ejb.create-method */ public Integer ejbCreate( Author author, String title, String text) throws CreateException, RemoteException { this.setStoryId(new Integer((new Object()).hashCode())); this.setTitle(title); this.setText(text); this.setPubDate(new Date()); this.setUsername(author.getUsername()); return null; } and /** * @throws CreateException Thrown if method fails due to system-level error. */ public void ejbPostCreate( Author author, String title, String text) throws CreateException { } but when I run xdoclet and deploy it in JBoss 4.0, the JBoss prompts: 20:19:40,328 WARN [verifier] EJB spec violation: Bean : Story Method : public abstract StoryLocal create(Author, String, String) throws CreateException, RemoteException Section: 12.2.11 Warning: The methods in the local home interface must not include java.rmi.RemoteException in their throws clause. Please, if possible, let me know what to do. Regards View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908074#3908074 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908074 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Re: Get DN from LdapExtLoginModule
No, create a feature request to add a principal representing the DN to jira. http://jira.jboss.com/jira/browse/JBAS View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908075#3908075 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908075 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Re: JAAS Caller identity null on second EJB call in a transa
Its good your looking at the source. The unconditional push does not matter as the check for the effective run-as simply ignores nulls. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908077#3908077 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908077 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - PROBLEM with Changes in dynamic class loading from 3.2.x to
I did use jboss 3.2.3 (default server) with cocoon 2.1.5.1 as an webapp deployed in a folder (cocoon.war) so far. I used a dynamic class loading mechanismen in cocoon which needed to receive compiled classes from the WEB-INF\lib folder at runtime (Comment for cocoon users: I did use dynamic class loading in javaflow.). This perfectly worked under jboss 3.2.3 always getting the current file deployed under this folder. However, switching to Jboss 4.0.2 with exactly the same webapp, it did not work. What MAJOR changes are there in the two versions concerning dynamic class loading? Thanks for replies. Janis. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908078#3908078 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908078 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - How to map cmp bean to database
Hello, dear stuff! I am newbie in EJB, here is my problem description 1. I use Xdoclet 2. Using ODBC I created datasource to MsAccess , and it works (tested!). I want to work with table called table1 3. I Created CMP Ejb , Lookup returns the object, no any problem at this step 4. But findByPrimaryKey fails! My table isn't emty, it contains a couple of lines. The most strange is the error I got: Find failed: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot find the input table or query 'Person'. Make sure it exists and that its name is spelled correctly. If I rename my table1 to Person - it works ... and the question is how to map EJB to table Ejb jar contains line abstract-schema-nametable1/abstract-schema-name As I understood, this is the place where I refer my EJB to particular table. Am I wrong? I use eclipce plugin , so maybe it has some bugs Hard to believe, but possible? My class starts as follows: /** * @ejb.bean name=Person * display-name=Name for Person * description=Description for Person * jndi-name=ejb/PersonBean * primkey-field = numberFld * type=CMP * cmp-version=2.x * view-type=both * schema = table1 * * */ public abstract class PersonBean implements EntityBean { My ejb-jar as follows ?xml version=1.0 encoding=UTF-8? !DOCTYPE ejb-jar PUBLIC -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN http://java.sun.com/dtd/ejb-jar_2_0.dtd; ejb-jar ![CDATA[No Description.]] display-nameGenerated by XDoclet/display-name enterprise-beans !-- Session Beans -- !-- To add session beans that you have deployment descriptor info for, add a file to your XDoclet merge directory called session-beans.xml that contains the markup for those beans. -- !-- Entity Beans -- ![CDATA[Description for Person]] display-nameName for Person/display-name ejb-namePerson/ejb-name DbEjb.interfaces.PersonHome DbEjb.interfaces.Person local-homeDbEjb.interfaces.PersonLocalHome/local-home DbEjb.interfaces.PersonLocal ejb-classDbEjb.ejb.PersonCMP/ejb-class persistence-typeContainer/persistence-type prim-key-classjava.lang.Double/prim-key-class False cmp-version2.x/cmp-version abstract-schema-nametable1/abstract-schema-name cmp-field ![CDATA[Getter for CMP Field stringFld]] field-namestringFld/field-name /cmp-field cmp-field ![CDATA[Getter for CMP Field numberFld]] field-namenumberFld/field-name /cmp-field cmp-field ![CDATA[Getter for CMP Field dateFld]] field-namedateFld/field-name /cmp-field primkey-fieldnumberFld/primkey-field !-- Write a file named ejb-finders-PersonBean.xml if you want to define extra finders. -- !-- To add entity beans that you have deployment descriptor info for, add a file to your XDoclet merge directory called entity-beans.xml that contains the markup for those beans. -- !-- Message Driven Beans -- !-- To add message driven beans that you have deployment descriptor info for, add a file to your XDoclet merge directory called message-driven-beans.xml that contains the message-driven/message-driven markup for those beans. -- /enterprise-beans !-- Relationships -- !-- Assembly Descriptor -- assembly-descriptor !-- To add additional assembly descriptor info here, add a file to your XDoclet merge directory called assembly-descriptor.xml that contains the assembly-descriptor/assembly-descriptor markup. -- !-- finder permissions -- !-- transactions -- !-- finder transactions -- /assembly-descriptor /ejb-jar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908079#3908079 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908079 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Re: setIdentity in BaseCertLoginModule
How can i reopen this issue in JIRA? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908081#3908081 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908081 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: EJB spec violation
Goodness, this error message is eplains it all. And you are still asking what you are doing wrong? Read! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908082#3908082 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908082 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - Re: JBoss4.0.2 installation problem on Solaris9
The missing class should be in server/?/deploy/jbossweb-tomcat55.sar/naming-resources.jar. Execute jar -tvf on this file to see if it is valid and contains the class. How did you unpack the downloaded file ? Were gzip and tar successful ? Do you use solaris tar or gnu tar ? Some tar files are only extractable with gnu tar. Don't about jboss-4.0.2.tar.gz. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908086#3908086 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908086 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - java.lang.NoClassDefFoundError: javax/faces/component/UIData
hi, i've followed the wiki for faces install and get the following error. I've obviously missed something but I cannot work out what it is. I have also confirmed that the war file has the jsf libraries in. Any suggestions will be appreciated. Thanks Andrew 00:03:15,812 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception | javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError: javax/faces/component/UIData | at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:206) | at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154) | at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:386) | at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1009) | at javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1036) | at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:749) | at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:429) | at com.sun.faces.taglib.html_basic.DataTableTag.doStartTag(DataTableTag.java:473) | at org.apache.jsp.storelist_jsp._jspx_meth_h_dataTable_0(org.apache.jsp.storelist_jsp:452) | at org.apache.jsp.storelist_jsp._jspx_meth_h_form_0(org.apache.jsp.storelist_jsp:420) | at org.apache.jsp.storelist_jsp._jspx_meth_f_view_0(org.apache.jsp.storelist_jsp:193) | at org.apache.jsp.storelist_jsp._jspService(org.apache.jsp.storelist_jsp:98) | at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) | at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) | at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) | at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) | at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) | at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) | at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) | at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130) | at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) | at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:112) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159) | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) | at
[JBoss-user] [Installation, Configuration Deployment] - Finish process before JBoss Shutdown
Hi, as part of my application, I've got a Quartz job that monitors a certain directory every two minutes, for xml files dropped from other processes. When it finds a file, it picks it up and processes it and sends the result off elsewhere. I'm not quite sure about what would happen if the server was shutdown when my job is in the middle of execution. Is there any way for me to suspend the JBoss shutdown process until my job completes execution? Thanks, Arun View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908094#3908094 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908094 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - jboss with netbeans
While invoking a BMP ejbCreate() from clinet, i got this exception... using netbeans with Jboss thanks in advance RemoteException occurred in server thread; nested exception is: java.rmi.ServerException: EJBException:; nested exception is: javax.ejb.EJBException: ejbCreate: null View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908097#3908097 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908097 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - jboss start problem
Hi,I am one Chinese student and today runing jboss. Appears below the mistake.My computer before disposed one Tomcat.Is not and this related Is not and this related.I anticipate everybody can help me to solve this problem. 2005-11-21 12:41:13,837 WARN [org.jboss.system.ServiceController] Problem starting service jboss.web:service=WebServer java.lang.ExceptionInInitializerError at org.jboss.web.tomcat.tc5.Tomcat5.startService(Tomcat5.java:344) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230) .. Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@c6e1ec for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@c6e1ec for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)) Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category 2005-11-21 12:41:30,831 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing: --- Packages waiting for a deployer --- [EMAIL PROTECTED] { url=file:/E:/jboss/server/default/deploy/http-invoker.sar/invoker.war/ } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908098#3908098 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908098 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Does jboss-portal 2.0 support LDAP?
Thanks Julien and Patrick. I have got MSADLoginModule.zip. After configuration, I run portal 2.0, But I meet below error message in server console and server log file: = = = = = = = 2005-11-21 14:07:08,204 DEBUG [org.jboss.deployment.SARDeployer] create operation failed for package file:/E:/ldapPortal/server/default/deploy/jboss-portal.sar/ org.jboss.deployment.DeploymentException: Unexpected error during load of: org.jboss.portal.core.impl.user.MSADUserModule, msg=org/jboss/portal/core/impl/user/MSADUserModule (Unsupported major.minor version 49.0); - nested throwable: (java.lang.ClassNotFoundException: Unexpected error during load of: org.jboss.portal.core.impl.user.MSADUserModule, msg=org/jboss/portal/core/impl/user/MSADUserModule (Unsupported major.minor version 49.0)) at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:143) ... = = = = = = What's the possible reason? How can I solve the problem. I have decided to use jBoss AS+jBoss portal in my company instead of IBM websphere portal, but LDAP is a big problem. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908104#3908104 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908104 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossCache] - Re: TreeCache outside JBoss and transaction manager
You are right: 2PC is currently implemented over JGroups, so any (even non-XA) TxManager will do. We plan to turn JBossCache into an XAResource (2.x), so in the future you will need XA-capable TXManagers that support recover(). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908114#3908114 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908114 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossCache] - Re: Out of memory Exception using gossip router
If you could cut this down to a sample standalone (JGroups) program that uses the GossipRouter, that'd be great. Create a JIRA issue (on JGRP) and attach the program, and we'll take a look. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908115#3908115 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908115 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user