[jboss-user] [JBoss jBPM] - Re: console url changed to http://localhost:8080/jbpm-consol
I think, yes. When I use it with internet connection, works fine, but when without internet, there is an error. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031262#4031262 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031262 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Connection Pooling in Jboss
Hi, Could any one, please help on JBoss Connection Pooling Configuration. We are using oracle 10g database. Thanks Mohan View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031264#4031264 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031264 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - NoSuchMethodError in clientside of a jaxws ws
Hi, I am using jbossws1.2.0 on jboss as 4.0.5, and jdk 1.6.0. i have a web service that contains methods that accept arrays of custom classes as one of its parameters, and returns an array of strings. in the wsdl generated i see that separate classes are generated for the arrays of the custom objects and strings. objects of these classes are instead taken as parameters from the client. basically the wsdl contains separate complextypes created for the arrays of the custom objects and strings. when i do a wsdl to java generation on the client i see an sei and a service class that contains a get(service)port method. apart from these there are namespace and package mapping classes. i would like to use a static stub at the client side, since my client is a standalone java app, that acts as an adapter and interacts with other apps in my organization. how do i get a static stub that implements the sei on the clientside using the jaxws tools provided by jboss? as of now i have a cleint that tries to obtain the port by instanciating the service class and invoking the webservice method. since there is no impl on the client side, i get a NoSuchMethodError. i have also tried using the dynamic proxy invocation from my client and get an exception there too. the exception reads, Cannot obtain java type mapping for: {http://datamodel.nm_update}securityAttributesArray, where http://datamodel.nm_update is my target namespace and securityAttributeArray is the complex type generated in the wsdl for the array of custom objects, which is the webservice method's parameter. below is a section of the wsdl generated for my ws. ?xml version=1.0 encoding=UTF-8? definitions name=NmUpdateService_Service targetNamespace=http://datamodel.nm_update; xmlns=http://schemas.xmlsoap.org/wsdl/; xmlns:ns1=http://jaxb.dev.java.net/array; xmlns:tns=http://datamodel.nm_update; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xs:schema targetNamespace=http://jaxb.dev.java.net/array; version=1.0 xmlns:xs=http://www.w3.org/2001/XMLSchema; xs:complexType final=#all name=stringArray xs:sequence xs:element maxOccurs=unbounded minOccurs=0 name=item nillable=true type=xs:string/ /xs:sequence /xs:complexType /xs:schema xs:schema targetNamespace=http://datamodel.nm_update; version=1.0 xmlns:tns=http://datamodel.nm_update; xmlns:xs=http://www.w3.org/2001/XMLSchema; xs:complexType name=securityAttributes xs:sequence xs:element minOccurs=0 name=colName type=xs:string/ xs:element name=index type=xs:int/ xs:element name=spn type=xs:int/ xs:element minOccurs=0 name=value type=xs:anyType/ /xs:sequence /xs:complexType xs:complexType final=#all name=securityAttributesArray xs:sequence xs:element maxOccurs=unbounded minOccurs=0 name=item nillable=true type=tns:securityAttributes/ /xs:sequence /xs:complexType /xs:schema the java name of the webservice method is updateAttributes, and wsdl name is NmUpdateService_updateAttributesResponse. 1) could the nosuchmethoderror be because of incomplete/wrong mapping of type names from wsdl to java? 2) what could the reason for the inability to map between the securityattributesarray object from to java to wsdl be during invocation from the client? 3)will the provider and dispatch APIs help in any way for dynamic invocation? any help is much appreciated. thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031266#4031266 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031266 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Serialization Exception after Session timeout
Hi there, I am having problems after a session timeout. When a session times out, my web page tries to access a property in an Stateful Session Bean in Session Scope and I get the following Exception: top: Exception getting value of property headline.line1 of base of type : de.greenmiles.website.words.SessionWords$$EnhancerByCGLIB$$a4daa20d ... Caused by: javax.ejb.EJBTransactionRolledbackException: java.lang.RuntimeException: org.jboss.serial.exception.SerializationException: Could not create instance of org.jboss.seam.persistence.EntityManagerProxy - org.jboss.seam.persistence.EntityManagerProxy It seams to me, that this is some follow-up problem, but I have no idea, what could be wrong. The exotic part in my setup is, that the session bean accesses another Stateful Session Bean in Application Scope, that is used as a cache for the data used in the Session Bean in Session Scope. I hope, someone can give me a hint, why the Serialization Exception is happening. Thanks for any help :oliver View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031269#4031269 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031269 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - HibernateSessionProxy ClassCastException
1. i want to inject the hibernate session in seam,so i config the component.xml as follows: core:hibernate-session-factory name=hibernateSessionFactory / core:managed-hibernate-session name=session auto-create=true session-factory-jndi-name=java:/HibernateSessionFactory / 2. Inside managed Bean , i use @in to inject the Hibernate Session, but when i am using DetachedCriteria in my application DetachedCriteria criteria = DetachedCriteria.forClass(Smartform.class); criteria.getExecutableCriteria(session) i got the HibernateSessionProxy ClassCastException,i debug the application and found that seam injected HibernateSessionProxy not the real HibernateSession object . So DetachedCriteria can't work. Does it mean that i can't use DetachedCriteria in my application? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031271#4031271 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031271 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM 3.2 GA on JBoss 4.2CR1
at least post which errors you get. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031277#4031277 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031277 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Newbie question : Process Instances
no problem. You can use jbpm this way. just make sure you have one jbpm instance that you access remotely or install jbpm with each application (jbpm core is 'just' a library) and point to the same database. When using multiple jbpm instances, make sure only one runs the scheduler View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031278#4031278 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031278 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Weird console problem
are the jdk installs identical? No special libs somewhere in the classpath? Otherwise I have no idea , but to turn on debug levels of jsf and see if there are any problems View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031279#4031279 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031279 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam/Hibernate meetup in San Francisco, Friday, March 2
Hey Gavin, an suggestion, it has a lot of news about seam that could be at home of seam project. I´m so glad about this tecnology. You´re the best. Aristides View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031280#4031280 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031280 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Re: Connection Pooling in Jboss
Why haven't you looked at the wiki before asking instead of making others search it for you..? http://wiki.jboss.org/wiki/Wiki.jsp?page=SetUpAOracleDatasource View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031281#4031281 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031281 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Compliance of the EAR of the booking demo?
Thanks. The reason I am writing this is that I am trying to make the demo to run on SAP Netweaver JEE5 edition and it complains that the deployment unit does not correspond to the spec... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031282#4031282 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031282 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - conversation switcher and pageflow
The conversation switcher doesn't seem to work when the conversation is a pageflow. I am navigating through a page flow and in between i switch to a different menu option and do something else. when i try to switch back to the conversation using the conversation switcher it redirects me to the exact page where i had stopped. But after this i cannot navigate in the pageflow. Will the conversation switcher work when the conversation is a pageflow? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031283#4031283 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031283 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - JBOSS CLUSTERING ON VIRTUAL MACHINE (LINUX)
We have an issue it is a little odd, we are running two instances of JBOSS clustering on two Red Hat Linux instrances, using VM ware (on same machine), this is for testing and replicating a live environment that has two teirs (fw in between) We are having trouble starting jboss in a clustered configuration, as it needs to have this, the errors seems to relate to not being able to send (broadcast?) to UDP sockets. The error is below I am pretty sure it isn't the firewall, but some permissions error. We can run unclustered, but JBOSS wont start in clustered mode PS this is the error we recieve 17:59:54,869 ERROR [UDP] exception sending msg: java.lang.Exception: dest=/229.1.2.3:45551 (83 bytes) java.io.IOException: Operation not permitted at java.net.PlainDatagramSocketImpl.send(Native Method) at java.net.DatagramSocket.send(DatagramSocket.java:612) at org.jgroups.protocols.UDP._send(UDP.java:316) at org.jgroups.protocols.UDP.sendToAllMembers(UDP.java:286) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031284#4031284 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031284 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Exception when completing a task in websale example
if you look in the source the FORCE has something to do with hibernate. What version do you run on tomcat? maybe you need a newer version View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031285#4031285 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031285 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Help: Seam PDF NPE??
Hi., I debugged inside Seam code and found that in DocumentStorePhaseListener documentData is NULL | DocumentData documentData = DocumentStore.instance).getDocumentData(contentId); | byte[] data = documentData.getData(); | Here's my web.xml file | ?xml version=1.0 encoding=UTF-8? | web-app | | context-param | param-namejavax.faces.CONFIG_FILES/param-name | param-value/WEB-INF/navigation.xml/param-value | /context-param | | !-- Ajax4jsf (must come first!) -- | filter | display-nameAjax4jsf Filter/display-name | filter-nameajax4jsf/filter-name | filter-classorg.ajax4jsf.Filter/filter-class | /filter |filter-mapping | filter-nameajax4jsf/filter-name | servlet-nameFaces Servlet/servlet-name | dispatcherREQUEST/dispatcher | dispatcherFORWARD/dispatcher | dispatcherINCLUDE/dispatcher | /filter-mapping | context-param | param-nameorg.ajax4jsf.VIEW_HANDLERS/param-name | param-valueorg.jboss.seam.ui.facelet.SeamFaceletViewHandler/param-value | /context-param | | !-- Seam -- | listener | listener-classorg.jboss.seam.servlet.SeamListener/listener-class | /listener | !-- -- | filter | filter-nameSeam Filter/filter-name | filter-classorg.jboss.seam.web.SeamFilter/filter-class | /filter | | filter-mapping | filter-nameSeam Filter/filter-name | url-pattern/*/url-pattern | /filter-mapping | | | | servlet | servlet-nameSeam Resource Servlet/servlet-name | servlet-classorg.jboss.seam.servlet.ResourceServlet/servlet-class | /servlet | | servlet-mapping | servlet-nameSeam Resource Servlet/servlet-name | url-pattern/seam/resource/*/url-pattern | /servlet-mapping | | | !-- Faces Servlet -- | servlet | servlet-nameFaces Servlet/servlet-name | servlet-classjavax.faces.webapp.FacesServlet/servlet-class | load-on-startup1/load-on-startup | /servlet | !-- Faces Servlet Mapping -- | servlet-mapping | servlet-nameFaces Servlet/servlet-name | url-pattern*.seam/url-pattern | /servlet-mapping | !-- SEAM PDF -- | | filter | filter-nameSeam Servlet Filter/filter-name | filter-classorg.jboss.seam.servlet.SeamServletFilter/filter-class | /filter | | filter-mapping | filter-nameSeam Servlet Filter/filter-name | url-pattern*.pdf/url-pattern | /filter-mapping | |filter | filter-nameSeam Redirect Filter/filter-name | filter-classorg.jboss.seam.servlet.SeamRedirectFilter/filter-class | /filter | | filter-mapping | filter-nameSeam Redirect Filter/filter-name | url-pattern*.seam/url-pattern | /filter-mapping | | | | servlet | servlet-nameDocument Store Servlet/servlet-name | servlet-classorg.jboss.seam.pdf.DocumentStoreServlet/servlet-class | /servlet | | servlet-mapping | servlet-nameDocument Store Servlet/servlet-name | url-pattern*.pdf/url-pattern | /servlet-mapping | | !-- JSF parameters -- | context-param | param-namejavax.faces.STATE_SAVING_METHOD/param-name | param-valueclient/param-value | /context-param | context-param | param-namejavax.faces.DEFAULT_SUFFIX/param-name | param-value.xhtml/param-value | /context-param | context-param | param-namefacelets.DEVELOPMENT/param-name | param-valuetrue/param-value | /context-param | | welcome-file-list | welcome-fileindex.jsp/welcome-file | /welcome-file-list | | !-- MyFaces -- | listener | listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class | /listener | | | !-- For Tomahawk -- | context-param | param-namefacelets.LIBRARIES/param-name | param-value/WEB-INF/tomahawk.taglib.xml/param-value | /context-param | | | !-- Extensions Filter -- | filter | filter-nameMyFacesExtensionsFilter/filter-name | filter-class | org.apache.myfaces.webapp.filter.ExtensionsFilter | /filter-class |
[jboss-user] [JBoss jBPM] - Re: jBPM : Couldn't be that complicated...
you do not need to fill any other table. One important thing however is that you do have to configure the login module. (as is described in the other post). If you have problems, please file as much relevant info (but not more) so we can help you better. Regarding the transitions, there is lots of info on this in the forum and the examples. Just a message like above is not enough info for us to help you. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031287#4031287 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031287 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm_log description/ query for information
the class column is for using one table for multiple (inherited) classes in hibernate. See the hibernate config files what classes they relate to View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031288#4031288 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031288 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Deploying jbpm-enterprise.ear from jbpm-jpdl-suite-3.2.B
this procedure is correct (for as far as I can see by looking at it, not tring it) upto the last part. The docs are indeed wrong where they describe changing the database. Just change hibernate.cfg.xml in the jar that is in the ear. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031289#4031289 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031289 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Separate database for jBPM
Thanks monkeyden. As I wrote, I have been trying various combinations of the things you mention while I try to learn how to develop a Seam application, about JBoss and Hibernate. The idea is to have 2 separate databases; one to store the dvdstore business data only (my dvdstore hsqldb database) and the other, only for jBPM's use (my jBPM hsqldb database). For all EntityManger declarations in the java code I have added unitName=dvdDatadtabase to the PersistenceContext annotation (eg in the AcceptAction class I have | @PersistenceContext(unitName=dvdDatabase,type=PersistenceContextType.EXTENDED) | EntityManager em; | ). I am running hsqldb in server mode (ie the jdbc driver and urls have been changed). I delete both databases manually, undeploy and then deploy the application (using the ant scripts which work perfectly well before I change the database settings). However, on successful deployment, my jBPM database has all the domain tables (ORDERS etc) and my dvdsore database has both sets of tables jBPM tables (ORDERS etc, plus, JBPM_EVENT etc). The key config I have added/changed (in bold in the config files below) are 1 - In persistence.xml I have added a new persistence-unit name=dvdDatabasejBPM pointing at the jBPM database 2 - In dvd-ds.xml I have added a new local-tx-datasource with jndi-name dvdDatasourcejBPM 3 - I have created jBPM.hibernate.cfg.xml, which is exactly the same as the hibernate.cfg.xml except have changed the connection.datasource property to java:/dvdDatasourcejBPM (I have not changed hibernate.cfg.xml) 4 - I have added to jBPM.cfg.xml . Nothing else has changed and all the files are packaged up correctly in the ear and contained war and jar. Any ideas on what I am missing? Is there something I can read that tells me the relationships between all these files (and if settings in any of them take precedence over the other) and the differences between seam managed and other database settings? Here are my configuration files: persistence.xml | ?xml version=1.0 encoding=UTF-8? | persistence xmlns=http://java.sun.com/xml/ns/persistence; | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; | xsi:schemaLocation=http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd; | version=1.0 |persistence-unit name=dvdDatabase | providerorg.hibernate.ejb.HibernatePersistence/provider | jta-data-sourcejava:/dvdDatasource/jta-data-source | properties | property name=hibernate.hbm2ddl.auto value=create-drop/ | property name=hibernate.cache.use_query_cache value=true/ | property name=hibernate.show_sql value=true/ | | property name=hibernate.cache.provider_class |value=org.hibernate.cache.HashtableCacheProvider/ | /properties |/persistence-unit |persistence-unit name=dvdDatabasejBPM | providerorg.hibernate.ejb.HibernatePersistence/provider | jta-data-sourcejava:/dvdDatasourcejBPM/jta-data-source | properties | property name=hibernate.hbm2ddl.auto value=create-drop/ | property name=hibernate.cache.use_query_cache value=true/ | property name=hibernate.show_sql value=true/ | | property name=hibernate.cache.provider_class |value=org.hibernate.cache.HashtableCacheProvider/ | /properties |/persistence-unit | /persistence | dvd-ds.xml ?xml version=1.0 encoding=UTF-8? | | datasources | local-tx-datasource | jndi-namedvdDatasource/jndi-name | !--connection-urljdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}dvd/connection-url -- | connection-url | jdbc:hsqldb:hsql://localhost/dvd_server | /connection-url | driver-classorg.hsqldb.jdbcDriver/driver-class | user-namesa/user-name | password/password | /local-tx-datasource | | local-tx-datasource | jndi-namedvdDatasourcejBPM/jndi-name | connection-url | jdbc:hsqldb:hsql://localhost/jBPM | /connection-url | driver-classorg.hsqldb.jdbcDriver/driver-class | user-namesa/user-name | password/password | /local-tx-datasource | | /datasources jBPM.cfg.xml jbpm-configuration | | jbpm-context | string name=resource.hibernate.cfg.xml value=jbpm.hibernate.cfg.xml / | service name=persistence |factory | bean class=org.jbpm.persistence.db.DbPersistenceServiceFactory | field name=isTransactionEnabledfalse//field |
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Where is Hibernate Config?
Little lost.. is it done via the persistence.xml in the ear? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031300#4031300 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031300 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - selectOne
I don's now what i do wrong: @Name(fahrzeugact) | @Stateful | public class Fahrzeug implements FahrzeugInterface { | @DataModel | private ListHersteller hrList; | | @DataModelSelection(hrList) | private Hersteller selectedHer; | | @PersistenceContext | private EntityManager em; | | @In(required=false) | private Hersteller hersteller; | | @Begin(join=true) | @Factory(hrList) | public void getHer(){ | hrList = em.createQuery(from Hersteller where akzept = true).getResultList(); | | } | public void setModel(){ | System.out.println(--- ); | } | | @End | public void reset() {} | | @Destroy | @Remove | public void destroy() {} | } | | } | a4j:region | s:div id=frm | a4j:form | | h:selectOneMenu value=#{hersteller} required=true | s:convertEntity / | s:selectItems value=#{hrList} var=her label=#{her.bezeichnung} noSelectionLabel=Bitte waehlen.../ | a4j:support event=onchange action=#{fahrzeugact.setModel}/ | /h:selectOneMenu | | | /a4j:form | /s:div | /a4j:region | | a4j:region | s:div id=msgh:messages globalOnly=false/ /s:div | /a4j:region | I get i error Invalid Value. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031302#4031302 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031302 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Where XMLHTTPRequest
Hai i am creating a Project in JBoss Portlet i need to send a XMLHTTPRequest to the portlet where i need to send this request View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031303#4031303 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031303 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - how to use modal popup to display validation/error message
I would like to be able to pop up a rich faces modal box with a validation error message. Does anyone have ideas how I can trigger this? I guess I can place the modal declaration in a facet in a s:decorate - but how do I trigger it to popup? My form in this situation has one field, and a submit button. Any ideas? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031304#4031304 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031304 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how to use modal
Take a look at the wiki example application. There are several examples of modal popups on the edit pages. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031305#4031305 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031305 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: selectOne
KoniKoni wrote : I don's now what i do wrong: | | | | a4j:region | | s:div id=frm | | a4j:form | | | | h:selectOneMenu value=#{hersteller} required=true | | s:convertEntity / | | s:selectItems value=#{hrList} var=her label=#{her.bezeichnung} noSelectionLabel=Bitte waehlen.../ | | a4j:support event=onchange action=#{fahrzeugact.setModel}/ | | /h:selectOneMenu | | | | | | /a4j:form | | /s:div | | /a4j:region | | | | | I get i error Invalid Value. For one it looks like you want h:selectOneMenu value=#{selectedHer} required=true Take a look at the ui example application to see this stuff working in action. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031306#4031306 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031306 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: selectOne
if declared the List in componets.xml does work, but i have to select the second selectOne by parameter form the first selectOne and the ui example don't provide such, or i don't understand it? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031307#4031307 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031307 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: HibernateSessionProxy ClassCastException
My bad. Please create an issue in JIRA, the fix for this is straightforward. Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031310#4031310 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031310 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam/Hibernate meetup in San Francisco, Friday, March 2
anonymous wrote : Hey Gavin, an suggestion, it has a lot of news about seam that could be at home of seam project. Wait 'til we get a proper community website - hopefully not too far away now, Christian is working hard on the new infrastructure. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031311#4031311 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031311 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Compliance of the EAR of the booking demo?
Note that in a real Java EE 5 environment there is an elegant way to do this. But JBoss 4.0.x is not a real Java EE 5 environment. I *think* that JBoss 4.2 supports the Java EE 5 way of doing this, I need to remember to try it out when we migrate to JBoss 4.2 in Seam 1.3. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031312#4031312 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031312 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Serialization Exception after Session timeout
This was a bug that is already fixed in CVS. Seam 1.2.1 will be out real soon now. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031313#4031313 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031313 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: conversation switcher and pageflow
um I guess it is supposed to work, but I'm not sure if any of us have ever tried it out. I'm not surprised if its broken. If you can create a really simple test case that demonstrates the problem, please create an issue in JIRA, and attach the test case. Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031314#4031314 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031314 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Compliance of the EAR of the booking demo?
anonymous wrote : The reason I am writing this is that I am trying to make the demo to run on SAP Netweaver JEE5 edition and it complains that the deployment unit does not correspond to the spec... The other way to do it is to declare the jars in META-INF/manifest.mf. This is the Java EE 1.4 spec-compliant way. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031315#4031315 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031315 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Compliance of the EAR of the booking demo?
Can we create a JIRA issue for traceability? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031317#4031317 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031317 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Separate database for jBPM
Basically, the configuration of jBPM persistence is completely in the hibernate.cfg.xml file. So all you need to do is create a second datasource (jbpm-ds.xml), and point hibernate.cfg.xml to that. AFAIK you should not need to modify any components.xml or persistence.xml files. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031318#4031318 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031318 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Compliance of the EAR of the booking demo?
If you insist :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031319#4031319 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031319 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Serialization Exception after Session timeout
phew... I'm glad... thanks a lot. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031320#4031320 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031320 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Deploying jbpm-enterprise.ear from jbpm-jpdl-suite-3.2.B
Yea some success. I have some better distilled down notes I will try to add. Still a rather frustrating solution. I wish at least we could see some more info on release timelines and more docs. I basically had to drop back to compiling from source since I was making some changes to allow annotated classes to be persisted (my classes not using class-name.hbm.xml style persistence descriptors). There is a jira item on this and I think they will include the change to an AnnotatedConfiguration which will allow statements like: | mapping class=com.mycompany.entity.MyClass/ | in hibernate.cfg.xml. Here is an ant build script you can use to expand and contract the jbpm-enterprise.ear so that you can edit the hibernate.cfg.xml just ant expand make your edits ant build | project name=hpfm-jbpm | | property name=basedir value=./ | property name=built.dir value=${basedir}/built/ | property name=expand.dir value=${basedir}/expand/ | property name=jboss.deploy.dir value=/usr/local/jboss/server/messaging/deploy/ | | | target name=clean | delete dir=${built.dir} / | /target | | target name=prepare | mkdir dir=${built.dir} / | mkdir dir=${expand.dir} / | /target | | target name=expand description=expand ear into the expand dir depends=prepare | !-- UNZIP THE EAR FILE -- | unzip src=${basedir}/jbpm-enterprise.ear dest=${expand.dir} / | | mkdir dir=${expand.dir}/jbpm-console-war / | unzip src=${expand.dir}/jbpm-console.war dest=${expand.dir}/jbpm-console-war / | | mkdir dir=${expand.dir}/jbpm-enterprise-jar / | unzip src=${expand.dir}/jbpm-enterprise.jar dest=${expand.dir}/jbpm-enterprise-jar / | | mkdir dir=${expand.dir}/lib/jbpm-configs-jar / | unzip src=${expand.dir}/lib/jbpm-configs.jar dest=${expand.dir}/lib/jbpm-configs-jar / | | mkdir dir=${expand.dir}/lib/jbpm-identity-jar / | unzip src=${expand.dir}/lib/jbpm-identity.jar dest=${expand.dir}/lib/jbpm-identity-jar / | | mkdir dir=${expand.dir}/lib/jbpm-jpdl-jar / | unzip src=${expand.dir}/lib/jbpm-jpdl.jar dest=${expand.dir}/lib/jbpm-jpdl-jar / | | /target | | | | target name=contract description=remake all the parts to the parts directory depends=prepare | | !-- ZIP CONTENTS OF THE EXPAND/LIB DIRECTORY-- | | zip destfile=${expand.dir}/lib/jbpm-jpdl.jar | fileset dir=${expand.dir}/lib/jbpm-jpdl-jar / | /zip | | zip destfile=${expand.dir}/lib/jbpm-identity.jar | fileset dir=${expand.dir}/lib/jbpm-identity-jar / | /zip | | zip destfile=${expand.dir}/lib/jbpm-configs.jar | fileset dir=${expand.dir}/lib/jbpm-configs-jar / | /zip | | !-- ZIP CONTENTS OF THE EXPAND DIRECTORY-- | | zip destfile=${expand.dir}/jbpm-enterprise.jar | fileset dir=${expand.dir}/jbpm-enterprise-jar / | /zip | | zip destfile=${expand.dir}/jbpm-console.war | fileset dir=${expand.dir}/jbpm-console-war / | /zip | | /target | | | | !-- | target name=build depends=prepare, make-parts | ear destfile=${built.dir}/jbpm-enterprise.ear appxml=${parts.dir}/META-INF/application.xml | fileset dir=${parts.dir} | exclude name=META-INF/application.xml / | /fileset | /ear | /target | -- | | target name=build depends=prepare, contract | ear destfile=${built.dir}/jbpm-enterprise.ear appxml=${expand.dir}/META-INF/application.xml | fileset dir=${expand.dir} includes=*.war,*.jar,lib/*.jar | !-- | exclude name=META-INF/application.xml / | exclude name=jbpm-enterprise-jar / | exclude name=jbpm-console-war / | exclude name=lib/jbpm-identity-jar / | exclude name=lib/jbpm-configs-jar / | exclude name=lib/jbpm-jpdl-jar / | -- | | /fileset | /ear | /target | | | target name=deploy depends=build | copy file=${built.dir}/jbpm-enterprise.ear todir=${jboss.deploy.dir}/ | /target | | | /project | | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031322#4031322 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031322 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: selectOne
I want to make follow: User choise from a selectOneMenu a category and the select selectOneMenu shows the films of selected category, how can i make that, the ui example provide just declarations from conponents.xml? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031323#4031323 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031323 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Connection not authorized to addMessages to destination
Newbee here. Doing a simple wholesaler and retaler jms example. 1) wholesaler creates a temporarytopic and subscribes to it. 2) when wholesaler publishes a message, it sets the message's JMSReplyTo to the temporaryTopic. 3) When retailer receives a message from wholesaler, it does some stuff and then based on calculations, it will publish a message to the message.getJMSReplyTo(). Here is the basic code snipets.. wholesaler: hotDealsTopic = (Topic) jndi.lookup(topic/Hot Deals); publisher = pubSession.createPublisher(hotDealsTopic); buyOrdersTopic = subSession.createTemporaryTopic(); subscriber = subSession.createSubscriber(buyOrdersTopic); subscriber.setMessageListener(this); when publishing: StreamMessage message = pubSession.createStreamMessage(); message.writeString(dealDesc); message.writeString(itemDesc); message.writeFloat(oldPrice); message.writeFloat(newPrice); message.setStringProperty(Username, username); message.setStringProperty(Itemdesc, itemDesc); message.setJMSReplyTo(buyOrdersTopic); publisher.publish(message, DeliveryMode.PERSISTENT, Message.DEFAULT_PRIORITY,180); Retailer: on Receive and process: TextMessage textMsg = session.createTextMessage(); textMsg.setText(count + + itemDesc); Topic buyTopic = (Topic) message.getJMSReplyTo(); publisher = session.createPublisher(buyTopic); textMsg.setJMSCorrelationID(DurableRetailer); publisher.publish(textMsg, DeliveryMode.PERSISTENT, Message.DEFAULT_PRIORITY, 180); JMSSecurityException: avax.jms.JMSSecurityException: Connection not authorized to addMessages to destination: JMS_TT5 at org.jboss.mq.security.ServerSecurityInterceptor.addMessage(ServerSecurityInterceptor.java:167) at org.jboss.mq.server.TracingInterceptor.addMessage(TracingInterceptor.java:226) at org.jboss.mq.server.JMSServerInvoker.addMessage(JMSServerInvoker.java:112) at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:111) at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:395) at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:398) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:732) at java.lang.Thread.run(Thread.java:595) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031325#4031325 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031325 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Best practices for cancelling a workflow
I need a way to cancel a workflow and have a handler fire, letting me know that the process was terminated abnormally. I'd like the handler to fire only when the process terminates in a non-standard way. For instance, I need to do some clean up of business code, clean up that I wouldn't have to do if the workflow ended normally. What's the recommended way to do this? I know about ProcessInstance.end(). Is there a way to create a handler or an event that let's me know (in Java code) when the workflow was terminated abnormally, ie. because of a call to end()? As an alternative, I can associate a Node named cancel with each step of the workflow, and signal each Task/Node/State to transition to the cancel node. But that seems clumsy - since I'd have to define a cancel step for every workflow and create a transition to it from every workflow node. A better way? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031327#4031327 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031327 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Compliance of the EAR of the booking demo?
Do not forget that this is completely broken too: - you need a space separated list of values on an entry named Class-Path: in your WAR and EJB-JAR META-INF/MANIFEST.MF, with all the JARs these need - you need to have a newline character after that line - you need to have _some_ content in the line following this line, otherwise it is, at least in the J2EE 1.4 compatible JBoss AS 4.0, completely ignored This last one did cost me one day. However, after treating a Seam application like that, it works just as well as with the Java client JAR list in application.xml. I thought it would be faster to deploy because the EJB3Deployer would not scan the MANIFEST.MF entries (it scans the Java modules of the EAR), but there was some new cryptic INFO message showing up after that indicating that is doing something special now to scan - which took just as long. This is all a complete nightmare. Here is hope that we'll get the promised EAR/lib/ soon. Or better, can deploy everything in a WAR structure, EJBs and all. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031328#4031328 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031328 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - List of seam s:... components...
Hi, where can i Find full list with info of seam s: components like s:button... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031331#4031331 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031331 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Separate database for jBPM
That's done the trick, thanks. So if I understand correctly, 1 - In the dvdstore app, hibernate.cfg.xml effects only jBPM. It has no impact on how the entity beans are persisted. 2 - jboss-beans.xml is not relevant at all for the dvdstore example (I've deleted it with no apparent side-effects). 3 - each deployed SEAM (with jBPM) application can provide its own jBPM database with a separate *-ds.xml (as long as it uses a unique jndi name). 4 - the app-server (jboss/hibernate/seam ...) will try to run import.sql against all persistence-units that are loaded (?). This is good for my dvdstore database but no good for the jBPM database (throws an exception when it can't delete from one of the domain tables (ORDERLINES) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031332#4031332 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031332 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Intercepting component installation
I'm writing some (configuration level) code that needs to know which Seam components are installed. It actually needs to know which Seam components also have a @my.Configuration(description) annotation. My current approach is to register these manually in components.xml: | component name=systemConfiguration class=SystemConfiguration | property name=configurableComponents | keyfooComponent/keyvaluedescription one/value | keybarComponent/keyvaluedescription one/value | ... | /property | /component | Ideally I'd like to either listen to events send by the Seam deployer, or if that is way to early in the boot to get events/listeners going, I'd like to access the Seam component repository programmatically later on. I only found methods like Component.forName(), no Component.getAll(). I'm also thinking about subclassing ComponentScanner as ConfigurationScanner and scanning again for my annotation, but that is probably slowing down the boot procedure. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031333#4031333 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031333 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Compliance of the EAR of the booking demo?
Yes, the longterm solution to this (read Java EE 6) is that EJB components will be deployable in WEB-INF/lib or WEB-INF/classes. It seems we've managed to convince Sun on this one, but it will take time to get it in the specs. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031334#4031334 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031334 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Separate database for jBPM
1. Right. 2. jboss-beans.xml is *always* for tests only 3. sure 4. um. probably View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031335#4031335 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031335 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Intercepting component installation
Ah, I'm stupid. Seam registers the components in the application context, so I just need to iterate through the names and pick *.component. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031337#4031337 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031337 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - t:inputfileupload inside a Myfaces JSF portlet on JBoss Port
Has a anybody successfully used a MyFaces Tomahawk inputfileupload component inside a JSF portlet inside of JBoss Portal ? We have many MyFaces Portlets (using MyFacesGenericPortlet mode) running inside of JBoss Portal, using Tomahawk components such as the datatable and server side Tree2, but for some reason the inputfiledownload doesnt work correctly, it works inside a webapp on JBoss correctly. The control is displayed correctly inside the portal, but when the h:form enctype is sent to multipart/form-data the upload action fails to trigger,the actions do get called when the enctype is removed, but ofcourse the fileupload will fail because the request has to contain multipart data for the apache fileupload api to process correctly. I found a somewhat similar problem related to the seam fileupload component. are they related ? http://jira.jboss.com/jira/browse/JBSEAM-947 Using the Apache Portal bridges is not an option since these are already production level portlets running using the MyFacesGenericPortlet bridge. Can somebody please provide some pointers ? Thanks, Kevin View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031338#4031338 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031338 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: t:inputfileupload inside a Myfaces JSF portlet on JBoss
Oops forgot the env. We use JBoss Portal 2.21 and MyFaces 1.1.3 and Tomahawk 1.1.3 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031339#4031339 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031339 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Intercepting component installation
Now I need to intercept component startup. So I could use @Startup but I really depend on _all_ other components being installed first. The depends=[] attribute doesn't really work for me. I guess I could use something like @Startup(dependsPackages=[]). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031341#4031341 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031341 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Questions regarding performance of read-only operations
Hi 1)I was wondering why read operations - such as POJO aspectized getters and PojoCache.getObject method - have to be so slow ... After reviewing the code - it seems that even for Read Only operations there is a Method call to get the data via the JChannel: |public Node get(Fqn fqn) throws CacheException |{ | MethodCall m = MethodCallFactory.create(MethodDeclarations.getNodeMethodLocal, new Object[]{fqn}); | return (Node) invokeMethod(m); |} | I was wondering what is the reason for doing that ? After all cache is read-mostly and read operations should as fast as regular direct method calls. 2)Another question is - Are there any optimizations if the cluster member size is 0 ? (I didn't see any - although in the JGroups Distributed map examples there are) If there are no members on the channel why do so much work ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031344#4031344 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031344 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Sar archive as .sar file doesn't deploy, but as directory it
I've got a .sar file which I deploy under the /deploy folder. JBoss throws an exception complaining that it can't find the jboss-service.xml file under META-INF. However, if I unzip the same .sar file into a folder ending with .sar everything works fine. I'm sure it must be a configuration problem somewhere, but can't find anything in the FAQs or on the net View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031346#4031346 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031346 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Scheduled TaskInstances within a ProcessInstance?
great that it works, could you make a small wiki page describing how you exactely achieved this? We'd appreciate that very much. Ronald View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031347#4031347 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031347 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: WSDL-location help?
The JSR181 specification (http://jcp.org/en/jsr/detail?id=181) says in 4.1 Annotation: javax.jws.WebService: anonymous wrote : wsdlLocation: | The location of a pre-defined WSDL | describing the service. The wsdlLocation is | a URL (relative or absolute) that refers to a | pre-existing WSDL file. The presence of a | wsdlLocation value indicates that the | service implementation bean is implementing | a pre-defined WSDL contract. The JSR-181 | tool MUST provide feedback if the service | implementation bean is inconsistent with the | portType and bindings declared in this | WSDL. Note that a single WSDL file might | contain multiple portTypes and multiple | bindings. The annotations on the service | implementation bean determine the specific | portType and bindings that correspond to | the Web Service. My interpretation is that something like | @Webservice(.. | wsdlLocation=http:\\ .. | ..) | should be possible. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031348#4031348 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031348 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Vanishing component....
This gets actioned: | | s:button value=#{messages.button_add_image} | action=#{uploadController.startUpload(the_user)} rendered=#{the_user.picture == null}/ | | which triggers this (from debugger): pages/organisation/organisationFind.xhtml:uploadController.startUpload(the_organisation) but the uploadController component is now not found... but does exist... | | /* | InterceptionType.NEVER obviously has the side effect of preventing @Injection | but it also prevents IllegalStateExceptions due to Seam not being initialized | during requests to this bean from the current implementation of the FileUploadManager. As the | FileUploadServlet gets integrated into the normal Servlet mechanism, | this will go away. | */ | @Intercept(InterceptionType.NEVER) | @Stateful // A component stays in existance for the duration of the Scope (conversation in this instance). | @Name(uploadController) // Name used within SEAM for an instance of this class. | @Conversational // Scope that this class exists in. | public class UploadControllerImpl implements UploadController, Serializable { | | Here it is... | | 11:02:44,031 INFO [Component] Component: uploadController, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class: nz.co.risingstars.actions.upload.UploadControllerImpl, JNDI: risingstars/UploadControllerImpl/local | | Any suggestions? Am using IceFaces 1.6DR#2+Greg Dick fix Seam 1.2 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031349#4031349 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031349 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Vanishing component....
Refers: http://www.icefaces.org/JForum/posts/list/4071.page View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031350#4031350 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031350 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: List of seam s:... components...
Is this not in the doco that comes with the seam bundle you download. Its a pretty comprehensive reference manual. Quite a few great books appearing now as well (Michal Yuan for example) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031351#4031351 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031351 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Vanishing component....
| 11:29:10,281 ERROR [SeamPhaseListener] uncaught exception | javax.faces.el.EvaluationException: Cannot get value for expression '#{uploadController}' | at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:402) | at org.jboss.seam.actionparam.ActionParamBindingHelper.findParamTypes(ActionParamBindingHelper.java:94) | at org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:55) | at org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:75) | at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:106) | at org.jboss.seam.core.Pages.callAction(Pages.java:466) | at org.jboss.seam.core.Pages.enterPage(Pages.java:275) | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031354#4031354 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031354 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Wrong column type: PROJECT, expected: varchar(3)
Having used seam-gen to create my beans from an existing schema, on deploying the ear, I got messages along the lines of Wrong column type: PROJECT, expected: varchar(3). So I guessed Seam (or Hibernate) is having trouble mapping back the beans to the schema so I changed all the CHAR fields to VARCHAR (even those of length 1). Then it complained, wanting one (but not all !?) of the VARCHAR(1)s as CHAR(1)s so I obliged (luckily I was using a test database that I can tweak the schema of on this occasion). Now I have the app deployed. Any ideas what caused this and what best practice is (especially when the schema is not going to change) ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031357#4031357 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031357 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Exception handling best practice
Hello, I am new to hibernate and was wondering if someone could recommend or point me to a source that would provide some best practices on how exceptions that occur in DAO should be propogated up to the service layer and the client? Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031361#4031361 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031361 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss/Spring Integration] - Problem persisting data using Spring + Hibernate JPA
Hello, I am getting the following exception when I try to insert a record into mysql. I am using Spring 2.03 with Hibernate JPA. I have pasted my code below and the config files. Any help would be greatly appreciated. Suneet service class public class ServiceMgr { protected ServiceDAO serviceDao; public ServiceMgr() { } public ServiceMgr(ServiceDAO serviceDao) { super(); this.serviceDao = serviceDao; } public Service getService(String id) { return serviceDao.findById(id); } @Transactional( propagation = Propagation.REQUIRED, readOnly = false ) public void addService(Service serv) { serviceDao.persist(serv); } DOA Impl class public class ServiceDAOBean implements ServiceDAO { private static final Log log = LogFactory.getLog(ServiceDAOBean.class); private EntityManager entityManager; private EntityManagerFactory emf; @PersistenceContext public void setEntityManager(EntityManager em) { entityManager = em; } @PersistenceContext public void setEntityManagerFactory(EntityManagerFactory emf) { this.emf = emf; } @Transactional( propagation = Propagation.REQUIRED, readOnly = false ) public void persist(Service transientInstance) { log.debug(persisting Service instance); try { entityManager.persist(transientInstance); log.debug(persist successful); } catch (RuntimeException re) { log.error(persist failed, re); throw re; } } Spring applicationContext.xml beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:aop=http://www.springframework.org/schema/aop; xmlns:tx=http://www.springframework.org/schema/tx; xsi:schemaLocation=http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd; constructor-arg ref=serviceDAO/constructor-arg tx:annotation-driven transaction-manager=transactionManager / View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031362#4031362 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031362 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss/Spring Integration] - Re: Problem persisting data using Spring + Hibernate JPA
The xml file did not paste properly: bean id=serviceManager class=diamelle.common.service.ServiceMgr | constructor-arg ref=serviceDAO/constructor-arg | /bean | | bean id=serviceDAO class=diamelle.common.service.ServiceDAOBean | property name=entityManagerFactory ref=entityManagerFactory / | /bean | | |bean id=entityManagerFactory | class=org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean | property name=dataSource ref=dataSource / | property name=jpaVendorAdapter | bean | class=org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter | property name=generateDdl value=false / | property name=databasePlatform value=org.hibernate.dialect.MySQL5Dialect / | property name=showSql value=true / | /bean | /property | /bean | | bean id=dataSource class=org.springframework.jdbc.datasource.DriverManagerDataSource | property name=driverClassName value=com.mysql.jdbc.Driver / | property name=url value=jdbc:mysql://localhost:3306/mysql / | property name=username value=idmuser / | property name=password value=idmuser / | /bean | | bean id=transactionManager class=org.springframework.orm.jpa.JpaTransactionManager | property name=dataSource ref=dataSource / | property name=entityManagerFactory ref=entityManagerFactory / | /bean | | tx:annotation-driven transaction-manager=transactionManager / | bean class=org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor / | bean class=org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor / | | | | /beans View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031363#4031363 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031363 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - how to rollback a DB manipulation SQL in a method
Hi all, I have this question regarding rolling back and I thought it is handled by Transaction Manager of the EJB 3.0 but it doesnot seem so. The problem is I have method in a Stateless session bean that trying to remove some rows in 1 table first and and then insert some rows in the other table. I want to make sure if the insertion failed in the second step, all of those removals would be rolled back. I use the EntityManager to do the delete and insert. Here are the pseudocode of my method void updateDB (){ | | removeRows(); | addRows(); | } | void removeRows(){ |//use EntityManager to remove | } | | void addRows(){ |//use EntityManager to insert some rows | } | Could anyone tell me how to make sure if the call to addRows failed, such as insert a duplicate row, would cause the removeRows rolledback? Thank you very much in advance, LNgo View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031365#4031365 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031365 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Questions regarding performance of read-only operations
The calls are made using reflection. The call does not go to the JChannel for local caches. If you want to find performance issues, I suggest you use a profiler. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031368#4031368 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031368 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Re: JBOSS CLUSTERING ON VIRTUAL MACHINE (LINUX)
What are the ports you have configured? It's coming from the JVM. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031369#4031369 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031369 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Questions regarding performance of read-only operations
OK, so no channel calls are involved, but reflection call on every getter I call ? Why ? Second- You are right about the profiling part - I will profile it too, I just compared simple pojo getters against aspectized pojo getter and the results were pretty surprising View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031371#4031371 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031371 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user