[jboss-user] [Remoting] - Re: Simple Socket Server (TEXT)?
The error message means that another Connector with exactly the same InvokerLocator, anonymous wrote : | socket://localhost:8084/?dataType=invocation&enableTcpNoDelay=true&marshaller=com.test.socket.V75SocketServer.TextMarshaller&socketTimeout=60&unmarshaller=com.test.socket.V75SocketServer.TextUnMarshaller | has already been created. Are you sure you don't have two MBeans, in some *-service.xml files, with the same attributes? If you really changed the "serverBindPort" attribute, you should be able to create a second Connector. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059428#4059428 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059428 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Calling rmi server running in Weblogic 6.x from Jboss 4.0.5G
Hi all, First of all, please forgive me if i have posts this in the wrong forum group. Recently i have a project that needs me to call a remote ejb which is running in Weblogic 6.x. It is using Weblogic's proprietary protocol known as "t3". If i include weblogic.jar (i believe this version of weblogic doesn't deliver its client lib wlclient.jar) in my war file's WEB-INF/lib, i get this error: 2007-06-30 17:32:33,462 ERROR (GqsClient.java:93) - TestProject: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory] I've tried to put it in server/default/lib but that throws another exception. My test code: Properties jndiProperties = new Properties(); jndiProperties.setProperty( Context.INITIAL_CONTEXT_FACTORY, MY_INITIAL_CONTEXT_FACTORY ); jndiProperties.setProperty( Context.PROVIDER_URL, MY_PROVIDER_URL ); Context initialContext; initialContext = new InitialContext( jndiProperties ); Object homeInt = initialContext.lookup( MY_EJB ); objectHome = ( SomeObjectHome ) PortableRemoteObject .narrow( homeInt, SomeObjectHome.class ); objectRemote = objectHome.create(); Have i done anything wrong in the codes? Where should i put my weblogic.jar? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059429#4059429 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059429 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: Simple Socket Server (TEXT)?
Yes there is actually a second socket in jboss-4.2.0.GA/server/default/conf/jboss-service.xml but as far as I can see it is on port 4446. Mine should go on port 8084. The name of the mbean is also different??? So therefore I can't see what is wrong. Further this part worked ok on jboss4.0.5GA but the un/marshalling did not. I guess this is because of the different remoting version. Is this a bug??? This is the socket that conflicts in the default jboss-4.2.0.GA/server/default/conf/jboss-service.xml: | | | | | | | | | | | | | | | | | | | |invocation |org.jboss.invocation.unified.marshall.InvocationMarshaller |org.jboss.invocation.unified.marshall.InvocationUnMarshaller | | | | | | |60 |${jboss.bind.address} |4446 | | |true | | | | | | | | | | | | | | | | | | | | | | | | |jboss:service=invoker,type=unified | | | | jboss.remoting:service=NetworkRegistry | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059430#4059430 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059430 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: Simple Socket Server (TEXT)?
Conflicting MBean names wouldn't cause this particular error message. The conflict lies in the InvokerLocator. The message is saying that, one way or another, a Connector with exactly the same InvokerLocator has already been created. One thing to try would be to start up the Application Server, point your web browser to the jmx console (http://localhost:8080/jmx-console/), and see if you an MBean named "com.test:service=Connector,transport=socket". If so, it must be defined in two places. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059431#4059431 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059431 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: Simple Socket Server (TEXT)?
Ok yes I am an idiot. I had an old jar file in the deploy directory. Now the sar gets deployed ok and answers on port 8084. The problem I have now is that remoting complains about the version of the data: 18:18:51,734 ERROR [ServerThread] Worker thread initialization failure | java.io.IOException: Can not read data for version 116. Supported versions: 1,2,22 | at org.jboss.remoting.transport.socket.ServerThread.versionedRead(ServerThread.java:660) | at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:530) | at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:369) | at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:165) I am trying to send simple text to the socket via telnet. On the server side I do not want any fancy deserialization happening. I just want to get the InputStream (SimpleInputStreamWrapper getInputStream() returns a simple InputStream) and read the data of that InputStream (TextUnMarshaller read(InputStream is, Map map) returns a String). May be I misunderstand the concept but I definitely do not understand the above error message. Thanks for your help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059432#4059432 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059432 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 2.0 sample app on Glassfish not working
Yup, now its working. Thanks a lot. I must admit, after playing a while with Seam, its an amazing framework. Keep up the good work guys. I am pretty sure, after hibernate, Seam is going to be the next big thing in JEE world. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059435#4059435 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059435 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - couldn't commit hibernate session
Hi all I'm trying to signal a newly created ProcessInstance, it sounds workin because I retrieve the current node and I found that it's the second node in the graph, but, when I call jbpmContext.close() to close and flush the session I got the following exception: org.jbpm.persistence.JbpmPersistenceException: couldn't commit hibernate session Here is the code | JbpmConfiguration conf = JbpmConfiguration.parseResource('/home/mustang/jbpm.cfg.xml"); | JbpmContext environment = conf.createJbpmContext(); | GraphSessin graphSession = environment.getGraphSession(); | ProcessDefinition pd = graphSession.findLatestProcessDefinition("AProcessDefinition"); | ProcessInstance pi = new ProcessInstance(pd); | pi.signal(); | environment.close(); | I'd be grateful if anybody could help me And here is the full StackTrace: | org.jbpm.persistence.JbpmPersistenceException: couldn't commit hibernate session | at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:179) | at org.jbpm.svc.Services.close(Services.java:211) | at org.jbpm.JbpmContext.close(JbpmContext.java:139) | 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:597) | at php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1124) | at php.java.bridge.Request.handleRequest(Request.java:342) | at php.java.bridge.Request.handleRequests(Request.java:388) | at php.java.bridge.JavaBridge.run(JavaBridge.java:215) | at php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.java:66) | Caused by: org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.jbpm.taskmgmt.exe.TaskMgmtInstance | at org.hibernate.engine.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:219) | at org.hibernate.type.EntityType.getIdentifier(EntityType.java:397) | at org.hibernate.type.ManyToOneType.isDirty(ManyToOneType.java:242) | at org.hibernate.type.TypeFactory.findDirty(TypeFactory.java:563) | at org.hibernate.persister.entity.AbstractEntityPersister.findDirty(AbstractEntityPersister.java:3071) | at org.hibernate.event.def.DefaultFlushEntityEventListener.dirtyCheck(DefaultFlushEntityEventListener.java:472) | at org.hibernate.event.def.DefaultFlushEntityEventListener.isUpdateNecessary(DefaultFlushEntityEventListener.java:197) | at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:120) | at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:196) | at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76) | at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26) | at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) | at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338) | at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106) | at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:169) | ... 11 more | Jul 01 12:44:20 JavaBridge ERROR: An exception occured: org.jbpm.JbpmException: problem closing services {persistence=org.jbpm.persistence.JbpmPersistenceException: couldn't commit hibernate session} | org.jbpm.JbpmException: problem closing services {persistence=org.jbpm.persistence.JbpmPersistenceException: couldn't commit hibernate session} | at org.jbpm.svc.Services.close(Services.java:223) | at org.jbpm.JbpmContext.close(JbpmContext.java:139) | 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:597) | at php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1124) | at php.java.bridge.Request.handleRequest(Request.java:342) | at php.java.bridge.Request.handleRequests(Request.java:388) | at php.java.bridge.JavaBridge.run(JavaBridge.java:215) | at php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.java:66) | Caused by: org.jbpm.persistence.JbpmPersistenceException: couldn't commit hibernate session | at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:179) | at org.jbpm.svc.Services.close(Services.java:211) | ... 10 more | Caused by: org.hibernate.TransientObjectException: object references an
[jboss-user] [JBoss jBPM] - Re: signalling the process with the newly created token
Hi maheshraj_4u, I have a problem similar to yours, have u found a solution? Thanks in addvance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059438#4059438 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059438 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Getting Started Documentation] - Re: javax.management.MalformedObjectNameException on startup
related to fc6 with ipv6 enabled. disable ipv6 to get rid of javax.management.MalformedObjectNameException: Invalid character ':' in value part of property and ERROR [TrapEmitter] SNMP send error for localhost/127.0.0.1:1162: . Do search in JIRA with ipv6 to get more info. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059439#4059439 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059439 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam, GWT, JSF, and lunch with Gavin
Read your blog. Very good idea! And by the way, there is irc channels for hibernate, drools, jbpm,I find them very useful and efficient. But so far have not found any irc channel for Seam. Anyone would like to build one? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059440#4059440 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059440 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - How to configure SonicMQ with JBOSS
Hi All, I need to use SonicMQ as message destination with JBOSS. Please help me how can I do that? I really need that. Thanks & Regards Pawan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059441#4059441 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059441 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - [newbie] problem with hibernate mapping while trying to save
Hello, Working on JBoss IDE 2.0.0 BETA2 with jBPM 3.1.3, I was trying to store some data to my own table, instead of jbpm_variableinstance. The JUnit test ran perfectly, but an "org.hibernate.MappingException: Unknown entity" exception occurred while running on Tomcat 5.5 after deployment. Here goes the details: 1. the table creation script: | create table student ( | id varchar(100) not null default '', | name varchar(20) default '', | age int(11) default 0, | primary key (id) | ); | 2. the corresponding Student classes (generated by hibernate synchronizer): | package dgbdatamodel; | ... | // primary key | private java.lang.String id; | | // fields | private java.lang.String name; | private java.lang.Integer age; | ... | // getters and setters | 3. the mapping file (also generated by hibernate synchronizer): | | http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"; > | | | | false | | | | | | | | | I used the auto-generated simple process, and added the following code to the MessageActionHandler.execute function: | stu = new Student(); | stu.setName("the hell"); | JbpmConfiguration cfg = JbpmConfiguration.getInstance(); | JbpmContext jbpmContext = cfg.createJbpmContext(); | try { | // Invoke persistence operations here | Session s = jbpmContext.getSession(); | s.save(stu); | } finally { | jbpmContext.close(); | } | the 'stu' is a member variable of MessageActionHandler. I first ran the sample SimpleProcessTest as JUnit test, and got 2 students named "the hell" in the table student ('cos the action was called twice in the test). Then I used JBoss IDE to deploy the process. The deployed archive includes the process, MessageActionHandler, the dgbdatamodel package, hibernate.cfg.xml as well as Student.hbm.xml. After logging in in the browser I started a new 'simple' process, after input 'color' and 'size' and clicked "Save and Close Task" (and the action handler is called), i got | javax.servlet.ServletException: Error calling action method of component with id taskform:transitionButton | ... | root cause | javax.faces.FacesException: Error calling action method of component with id taskform:transitionButton | ... | the log says sth like: | ... | 19:39:53,765 DEBUG [Services] closing service 'persistence': [EMAIL PROTECTED] | 19:39:53,765 DEBUG [DbPersistenceService] committing hibernate transaction | 19:39:53,781 DEBUG [DbPersistenceService] closing hibernate session | 19:39:53,781 ERROR [GraphElement] action threw exception: Unknown entity: dgbdatamodel.Student | org.hibernate.MappingException: Unknown entity: dgbdatamodel.Student | at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:610) | at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1246) | ... | I guess the deployed version didn't include the mapping declared in "Student.hbm.xml" (since if I don't call "s.save(stu)" in the action handler, no exception was thrown). I searched the forum for the answer, but in vain, the closest one I got is: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=89365 However, I just started learning jBPM and got stuck in here for quite a few days. Anyone's kind enough to give me some clues? Or what is the right way to do the job? Thanks a million! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059442#4059442 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059442 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - [2.0 CVS]Build failure: where is the org.jboss.seam.text pac
Hi, I was trying to build a Seam dist from the 2.0 CVS, but the compilation failed for the org.jboss.seam.text.SeamTextLexer.java and SeamTextParser.java cannot be found. Could someone please help? Thanks! Regards, Ellen View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059443#4059443 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059443 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: [2.0 CVS]Build failure: where is the org.jboss.seam.text
okay, I should build from shell, but not from within the eclipse. This problem is fixed. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059444#4059444 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059444 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: New jBPM Getting Started Documentation
Thanks so much for the tutorial! It's very helpful for newbies like me! But is it possible to include a brief example of how to work with user defined tables? I think most people don't want to mix their information with the BPM engine data. Thanks again! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059445#4059445 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059445 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] EJB3.0 and JBoss AOP
Hello everybody , I;m trying 3 or 4 days now to use JBoss AOP with EJB 3.0 and does not work, I have followed several tutorials as well as the "JBoss AOP Hands-on Tutorial" but still no results. Is there anybody that have made any working code with EJB 3.0 and JBoss AOP that can help ? Thank you in advance Ioannis ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM on JBossAS already installed
Download the jbpm-jpdl-suite-3.2.1.zip file from sourceforge. Inside you'll find deploy/jbpm-enterprise.ear. That's the main ear you'll deploy. It needs : * a datasource called JbpmDS which you'll have to configure. * an authentication policy called jbpm, to add to conf/login-config.xml The latter looks like this if you choose to keep your users in database : | | |java:/JbpmDS | | SELECT PASSWORD_ FROM JBPM_ID_USER WHERE NAME_=? | | | SELECT g.NAME_ ,'Roles' | FROM JBPM_ID_USER u, | JBPM_ID_MEMBERSHIP m, | JBPM_ID_GROUP g | WHERE g.TYPE_='security-role' |AND m.GROUP_ = g.ID_ |AND m.USER_ = u.ID_ |AND u.NAME_=? | | | | You may want to use some properties files for authentication and the configuration may be simpler. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059446#4059446 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059446 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: hibernate exception not hidden from ejb client
After some research, I found that my problem is not caused by a Hibernate specific exception that gets thrown. I use the GetProcessInstancesCommand in order to experiment with querying the remote ejb. This command returns a list with ProcessInstances. A ProcessInstance is read by Hibernate from the database. As Hibernate uses specific lazy-loading-aware implementations for collections -- the ProcessInstance.instances attribute, which is declared of type java.util.Map, is actually implemented by org.hibernate.collections.PersistentMap. Which generates class loading exception while deserializing to hibernate-unaware ejb clients. The solution would then be for the Command implementations to return clean JDK collections, by replacing Hibernate collection with JDK standard ones. Note that IIUC only the collections must be replaced, not the collection contents too, so the "cleaning" operation should not be that expensive. For people querying the SLSB remotely that should be no problem really, compared to the network marshalling cost. I wonder if other in-JVM uses of various Command's would be more sensitive performance-wise to adding some cleaning code to the standard Command implementions in jbpm-jpdl.jar. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059447#4059447 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059447 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: hibernate exception not hidden from ejb client
On second thought, cleaning should be only done in the SLSB remote call use case -- because in-JVM callers may want to benefit lazy-loading... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059448#4059448 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059448 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Need help in xhtml file
Hi Ronald, I need your help. Please help me. I googled on it alot but still I am not able to use struts tag in xhtml files. Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059449#4059449 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059449 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Storage of process variables outside jbpm?
hi kukeltje, anonymous wrote : | We configured hibernate to use the appserver transactions and used 2 datasources, one for jBPM, one for our own data. | could u explain how to do that in a little more detail? (I'm using JBoss IDE 1.6 or 2.0.0 beta2, jBPM 3.1.3) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059450#4059450 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059450 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - EJB exception handling
Hi everyone, Here is a thought about exception handling within an EJB container. Let me first start with a little example to demonstrate the nature of a potential problem with the conventional exception handling practices. Suppose we have an EJB called MortgageDAOBean which implements Stateless interface. public class MortgageDAOBean | { | public BigDecimal getCurrentRate() | { | // get current rate from the database. | } | } We also have an EJB called MortgageCalculatorBean which implements Stateless interface. public class MortgageCalculatorBean | { | private MortgageDAOBean mortgageDAOBean; | | public BigDecimal getMortgageAmount() | { | BigDecimal currentRate = mortgageDAOBean.getCurrentRate(); | | // do some further calculations here. | } | } And finally we have an EJB called MortgatePublisherBean which implements Stateless interface and sends the results of mortgage calculations to some JMS destination. public class MortgatePublisherBean | { | private MortgageCalculatorBean mortgageCalculatorBean; | | public void publishMortgageAmount() | { | BigDecimal mortgageAmount = mortgageCalculatorBean.getMortgageAmount(); | | // do some publishing logic here. | } | } For the sake of simplicity we can assume that methods of MortgageDAOBean and MortgageCalculatorBean throw only EJBException, which is a system exception that makes the container to roll back the transaction, log the exception and discard the instance of the EJB. Note that our MortgatePublisherBean does not do any exception handling because at this stage we are not interested in any particular type of exception, as long as EJBException is thrown that suffices us. However, we may have a situation when we need to do some exception handling depending on whether the exception was thrown by MortgageDAOBean or MortgageCalculatorBean. Furthermore, this requirement only exists in the context of MortgatePublisherBean and should not be applied to any other potential users of MortgageDAOBean or MortgageCalculatorBean. This task cannot be achieved with our current implementation of EJB?s, because both of the EJB?s throw the same type of exception, which is EJBException. What we would need is some type of exceptions which are associated with a particular type of activity. In our case we could have, for example, DataAccessException associated with MortgageDAOBean and CalculationException associated with MortgageCalculatorBean. These exceptions must not force users to catch them (remember that it?s only MortgatePublisherBean that needs to handle these exceptions), must be delivered as they are (without being wrapped within EJBException) and must result in transaction rollback. This can be achieved by sub classing our exceptions from RuntimeException and defining them as application exceptions which cause transaction rollback. So now our MortgatePublisherBean would look like this: public class MortgatePublisherBean | { | private MortgageCalculatorBean mortgageCalculatorBean; | | public void publishMortgageAmount() | { | try | { | BigDecimal mortgageAmount = mortgageCalculatorBean.getMortgageAmount(); | } | catch(DataAccessException exception) | { | // do some exception handling here. | } | catch(CalculationException exception) | { | // do some exception handling here. | } | } | } This works fine and solves the problem with exact exception handling. However this approach has a major drawback. The problem comes from the fact that application exceptions do not signal the container to discard EJB instances in which such exceptions occur. To demonstrate the consequences of this problem, imagine that our MortgatePublisherBean would implement Stateful instead of Stateless interface. This would mean that a new instance of MortgatePublisherBean will have to be created and associated with its own client for the length of its lifecycle. Whenever CalculationException occurs within an instance of MortgatePublisherBean the instance will not be automatically destroyed by the container and will exist until it is explicitly destroyed by its client or expires according to its timeout settings. This can potentially lead to multiple instances of MortgatePublisherBean with incorrect internal state remaining in memory of the container. It may seem like a useful thing to be able to define application exceptions as those that will cause destruction of EJB?s within which they occurred and as those that will not cause destruction of EJB?s. For example, both DataAccessException and CalculationException exceptions may be def
[jboss-user] [JBoss jBPM] - Re: Storage of process variables outside jbpm?
we did not do this in one transaction that is what you must understand. Further we just stored the primary key of our own data in a processvariable in jbpm. Nothing more... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059453#4059453 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059453 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Need help in xhtml file
jstl != strutstags struts is a web framework. So struts specific tags cannot be used in xhtml files View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059454#4059454 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059454 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Storage of process variables outside jbpm?
hi kukeltje, thanks for ur instant reply. i was trying to make a web app, which stores inputs into my own table ( based on jBPM 3.1.3 ), but i don't know how to add hibernate mapping of the table. the result is JUnit test runs ok, but the web version causes exception: | org.hibernate.MappingException: Unknown entity: dgbdatamodel.Student | i fired a new thread describing the details: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=112355 any suggestion is very much appreciated. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059455#4059455 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059455 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with Seam 1.2.1 and Trinidad 1.0.1
Not a solution for your problem, but shouldn't you use 1.2.1 with only with JBoss 4.0.5. Seam 2 is targeted for JBoss 4.2.0. Maybe i'm wrong. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059457#4059457 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059457 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: [newbie] problem with hibernate mapping while trying to
I (personally) do not extend the jbpm mappings with custom mappings for a domain model. I store data separately and use references (keys) to 'connect' the two View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059458#4059458 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059458 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: [newbie] problem with hibernate mapping while trying to
i see. again thanks for your kindness! :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059459#4059459 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059459 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - SessionBeans and Files/Inputstream
What would be the most efficient way of passing files to session beans that could reside on other nodes in a cluster. i.e. a file is uploaded to machine A which needs to pass it to a session bean on machine B for processing. Keeping in mind that the files could get quite large and passing byte arrays doesn't seem to be an efficient use of memory. Will a FileInputStream created on Machine A work on Machine B or is the same thing as passing a byte array? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059460#4059460 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059460 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: [newbie] problem with hibernate mapping while trying to
hi kukeltje, i have one last question: how to save the data (e.g. the 'name' and 'age' in my example) without mapping, HQL? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059461#4059461 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059461 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: [newbie] problem with hibernate mapping while trying to
uhhmmm... like you normally would? hibernate, sql, whatever... I do not get your question... and I never said we did not use mappings, just not IN jBPM View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059462#4059462 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059462 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: [newbie] problem with hibernate mapping while trying to
so what do u suggest i do with my 'student' example? and how to take advantage of the existing mapping? shall i bring up another hibernate session or sth? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059464#4059464 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059464 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: [newbie] problem with hibernate mapping while trying to
that is fully up to you. Depends on - you have/need one or two datasources - you want it in one transaction - View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059465#4059465 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059465 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: [newbie] problem with hibernate mapping while trying to
still a bit confused. i guess i'll try to use another hibernate session to use the mapping. thanks for your patience. it's very nice of u. i guess most of my questions r stupid and some even annoying :P View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059466#4059466 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059466 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: hibernate exception not hidden from ejb client
created jira : http://jira.jboss.com/jira/browse/JBPM-1008 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059467#4059467 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059467 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - seam.properties not working for me
I put two properties in seam.properties [EMAIL PROTECTED] sendMail.bypassEmail=false to configure a event scoped bean | | @Name("sendMail") | @AutoCreate | @Scope(ScopeType.EVENT) | public class SendMail { | | private String testMail; | private boolean bypassEmail; | | | public void setTestMail(String testMail) { | this.testMail = testMail; | } | | public void setBypassEmail(boolean bypassEmail) { | this.bypassEmail = bypassEmail; | } | ... | | } | But this is not working. Did I miss anything? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059468#4059468 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059468 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - jboss-el limitations for lvals?
In Seam 1.2.1GA I was not using jboss-el, and I had a value expression passed to a facelet source tag that looked something like this: | value="#{not empty f.expression ? f.expressionValue : f.componentProperty ? value[f.component][f.property] : value[f.name]}" | Now with Seam 2.0B1 (and the new Jboss-el) this gives me an error: | Illegal Syntax for Set Operation | when the form is submitted. Should I factor this out into mutliple separate simpler expression and put the conditional logic elsewhere? Or is this a limitation that we expect to be lifted at some point? Cheers J View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059470#4059470 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059470 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: User guide link not available without proxy.
Is there any movement on this? I haven't been able to get to the docs for days. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059471#4059471 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059471 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Test fails with Seam 2.0
I have encountered the same problem some days ago: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=111930 And you can download my patch to the jboss-embedded-all.jar from here: http://jira.jboss.org/jira/browse/JBAS-4491 Compile the Signature.java class and swap out the org.jboss.metadata.spi.signature.Signature.class with your compiled one. I did that and all my tests are running happily under Java 1.6. :-) Regards, Ellen View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059472#4059472 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059472 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - s:graphicImage decreases the image quality
Hello, i think, it should be possible to use the byte[] as is (+custom content type) with s:graphicImage. I prepare the images with JAI and if use the s:graphicImage the quality decreases. If i comment the preparation of BufferedImage out and put the input array to output thru, i get an expected quality. | /* | byte[] b = (byte[]) input; | readImage(new ByteArrayInputStream(b)); |*/ | // no transformation needed GB01072007 | output = (byte[]) input; | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059475#4059475 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059475 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: s:graphicImage decreases the image quality
Yes, you are right. I need to do a complete refactor of the Image code. If you want to file a JIRA issue to remind me of the above... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059476#4059476 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059476 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam.properties not working for me
Where did you put the seam.properties file? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059477#4059477 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059477 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with Seam 1.2.1 and Trinidad 1.0.1
I would guess you've got multiple copies of facelets.jar on the War classloader. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059478#4059478 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059478 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: [2.0 CVS]Build failure: where is the org.jboss.seam.text
They are generated by the antlr (I think its called that) target. Probably you had a classpath issue in eclipse, with the wrong antlr jar being loaded. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059479#4059479 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059479 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Need help in xhtml file
Hi, Even I am not able to use jstl tags in xhtml. In facelet I did some some rnd and in fact just now I have created a faclet EL expression given in IBM website. If I can use jstl in my xhtml, still it would help me alot. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059480#4059480 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059480 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam.properties not working for me
The project is based on seam-gen. seam.properties is in the root level of the application jar file, where includes SendMail.java. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059481#4059481 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059481 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Transaction won't commit from MDB Seam2 component
"[EMAIL PROTECTED]" wrote : I need to see the actual nature of the failure. Try turning on more verbose logging. I haven't been able to get any more info, I've tried fiddling with jbossjta-properties.xml and my Log4J config, but no success. I found this: http://jira.jboss.com/jira/browse/EJBTHREE-898 I'm giving up for now, since the functionality actually works, but I guess something is lurking under here ready to bite me. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059482#4059482 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059482 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Can I change timeout on startup? Problem with timeout when d
Hi, I am using the microcontainer with JBoss seam when debugging. My project has grown and startup time has increased. There seems to be a limit of 120 seconds to the startup after which the startup fails if not completed. Is it possible to change this limit? I am just a few seconds away from having everything deployed. Right now I have lost the ability to debug my project, and I am greatful for any hints or other tricks that I can use to be able to debug again... The startup on JBoss AS is around 60 seconds. Regards - henrik View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059483#4059483 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059483 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Error Migrating to Seam 2.0
Hello, We are in the process of migrating a 1.2 web app to Seam 2.0. We are deploying the app to JBoss 4.0.5GA. We have made the documented steps to upgrade to JSF 1.2. We have made the documented changes to web.xml, components.xml, faces-config.xml. We have updated package names in our code base. When we deploy the application, we get the following error: We have no classes in our code base that refers to the Mock classes. Does anyone have any suggestion as to the source of this issue? Thanks! | 2007-07-01 23:02:08,227 INFO [org.jboss.seam.contexts.Contexts] starting up: org.jboss.seam.ui.graphicImage.graphicImageResource | 2007-07-01 23:02:08,227 INFO [org.jboss.seam.contexts.Contexts] starting up: org.jboss.seam.ui.resource.webResource | 2007-07-01 23:02:08,228 INFO [org.jboss.seam.contexts.Contexts] starting up: org.jboss.seam.web.redirectFilter | 2007-07-01 23:02:08,228 INFO [org.jboss.seam.contexts.Contexts] starting up: org.jboss.seam.web.multipartFilter | 2007-07-01 23:02:08,229 INFO [org.jboss.seam.contexts.Contexts] starting up: org.jboss.seam.web.exceptionFilter | 2007-07-01 23:02:08,238 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/athletechs]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener | java.lang.NoClassDefFoundError: org/jboss/seam/mock/MockApplication | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) | at java.lang.reflect.Constructor.newInstance(Constructor.java:494) | at java.lang.Class.newInstance0(Class.java:350) | at java.lang.Class.newInstance(Class.java:303) | at org.jboss.seam.Component.instantiateJavaBean(Component.java:1198) | at org.jboss.seam.Component.instantiate(Component.java:1154) | at org.jboss.seam.Component.newInstance(Component.java:1849) | at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304) | at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278) | at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:98) | at org.jboss.seam.init.Initialization.init(Initialization.java:508) | at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34) | at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763) | at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211) | at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) | at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) | at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.apache.catalina.core.StandardContext.init(StandardContext.java:5052) | 2007-07-01 23:02:08,303 ERROR [STDERR] Jul 1, 2007 11:02:08 PM com.sun.faces.config.ConfigureListener contextInitialized | INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b10-p01) for context 'null' | 2007-07-01 23:02:08,635 ERROR [STDERR] javax.faces.FacesException: org.jboss.seam.jsf.SeamApplicationFactory | 2007-07-01 23:02:08,636 ERROR [STDERR] at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:556) | 2007-07-01 23:02:08,636 ERROR [STDERR] at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:448) | 2007-07-01 23:02:08,637 ERROR [STDERR] at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:249) | 2007-07-01 23:02:08,637 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.application(ConfigureListener.java:481) | 2007-07-01 23:02:08,638 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:529) | 2007-07-01 23:02:08,638 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:503) | 2007-07-01 23:02:08,639 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:402) | 2007-07-01 23:02:08,639 ERROR [STDERR] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763) | 2007-07-0
[jboss-user] [JBoss Seam] - Re: Error Migrating to Seam 2.0
I should mention that we copied the el-ri.jar into the jsf-libs folder when upgrading to JSF 1.2. The documentation (Section 2.8.2) refers to el-impl.jar which we could not find in the Seam 1.2 distribution. Is this a typo? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059485#4059485 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059485 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: s:graphicImage decreases the image quality
Ok, JIRA issue is now open http://jira.jboss.org/jira/browse/JBSEAM-1592 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059487#4059487 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059487 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM or pages.xml overloading / extending / composition
Does this mean that there is not as yet a solution to my problem? Or does it mean I should tackle my problem differently in the mean time? If so, would you be able to kindly provide an example of how you would tackle based on the following scenario: At the product layer we have say, a page that allows you to update a customers details. The outcomes are "update", "delete" and "view history". A particular client wants to redefine the process and page flow slightly: They want to; add a new outcome to the page "add note", remove an outcome "view history" and modify the process/page flow for the delete outcome to capture a deletion reason (so, an interim page in the flow for that other process). Essentually: Change: /user_info.seam | -> update | -> delete | -> confirm (/delete_user_confirm.seam) | -> view history (/view_user_history.seam) To: /user_info.seam | -> update | -> delete | -> delete reason (/site/delete_user_reason.seam) | -> confirm (/delete_user_confirm.seam) | -> add note (/site/add_user_note.seam) It's a fairly stupid example, and would probably be tackled differently/better in a real layout - But, the example demonstrates all layers that I need to be able to override. Cheers, David View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059488#4059488 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059488 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM or pages.xml overloading / extending / composition
Also, thanks for being so helpful and responsive. Sorry to have taken so long to respond, things have been a little hectic. Cheers, David View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059489#4059489 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059489 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - h:selectManyCheckbox replaces PersistentBag with Arrays.Arra
Hi During em.merge( ) operation i'm getting an exception, because the Arrays.ArrayList doesn't provide the AbstractList.remove functionality. As the collection was retrieved from DB, it was an instance of PersistentBag. After form submission it becomes Arrays.ArrayList. So someone (h:selectManyCheckbox ?) did replace the collection! Is it a known issue? Does someone have a workaround or its simple (as usual) my mistake? Thanks, Gena PS. I'm using JSF 1.2_04 P01 + latest facelets (from seam-cvs) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059490#4059490 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059490 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - how to upload file ?
Hi there, i am using t:inputFileUpload to do a file upload example and try to deploy it to jboss seam , but the example got error during i hit the submit button, it keep complain that "argument type mismatch ". if i don't attach a file and just hit the submit button it works just fine. Anyone got any idea about it ? thanks... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059491#4059491 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059491 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How best to perform validations that don't belong in ann
"[EMAIL PROTECTED]" wrote : Write a custom validator incl. annotation or write procedure code in your controller classes. Does programmatic component fall into the category of "JSF FAQ" stuff? Is it simply a matter of populating FacesMessages with an error and then returning null from the action method? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059492#4059492 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059492 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Wrong action order? Need I to change all my searching webpag
When I click the Link A, why seam call "projectQueryAction.doQuery" before "projectQueryAction.resetQuery"? As I know It work well in seam 1.2, now I update to 2.0. Link A: Pre-Action: | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059493#4059493 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059493 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - core:pages https-port ignored
Hello, i'm setting up the ssl with seam (latest cvs), but http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059494#4059494 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059494 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Migrating JSF app from JBOSS AS 4.0.5 to 4.2.0
Hi all! I have JSF App which is based on MyFaces impl 1.1.5 ver + Tomahawk and it is using Tiles (by special filter from Tomahauk) It works fine on 4.0.5, but when I'm trying to migrate on 4.2.0 - it didn't work. My steps: due WIKI I decided to use JSF Impl which is bundled with new JBOSS. I had changed header in my web.xml http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"; version="2.5"> , deleted MyFaces impl and deploy app - all what I saw were errors | 2007-07-02 01:19:39,453 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/hotel].[jsp]] Servlet.service() for servlet jsp threw exception | java.lang.RuntimeException: Cannot find FacesContext | at javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1797) | at javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1614) | at org.apache.jsp.jsp.component.mainlogin_jsp._jspx_meth_f_005fview_005f0(mainlogin_jsp.java:133) | at org.apache.jsp.jsp.component.mainlogin_jsp._jspService(mainlogin_jsp.java:105) | at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387) | at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) | at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687) | at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469) | at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403) | at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) | at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419) | at org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImpl.java:236) | at org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:222) | at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41) | at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140) | at com.hms.view.utils.CustomFacesServlet.service(CustomFacesServlet.java:48) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:67) | at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:223) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687) | at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469) | at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403) | at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) | at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:699) | at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:670) | at org.apache.jsp.jsp.index_jsp._jspService(index_jsp.java:56) | at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387) | at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) | at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina
[jboss-user] [JBoss Seam] - Trinidad Ajax4JSF
Have a clean jboss-4.2.0.GA and the lastest Seam version (2.0) from CVS. When I try to start the deployed seamdiscs example the following exception is thrown: | java.lang.IllegalStateException: Two components with the same name and precedence: org.jboss.seam.web.ajax4jsfFilter | at org.jboss.seam.init.Initialization.addComponentDescriptor(Initialization.java:414) | at org.jboss.seam.init.Initialization.installScannedComponentAndRoles(Initialization.java:691) | at org.jboss.seam.init.Initialization.scanForComponents(Initialization.java:636) | at org.jboss.seam.init.Initialization.init(Initialization.java:494) | at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34) | at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854) | at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359) | at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761) | at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741) | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553) | 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:597) | at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297) | at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310) | 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:597) | at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297) | at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301) | at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104) | at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375) | at org.jboss.web.WebModule.startModule(WebModule.java:83) | at org.jboss.web.WebModule.startService(WebModule.java:61) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) | at $Proxy0.start(Unknown Source) | at org.jboss.system.ServiceController.start(ServiceController.java:417) | at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy45.start(Unknown Source) | at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466) | 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
[jboss-user] [JBoss Seam] - Re: core:pages https-port ignored
I think http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059498#4059498 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059498 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Exadel, JBoss and Seam
Hi team.. first of all congrats to all.. and thank you for spending time for me.. well.. for the past one week i ve stuck with an issue. i have posted here before a week. but still i cant find the solution. my posts are in various forums, http://www.jboss.com/index.html?module=bb&op=viewtopic&t=112171 http://www.jboss.com/index.html?module=bb&op=viewtopic&t=111997 http://www.jboss.com/index.html?module=bb&op=viewtopic&t=111996 http://www.jboss.com/index.html?module=bb&op=viewtopic&t=111767 i have a problem in displaying the retrieved data in datatable. i want to know. where can i get examples. can you please give that link. please this may childish doubt. but please help me to overcome this issue thank you View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059499#4059499 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059499 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Redirect after logout
Nobody knows who can i modify this ? Thanks. PS: Sorry for my bad English. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059500#4059500 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059500 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - How to run JBoss AOP 2.0 and how can we embed JBoss AOP2.0 i
Sir/Madam Can we embed JBoss AOP 2.0 in JBoss IDE so that it would be easy to work with if so how can we do it and in the stand alone mode how can we run a JBoss AOP using the (aopc) for the execution of After/Before and Around aspects. ie.. where should v deploy the jboss-aop-xml file where should v write the aspect class and the other classes Please assist me in this regard. Thanking you, Mohammad Rafi. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059501#4059501 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059501 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: Simple Socket Server (TEXT)?
Since version 2.0.0, Remoting has preceded each message on the wire with a version byte. The valid version bytes, currently, are 1, 2, and 22. If you are using the same version of Remoting on the client and server, there shouldn't be a problem. But, you said you are using telnet as the client, which, of course, doesn't send a version byte. If you are using Remoting 2.0.0+, the default behavior is to treat the first available byte on the stream as a version byte, in this case a 't'. You want to turn off versioning. If you set the system property "jboss.remoting.pre_2_0_compatible" to true on the server side, Remoting will think it is talking to a pre 2.0.0 version of Remoting and will not expect a version byte. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059502#4059502 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059502 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: No JbpmConfiguration class def found in jBPM-jpdl 3.2.1
I had to copy C:\jboss\jbpm-jpdl-3.2.1\deploy\jbpm-enterprise.ear to C:\jboss\jbpm-jpdl-3.2.1\server\server\jbpm\deploy Still this doesn't work but at least the error message changed. It's sorry to see that newer versions of jBPM isn't always compatible with older versions. In my opinion, this is major problem since I can't use old code with new versions. Well.. they must sell support so.. lets try to live with it.. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059504#4059504 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059504 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user