[jboss-user] [Installation, Configuration & Deployment] - Re: Setting up an Interceptor on jBoss
Hi Hans-Martin, maybe I'm not understanding your problem correctly, but here is what I would do: 1. You have a jsp with a form that has an action that points to a servlet. 2. In this servlet you are handling the request. You could have one servlet for each button or one servlet for all and then decide inside the servlet which button was the source of the click. In the servlet you call an EJB (Session Bean) with a method like "buttonPressed(ButtonDescription description)". 3. This EJB calls a Message Driven Bean (the JMS component) that does the asynchronous communication. This is where I don't understand the task, because this action is simple and fast, so why does it have to be JMS and asynchronous? 4. The MDB calls an EJB that saves the data in the database. The reason for the EJB -> MDB -> EJB is, that an MDB should be called from the business logic and should call business logic. Its only reason to exist is that is lets the first EJB return at once and not block the client. Another possibility is that your professor meant the Interceptor Chain of JBoss. Then you would have to implement a class that implements Interceptor (a JBoss class, you should look in the docu). This class does the save of the button click and is put in the interceptor chain of an EJB in server//conf/standardjboss.xml. But this makes no sense because the interceptor can not decide which button has been pressed and it is executed at every EJB-invocation, where the EJB has this invoker-proxy-binding. If I understood you wrong, you would have to clarify this a bit for me. Greetings, Peter View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989586#3989586 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989586 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: Create Session Factory
I don?t know what hibernate session factory does but you can have a POJO which encapsulates the functionality of creating the session factory . This POJO needs to defined in the jboss-beans.xml file and deployed in the kernel, this is done by bootstrapping. You got to refer to this link to know how to use the POJO which are deployed in the kernel http://docs.jboss.org/nightly/microkernel/docs/gettingstarted/en/html/ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989587#3989587 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989587 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: Strange results with twiddle.sh when Jboss is down
Hi, Thanks Dimitris for your answer. I've search for the option but I can't find it. As you told me, in the org.jboss.console.twiddle.Twiddle.java, I can see: Properties props = new Properties(System.getProperties()); props.put(Context.PROVIDER_URL, serverURL); ctx = new InitialContext(props); So It seems that I can set a system Property for the InitialContext. I've searched for an option to disable multicast in javax.naming.InitialContext but I was not able to find it. Does anyone know which property I have to set? Thanks, Bruno Cosnefroy View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989588#3989588 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989588 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - JMS clustering and the backing Database
Hi there, I've got an System with two servers on each of them I've got a JBoss and a postgresql database. The both Jboss-servers are clustered. The postgres-databases are replicated by c-jdbc. Now we need also jms (and of course clustered). As described in the documentation I've changed the default-datasource from hsqldb to the postgres-database. But can I replicate them also with c-jdbc? Which node writes to the database if the node receive an message? Are both writing to their own database? Or is it possible to replicate them? The documentation wasn't very helpfully on this issue. Thanks for your help. Marc View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989589#3989589 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989589 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam promote bad design?
I know it is a small problem, but when i go through the seam document (all documents,articles in the internet), I found all the action code actually has mixed responsibility: page navigation and business logic. See the following code from book demo: @Stateless (1) @Name("register") public class RegisterAction implements Register { @In (2) private User user; @PersistenceContext (3) private EntityManager em; @Logger (4) private Log log; public String register() (5) { List existing = em.createQuery("select username from User where username=:username") .setParameter("username", user.getUsername()) .getResultList(); if (existing.size()==0) { em.persist(user); log.info("Registered new user #{user.username}"); (6) return "/registered.jsp"; (7) } else { FacesMessages.instance().add("User #{user.username} already exists"); (8) return null; } } } the register function actually has dual resonsibility which broke a fundametal OO design principle:Single-Resonsibility-Principle. and all the generated seam code is same. Would it be better that an official tutorial providing better sample code? No offense. I do like SEAM. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989590#3989590 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989590 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: jbossws1.0.x is a preview implementation with support fo
I didn' want to start a flame. In fact I didn't understand you refer to client. It seems to have trouble, we don't use it except in some little use case. We works mainly on the server side. IMHO opinion jboss still the best AS on the market. And I mean the best one, not the best open source. I started to use jboss since 2.0 (first production environment 2.4.1) and I read forums and ML since the beginning. I agree with you, a lot of things changed, community is changed (more noise) and jboss' staff become more and more busy. Before someone other of the staff will tell you: The only sure way to get immediately feed back is the professional support. The community support is not so responsive, and mainly intend for guys wearing "engineer white coat". :) This is just my humble opinion, my impression and I'm just a user like you...really passionated end user. Next days we have to implement ws clients and I'll keep you post of our result or problem. Well the goal of project is 2nd quarter 07 and I don't exclude to use jbossws 2.0CR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989592#3989592 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989592 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: Automatically remove log-files
Hi, I don't think JBoss has a feature for that. Instead you can use a RollingFileAppender like this: | | | | | | | | You need to figure out how much log output your server produces in a month. Regards, Alex View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989593#3989593 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989593 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Proposal of improvement or problem sollution kindly requ
No! I'm saying that there is bug in implementation of end() method. There is missing line that I wrote above in src. And if you want to get transition name inside Event action, you cannot, cause it's not set. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989594#3989594 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989594 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - logging in .sar files help...
Hi All, I have a .sar file where the requirement is such that i need to write the logs at two places. I dont have log4j.jar in my .sar file. All I have is log4j.xml (configuration file) just in root dir. (.sar/). The .sar file contains WebInf dir and also metaINF dir. I have include the part of log4j.xml file. Could anyone please help me in this regard. I have a log4j.xml at container level, that will take care of logging in centralised location. First appender will take care of centralized logging. And the second appender, locally. But i am not able to write it to both the locations. please let me know, if i am making any mistake xml version="1.0" encoding="UTF-8 log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"; debug="false" appender name="SunAm" class="com.systemmanagement" errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/ /appender appender name="test1" class="org.apache.log4j.RollingFileAppender" param name="Threshold" value="INFO" / param name="File" value="/logs/test.alog"/ layout class="org.apache.log4j.PatternLayout" param name="ConversionPattern" value="%d %-5p[App1] (%F:%L) [%c{1}] %m %n" / layout appender logger name="com.nortel.systemmanagement" additivity="false" level value="INFO" / appender-ref ref="test1"/ appender-ref ref="SunAm"/ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989595#3989595 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989595 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - configurating jbpm to run on tomcat
I'm new to jbpm and I want to configure jbpm to run on tomcat. Can someone help me to that? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989596#3989596 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989596 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam 1.1 & Tomahawk Datatable
Hi, I'm trying to migrate to Seam 1.1 and having some problems. I hope that somebody can help. On several pages in my application I make use of the DataModelWithTomahawkDataTable workaround mentioned on the wiki (http://wiki.jboss.org/wiki/Wiki.jsp?page=DataModelWithTomahawkDataTable). Since I use Seam 1.1 this workaround doesn't work anymore. Or I made a mistake. The workaround proposes to annotate a method as @Factory("xyz") for a member and to annotate the corresponding getter with @DataModel. So when I use "xyz" on a page there are two methods related to the attribute. In the past the @DataModel was invoked, but now it seems that the @Factory is invoked. That's fatal since the @Factory returns String (in the wiki it returns void) so all the subsequent calls to the "var" of the dataTable are invoked on the String. That's one problem. The other problem also has to do with this workaround and I hope it will disappear when the first problem is fixed. There has to be something wrong with the column member which is introduced to make a dataTable sortable, but I don't know what's wrong with it at all. And there's only a stack-trace which doesn't tell me anything useful. Perhaps somebody else knows what's the problem: 16:44:25,500 ERROR [ExceptionInterceptor] redirecting to debug page | javax.ejb.EJBException: java.lang.IllegalStateException: No page context active | at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69) | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83) | 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.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83) | 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.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203) | at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98) | at $Proxy220.setColumn(Unknown Source) | at com.idsscheer.ares.sessions.interfaces.TestactionValidator$$FastClassByCGLIB$$18d04061.invoke() | at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) | at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45) | at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:69) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55) | at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39) | at sun.reflect.GeneratedMethodAccessor299.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18) | at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64) | at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:28) | at sun.reflect.GeneratedMethodAccessor270.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18) | at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64) | at org.jboss.seam.interceptors.SynchronizationInterceptor.serialize(SynchronizationInterceptor.java:30) | at sun.reflect.GeneratedMethodAccessor298.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) |
[jboss-user] [Installation, Configuration & Deployment] - Re: JBoss Start Time
Some tips here: http://wiki.jboss.org/wiki/Wiki.jsp?page=DeployTipsAndBuildSampleScripts http://wiki.jboss.org/wiki/Wiki.jsp?page=ExplodedDeployment http://wiki.jboss.org/wiki/Wiki.jsp?page=RedeployAnApplicationWhenChangeAFileInAnExplodedDeploymentDirectory View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989598#3989598 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989598 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: Large number of files in the WAR directory
Hello, thank you for response, however it will not help. I made some investigation. DeploymentScanner scans for file that should be deployed, i.e. my WAR directory. However, when it decides to deploy the WAR directory it calls so called MainDeployer. The deployer then calls TomcatDeployer which is actually responsible for deploying WAR. What I need is to configure TomcatDeployer to make it skip the selected directory. Is it possible? I haven't traced TomcatDeployer source file yet. Regards Michal View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989599#3989599 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989599 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 1.1 & Tomahawk Datatable
Could U show some code? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989600#3989600 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989600 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Value is not a valid option.
fonseca, No, id equality is not an absolute requirement. Lets say you have a nationality dropdown; we'll call the objects looked up for the dropdown v1, and the the objects looked up by the entity converter v2. In the dropdown you select British as your nationality (which is Britishv1); the EntityConverter does a lookup based on id and retrieves a new copy of the British object (Britishv2). You need to make sure that Britishv1.equals(Britishv2) and must assume that they are looked up in different persistence contexts. What this boils down to as a general rule is that you must compare on some unique property. I'll take a fresh look at lifting this requirement. Jason, is the id a primitive or an object? If its an object remember (object1 == object2) != (object1.equals(object2) The Validation error says 'value is not a valid option' is given by myfaces if it cannot find the selected object in the original list, so yes, by this point the entity converter has looked up the correct objects, it's just they aren't equal. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989601#3989601 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989601 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam promote bad design?
To my opinion this is a pretty standard way of using JSF, so it's quite logical to map the same examples to Seam. I do agree that it's not the best seperation of concerns, but on the other hand it works pretty well like this. Specially for smaller applications I see no good reasons to do differently. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989602#3989602 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989602 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JSF requiredMessage does not work with seam bundle
I ran in that problem few days ago while struggling with @NotNull validation. I then wanted to use the requiredMessage attribute and could not manage to have it work After looking at the code, I discovered that it is not implemented in myfaces-core-1.1.4! I don't know if there are any implementation of javax.faces fully implements the standard and are compatible with seam. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989603#3989603 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989603 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Setting up an Interceptor with jBoss
Hello, my name is Hans-Martin. I am a student from Germany. I have a very big problem. My Professor wants me to send events via JMS to a Complex Event Processing Platform. First of all my professor gave me the simple job to create a jsp with 4 Buttons. He wants to see ?something move??. The task is following: Every time a button is pushed it calls a Method on a Servlet/Bean. The Interceptor realizes this call and creates a simple ?Button_X-was-pushed? event (for example as a string) . This event will be sent via JMS to a CEP Platform which checks for patterns like ?Button_X was pushed? and updates a database which counts the pushes of a single Button. This database can be called by a simple page/dashboard to show the number of times a button was pushed. All that must be realized on jBoss. It is a pretty simple example but we have absolutely NO idea of jBoss, how I can plug in the interceptors or send JMS messages. What software do I need for this ? Do I need EJB3.0 for that task ? Do you know a tutorial for the installation/implementation/configuration ? I donĀ“t even know how what project I have to create in jBoss IDE for eclipse. I created an jBossAOP Project. And it was pretty simple to connect an Interceptor to a method of another class. But I am not able to do this in a dynamic Web Project (for JSPs, Servlets and so on) PLEASE HELP ME. I have just 1 week to do this :( Haensel View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989604#3989604 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989604 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: NoClassDefFoundError WebCallbackHandler with NegotiateKe
copy (not move) tomcat55-service.jar from deploy/jbossweb-tomcat to server/default/lib perhaps someone has a better solution? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989605#3989605 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989605 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: packaging ear with datasource and jdbc driver
I think .sar files are first to be deployed. In your case mysar.sar executes something before the rest of the files get to be deployed. That's why you get the Exception. Read more about the jboss-service.xml... | C:\jboss-4.0.2\server\default\conf\jboss-service.xml | ... | | | | | | | | | jboss.system:service=MainDeployer | | | org.jboss.deployment.DeploymentSorter | | My EAR file contains META-INF/application.xml which looks like this | | My App | | core.jar | | | session.jar | | | services.sar | | | The services.sar archive is deployed last. I had to configure the stuff below in my META-INF/jboss-service.xml in the services.sar file. I execute some methods right after my applications has been successfully deployed. | | | | | | | | true | :name=MyServiceNumberOne | create() | NOW | 1 | 1 | jboss.j2ee:module=session.jar,service=EjbModule | | | | | | | true | :name=MyServiceNumberTwo | create() | NOW | 1 | 1 | jboss.j2ee:module=session.jar,service=EjbModule | | | | | Regards, Alex View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989606#3989606 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989606 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 1.1 & Tomahawk Datatable
Sure. Here we go: The session bean: @Stateful | @Scope(ScopeType.SESSION) | @LoggedIn | @Name("searchTestaction") | public class SearchTestactionAction implements Serializable, SearchTestaction { | @PersistenceContext(unitName = "aresDatabase") | private transient EntityManager em; | | @In(required=false) | private Testaction testaction; | | private List foundTestactions; | @DataModelSelection | @Out(required=false, scope=ScopeType.SESSION) | private Testaction foundTestaction; | //@DataModelSelectionIndex workaround | private int foundTestactionIndex; | | @In(required=false) | private Release selectedRelease; | | private String sortColumn = "id"; | private boolean ascending = true; | | @Factory("foundTestactions") | public String search() { | //omitted: generate the query | | if(query.length() != 0) { | if(selectedRelease != null) { | addPrefix(query); | query.append("TACT_REL_ID="); | query.append(selectedRelease.getID()); | } | foundTestactions = EMHelper.execQuery(em, "from Testaction " + query.toString() + " order by TACT_ID asc"); | Collections.sort(foundTestactions, new TestactionComparator(sortColumn, ascending)); | } | | return "search"; | } | | @DataModel | public List getFoundTestactions() { | return foundTestactions; | } The page with a search form and a result list: | #{ares_messages.header_searchTestaction} | | | | | | | | | | | | | | | | | | | | | | | This ocde adresses the first problem I mentioned. The second problem occurs here: Bean: @Stateful | @Scope(ScopeType.SESSION) | @LoggedIn | @Name("testactionValidator") | public class TestactionValidatorAction extends TestactionHandling implements Serializable, TestactionValidator { | @In(required=false) | private Release selectedRelease; | | @In(required=false) | private User selectedUser; | | private Long lastSelectedReleaseID; | private String lastSelectedUserID; | | @Factory("testactionsForValidator") | public void initTestactions() { | if(hasAFilterChanged() || shouldRefresh() || testactions == null) { | StringBuffer filter = new StringBuffer(); | if(selectedRelease != null) { | filter.append(" and TACT_REL_ID="); | filter.append(selectedRelease.getID()); | } | testactions = EMHelper.execQuery(em.createQuery( | "from Testaction where TACT_VALIDATOR_USR_ID=:validator and " + | "TACT_BFV_ID=" + BugfixValidation.Constants.TO_VALIDATE.value() + " and " + | "TACT_REV_ID!=" + Revisionclass.Constants.TO_BUGFIX.value() + | filter.toString() + | " order by TACT_ID asc" | ).setParameter("validator", user.getIsAdmin().equals(new Integer(-1)) ? selectedUser.getID() : user.getID())); | | lastSelectedReleaseID = (selectedRelease == null) ? null : selectedRelease.getID(); | lastSelectedUserID = (selectedUser == null) ? null : selectedUser.getID(); | } | Collections.sort(testactions, new TestactionComparator(column, ascending)); | } | | @DataModel(scope=ScopeType.PAGE) | public List getTestactionsForValidator() { | initTestactions(); | return testactions; | } And the page: | | | | | | | | | | | The members "column" and "ascending" are defined in the superclass (with getters and setters). Perhaps that's is the problem? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989607#3989607
[jboss-user] [JBoss Seam] - Re: Seam promote bad design?
You can provide more separation by returning a logical outcome from the action method and mapping that to a view from a naviation rule in faces-config.xml. IMO this provides the necessary split between business logic and navigation. I guess the Seam examples return view-ids directly as it makes the example more readable (one less place to look). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989608#3989608 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989608 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Error with SeamGen
Yes, found a lot of them, but this obe seems to be a root: ObjectName: persistence.units:ear=seam_test.ear,unitName=seam_test | State: FAILED | Reason: org.hibernate.HibernateException: Wrong column type: fields, expected: bytea | I Depend On: | jboss.jca:service=ManagedConnectionFactory,name=seam_testDatasource | Probably it's due to using postgresql. I'll do some checks, but looks like hibernate can't work with some postgres datatypes and seam_gen doesn't inform about it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989609#3989609 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989609 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam + ScopeType.EVENT
Hi, Can anyone tell me in with cases, U use Event scope, and demonstrate me example. Is this even useful? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989612#3989612 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989612 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Action ; Token.signal( ... ) ; Exception: locked tokens
Hi again, I am calling an action and in this action i am fire a Rule from JRules. Based on the result of this rule i want to use a transition ( token.signal( "xxx" ) ). But when i do this, i get an Exception. Is it not possible to use use token.signal in an action? And then, how should i realise actions in which i want to move to a next token? Is it only Possible with DecicionHandlers? The Exception: anonymous wrote : | org.jbpm.JbpmException: can't continue execution on locked tokens. signalling the same token that executes an action is not allowed | at org.jbpm.graph.exe.Token.signal(Token.java:164) | at org.jbpm.graph.exe.Token.signal(Token.java:137) | | | | | | etr2.drl | t_sga a | t_sga c | | | | | | | | Action: | public class DefaultRuleAction extends RuleAction { | private static final long serialVersionUID = 8459834862286126414L; | | //Name der Variablen die in der Action beruecksichtigt werden. | public List objectNames = null; | public String transitionName = null; | public String transitionName_False = null; | | public void execute( ExecutionContext executionContext) throws Exception { | // TODO Auto-generated method stub | System.err.println("My Timer-Rule-Action!"); | | if (this.ruleFile == null) { | System.err.println("Es wurde kein Rule-File angegeben."); | // TODO String aus einer Property laden. | return; | } | | // load up the RuleBase | WorkingMemory workingMemory = null; | try { | RuleBase ruleBase = readRule(this.ruleFile); | | workingMemory = this.generateWorkingMemory( ruleBase ); | | this.assertObjectsIn( workingMemory, executionContext ); | workingMemory.fireAllRules(); | | if( RuleAction.getResultFrom( workingMemory ) == true ){ | if(this.transitionName != null){ | executionContext.getToken().signal( transitionName ); | } | }else{ | if(this.transitionName_False != null){ | executionContext.getToken().signal( transitionName_False ); | } | } | | } catch (FileNotFoundException fnfe) { | System.err.println("Es wurde ein falsches Rule-File angegeben."); | fnfe.printStackTrace(); | // TODO String aus einer Property laden. | } catch (MissingRuleResultException mrre){ | System.err.println("Es wurde kein RuleResult-Object im WorkingMemory der Regel gefunden."); | mrre.printStackTrace(); | // TODO String aus einer Property laden. | } catch (Exception e){ | System.err.println("Rule-Base konnte nicht angelegt werden."); | e.printStackTrace(); | // TODO String aus einer Property laden. | } finally{ | if(workingMemory != null) | workingMemory.dispose(); | } | | //ArcaViaController.getInstance().cancelTimer( executionContext.getTimer() ); | | } | | | public abstract class RuleAction implements ActionHandler{ | /* Name der Variablen des Workflows welche in das WorkingMemory |der Regel eingepflegt werden sollen.*/ | protected List objectNames = null; | | protected String ruleFile = null; | private RuleResult ruleResult = new RuleResult(); | | /** | * Please note that this is the "low level" rule assembly API. | * @throws Exception | */ | protected static RuleBase readRule(String ruleFileLocation) throws Exception{ | // ruleFileLocation = "src" + | // System.getProperty("file.separator") + | // "rules" + | // System.getProperty("file.separator") + | // ruleFileLocation; | | System.err.println( ruleFileLocation ); | | //read in the source | Reader source = null; | try{ | source = new InputStreamReader( RuleAction.class.getResourceAsStream( "/"+r
[jboss-user] [EJB/JBoss] - access denied security policy write
All i have a strange problem with my RMI client, i am trying to connect to the jboss which has been started in my VM by eclipse, when i try and access it i get the following error. java.security.AccessControlException: access denied (java.util.PropertyPermission java.security.poli cy write) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264) at java.security.AccessController.checkPermission(AccessController.java:427) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) I have setup the security manager System.setProperty("java.security.policy", "client.policy"); if (System.getSecurityManager() == null) System.setSecurityManager(new RMISecurityManager()); Properties env = new Properties(); // Definir las propiededes y ubicacion de busqueda de Nombres JNDI. env.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory"); env.setProperty("java.naming.provider.url", "localhost:1099"); env.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming"); InitialContext ic = new InitialContext(env); And i have created the client policy file grant { permission java.security.AllPermission; }; And in the eclipse run as option i put in VM args -Djava.security.manager -Djava.security.policy=client.policy View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989614#3989614 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989614 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: EJB entity with static final field
Yes this is exactly how I want too use it. Thanks. Now, another question: Because I will need this "constant" outsite the EJB and because the bean definition is not availlable outside, How can I define this constant? I use XDoclet to generate my classes and interfaces. Is there a way to tell it to "export" this static final field in the generated class? (interfaces and dataClasses)? Should I define some function giving me the constant value? (Bha! Sound really dirty) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989615#3989615 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989615 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: org.jboss.ws.WSException: Cannot obtain UnifiedBeanMetaD
Hi! I think you should replace: with following code: I think you must use the ejb-name to locate your bean ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989617#3989617 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989617 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Timer issue just broke my site after a week of no issues
You probably need to ask about this in the EJB3 forum. But you at least need to show us the stacktrace of the NPE. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989616#3989616 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989616 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam + ScopeType.EVENT
This is comparable with a request scope. For exampe a page with a backing bean that can submit data, the backing bean can give feedback, but the data is not saved after that. Example: | http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> | http://www.w3.org/1999/xhtml"; | xmlns:s="http://jboss.com/products/seam/taglib"; | xmlns:ui="http://java.sun.com/jsf/facelets"; | xmlns:f="http://java.sun.com/jsf/core"; | xmlns:h="http://java.sun.com/jsf/html"; | xmlns:c="http://java.sun.com/jstl/core";> | | | | Please fill in your name: | | | | | | | | | package seamdemo.hello.backingbeans; | | import javax.ejb.Remove; | import javax.ejb.Stateful; | | import org.jboss.seam.ScopeType; | import org.jboss.seam.annotations.Destroy; | import org.jboss.seam.annotations.Name; | import org.jboss.seam.annotations.Scope; | | @Stateful | @Scope(ScopeType.EVENT) | @Name("hello") | public class HelloBean implements Hello { | private String name; | | public String getName() { | return name; | } | | public String sayHello() { | return ""; | } | | public void setName(String name) { | this.name = name; | } | | @Remove @Destroy | public void destory() { | } | } | After showing the entered name, the name is not saved. So if you reload the page, the textfield is empty again. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989618#3989618 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989618 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam promote bad design?
I use pageflows for the navigation, the beans don't contain any navigation and I call the action methods using expressions in the flow. In the views, the buttons return the transitions to use. It is a pretty clean seperation I think. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989619#3989619 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989619 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam throws exception while working with DataModel
Hello. I'm new to seam and i want to integrate seam capability with AndroMDA product. I use AndroMDA for generating EJB3 and DAOs. I made a simple application that allows users login and see userlist. There are some strangeness: After user login he able to see userslist. There are an link to CreateNewUser from that page. When user created it's rediercts toViewAllUsers. All work's fine, but: When i add capability to delete User (delete button in userlist according to seam examples) i got an error: | 12:07:22,138 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception | javax.faces.FacesException: Error calling action method of component with id _id0:_id2_4:_id13 | at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:7 | 4) | at javax.faces.component.UICommand.broadcast(UICommand.java:106) | at javax.faces.component.UIData.broadcast(UIData.java:338) | at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90) | at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164) | at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316) | at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j | ava: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.j | ava: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.ja | va:175) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Htt | p11BaseProtocol.java:664) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:595) | Caused by: javax.faces.el.EvaluationException: Exception while invoking expression #{userService.del | eteUser} | at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153) | at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:6 | 3) | ... 25 more | Caused by: javax.ejb.EJBException: java.lang.IllegalArgumentException: could not set field value: us | erService.userDataModel | at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69) | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83) | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197) | 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.jav | a:78) | 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(AsynchronousInterce
[jboss-user] [Installation, Configuration & Deployment] - Re: deployment order of modules within an EAR
Read more about the jboss-service.xml | C:\jboss-4.0.2\server\default\conf\jboss-service.xml | ... | | | | | | | | | jboss.system:service=MainDeployer | | | org.jboss.deployment.DeploymentSorter | | Regards, Alex View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989622#3989622 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989622 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Jboss Cache not working in weblogic 9.2
In the cluster environment. I have two servers. When i start the first server i dont have any problems but when i start the second server it is throwing the following exception in the back end. org.jboss.cache.CacheException: Initial state transfer failed: Channel.getState( ) returned false at org.jboss.cache.TreeCache.fetchStateOnStartup(TreeCache.java:2749) at org.jboss.cache.TreeCache.startService(TreeCache.java:1330) at com.taxware.twe.common.storage.impl.MessagingServiceImpl.startService (MessagingServiceImpl.java:117) at com.taxware.twe.common.storage.StartupServlet.startInit(StartupServle t.java:185) at com.taxware.twe.common.storage.StartupServlet.init(StartupServlet.jav a:113) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(St ubSecurityHelper.java:276) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate dSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java: 121) at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecuri tyHelper.java:68) at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubL ifecycleHelper.java:58) at weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHel per.java:48) at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI mpl.java:504) at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS ervletContext.java:1698) at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup( WebAppServletContext.java:1675) at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp pServletContext.java:1595) at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletCon text.java:2734) at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.jav a:892) at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:336) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleSta teDriver.java:204) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD river.java:26) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStat eDriver.java:60) at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedMod uleDriver.java:200) at weblogic.application.internal.flow.ModuleListenerInvoker.start(Module ListenerInvoker.java:117) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleSta teDriver.java:204) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD river.java:26) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStat eDriver.java:60) at weblogic.application.internal.flow.StartModulesFlow.activate(StartMod ulesFlow.java:26) at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.ja va:641) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD river.java:26) at weblogic.application.internal.BaseDeployment.activate(BaseDeployment. java:229) at weblogic.application.internal.DeploymentStateChecker.activate(Deploym entStateChecker.java:154) at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(Ap pContainerInvoker.java:80) at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicD eployment.java:181) at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromSer verLifecycle(BasicDeployment.java:352) at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(De ploymentAdapter.java:52) at weblogic.management.deploy.internal.DeploymentAdapter.activate(Deploy mentAdapter.java:186) at weblogic.management.deploy.internal.AppTransition$2.transitionApp(App Transition.java:30) at weblogic.management.deploy.internal.ConfiguredDeployments.transitionA pps(ConfiguredDeployments.java:233) at weblogic.management.deploy.internal.ConfiguredDeployments.activate(Co nfiguredDeployments.java:169) at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(Conf iguredDeployments.java:123) at weblogic.management.deploy.internal.DeploymentServerService.resume(De ploymentServerService.java:173) at weblogic.management.deploy.internal.DeploymentServerService.start(Dep loymentServerService.java:89) at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:181) com.taxware.twe.common.exception.TaxwareSystemException: General Application Fai lure.Please contact System Administrator. at com.taxware.twe.common.storage.impl.MessagingServiceImpl.startService (MessagingServiceImpl.ja
[jboss-user] [Installation, Configuration & Deployment] - Re: Mbeans Releated Problem..new to jboss.. plz help
anonymous wrote : java.lang.ClassNotFoundException: No ClassLoaders found for: blog.example.services.BlogExampleService The blog.example.services.BlogExampleService is not present in the classpath. Place that class in the application's classpath. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989623#3989623 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989623 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Problem with HelloWorld IPC sample
Hi I'm using Jboss portal 2.4.0 bundled version. Not configured any database yet. Downloaded the HelloWorld IPC sample from portalswap. Using ant I made a build and deployed the helloworldipcportlet.sar, restarted the server, it shows the following exception: --- MBeans waiting for other MBeans --- ObjectName: portal:service=ListenerService,type=ipc_listener State: CONFIGURED I Depend On: portal:service=ListenerRegistry --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- ObjectName: portal:service=ListenerRegistry State: NOTYETINSTALLED Depends On Me: portal:service=ListenerService,type=ipc_listener 15:18:49,868 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080 15:18:50,150 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009 15:18:50,197 INFO [JkMain] Jk running ID=0 time=0/172 config=null 15:18:50,228 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)] Started in 1m:1s:721ms 15:19:47,274 ERROR [PortalServlet] Cannot get portal server org.jboss.mx.util.MBeanProxyCreationException: Object name portal:service=Server not found: javax.management.InstanceNotFoundException: portal:service=Server is not registered. at org.jboss.mx.util.JMXInvocationHandler.(JMXInvocationHandler.java:163) at org.jboss.mx.util.MBeanProxy.get(MBeanProxy.java:90) at org.jboss.mx.util.MBeanProxy.get(MBeanProxy.java:78) at org.jboss.portal.server.servlet.PortalServlet.getServer(PortalServlet.java:118) at org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:272) at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:172) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) 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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595) 15:19:47,289 ERROR [[PortalServletWithPathMapping]] Servlet.service() for servlet PortalServletWithPathMapping threw exception java.lang.IllegalStateException: Cannot get portal server at org.jboss.portal.server.servlet.PortalServlet.getServer(PortalServlet.java:123) at org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:272) at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:172) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) 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:17
[jboss-user] [JBossWS] - Re: jbossws1.0.x is a preview implementation with support fo
"maeste" wrote : | IMHO opinion jboss still the best AS on the market. And I mean the best one, not the best open source. | I started to use jboss since 2.0 (first production environment 2.4.1) and I read forums and ML since the beginning. I agree with you, a lot of things changed, community is changed (more noise) and jboss' staff become more and more busy. | I 100% agree "maeste" wrote : | Before someone other of the staff will tell you: The only sure way to get immediately feed back is the professional support. The community support is not so responsive, and mainly intend for guys wearing "engineer white coat". :) | I know but here I definitively go OT ;-) Inside my company we have so many websphere installations that we pay ibm just flat-rate. I could install how much websphere as I would. So price is not a problem. Even so up to now my group was able to mantain a little entrenched JBoss Island. Now would be impossible for me to ask for a professional support while we have two ibm guys free of charge all the year inside the company. So my island must be self contained :-) "maeste" wrote : | Next days we have to implement ws clients and I'll keep you post of our result or problem. Well the goal of project is 2nd quarter 07 and I don't exclude to use jbossws 2.0CR | I'll look forward to hear about your tests Bye View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989626#3989626 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989626 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Mbeans Releated Problem..new to jboss.. plz help
Hi, I am new to jboss.please help me for the following problem. In my application i have a .ini file where we have some configuration values which must be set at the time of deployment of the build. What i am trying to do is creating a MBEAN through which we can change the values through jmx console. and my application will read all the values from this mbean. i have created one interface and one class which implements the interface. when i try to compile the build it says build suceesful and i also can see the sar file in the server>default>deploy folder. but imedidately after i am getting this exception. 13:05:11,758 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-4.0.1/server/default/deploy/blog_example.sar org.jboss.deployment.DeploymentException: No ClassLoaders found for: blog.example.services.BlogExampleService; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: blog.example.services.BlogExampleService) at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:143) at org.jboss.system.ServiceController.install(ServiceController.java:200) at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy4.install(Unknown Source) at org.jboss.deployment.SARDeployer.create(SARDeployer.java:208) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:918) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738) at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122) at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131) at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy8.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194) Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: blog.example.services.BlogExampleService at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198) at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:464) at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:374) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1183) at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:269) at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:327) at org.jboss.system.ServiceCreator.install(ServiceCreator.java:125) at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:153) at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118) ... 33 more plz help me what to do now. Thanks in advance!! sam View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989620#3989620 Reply to the post : http://www.jboss.com/index.htm
[jboss-user] [Installation, Configuration & Deployment] - Re: deployment order of modules within an EAR
PeterJ is right, the ordering within an ear was supposed to be based on the order in which the modules have been mentioned in the application.xml. However, looks like this was broken sometime back as per this issue: http://jira.jboss.com/jira/browse/JBAS-2904 Related discussion: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=78376 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989627#3989627 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989627 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam + ScopeType.EVENT
"[EMAIL PROTECTED]" wrote : This is comparable with a request scope. For exampe a page with a backing bean that can submit data, the backing bean can give feedback, but the data is not saved after that. | | After showing the entered name, the name is not saved. So if you reload the page, the textfield is empty again. Soo what's the different betwen Event & Page scope? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989628#3989628 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989628 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JSF requiredMessage does not work with seam bundle
So is there any workaround for this ? I guess the Validator Message also would not work ?? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989629#3989629 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989629 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Using Jboss Seam and Struts
I am interested in running two different flavors side by side 1. I am currently using struts 2. wanna switch to Jboss Seam but problem is whatever I have already coded in struts I would like to use it in Seam if possible and similarly if I design something that is common to both then should be useable by both frameworks. IS it possible? If yes then please advise because, I know that seam uses annotations and it is only supported by JDK 1.5 but my Struts application is using JDK1.4 and I cannot afford to make that update or upgrade to Jdk1.5 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989630#3989630 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989630 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: Messages get stuck in queue
Did you check the logs to determine if the MDB was still active. In extreme cases, like deadlock on database or huge load due to redelivery, it can freeze and fallover..? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989631#3989631 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989631 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: Create Session Factory
I am thinking that microcontainer can inject Hibernate to create Session Factory. Then I can use the session factory bean from my application. I don't know whether this is possible using microcontainer. But based on your explanation I have to create a POJO that create the Session Factory? Or am I missing on something from your statement? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989632#3989632 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989632 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Value is not a valid option.
check for null in the equals() I use an older version of the SelectItem. When you have the 'noSelectionLabel' I think the equals is called with a null as well (always return false when the parameter to equals is null View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989634#3989634 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989634 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: Create Session Factory
Yes it is basically the POJO you will have to create. There are the changes that you can configure most of the java class using the MC, these java classes should be designed as POJO. Please refer to the samples at the link which I have passed to you. I think you can have a POJO which is just a wrapper over the existing Hibernate related class, it would yield more maintainability and control to you . Can you tell me what exactly are you doing with MC , are you just playing with it or you are incorporating this in a real application? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989636#3989636 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989636 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam + ScopeType.EVENT
That's still a little unclear to me too. One big difference is that @Page can't be use in session beans. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989637#3989637 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989637 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - Re: What versions for Eclipse, JBoss Eclipse IDE, JBoss AS,
I Have exactly the same problem. have you resolved it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989639#3989639 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989639 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: Mbeans Releated Problem..new to jboss.. plz help
I copy the sar file in the deploy folder. where do i need to specify the class in the classpath. Please help me in this regard. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989641#3989641 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989641 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: Messages get stuck in queue
Thanks for the reply. JBoss runs in cluster mode as this issue exists in the production environment. We often have noticed that the jms queue is increasing and gets stuck, especially when there is a high load of traffic. We use JMS to send emails to our customers. We use ftp server to store the attachements. When our queue is stuck, / or when the jms msgs have increaased we restart the ftp service. When we restart the ftp service the queue gets cleared. Do you suspect anything? Please advise. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989640#3989640 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989640 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Re: Negotiate with Kerberos
oh, yes, indeed, it does not work with 4.0.5 anymore like it did with 4.0.3sp1. My errors are different though: after the type one error i get 2006-11-29 09:16:26,320 TRACE [org.jboss.security.plugins.JaasSecurityManager.SPNEGO]::authenticate(560) - Login failure | javax.security.auth.login.LoginException: Login Failure: all modules ignored | at javax.security.auth.login.LoginContext.invoke(LoginContext.java:947) | at javax.security.auth.login.LoginContext.access$000(LoginContext.java:209) | at javax.security.auth.login.LoginContext$4.run(LoginContext.java:709) | at java.security.AccessController.doPrivileged(AccessController.java:240) | at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:706) | at javax.security.auth.login.LoginContext.login(LoginContext.java:603) Then there is no type3 handling, no login, but 2006-11-29 09:16:26,951 DEBUG [org.jboss.web.tomcat.security.HttpServletRequestResponseValve]::authenticate(114) - Realm returned: GenericPrincipal[domain\user(authenticated,)] | 2006-11-29 09:16:26,981 TRACE [org.jboss.web.tomcat.security.JBossSecurityMgrRealm]::hasResourcePermission(215) - Checking roles domain\user | 2006-11-29 09:16:26,991 TRACE [org.jboss.web.tomcat.security.JBossSecurityMgrRealm]::hasResourcePermission(248) - No role found: authenticated | 2006-11-29 09:16:27,011 TRACE [org.jboss.web.tomcat.security.JBossSecurityMgrRealm]::hasResourcePermission(259) - Checking for all roles mode: authenticated | hm... concerning: anonymous wrote : | The applicaiton is open for all the authenticated domain users. did you see what I wrote in the wiki? (checking the domain..) if you donĀ“t do that, people might be able to login with domain null.. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989638#3989638 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989638 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: Messages get stuck in queue
The server.log looked fine. The last debug output from the relevant MDB was a message of an succesfully processed message. There wasn't any indication that anything went wrong. Should I use special settings or log levels in order to get more information about the status of the MDB? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989642#3989642 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989642 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Stateless Beans
I thought Seam was somehow managing that a single JSF lifecycle always got to see the same stateless bean instance. Apparently I'm using the wrong Maven2/Facelets port of the dvdstore to learn all about Seam... http://vyzivus.host.sk/site-files/dvdstore.zip View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989645#3989645 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989645 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss/Spring Integration] - Re: BeanCreationException on Jboss deploy but with Tomcat th
Not what JBoss/Spring integration is about: - http://java.sys-con.com/read/180386.htm More of a Spring forum question. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989647#3989647 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989647 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: Mbeans Releated Problem..new to jboss.. plz help
ok i got the problem. Its working fine now. thanks sam View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989643#3989643 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989643 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss/Spring Integration] - BeanCreationException on Jboss deploy but with Tomcat the de
I have changed an existing web application (version 2.4) based on: - JBoss 3.2.6 - Spring 1.2.8 - Struts 1.2.9 Before the changes the web app starts correctly. I have modified a Struts Action adding an attribute and relatives get/set (the attribute class already exists, and it is already defined in a Spring XML descriptor), and I have modified the Spring XML descriptor. Now, the application deploy crashes with the exception: anonymous wrote : | org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/geneGenric/DettaglioRicerca' defined in ServletContext resource [/WEB-INF/xml/spring/gene-genric.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'gruppiManager' of bean class [it.eldasoft.gene.web.struts.genric.DettaglioRicercaAction]: Bean property 'gruppiManager' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter? | org.springframework.beans.NotWritablePropertyException: Invalid property 'gruppiManager' of bean class [it.eldasoft.gene.web.struts.genric.DettaglioRicercaAction]: Bean property 'gruppiManager' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter? | at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:670) | at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:572) | at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:737) | at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:764) | at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:753) | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1057) | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857) | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:378) | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233) | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) | at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:283) | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313) | at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139) | at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:252) | at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190) | at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) | at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827) | at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343) | at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823) | at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:324) | at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) | at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:149) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) | at org.apache.catalina.core.StandardContext.init(StandardContext.java:5441) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:324) | at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) | at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:149) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) | at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(Tom
[jboss-user] [Messaging, JMS & JBossMQ] - JBOSS JMS Messages QUEUE not getting cleared. ???
We are using JBoss4.0.1 with Oracle as our JMS Provider. JMS is Queue configured, to keep emails. In our MDB, in the onMessage(), the ftp server is accessed to upload attachment and for sending emails. When the JMS Queue table increases and gets stuck, we restart the ftp service. When this is donet he jms queue tables reduces and all emails are sent. Does anyone have any idea why this is happending??? simiar issues... : - > http://www.jboss.com/index.html?module=bb&op=viewtopic&t=67391 http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989631#3989631 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989648#3989648 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989648 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam gen or seam framework problem?
I have two table with a parten child relation (FK). Both the table have an autoincrement integer column as PK. Seamgen generate two entity with a one to many bidirectional relation. After I have inserted a new instance of Parent Entity and I try to insert the relative child I have an exception related to this inner exception | Caused by: org.jboss.seam.framework.EntityNotFoundException | at org.jboss.seam.framework.Home.handleNotFound(Home.java:95) | at org.jboss.seam.framework.EntityHome.find(EntityHome.java:66) | at org.jboss.seam.framework.Home.initInstance(Home.java:80) | at org.jboss.seam.framework.Home.getInstance(Home.java:68) | at org.jboss.seam.framework.Home$$FastClassByCGLIB$$76f3c0be.invoke | How we have to work with autogenerated id? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989649#3989649 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989649 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: Create Session Factory
"vickyk" wrote : Can you tell me what exactly are you doing with MC , are you just playing with it or you are incorporating this in a real application? | Currently I'm still playing with it. I got this idea from Spring, where Spring manage the session factory bean. If MC can do the same thing, I might incorporate MC in my application rather that Spring since the app server is using JBoss anyway. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989650#3989650 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989650 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Error with SeamGen
Yes, I was correct. The error is caused by Postgres arrays. I think this isse needs to be fixed somehow. At least by skipping fields of non-standard types. Here is the generate class with array: @Entity | @Table(name = "tt", schema = "public", uniqueConstraints = {}) | public class Tt implements java.io.Serializable { | | // Fields | | private long id; | private String name; | private Serializable arr; | | // Constructors | | /** default constructor */ | public Tt() { | } | | /** minimal constructor */ | public Tt(long id) { | this.id = id; | } | /** full constructor */ | public Tt(long id, String name, Serializable arr) { | this.id = id; | this.name = name; | this.arr = arr; | } | | // Property accessors | @Id | @Column(name = "id", unique = true, nullable = false) | @NotNull | public long getId() { | return this.id; | } | | public void setId(long id) { | this.id = id; | } | | @Column(name = "name") | public String getName() { | return this.name; | } | | public void setName(String name) { | this.name = name; | } | | @Column(name = "arr") | public Serializable getArr() { | return this.arr; | } | | public void setArr(Serializable arr) { | this.arr = arr; | } | | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989651#3989651 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989651 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Re: annotation-introduction + aspect oriented annotations
Try changing the @Target of your annotation to ELementType.TYPE. Annotation introductions are compiled in to the bytecode, and if it has the wrong target it will not be recognised. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989652#3989652 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989652 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Waiting for external input
@dslevine and kukeltje Thank you for your input, a working solution is being fabricated ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989653#3989653 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989653 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Records in database vanish upon restart
Hi, I work with MSSQL 2005, "update" does not removes my rows, but you can completely remove this property (hibernate.hbm2ddl.auto ) from persistance config to make sure, db schema will not be recreated once again. Dalibor View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989654#3989654 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989654 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: configurating jbpm to run on tomcat
you can yourself by reading the documentation, searching the forum etc...etc...etc View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989655#3989655 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989655 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - EJB Running on JBoss Server
I have deployed my application on a JBoss server (4.0.5). I have two EJBs that has a reference to a static class called ServiceLocator, The EJBs use this class throughout the lifecycle of the object. The ServiceLocator is a Singleton. Within the ejbCreate method, I check for the ServiceLocator class. If it is null, I call ServiceLocator.getInstance(). My problem is understanding why JBoss does not like this static reference behavior. When I login to my application we go through EJB1. One of the things we do inside EJB1 is call other ejbs for addtional information. This is where the Service Locator becomes involved. Inside individual methods I use the ServiceLocator reference (sl) and fetch the appropriate EJB for use. The problem is the variable sl, is null when I attempt to use it within a business method. When I change the code to call the class like ServiceLocator.getInstance() everything is fine. Additionally, using a static initializer prevents the error, too. What I can see from the log files is the ejbcontainer is calling ejbRemove() just prior to calling the business method. Can someone share their knowledge in this area? I was under the understanding that ejbCreate was the approach one should take for creating a instance/class-level variable. Having a class level variable seem to make sense and reduced the number of keystrokes in each EJB. Thank you for taking the time to read and explain. Russ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989656#3989656 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989656 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Action ; Token.signal( ... ) ; Exception: locked tokens
"JimKnopf" wrote : Hi again, | I am calling an action and in this action i am fire a Rule from JRules. Based on the result of this rule i want to use a transition ( token.signal( "xxx" ) ). | But when i do this, i get an Exception. Is it not possible to use use token.signal in an action? And then, how should i realise actions in which i want to move to a next token? Is it only Possible with DecicionHandlers? | | The Exception: | anonymous wrote : | | org.jbpm.JbpmException: can't continue execution on locked tokens. signalling the same token that executes an action is not allowed | | at org.jbpm.graph.exe.Token.signal(Token.java:164) | | at org.jbpm.graph.exe.Token.signal(Token.java:137) | | | Correct, or by inplementing a custom node View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989657#3989657 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989657 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam 1.1 CR.1 Converstions & IceFaces
Hi, I use Seam + IceFaces, and have method in stateful bean @Begin(join=true) public String ble() {} normally when i click on button if a long-running conversation is already in progress, the conversation context is simply propagated. Why when I migrated to Seam & IceFaces I Seam creates on each click a new conversation? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989658#3989658 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989658 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - Re: JSP in JBoss IDE??
I have installed JBoss IDE 2.0 beta2 on Eclipse 3.2.1, and have the same problem... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989659#3989659 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989659 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Associating multiple keys with same object without storing t
is it possible to associate multiple keys with the same object without storing the object twice ? my key is something like /name/date and object is a 1000 character string, hence i dont want to store it twice increasing space.. anyway to do this? thanks hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989660#3989660 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989660 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Audit Interceptor with State
Hi, What will be the best way to implement a Audit Log feature with Seam + EJB3 entity beans? I have read thru several docs but was unable to find a way to pass state to the interceptor. By state what i mean is some data that is specific to the context. (For ex, the currently logged in user. I have to set the current user information to the Audit log). One way I tried and worked was that let all the entity beans extend from a Base Entity and the BaseEntity entity has the callback methods. Also, make all the entity beans Seam components including Base Entity. So in the Base Entity callback method, I can do a Contexts.getSessionConetxt.get("currentUser") and set the usee_id to the createdBy or lastModifiedBy fields. But the problem is how will i get the current state of the the entity fields in call back (or in listener) for audit purpose because we will only get the changed values that are going to be flushed ? Also, is an entity listener is thead safe to be used with multiple entities? Like in the above scenario, if i have annotated the Base Entity with one listener class, then for every entity a new listener object will be created ? Thanx Kevin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989661#3989661 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989661 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: EJB runtime statistics through web-console throws Except
Hi ! Maybe I forgot to mention, that this is a critical issue, even for the customer who is about migrating an existing application from another - commercial - app.-server. Operating is the issue, not development. No one else around here with the same problem, no one of jboss who could answer or could give a hint ... Marcos View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989662#3989662 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989662 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - how to disable password-stacking property
Hi, I am using JBoss-portal-4.0.2. I have a problem with jass code. I want to disable the password stacking option. How can i do it? | | | guest | java:/portal/UserModule | java:/portal/RoleModule | Authenticated | useFirstPass | | | | This is the application policy code that i am using. Can anyone help me out in this? Thanks in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989663#3989663 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989663 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam promote bad design?
Seam + jpdl pageflow really separate concerns very cleanly. You may want to have a look at the number guess example. There's pure business logic in the action class. Another example is DVD store, the newuser flow and the checkout flow. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989664#3989664 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989664 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam throws exception while working with DataModel
Just a suggestion, take a look at Taylor: http://taylor.sourceforge.net/index.php/Overview View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989665#3989665 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989665 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Stateless Beans
anonymous wrote : I thought Seam was somehow managing that a single JSF lifecycle always got to see the same stateless bean instance Definitely not. Seam can't magically make a stateless bean stateful. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989666#3989666 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989666 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Debug page intercepts handled exceptions in 1.1
thanks, I've just tried the fix using the 20061129 nightly build that has the change in it but it doesn't work for me, it still shows the debug page I've checked that the download includes the source change | static ThreadLocal marker = new ThreadLocal(); | | @AroundInvoke | public Object handleExceptions(InvocationContext invocation) throws Exception | { | boolean outermost = marker.get() == null; | marker.set(this); | try { | return invocation.proceed(); | } catch (Exception e) { | if (outermost && FacesContext.getCurrentInstance()!=null) { | return Exceptions.instance().handle(e); | } else { | throw e; | } | } finally { | marker.remove(); | } | } | I reckon it doesn't work for me because my first bean actually calls 2 different methods on my second bean and so the above code calls marker.remove() after the first call to the second bean, hence the next call is treated as the outermost. It would probably be better to only bother with the exception logic if its actually going to be used, something like: | @AroundInvoke | public Object handleExceptions(InvocationContext invocation) throws Exception | { | boolean outermost = marker.get() == null; | if (outermost) { | marker.set(this); | try { | return invocation.proceed(); | } catch (Exception e) { | if (FacesContext.getCurrentInstance()!=null) { | return Exceptions.instance().handle(e); | } else { | throw e; | } | } finally { | marker.remove(); | } | } | else { | return invocation.proceed(); | } | } | what do you reckon ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989667#3989667 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989667 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - Error in tutorial
I have installed JBoss IDE 2.00 beta2 in my Eclipse 3.2.1 Now, im reading the jboss ide tutorial (http://docs.jboss.com/jbosside/tutorial/build/en/html/) But, when I complete the 6th chapter, i have a problem. this call inside doPost servlet method: | double[] result = bean.compute(limit); | generates an error. It says: "The method compute(int) is undefined for the type Fibo" How can I solve it?? Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989669#3989669 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989669 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Value is not a valid option.
Thank you Peter, I seem to be getting to the problem now. I have a few Lists in my entity, and it seems the problem lies within comparing them. When having a this.somelist.equals(o.somelist) in my equals, wherever the lists are equivalent or not, the result is always false, therefore generating a jsf validation error (value is not valid) during the rendering of the page after the submit when jsf compares the selected item with all items in the dropdown list. During runtime, somelist is of the type org.hibernate.collection.PersistentBag. This class does not implement the equals from the List interface, but the equals from Object. I have removed the comparison of lists in my equals, and it now works fine. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989668#3989668 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989668 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: JBoss jBPM 3.1 Data Model Wiki
Hi All, I have a situation where along with the ProcessInstance details i would like to save another ID which is Primary key in the database.So it would want us to change the default schema that comes along with jBPM. Seeing the previous comments it is clear that it is possible to do, so can i know the way of actually doing it.(i.e., Way of having my own schema) regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989670#3989670 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989670 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Debug page intercepts handled exceptions in 1.1
Try again, I just fixed the fix. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989672#3989672 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989672 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: Messages get stuck in queue
Victoria for what perpose do you use JMS? We use it to send emails. We are also accessing an FTP server. What does your MDB do? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989673#3989673 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989673 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Audit Interceptor with State
I implemented something similar to the audit log code on the hibernate website. It's an extension to EntityHome, and will scan over the entity being saved, logging new values (and old values if changed and an update is occuring) if the property is marked @Auditable. It will follow associations depending on the CascadeType and works with collections. Oh, and it outputs the log as a trinidad tree table, but thats easily customisable. I can post the code if you are interested (but beware, it's mostly complete and mostly works but I'm sure there are lots of bugs...) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989671#3989671 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989671 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Please help me! The page cannot change when jbpm is used.
Hello. I want to make the sample program of seam, and to change in pageflow.jpdl.xml the screen. The program moves well when pageflow.jpdl.xml is not used. However, it is not possible to control with jbpm. Following information comes out though the error has not gone out. Could anyone advise,please? ## Environment ## JBOSS4.0.5GA jdk1.5.0_06 jboss-seam-1.0.1.GA jbpm-3.1.2.jar ## Server Log ## 21:35:06,420 INFO [EARDeployer] Started J2EE application: file:/C:/usr/local/jboss-4.0.5.GA/server/default/deploy/ks.ear | 21:35:17,545 INFO [Events] no events.xml file found | 21:35:17,623 INFO [Pages] no pages.xml file found | 21:35:18,576 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true | 21:35:18,576 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true | 21:35:18,592 INFO [MyfacesConfig] Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now. ## RegisterAction.java ## @Stateful | @Name("register") | @Scope(CONVERSATION) | public class RegisterAction implements Register { | | [EMAIL PROTECTED](required=false) @Valid | [EMAIL PROTECTED](required=false) | public User user; | | [EMAIL PROTECTED] | private EntityManager em; | | [EMAIL PROTECTED] | private Log log; | | [EMAIL PROTECTED](create=true) | private transient FacesMessages facesMessages; | | [EMAIL PROTECTED] | [EMAIL PROTECTED](pageflow="index") | public void index(){} | | public void register(){ | user = new User(); | log.info("register()"); | } | | public void confirm(){ | if(user.getUsername().equals(" ")){ | facesMessages.add("Please input UserId."); | } | } | | [EMAIL PROTECTED] | public void registered(){ | em.persist(user); | log.info(user.getUsername()"); | } | | [EMAIL PROTECTED] | [EMAIL PROTECTED] | public void destroy(){} | } ## index.jsp ## <%@ page language="java" contentType="text/html; charset=Shift_JIS" pageEncoding="MS932"%> | <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%> | <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%> | Menu | | | | | | | | | | | | | ## application.xml ## | ks | | | ks.war | /ks | | | | ks.jar | | | jboss-seam.jar | | | jbpm-3.1.2.jar | | ## seam.properties ## org.jboss.seam.init.componentClasses org.jboss.seam.core.Jbpm | org.jboss.seam.core.jbpm.pageflowDefinitions pageflow.jpdl.xml It becomes deploy error if it describes it in component.xml. ## pageflow.jpdl.xml ## | | | | | | | | | | | | | | | | | | | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989675#3989675 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989675 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: jbossws1.0.x is a preview implementation with support fo
"sursha" wrote : According to the link below, jbossws1.0.x is a preview implementation with support for only primitive types. | http://wiki.jboss.org/wiki/Wiki.jsp?page=JBWSFAQSupportForJSR181 | I'm using it already with complex object types in document/literal mode. | We are planning to move this to production soon. | Isn't it true that jbossws1.0.x supports complex object types ? | Also I'm assuming that it is production ready. | Hi Sursha, I m very new to the web-service field. I tried installing jbossWS1.0.4 on JBOSS4.0.4 as per the instructions given in the installation doc, but i m getting exceptions. Please let me know where i m going wrong and if possible a simple example of web service using JBOSS-WS. Thanks in advance Vijay View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989676#3989676 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989676 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Please help me! The page cannot change when jbpm is used
your pageflow definition is called "registerflow" according to this line in your pageflow definition. However I didn't find any @Begin (pageflow="registerflow") in your RegisterAction.java. You may want to add this to your register() method in that class. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989677#3989677 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989677 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Action ; Token.signal( ... ) ; Exception: locked tokens
Correct. But i allready solved the Problem ... simple just using leaveNode( ... ) instead of getToken.signal( ... ). A decisionHandler is not possible, because sometimes i need to have more then one Decision in one node so. (For Example Check some Rulebases if one of these Rulebase matched then use Transition "A" else the default Transition). So i need to use actions insted of DessionHandlers. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989679#3989679 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989679 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: Strange results with twiddle.sh when Jboss is down
Hi, It seems that I have to use the jndi option: jnp.disableDiscovery=true to disable the multicast. I wonder how to set this option without changing the Twiddle.java code. Should I create a jndi.properties file in the twiddle.jar or should I add a parameter to my java command line in the twiddle.sh script? Thanks in advance, Bruno View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989680#3989680 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989680 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JSF requiredMessage does not work with seam bundle
You can look at these 2 links (they explained a lot about validations): http://www.jboss.com/index.html?module=bb&op=viewtopic&t=90636 http://www.jboss.com/index.html?module=bb&op=viewtopic&t=93507 So my understanding at this point is that the jsf framework will not call any validator when a value is null (I guess this is because there is no need to validate anything in that case). I believe the reason for this is that in case of a null value, we either accept it (attribute required=false) or we refuse it (required=true). Now since the attribute requiredMessage is not implemented, I can see to possible fix: 1- override javax.faces.component.UIInput.REQUIRED in your messages.properties javax.faces.component.UIInput.REQUIRED = My error message | That will replace the ugly "Validator Error" message. But if you have 5 inputText in your page, you'll get 5 times this message... 2 - You can extend any components (inputText,...) you need to use and implement the missing attribute. Maybe there are other solutions. I'm still looking into that problem myself. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989681#3989681 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989681 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Value is not a valid option.
I guess it would be nice if JSF would let you implement your own equals via the converter, that way we could automatically provide equality on the @Id property. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989683#3989683 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989683 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Audit Interceptor with State
I'm interested in this type of functionality, too. In the past I've used a Hibernate Interceptor and had an extension to my base model object that encapsulated the fields I wanted audited. I was able to do a type check in the interceptor code and persist the encapsulated audit log entries there. Too much of a Seam n00b to have done this yet, though. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989682#3989682 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989682 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Please help me! The page cannot change when jbpm is used
Thank you for the answer. I cannot straighten out that problem though I tested your advice. Besides, are there any mistakes? Could you advise when there is someone understanding? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989684#3989684 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989684 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Action ; Token.signal( ... ) ; Exception: locked tokens
And ... thank u for ur response :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989685#3989685 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989685 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Audit Interceptor with State
Hello, Can u pls post ur code ? Again, how will i persist the audit data from the interceptor / listener ? (i.e how do i get a entitymanager for that ? look up the entitymanager factory and get the em ?) Thanx Kevin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989687#3989687 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989687 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: Strange results with twiddle.sh when Jboss is down
Hi, Sorry to reply to my own topics... I've found how to solve my problem. There is a jndi.properties file in the twiddle.jar file. In the jndi.properties file, I've added the line: jnp.disableDiscovery=true Now when my Jboss server is down, twiddle.sh returns an Exception. I still have to modify the check_jbossjmx nagios script to deal with this exception. Thanks Dimitris for your answer. Bruno View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989690#3989690 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989690 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Please help me! The page cannot change when jbpm is used
anonymous wrote : It becomes deploy error if it describes it in component.xml. | This sounds really weird to me. Can you please paste the full stack of your "deploy error" here? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989691#3989691 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989691 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Page action with non-null outcome with redirect possible?
If I have a page action with a non-null redirect (a JSF outcome with redirect/ specified in the navigation rule) I get the following error: | java.lang.IllegalStateException: No page context active | at org.jboss.seam.core.FacesPage.instance(FacesPage.java:83) | at org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:219) | at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:51) | at org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersBefore(LifecycleImpl.java:520) | at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:342) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at myanonymousproject.tracking.TrackingFilter.doFilter(TrackingFilter.java:184) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java: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 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:595) | It works fine without the redirect/ element in faces-config.xml or by specifying an explicit view id as the return value for my action method. Is this possible? Thanks - Ben View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989692#3989692 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989692 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: java.net.SocketTimeoutException: Read timed out
The pooled invoker settings are described here: http://wiki.jboss.org/wiki/Wiki.jsp?page=PooledInvoker View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989688#3989688 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989688 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Accessing HttpServletRequest from RenderRequest
Sure, I thought I had posted this, but I guess I didn't. the request object in the sample below is JBossRenderRequest. | public String getCookieValue(String cookieName) { | | String value = ""; | | cookieName = "JSESSION"; | | try { | HttpServletRequest req = (HttpServletRequest)request.getAttribute("javax.portlet.request"); | Cookie[] cookies = req.getCookies(); | for (int j=0; jhttp://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989695#3989695 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989695 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: assignment expression
i can't find any documentation concerning this issue. but i think it means some kind of hierarchy..for example u want this task to be assigned to the manager in the HR department and not every body. so u would specify previous-->group(hr)-->member(manager). i am not sure abt my answer. I tried to work on simple assignments, example: | | well, it works fine. but it didn't work for groups assignment. i don't know y it doesn't work when i say | | i find that anybody can access the task and not only HR department. is there any document for the membership assignng in the DB? wt i get is that 3 tables are responsible for this (grupID, userId, membershipID) anythg else i miss? any one can help me understand wt is the problem abt that? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989696#3989696 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989696 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - While undeploying web application using jmx-console stop met
When I try to undeploy my web application using stop method of jmx-console it halts for some time after the message "[StandardService] Stopping service jboss.web" and then gives following error message ...--- WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null ERROR [JDBCExceptionReporter] You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.) --- This message is repeated forever, nothing is accesible after that, not even a jboss-console. Detailed log after I click stop button on jmx-console is given below... Does anyone has any idea about it? 19:28:51,503 INFO [TomcatDeployer] undeploy, ctxPath=/earray, warUrl=.../deploy/earray.war/ 19:28:51,534 INFO [Server] Runtime shutdown hook called, forceHalt: true 19:28:51,566 INFO [Server] JBoss SHUTDOWN: Undeploying all packages 19:28:51,566 INFO [TomcatDeployer] undeploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/ 19:28:51,566 INFO [StandardWrapper] Waiting for 1 instance(s) to be deallocated 19:28:52,584 INFO [StandardWrapper] Waiting for 1 instance(s) to be deallocated 19:28:53,853 INFO [StandardWrapper] Waiting for 1 instance(s) to be deallocated 19:28:53,963 INFO [TomcatDeployer] undeploy, ctxPath=/eArrayMonitor, warUrl=.../deploy/eArrayMonitor.war/ 19:28:53,978 INFO [TomcatDeployer] undeploy, ctxPath=/downloadservice, warUrl=.../tmp/deploy/tmp53638downloadservice-exp.war / 19:28:54,151 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=earr ay' from JNDI name 'java:earray' 19:28:54,229 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,na me=JmsXA' from JNDI name 'java:JmsXA' 19:28:54,245 INFO [testTopic] Unbinding JNDI name: topic/testTopic 19:28:54,245 INFO [securedTopic] Unbinding JNDI name: topic/securedTopic 19:28:54,245 INFO [testDurableTopic] Unbinding JNDI name: topic/testDurableTopic 19:28:54,245 INFO [testQueue] Unbinding JNDI name: queue/testQueue 19:28:54,260 INFO [A] Unbinding JNDI name: queue/A 19:28:54,276 INFO [B] Unbinding JNDI name: queue/B 19:28:54,276 INFO [C] Unbinding JNDI name: queue/C 19:28:54,276 INFO [D] Unbinding JNDI name: queue/D 19:28:54,276 INFO [ex] Unbinding JNDI name: queue/ex 19:28:54,292 INFO [DLQ] Unbinding JNDI name: queue/DLQ 19:28:54,292 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=Defa ultDS' from JNDI name 'java:DefaultDS' 19:28:55,780 INFO [HypersonicDatabase] Database standalone closed clean 19:28:55,827 INFO [TreeCache] stopService(): closing the channel 19:28:56,156 INFO [TreeCache] stopService(): stopping the dispatcher 19:28:56,172 INFO [Http11Protocol] Pausing Coyote HTTP/1.1 on http-0.0.0.0-8080 19:28:57,174 INFO [StandardService] Stopping service jboss.web 19:30:31,441 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null 19:30:31,441 ERROR [JDBCExceptionReporter] You are trying to use a connection factory that has been shut down: ManagedConnect ionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that h as been shut down: ManagedConnectionFactory is null.) 19:32:31,841 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null 19:32:31,841 ERROR [JDBCExceptionReporter] You are trying to use a connection factory that has been shut down: ManagedConnect ionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that h as been shut down: ManagedConnectionFactory is null.) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989698#3989698 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989698 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user