[jboss-user] [JBoss Seam] - Re: Multiple Datasources
Hello, multiple Datasources works, but only with specific databases. I think that this is a question that belongs in a forum corresponding to the container you use. Datasources are configured in a container(Tomxcat Jboss glassfish..) But see here.. http://www.jboss.com/index.html?module=bbop=viewtopict=113622 http://www.jboss.com/index.html?module=bbop=viewtopict=113633 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088681#4088681 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088681 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Easier deployment
Hello, I would like to know why the developers of seam can't create a more simple deployment for seam projects. I mean, why do I have to go through a 10 page description just to build a empty project skeleton? Run seam through the command line ? why View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088682#4088682 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088682 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Task list of specified actor
Thanks Ronald, I have tried your example, however, there doesn't seem to be a method getIdentityService(); There is a getService(String name) method, so I thought that perhaps I should pass in some sort of 'Identity Service' name, so I looked in Services.java and found these service names defined: | public static final String SERVICENAME_AUTHENTICATION = authentication; | public static final String SERVICENAME_AUTHORIZATION = authorization; | public static final String SERVICENAME_TX = tx; | public static final String SERVICENAME_LOGGING = logging; | public static final String SERVICENAME_MESSAGE = message; | public static final String SERVICENAME_PERSISTENCE = persistence; | public static final String SERVICENAME_SCHEDULER = scheduler; | public static final String SERVICENAME_JCR = jcr; | public static final String SERVICENAME_ADDRESSRESOLVER = addressresolver; There doesn't seem to be anything for an Identity Service? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088683#4088683 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088683 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Swimlane vs Actors
http://docs.jboss.com/jbpm/v3.2/userguide/html/taskmanagement.html#theidentitycomponent View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088684#4088684 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088684 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - blank tomcat project
Hello, I have attempted to create a seam project in tomcat using the seam-gen script. but have not been successful so far (even after following closely the instructions on the reference documentation) Therefore, I am now looking for a simple, blank seam project war file that would work on tomcat 6.0 with ZERO modifications. thank you View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088685#4088685 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088685 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Swimlane vs Actors
You can also use the jbpm-console to create users/actors, or directly enter users into the database, or write your own app to create users in the database. See: http://wiki.jboss.org/wiki/Wiki.jsp?page=JbpmGettingStarted View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088686#4088686 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088686 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Entity Convert
That sounds got, thanks! Could you tell me how the specify the class? I can't find anything in the seam docu or on google... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088687#4088687 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088687 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: jbossWS -
I was searching in my jmx-console but i find three entries: | jboss.j2ee: | jar=wfm-server.jar,name=WebServiceNotificationBean,service=EJB3 | | jboss.management.local: | J2EEApplication=null,J2EEServer=Local,WebModule=sanssouci-application.jar-wfm-server.jar-ws58591.war,j2eeType=Servlet,name=WebServiceNotificationBean | | jboss.web: | J2EEApplication=none,J2EEServer=none,WebModule=//localhost/wfm-server,j2eeType=Servlet,name=WebServiceNotificationBean | but in none of these sites behind the link is written something like id. sorry i am a quite newbee with the inner core of jboss, i use it mostly for hosting just my ejb's. so please tell me where exact i will find the usefull entry in the jmx-console. with great thanks ... your birke View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088689#4088689 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088689 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Need help with WAR deployment and Web Services
The Seam reference explains how to configure and package a Seam EAR to support JBossWS web services. That worked great. However, I have not been able to get JBossWS to work with a Seam WAR deployment. The endpoint is not even detected. Any suggestions? Where does standard-jaxws-endpoint-config.xml go? And does the SOAPRequestHandler only work in an EAR deployment? Any help is much appreciated. Stephen View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088692#4088692 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088692 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Inserting multiple records using Home Entity
Is it possible to insert more than one record in to database using the EntityHome object? I get following error, and not sure how to go around it. javax.persistence.PersistenceException: org.hibernate.HibernateException: identifier of an instance of au.edu.tisc.entity.OrgUserActivityLog was altered from 10001 to 10002 at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:629) at org.hibernate.ejb.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:299) In my example, I am trying to insert user activity records in to the table during the authentication process called from Authenticator.authenticate. If I insert only one record it works ok; but if I try to insert another I get error on .persist() call. @Name(authenticator) public class Authenticator { public boolean authenticate() { @In(value = activityLogger, required = false, create = true) private ActivityLogger activityLog; ... ... validate user details ... ... activityLog.log(...); --insert first record - works ok ... ... activityLog.log(...); --try to insert another - causes error ... } } @Name(activityLogger) public class ActivityLogger { public void log(OrgUser orgUser, String action) { OrgUserActivityLogHome orgUserActivityLogHome = (OrgUserActivityLogHome) Component.getInstance(OrgUserActivityLogHome.class, true); OrgUserActivityLog orgUserActivityLog = orgUserActivityLogHome.getInstance(); orgUserActivityLog.setId(KeyGenerator.getKey()); orgUserActivityLog.setAction(action); orgUserActivityLog.setOrganisationUser(orgUser); orgUserActivityLogHome.persist(); -- Above error thrown here on 2nd insert. } } I am not sure why, error occurs on 2nd call; since first record insert had already called .persist() on the Entity Home object. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088693#4088693 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088693 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Problem using expression language in a process definitio
Why do I talk about modifying the schema ? Well, I had a look at the jpdl-3.2 schema, and apparently all the objects that can handle EL have a expression attribute, whereas objects that can't don't seem to have one. For example, the action element : xs:element name=action | xs:complexType mixed=true | xs:sequence | xs:any processContents=lax minOccurs=0 maxOccurs=unbounded / | /xs:sequence | xs:attribute name=class type=xs:string / | xs:attribute name=config-type default=field | xs:simpleType | xs:restriction base=xs:string | xs:enumeration value=field/ | xs:enumeration value=bean/ | xs:enumeration value=constructor/ | xs:enumeration value=configuration-property/ | /xs:restriction | /xs:simpleType | /xs:attribute | xs:attribute name=name type=xs:string / | xs:attribute name=ref-name type=xs:string / | xs:attribute name=accept-propagated-events type=booleanType default=true / | xs:attribute name=expression type=xs:string / | xs:attribute name=async type=xs:string / | /xs:complexType | /xs:element Whereas for example for the timer element : xs:element name=timer | xs:complexType | xs:choice minOccurs=0 | xs:element ref=action/ | xs:element ref=script/ | /xs:choice | xs:attribute name=duedate type=xs:string use=required / | xs:attribute name=name type=xs:string / | xs:attribute name=repeat type=xs:string / | xs:attribute name=transition type=xs:string / | /xs:complexType | /xs:element View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088698#4088698 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088698 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: node modification event
Nobody can help me? To resume, in the cluster each node must process the event from the changes made on the cache. So, each node is symetric and must do a specific action on each event. The problem is that the node that modify the cache get the event but the predata and the postdata are the same and then the difference is null. How can I handle this event in a symetric way? And why the predata and the postdata are the same whereas the changes should be only available after commit, no? Regards. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088700#4088700 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088700 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: write a web service to invoke a process
Thanks all for your help this has really helped me to get onto the right track. Andy View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088701#4088701 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088701 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Call scheduled method from another scheduled method
Hi Gavin, I would be pleased if you could help me in this case; the org.jboss.seam.async.AsynchronousInterceptor is written by you ... Why it's not allowed to make asynchronous calls from asychronous methods ? Thanks in advance Matthias View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088702#4088702 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088702 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How to take a decision in java code
Ronald, What version of the GPD are you using to allow this functionality? I'm using 3.0.13.1, and don't see the decision handler option. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088703#4088703 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088703 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Task list of specified actor
my version is for 3.2 which has the methods View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088707#4088707 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088707 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How to take a decision in java code
Nevermind, I've read the notes on the 3.1 release, and busy downloading 3.1.0.sp1 now. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088709#4088709 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088709 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - EJB3: StandardWrapper.Throwable
I am new to EJB developmet, so i started off by writing a simple session bean which just returns a string. And I have a servlet which displays the returned string. I followed a tutorial and came up with the following files. TestStateless.java package com.j3ltd.test.ejbs; import javax.ejb.Remote; @Remote public interface TestStateless { public String testBean(); } TestStatelessBean.java package com.j3ltd.test.ejbs; import javax.ejb.Stateless; import com.j3ltd.test.ejbs.TestStateless; public @Stateless class TestStatelessBean implements TestStateless { public String testBean() { return the server returned this string; } } TestStatelessEJBServlet.java package com.j3ltd.test.web; import javax.servlet.*; import javax.servlet.http.*; import javax.naming.*; import java.io.*; import com.j3ltd.test.ejbs.*; public class TestStatelessEJBServlet extends HttpServlet { private TestStatelessBean statelessBean; public void init() { try { InitialContext ctx = new InitialContext(); statelessBean = (TestStatelessBean) ctx.lookup(TestStatelessBean/remote); } catch (NamingException e) { e.printStackTrace(); } } public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { doGet(req, resp); } public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { PrintWriter writer = resp.getWriter(); writer.write(The stateless bean returned this string: + statelessBean.testBean()); } } I have bundled the web.xml and the servlet in a .war file and the bean interface and implementation in an .ejb3 file along with jndi.properties file. when i try accessing the servlet the following is the error. I think theres a problem with the binding of the bean, and the lookup is failing. Im using JBoss 4.2.1 and eclipse 3.1 Can someone help me wid this? the stack trace is 01:48:32,055 INFO [Server] JBoss (MX MicroKernel) [4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)] Started in 32s:968ms 01:49:24,169 ERROR [[/TestInstallation]] StandardWrapper.Throwable java.lang.ClassCastException: $Proxy70 at com.j3ltd.test.web.TestStatelessEJBServlet.init(TestStatelessEJBServlet.java:18) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:806) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) 01:49:24,169 ERROR [[TestStatelessEJBServlet]] Allocate exception for servlet TestStatelessEJBServlet java.lang.ClassCastException: $Proxy70 at com.j3ltd.test.web.TestStatelessEJBServlet.init(TestStatelessEJBServlet.java:18) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:806) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at
[jboss-user] [JBoss jBPM] - Re: Problem using expression language in a process definitio
ahh... no that is not needed. The name attribute of a subprocess can also be an EL. The expression attribute is only used in situations where the 'term' expression is appropriate. In the same way you could make the repeat attribute accept an EL. but remember... test test test ;-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088712#4088712 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088712 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Problem with Apache loadbalancer, j_security_check and JBos
Hi, I am using Apache load balancer using mod_jk and Jboss as a application server. Currently in my cluster i configured two Jboss servers which are running on different machines. I am using round-robin load balancer algorithm. In my application i am using JAAS as a form based authentication. In my clustered configuration the request will be go to the server in round-robin way. I mean that if the first request goes to the first server then the second request goes to the second server and the third request goes to again first server and so on.This configuration is done without sticky session. Now the problem is if i request for login page, the request is going to first server and the login page is displayed successfully. After entering user name and password if i submit the page, the request is going to the second server and its displaying HTTP Status 400 - Invalid direct reference to form login page instead of displaying the home page of my application. I am using Apache web server 2.2.4, mod_jk 1.2.50 and JBoss 4.0.2 Application server. Can anybody help me how to solve this issue? I am waiting for your valuable response. Thanks Regards, Sudeepthi View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088710#4088710 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088710 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Task list of specified actor
I must be missing something? I was using 3.2.1, and just upgraded yesterday to 3.2.2. Neither of which have the methods. I am looking at: jbpm-jpdl-suite-3.2.1\jbpm-jpdl-3.2.1\src\jpdl\org\jbpm\svc\Services.java and: jbpm-jpdl-3.2.2\src\jpdl\org\jbpm\svc\Services.java I downloaded the releases from the links found at: http://labs.jboss.com/jbossjbpm/downloads View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088713#4088713 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088713 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB3: StandardWrapper.Throwable
anonymous wrote : private TestStatelessBean statelessBean; | | public void init() { | try { | InitialContext ctx = new InitialContext(); | statelessBean = (TestStatelessBean) ctx.lookup(TestStatelessBean/remote); | | } catch (NamingException e) { | e.printStackTrace(); | } | } Change the code to cast the returned object to the interface instead of the bean implementation class: private TestStateless statelessBean; | | public void init() { | try { | InitialContext ctx = new InitialContext(); | statelessBean = (TestStateless) ctx.lookup(TestStatelessBean/remote); | | } catch (NamingException e) { | e.printStackTrace(); | } | } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088715#4088715 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088715 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB3: StandardWrapper.Throwable
Thnx a lot jaikiranI shud've known better :-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088718#4088718 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088718 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: jboss downloads do not include jboss tools
thanks for pointing that one out. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088719#4088719 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088719 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: New creation of page through CMS fails.
Hi, I get exactly the same error. I tested Firefox 2.0.0.7 and IE 6.0.2900.2180. Did you or anyone else have solution? Best wishes Marcel. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088721#4088721 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088721 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: 01
PeterJ, Thanks for your quick replies. Here are the details that you wanted: Which storage engine are you using, MyISAM or InnoDB? What character set are you using? - I use MySQL 5.0.24a-community-nt - default-character-set=latin1 Also, I suggest you use an account other than root for the database. - I tried using mysqluser instead of root user with password pwd. But the same problem is arising. Please help me out of this problem as this is eating my valuable time and efforts. Best Regards, Ramana View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088722#4088722 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088722 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: SeamTest and expectedExceptions
This isn't working as I expect it. If an exception is thrown inside the FacesRequest(){}; and the exception isn't propagated into the test class. Tests that should fail due to exceptions are not failing.. The only way seems to be to create a try/catch-block inside each method of FacesRequest.. but that does not look nice. Does not work as I exptected: | public void test() throws Exception { | new FacesRequest() { | @Override | protected void updateModelValues() throws Exception { | setValue(#{invalidcomponent.blabla}, me is monkey. me likes to swing treez.); | } | | }.run(); | } | Does work as exptected but adds much jitter code to the tests: | public void test() throws Exception { | new FacesRequest() { | @Override | protected void updateModelValues() throws Exception { | try{ | setValue(#{invalidcomponent.blabla}, me is monkey. me likes to swing treez.); | catch(exception e){ | Fail(test failed, e); | } | } | | }.run(); | } | Is this the intended behaviour? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088720#4088720 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088720 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - cannot access method using seam and ejb3
Hi, I have a sample application (seam-ejb3-richfaces). In one page i want to use rich:tabPanel and a valueChangeListener so that to get events when i change tabs. It seems that the valueChangeListener fires the events but when it tries to execute the method i get the following warning. WARN [lifecycle] /projecttype.xhtml @73,90 valueChangeListener=#{projecttype.changeTab}: Method not found: TProjecttypeAction:a00a-2idpbn-f71lr7w3-1-f71ls2aq-a.changeTab() I post some code that can help : Interface @Local | public interface TProjecttypeInt { | | |String changeTab(ValueChangeEvent evtHandle); Session Bean @Stateful | @Name(projecttype) | @Scope (SESSION) | @Restrict(#{identity.loggedIn}) | public class TProjecttypeAction extends Search implements TProjecttypeInt{ | | public String changeTab(ValueChangeEvent evtHandle){ | if (!evtHandle.getOldValue().toString().trim().equalsIgnoreCase(edit)){ | if (currentPknId !=null !currentPknId.trim().equalsIgnoreCase()){ | pknId = Integer.valueOf(currentPknId); | tProjecttype = em.find(TProjecttype.class, Integer.valueOf(currentPknId)); | } | } | tabName = evtHandle.getNewValue().toString(); | return /projecttype.xhtml; | } | Page rich:tabPanel selectedTab=#{tabName} valueChangeListener=#{projecttype.changeTab} I cannot figure out why this happens if someone can give a hint thank you View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088724#4088724 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088724 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: could not find deserializer
I have refer that and done the simple rpc style endpoint example and i came to the same problem as I have described earlier that when my method in the webservice return any types that means String or Int it will throw me the errors while I am doing same thing with the return type void then everything works fine. So what can i do for that because i have to develop webservice that return the String. Please help me stuck to this problem since long time. Regards, Rahul View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088723#4088723 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088723 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - h:dataTable, h:selectOneMenu and s:selectItems problem
Hi, for about 1 week I'm trying to find the solution to what I'm doing. So : I'm using: Jboss AS 4.2.1 Jboss Seam 2.0.0 CR1 I want to have selectOneMenu in each row of dataTable to have opportunity to change the subgroup category of each products. The problem is in that, when I'm submitting the form NPE is thrown and it looks like the selectOneMenu value is not setted. I was also trying to change the adnotation in at sungroup to @DataModelSelection and in some way it works, but it always chooses the first value. My files: products.xhtml | h:dataTable value=#{products} var=product rendered=#{products.size 0} | h:column | f:facet name=headerChange subgroup/f:facet | h:form | h:selectOneMenu value=#{GroupsAction.newSubgroup} | s:convertEntity / | s:selectItems value=#{subs} var=sub label=#{sub.name} noSelectionLabel=Select subgroup/ | /h:selectOneMenu | h:commandButton action=#{GroupsAction.changeSubgroup(product)} value=Change/ | /h:form | /h:column | /h:dataTable | GroupsAction.java | | @Stateful | @Name (GroupsAction) | @Scope(SESSION) | public class GroupsAction implements Groups{ | | ... | | //@DataModelSelection(value=subs) | private Podgrupy newSubgroup; | | | @PersistenceContext(type=PersistenceContextType.EXTENDED) | private EntityManager em; | | | @DataModel | private List Materia products; | | @DataModel | private List Podgrupy subs ; | | @Factory(subs) | @Begin(join=true) | public void findSubs(){ | subs = em.createQuery(select pg from Podgrupy pg order by pg.grupy.idgrupy).getResultList(); | } | | @Begin(join=true) | public String changeSubgroup(Materia m){ | System.out.println(newSubgroup.getNazwapodgrupy()); | m.setPodgrupy(newSubgroup); | em.merge(m); | em.flush(); | return products; | } | | @Remove @Destroy | public void destroy() {} | | public ListPodgrupy getSubs() { | return subs; | } | | public void setSubs(ListPodgrupy subs) { | this.subs = subs; | } | | public Podgrupy getNewSubgroup() { | return newSubgroup; | } | | public void setNewSubgroup(Podgrupy newSubgroup) { | this.newSubgroup = newSubgroup; | } | | ... | } | | I have read I think all topics at forum which are connected with that problem, but I didnt find solution.So anyone have any idea why it dont want to work ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088726#4088726 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088726 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Command service vs. direct API calls
Hi. I am using an architecture where business logic and jBPM are co-located in the same JVM and share the same classloader. I am wondering whether I should systematically use the Command Service interface to interact with jBPM, versus directly using the public methods exposed by the jBPM objects. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088729#4088729 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088729 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: New creation of page through CMS fails.
Hi, short addition. I've tested on a different machine with the IE 7. This works but also not with the Firefox 2.0.0.7. Both machines are Windows XP machines. Best wishes Marcel. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088730#4088730 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088730 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: New creation of page through CMS fails.
mmm, can you verify theat the languages settings on the browser are the same ? I suspect this to be the key differenciator. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088731#4088731 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088731 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Command service vs. direct API calls
Personally, I use the direct api for this. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088732#4088732 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088732 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Entity Convert
Hi there.. I have a very similar problem. In fact I am fighting with it for weeks now, postponing its solution over and over...I don't know when it happened the first time, but it arose out of the blue. I am using Seam 1.2.1GA on JBoss 4.0.5GA with Facelets, Ajax4JSF, seam managed persisten context, and JSF 1.2 RI. It's the User entity, a select many dropdown will give me random invalid values for the select items in it. Say, there are 10 values in that list, all are shown, then the first, the 3rd and maybe the fifth will be accepted all others receive a value is not valid. On the same page I am using the selectItems with another entity type (Customer) with no problem at all. Further I am deriving my entities all from a DbItem super class which ensures ID equality and such... I tried nearly everything imaginable. Changed the entity name, refactored the class name, copied the entityConverter and overrode it with my more verbose implementation. I really have no idea why this happens only for this particular entity. I was even migrating to Seam-2CR1 tested it shortly and noticed the same problem, but with a minor difference: after trying to apply the values, i.e. submitting the form, the rerendered paged showed empty labels in the dropdown, with all values set to ??.noSelectionValue???... Does this sound familiar to anybody? Or is there anybody out there having an idea for a possible solution? Pete? thanks, Tino The XHTML piece: | h:selectOneMenu value=#{query.example.cataloguer} id=item_cataloguer | s:selectItems value=#{allUserList.resultList} var=user label=#{user.stringRep}/ | s:convertEntity/ | /h:selectOneMenu | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088734#4088734 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088734 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam-pdf examples
Hi , I am new to seam-pdf.i am able to generate the table in pdf report using p:table but not with proper cell format. So i will be grateful if i get a proper explanation of the attributes of the seam-pdf tag library and it will be most helpful to me if i can have the proper examples. Thanx in advance, Deepak Solasa View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088733#4088733 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088733 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: could not find deserializer
There's the example in our tests. See: JBOSSWS_SVN_ROOT/stack/native/trunk/src/test/java/org/jboss/test/ws/jaxrpc/samples/rpcstyle/ and JBOSSWS_SVN_ROOT/stack/native/trunk/src/test/resources/jaxrpc/samples/rpcstyle/ It returns String and it works Richard View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088736#4088736 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088736 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Cleaning database through hibernate
Hi, is there a good way to clean the whole database through hibernate? The background is as follows: I want to clean the database every time before starting a new testcase, to make sure the database is empty and in a defined state. Currently I´m doing this through dropping the scheme and restarting the session, but this takes very long. Therefor a CREATE-DROP in the hibernate-configuratoin would not be very suitable as well, as I want to prevent hibernate from doing the mapping everytime. I tried doing it through the Criteria-API, fetching all java.lang.Objects and performing a session.delete(object) on every object, but this leads to a not-null or transient object exception, although I did it in one transaction with setting the flushMode to commit. The other way I tried was doing this through HQL, but this leads to the problem, that I´m working with @CollectionOfElements which I cannot reference through hql (or at least I haven´t found a way to do it), but the HQL does explicitly no cascades. Any help would be greatly appriciated. Thomas View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088738#4088738 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088738 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: New creation of page through CMS fails.
I tried different languages combinations, but couldn't make it fail. I'm testing on FF 2.0.0.5 on Linux View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088737#4088737 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088737 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - end conversation if unexpected navigation
Hello, I would like to close the current conversation if the user perform an action not expected in the jpdl flow typically, the user clicks on a menu link while in the process of creating an account what I did first was to replace the s:link in the menu by some regular link the problem is that I then loose seam functionalities over the links such as the rendered attribute does any one think of another way of doing that ? thank you View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088739#4088739 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088739 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - java.lang.OutOfMemoryError: PermGen space
Hi While monitoring JBoss's console output, I have noticed countless different errors, all with the following cause java.lang.OutOfMemoryError: PermGen space Some of the errors include: - ERROR [ContainerBase] Exception invoking periodic operation: ... - ERROR [[/portal-weather-samples]] Session event listener threw exception - ERROR [MessageCache] Message Cache Thread Stopped: ... - ERROR [CommandServlet] Exception in command invocation ... ... and many more. I am running JBoss AS 4.2.1 on Ubuntu Linux 7.04. It is also worth noting that I have only starting getting this PermGen space problem after having installed the JBoss Forums portlet and leaving it up for around a day. The errors started long after everything deployed ok. We even wrote some posts on the forum with no errors. I am using JBoss Portal 2.6.1 and JBoss Forums 1.0.0.GA.P2.6.1 Any help would be appreciated. I hope this isn't a major issue and that it is easily solveable. Cheers, View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088740#4088740 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088740 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Task list of specified actor
a shoot you are correct... this was something I was refactoring in my local tree stupid me... I wanted to make the identity a real service ... Made the mistake to name my checkout jbpm-3.2-head. SORRY. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088741#4088741 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088741 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - rendering of UI component based on identity roles
Hello again, I want to apply rendering rules to UI components based on the identity roles ? for example only render a UI component if the user has role A only render a UI component if the user has role A or role B only render a UI component if the user has role A and role B I have tried the following | rendered=#{authenticator.identity.hasRole('admin')} | but I get this error when going to the page /clientList.xhtml @44,175 rendered=#{authenticator.identity.hasRole('admin')} Error Parsing: #{authenticator.identity.hasRole('admin')} is there someting to do with the scope of the authenticator ? thank you View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088743#4088743 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088743 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Weird s:formattedText behavior
Nuking the project and grabbing fresh CVS copy helped - no more weird output. Dunno why rebuild didn't pick up changes. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088744#4088744 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088744 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: New creation of page through CMS fails.
Hi Thomas, thanks for the hint. That is what I find out. If the browser language is English and the page language is German you will get this exception. But the other way round it works, browser language German and page language English. I think that this can leed to some confusion. Is this issue already known to the developers? I can't find anything in JIRA before I wrote my first post. Best wishes Marcel. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088747#4088747 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088747 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: no security manager: RMI class loader disabled
Hi @ all, are you sure, thats the correct solution? i've the sam e problem with jboss 4.2 and ejb3. I have two beans deployed and trying to get the Service References with 2 different ServiceLocator's in the same VM. There's no Problem with the InitialContext, but the same Exception like above. Can you specialy describe the root of the problem? I dont understand why i don't need a RMISecurityManager whether i use only one InitialContext, but need a SecurityManager if I use a second InitialContext in the same VM. Please help me... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088748#4088748 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088748 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Weird s:formattedText behavior
I just changed how errors are handled in CVS. Fundamentally, there is no difference, the SeamTextParser and s:formattedText still don't throw any exceptions. But instead of logging through STDERR internally, the parser now gives the user a chance to handle exceptions manually. The default behavior now of s:formattedText is to log any problems at WARN level. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088750#4088750 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088750 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Task list of specified actor
No problem, thanks for clearing that up. I will keep an eye out in future releases for the Identity Service. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088751#4088751 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088751 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - problem when jar and war deploy on different server
i try to deploy jar and war on different server i modified my source code as below: 1. all service component implement a @Remote interface 2. modified jndiPattern to ${project.name}/#{ejbName}/remote in build.xml 3. modified jndiPattern to \#{ejbName}/remote in components.properties 4.added a file jndi.properties into war with | java.naming.provider.url=jnp://192.168.210.24:1099 | java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory | java.naming.factory.url.pkgs=org.jboss.naming\:org.jnp.interfaces | after that, jbossAS said org.jnp.interfaces.NamingContextFactory not found, so i copied jnp-client.jar to war now i've got this exception | Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener | java.lang.IncompatibleClassChangeError | i am sure my all service components have bound as /remote from JMX i cannot find any document that can explain how to split seam project layer into several servers need help, thx View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088754#4088754 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088754 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - XML-RPC service in JBoss Seam
How can I create a Xml-Rpc Service instead of a (Soap) Webservice? @Stateless | @Name(register) | @WebService | public class RegisterAction implements Register | { | |@In |private User user; | |@PersistenceContext |private EntityManager em; | |@Logger |private static Log log; | |@WebMethod |public String registerUser(String username, String phonenumber) |{ | return Herzlich Willkommen, +username; |} | } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088756#4088756 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088756 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: New creation of page through CMS fails.
No it's not known, and will probably not be fixed in 2.6.2. I'll do my best. Thanks for figuring out the use case that fails, i'll try to reproduce and fix right now View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088755#4088755 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088755 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: New creation of page through CMS fails.
Actually this is not a really a bug, but i'm not sure it's clear from the doc neither (so that may need to be emphasized), finally the error handling should be better. The issue, is that by setting up English in your browser, it will try to get the english content for the file (your preferred locale) since it cannot get it (it doesn't exist) it falls back to your default locale set at the CMS level which is english by default. So if you plan to write all the content in German, you should gp edit portal-cms.sar/META-INF/jboss-service.xml and change: | attribute name=DefaultLocaleen/attribute | to | attribute name=DefaultLocalede/attribute | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088759#4088759 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088759 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: New creation of page through CMS fails.
Associated JIRA (for error handling): http://jira.jboss.org/jira/browse/JBPORTAL-1721 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088761#4088761 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088761 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: New creation of page through CMS fails.
Hi Thomas, thanks a lot for your assistance and the solution. Best wishes Marcel. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088764#4088764 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088764 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: New creation of page through CMS fails.
Hi Thomas, thanks a lot for your assistance and the solution. Best wishes Marcel. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088765#4088765 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088765 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Command service vs. direct API calls
I also use the direct api. Keeps things simple. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088767#4088767 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088767 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Can't see the JMX-Console Remotely or access web services
Hi Folks, I have recently upgraded from JBoss 4.0.4 to JBoss 4.2.1 and since then i can no longer see the JMX Console remotely from my PC. This is not a major problem in itself the bigger problem is that i cannot see the wsdl's of my web services deployed remotely either, nor can i post requests remotely. So my basic problem is that now i have a set of web services that cannot be accessed by anyone other than those on the box? Any ideas on this, i did read somewhere that this was a security issue that was addressed, maybe i need to set up access permissions or something but i am not sure on how to do this? Regards, Stephen View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088770#4088770 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088770 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: POJO Cache as singleton?
Hi Bruce. Will it be possible to tell me if you've found a solution to your question ? I am having a problem which seems related to what you are asking. I want to access a JBossCache instance from several places in the same application, but am unable to do so. I would have thought that JBossCache would have a single instance of the cache and manage it behind the scenes .. so that the same cache can be accessed from anywhere in the JVM. This doesn't seem to be the case though. Am I correct in my assumption that this kind of functionality is not supported and that a developer will have to build it in him/herself by using a singleton or some other related solution ? Thanks for your time and help View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088772#4088772 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088772 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: rendering of UI component based on identity roles
try: | rendered=#{s:hasRole('admin')} Read the section on security in the user interface in the reference. Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088773#4088773 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088773 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Number of users connected?
Is there a way in JBoss to see the number of users connected to the server? And to identify each connection? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088774#4088774 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088774 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: Monitoring and managing clustered servers
How are you collecting individual counters and statistics? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088775#4088775 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088775 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 2 CR1 upgrade issues
The XML parsing in JSF 1.2 RI is stricter than in MyFaces. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088782#4088782 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088782 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: multiple calls to same method from s:div rendered...
Use lazy initialization - @Factory does this for you. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088783#4088783 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088783 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam don't set the invalid after an ajax request
#{invalid} is made available by s:decorate - reRender the s:decorate, not its contents. Follow the examples! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088784#4088784 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088784 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Security Auto-Login Question
We need also NTLM authentication and the configuration is quite apparent. However to me is not clear how to obtain the HTTP-request-headers from my authenticator.autenthicate() EJB3 bean-method in order to call request.getRemoteUser(). Seam provides Annotation for @RequestParameter, but I don't see anything like @HttpRequest to inject to javax.servlet.HttpServletRequest any suggestion is appeciated. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088785#4088785 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088785 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Directory Path on Jboss server
hello, i will express my self differently, i want to have the current directory's path of my project on jboss server. thank you View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088787#4088787 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088787 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Security Auto-Login Question
Hi, I will get around to posting this up on the WIKI but the 'day job' is currently taking up more than it's fair share of time. When it all calms down i'll get it done. In answer to your query I use: @In Context sessionContext; | | ... | | ((NtlmPasswordAuthentication) sessionContext.get(NtlmHttpAuth)).getUsername() | | This allows me to extract the current session user's username, which I then pass off to the real authentication/authorisation code. Hope this helps. Craig View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088789#4088789 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088789 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam + stored procs: what's the recommendation?
Just wondering what the official Seam recommendation/stance is regarding using sprocs with Seam web apps? Other than being tied down to a particular DB vendor due to differences in the SQL syntax, we are aware of this problem. I've read Gavin King and Martin Fowler stating a good reason to use sprocs is for maximum performance. Assume that this is not an issue for us. I've done this with a simple use case recently and found resultsets cumbersome to use (dataTables and looping, etc) esp. with dynamic columns. Also, you can't use the Hibernation Validator annotations on the getter methods of the entity bean class (and in JSF using s:validate or s:validateAll tags). Any other Seam/JSF/EJB3 advantages we'd lose out on? Yes, I know about caching and lazy-loading. The three Seam books I have did not mention sprocs or resultsets at all, as I recall. So is it basically recommended to convert legacy sprocs to entity beans or POJOs? Not to create new sprocs at all for Seam app use? And obviously, thanks to a reply on here, we learned it's best to use DataSource (connection-pooled) rather than DriverManager to get DB connections to minimize overhead. thx. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088798#4088798 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088798 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Does the JPA/tomcat example require Embedded Jboss?
ASavitsky wrote : thejavafreak wrote : It's not ambiguous. | | | | Point 1 means that Seam can run without EJB3 container by just using Plain Pojo + Hibernate and not JPA + EJB3 | | Actually, it's Plain POJO + JPA, as JPA can be used in J2SE :) Well there's nothing wrong with saying JPA + Hibernate right? Seam also provides plain hibernate too ;) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088799#4088799 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088799 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Sub process exception handling, strange behaviour
Hi, It seems that exceptions occuring in a subprocess can be handled by a wrong exception handler: According to the source code (ProcessState.java), if an exception has occured during sub process execution, no exception handler is called at the process state level. If the node before the process state is of type Node, the exception will be catched in the execute method, and then possibly call this node's exception handler. Here's a unit test to illustrate this: package test; | | import org.jbpm.graph.def.ActionHandler; | import org.jbpm.graph.def.ProcessDefinition; | import org.jbpm.graph.exe.ExecutionContext; | import org.jbpm.graph.exe.ProcessInstance; | | import junit.framework.TestCase; | | public class Test extends TestCase { | | public static String actionHandler = null; | | public void test() throws Exception { | ProcessDefinition def = ProcessDefinition.parseXmlResource(main/processdefinition.xml); | ProcessInstance p = def.createProcessInstance(); | | p.signal(); | | // The exception thrown in the subprocess has been handled by the Node1 exception handler. | assertEquals(Node1, actionHandler); | | } | | | public static class ProcessStateExceptionHandler implements ActionHandler { | | public void execute(ExecutionContext executionContext) throws Exception { | actionHandler = ProcessState; | } | } | | public static class Node1ExceptionHandler implements ActionHandler { | | public void execute(ExecutionContext executionContext) throws Exception { | actionHandler = Node1; | } | } | | public static class ProcessDefinitionExceptionHandler implements ActionHandler { | | public void execute(ExecutionContext executionContext) throws Exception { | actionHandler = ProcessDefinition; | } | } | | public static class Node1ActionHandler implements ActionHandler { | public void execute(ExecutionContext executionContext) throws Exception { | executionContext.leaveNode(); | } | } | | public static class Node2ActionHandler implements ActionHandler { | public void execute(ExecutionContext executionContext) throws Exception { | throw new Exception(); | } | } | } | Main process : ?xml version=1.0 encoding=UTF-8? | | process-definition | xmlns=urn:jbpm.org:jpdl-3.2 name=main |start-state name=start | transition name= to=node1/transition |/start-state |node name=node1 | action class=test.Test$Node1ActionHandler / | transition name= to=process1/transition | exception-handler | action class=test.Test$Node1ExceptionHandler / | /exception-handler |/node |process-state name=process1 | sub-process name=sub/ | transition name= to=end1/transition | exception-handler | action class=test.Test$ProcessStateExceptionHandler / | /exception-handler |/process-state |end-state name=end1/end-state |exception-handler | action class=test.Test$ProcessDefinitionExceptionHandler / | /exception-handler | /process-definition sub process : | ?xml version=1.0 encoding=UTF-8? | | process-definition | xmlns=urn:jbpm.org:jpdl-3.2 name=sub |start-state name=start | transition name= to=node2/transition |/start-state |end-state name=end1/end-state |node name=node2 | action class=test.Test$Node2ActionHandler/ | transition name= to=end1/transition |/node | /process-definition | Shouldn't there be a try { } catch (Exception) { raiseException(exception, executionContext);} in the excecute() method of the process state, so that the exception handler mechanism works with that kind of node? If not, how are we supposed to deal with exceptions occuring in a sub process? Regards, Erwan View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088800#4088800 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088800 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Square buttons
Greetings all, I used seam-gen to generate an Eclipse seam project and when I run the app, all of my html input type=buttons are 2d squares not rounded 3d buttons. What did I do incorrectly? Earnie! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088801#4088801 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088801 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: jbpm configuration error
Make sure your jbpm-jpdl.jar is deployed to the lib folder in your ear. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088802#4088802 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088802 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - JBossCache - configuring multiple instances (i.e. both LOCAL
We have had good results with JBC in both local and replicated (REPL_ASYNC) CacheModes, using JBC as Hibernate's L2 cache. Now we need to do a little of both: some objects need replication and some should stay local. Any pointers on how I can configure this? thanks much Carl View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088809#4088809 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088809 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: problem to add data with jboss to postgresql
all the error is : | 2007-09-24 11:38:46,704 DEBUG [org.hibernate.util.JDBCExceptionReporter] Could not execute JDBC batch update [insert into Contact (address, city, firstname, lastname, mobile, phone, zipCode, id) values (?, ?, ?, ?, ?, ?, ?, ?)] | java.sql.BatchUpdateException: L'élément du batch 0 insert into Contact (address, city, firstname, lastname, mobile, phone, zipCode, id) values (montplaisir, tunis, thyna, soft, 24, 71, 1002, 3) a été annulé. Appeler getNextException pour en connaître la cause. | at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError(AbstractJdbc2Statement.java:2530) | at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1317) | at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:350) | at org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc2Statement.java:2592) | at org.jboss.resource.adapter.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:519) | at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48) | at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:242) | at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235) | at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139) | at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298) | at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) | at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) | at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338) | at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:515) | at org.jboss.tm.TransactionImpl.doBeforeCompletion(TransactionImpl.java:1491) | at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1110) | at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:324) | at org.jboss.tm.TxManager.commit(TxManager.java:240) | at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:175) | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87) | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77) | at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:211) | at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79) | at $Proxy66.addContact(Unknown Source) | at com.labosun.cj.web.servlet.AddContactExecuteServlet.doPost(AddContactExecuteServlet.java:31) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | 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.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | 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.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at
[jboss-user] [JBoss Seam] - EJB-QL - simple query problem :/
As i read in documentation I'm allowed to use EL in queries. So supported with this article : http://www.hibernate.org/hib_docs/entitymanager/reference/en/html/queryhql.html i produced the following piece of code User existing = (User) em.createQuery(SELECT OBJECT(u) FROM User u WHERE u.login=#{newUser.login} AND u.passwdHash=#{newUser.passwdHash}).getSingleResult(); AFAiK the query itself should be correct. But at runtime i get the following exeption : http://phpfi.com/265208 Shouldnt it return null if no results were found ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088813#4088813 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088813 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - DocumentStore usage
Hi, I'm trying to serve a PDF from the database through the DocumentStore but when I try to get an instance with | String id = DocumentStore.instance().newId(); | I just get a | Caused by: java.lang.ClassCastException: org.jboss.seam.pdf.DocumentStore_$$_javassist_12 | (also tried variation of DocumentStore ds = DocumentStore.instance() and Component.getInstance() but to no avail) How should it be used? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088815#4088815 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088815 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: getting the selectedItem via JavaScript
http://jira.jboss.com/jira/browse/JBSEAM-1801 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088817#4088817 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088817 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: blank tomcat project
Why don't you post your error. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088818#4088818 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088818 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Inserting multiple records using Home Entity
Seam 2.0.0.CR1 comes with a clearInstance() method that should allow you to resuse an EntityHome View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088821#4088821 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088821 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Can't see the JMX-Console Remotely or access web service
Have a look at http://wiki.jboss.org/wiki/Wiki.jsp?page=JBoss42FAQ View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088823#4088823 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088823 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Problem with running an Application with JBoss
Hi everyone, I just started developing application using JBoss . I always use Sun Application Server to deploy and run my application but I also want to use JBoss Application Server to run my application. So I got the Jboss Start Guide to put me throught and I have also gotten all what i need to run it, but when I try to run the ant script which I will use to compile the source codes, I just start seeing some errors like : BUILD FAILED /root/Desktop/ghelp/j2eetutorial14/jbossj2ee-src/bank/jboss-build.xml:50: /root/Desktop/ghelp/j2eetutorial14/jbossj2ee-src/bank/-- FIXME: Point to JBoss 3.2.x installation/client not found. Hope someone can help out, I will be very glad to see this done. Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088824#4088824 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088824 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Call scheduled method from another scheduled method
http://jira.jboss.com/jira/browse/JBSEAM-1918 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088826#4088826 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088826 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Is this a JBP 2.6.1 bug? (403 Error From Dashboard Link)
I have a custom JAAS LoginModule configured for JBP 2.6.1, running in AS 4.0.5. After logging in, everything looks alright with the page. The only problem is that when I click the Dashboard link, I get a 403 Access Denied error. I have added Authenticated, Users, Admin roles to the user in my LoginModule, and I see Logged in as 'my user' and also I have the Dashboard | Admin |Logout links on the page after signing in. The Admin and Logout links work correctly. When I click on the Dashboard link, I get the 403 error, but there are no exceptions when I check the log. Is it possible that this is a bug in JBP 2.6.1? If not, is there any way to turn on a lower level trace? I do not see anything in the LoginModule examples that would imply that it is necessary to link a user with a dashboard, programmatically speaking. Here is my LoginModule. Can you please let me know if the 403 is due to a bug in the portal, or if I am doing something wrong when adding the roles (see getRoleSets())? Thank you for any light that you can shed. | package test.custom.jaas.impl; | | import java.io.IOException; | import java.security.Principal; | import java.security.acl.Group; | import java.util.Map; | | import javax.naming.NamingException; | import javax.security.auth.Subject; | import javax.security.auth.callback.Callback; | import javax.security.auth.callback.CallbackHandler; | import javax.security.auth.callback.NameCallback; | import javax.security.auth.callback.PasswordCallback; | import javax.security.auth.callback.UnsupportedCallbackException; | import javax.security.auth.login.LoginException; | | import org.apache.log4j.Category; | import org.jboss.security.SimpleGroup; | import org.jboss.security.SimplePrincipal; | import org.jboss.security.auth.spi.AbstractServerLoginModule; | import test.jaas.LoginAuthenticator; | import test.jaas.LoginAuthenticatorFactory; | import test.login.exception.LoginConfigurationException; | | public class SsoPortalLoginModule extends AbstractServerLoginModule | { | private static final String SSO_USER_PROMPT_TEXT = User Name: ; | private static final String SSO_PASSWORD_PROMPT_TEXT = Password: ; | | private static final Category logger = Category.getInstance(SsoPortalLoginModule.class); | | private CallbackHandler callbackHandler = null; | private boolean successfulLogin = false; | private String loginUser = null; | private String loginPassword = null; | private Principal identity = null; | | /** | * Default constructor | */ | public SsoPortalLoginModule(){logger.info(% CALLING SsoPortalLoginModule constructor from PORTAL %);} | | /** | * Initialization method that is called by the container. Subject represents the user or service that is logging in | * and will be populated automatically. Callbackhandler is also populated by the JBoss portal because this implementation | * extends AbstractServerLoginModule | * | * @param Subject subject | * @param CallbackHandler callbackHandler | * @param Map sharedState | * @param Map options | */ | public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options) | { | logger.info(% CALLING SsoPortalLoginModule.initialize() method from PORTAL %); | | // Call base class constructor. This is a requirement. | | super.initialize(subject, callbackHandler, sharedState, options); | | // Set internal state | | setSubject(subject); | setCallbackHandler(callbackHandler); | setSharedState(sharedState); | setOptions(options); | | // Set base class' loginOk variable. This flag must be set as | // a requirement for successful login | | resetLoginOKInBaseClass(); | } | | /** | * Set subject. This object represents the user or service that is logging in. | * | * @param Subject subject | */ | private void setSubject(Subject subject) | { | this.subject = subject; | } | | /** | * Login method that is called by the container | * | * @return boolean | */ | public boolean login() throws LoginException | { | return executeLDAPLogin(); | } | | /** | * Execute LDAP login | * | * @return boolean | */ | private boolean executeLDAPLogin() | { | try | { | | // Get credentials: | | getCredentials(); | | //
[jboss-user] [JBoss Seam] - Re: h:dataTable, h:selectOneMenu and s:selectItems problem
Post the NPE View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088828#4088828 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088828 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM 3.2 using CMT
Ok, binding JBoss' Hibernate Session Factory to JNDI via persistence.xml: | persistence-unit name=MyEJBPU transaction-type=JTA | jta-data-sourcejava:jdbc/myDS/jta-data-source | properties | property name=hibernate.dialect |value=org.hibernate.dialect.Oracle9iDialect / | property name=hibernate.hbm2ddl.auto value=update / | property name=hibernate.ejb.cfgfile value=/hibernate.cfg.xml / | property name=hibernate.session_factory_name value=java:/MyFactory / | property name=hibernate.use_sql_comments value=true / | property name=hibernate.show_sql value=true / | /properties | /persistence-unit | and referencing this in jbpm.cfg.xml: | jbpm-context | service name=persistence | factory |bean class=org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory | field name=sessionFactoryJndiName | string value=java:/Argos3Factory / | /field |/bean | /factory | /service | ... | seems to help. And never forget to inject the container's Hibernate session into the JbpmContext. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088830#4088830 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088830 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM 3.2 using CMT
Ups ... tried to anonymize but missed something ... of course it is | string value=java:/MyFactory / | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088831#4088831 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088831 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: EJB-QL - simple query problem :/
Read the contract of getSingleResult() (No). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088834#4088834 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088834 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam + stored procs: what's the recommendation?
Have you read http://www.hibernate.org/hib_docs/reference/en/html/querysql.html? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088833#4088833 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088833 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Inserting multiple records using Home Entity
Thanks Pete, I will try out Seam 2. In the meanwhile I had worked it around by creating new instance of entity object and then assigning that to entityhome using setInstance() method. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088836#4088836 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088836 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Re: howSwap in JBoss Application Server
Hi! To run JBoss AOP in hotswap mode, you need to pass the -hotSwap option to the jdk50 agent: $ java -cp=classpath as described above -Djboss.aop.path=path to jboss-aop.xml \ | -javaagent:jboss-aop-jdk50.jar=-hotSwap com.blah.MyMainClass To see more on this, refer to the Reference Manual, item 11.2.3 (HotSwap) However, we don't advise the usage of this feature since we have some issues with the jvm that need to be solved. Fortunately, hotswap is not the only way to interweave aspects into already loaded classes. You can do this using anyone of the weaving modes. You just need to follow the dynamicAOP example of our tutorial. Notice that this example should work on all modes, including loadtime weaving with hotswap enabled. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088835#4088835 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088835 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Entity Convert
You should try upgrading to Seam2 - the entity converter is significantly different. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088837#4088837 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088837 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Problem when accessing JMX(RMIAdaptor) from JNDI namespace o
Hi All, I have problem to lookup RMIAdaptor from the JNDI namespace of Jboss. The code that I have written is follows. import java.util.Properties; import javax.naming.InitialContext; public class ServiceLocator { public static void main(String[] args) { try { Properties enviornment = new Properties(); enviornment.setProperty(java.naming.factory.initial,org.jnp.interfaces.NamingContextFactory); enviornment.setProperty(java.naming.provider.url,jnp://localhost:1099); enviornment.setProperty(java.naming.factory.url.pkgs,org.jboss.naming:org.jnp.interfaces); InitialContext initialContext = new InitialContext(enviornment); initialContext.lookup(jmx/rmi/RMIAdaptor); } catch(Exception e) { e.printStackTrace(); } } } When I am executing the program I am getting the following exception javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.invocation.InvokerInterceptor; unable to create instance]] at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1067) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:700) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587) at javax.naming.InitialContext.lookup(InitialContext.java:351) at ServiceLocator.main(ServiceLocator.java:17) Caused by: javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.invocation.InvokerInterceptor; unable to create instance] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587) at javax.naming.InitialContext.lookup(InitialContext.java:351) at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1061) ... 4 more Caused by: java.io.InvalidClassException: org.jboss.invocation.InvokerInterceptor; unable to create instance at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1700) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.skipCustomData(ObjectInputStream.java:1877) at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1765) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1711) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339) at org.jboss.proxy.Interceptor.readExternal(Interceptor.java:80) at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1711) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339) at org.jboss.proxy.Interceptor.readExternal(Interceptor.java:80) at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1711) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339) at org.jboss.proxy.ClientContainer.readExternal(ClientContainer.java:156) at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1711) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339) at java.rmi.MarshalledObject.get(MarshalledObject.java:135) at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:652) ... 7 more Can anybody help me please? Regards, Gourab Guha View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088840#4088840 Reply to the post :
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: problem to add data with jboss to postgresql
Take a look at the stacktrace: | 2007-09-24 11:38:46,754 ERROR [org.hibernate.util.JDBCExceptionReporter] ERROR: duplicate key violat es unique constraint contact_pkey | the problem in in your application View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088839#4088839 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088839 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 2 migration problem
What is the layout of your deployed ear and war? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088841#4088841 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088841 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Scheduling Steteful Session scoped bean
Read about Asynchronous support in the Seam reference manual View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088842#4088842 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088842 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Call scheduled method from another scheduled method
Thanks very much! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088844#4088844 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088844 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam and batch/queue-processing
If i start an Asynchronous method with an IntervalDuration assigned, the interval will be timed from the last 'start' of the method not from the the last execution-end. This causes the Tasks to be launched in parallel if the previous task was not finished because it needs longer than the interval is set. In fact i need a sequential execution of tasks in an asynchron fashion (a thread which runs from application-deploy to undeploy) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088848#4088848 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088848 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: problem to add data with jboss to postgresql
so why it work good; only it have a problem in the first try to add View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088846#4088846 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088846 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How to access to the JBoss Seam CVS ?
Hi all, I want to use the SeamBuy example and it is only accessible in the CVS. How can access to it ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088849#4088849 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088849 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Entity Convert
@ffh: The tag convertEntity doesn't have any attributes. And as far as I can see, the EntityConverter is intelligent enough to recognize classes. Perhaps the problem is not the EntityConverter but the implementation of h:selectManyMenu? Since nusseis doesn't have problems with selectOneMenu. @Peter: I got the same advice from you. But I think that updating to Seam2 is only imaginable when Seam2 is released. I read a few times about this selection is invalid problem. Maybe they are all caused by the same little bug. Would be nice if this could be fixed. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088850#4088850 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088850 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user