[jboss-user] [EJB 3.0] - Can I access ejb3.0 via corba?
hello,I want to access my ejb3 through corba,how should I do? Please give me an examlpe,and tell me the step to use corba acess ejb3 component. Thanks a lot! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114519#4114519 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114519 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: How to write Jboss Web Service Client for JBoss 4.0.4 GA
I did look at the mentioned link but it does not clearly indicate the steps. Give that the first time I am writing the client, Would appreciate if there is any step by step guide to create the client? TIA... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114510#4114510 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114510 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: JBREM-786:
Hi James, Thanks for sticking around, and thanks for the elucidation. Yes. I get it. I'll do it. Yes. "Molly Bloom" wrote : | yes I said yes I will Yes. | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114508#4114508 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114508 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Exception while running JbossWS service client
I created the client artifects from the wsdl. The error was i guess due to since client\jbossall-client.jar was not included in the classpath. I modifed the batch file and it worked fine. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114506#4114506 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114506 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBoss Portal 2.6.3 released
Thank you Wesley View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114504#4114504 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114504 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: how to send message to remote server with http
"ataylor" wrote : You need to configure jBoss Remoting. theres an example under docs/examples/http. thanks! is docs/examples/http the same as jboss-messaging-1.4.0.SP3/examples/http? I can run that example successfully,but the access to jndi in that example is not over http,and i tried change configure in the jndi.properties from [ java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.provider.url=jnp://172.25.67.39:1099 java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces ] to [ java.naming.factory.initial=org.jboss.naming.HttpNamingContextFactory java.naming.provider.url=http://172.25.67.39:8080/invoker/JMXInvokerServlet java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces ] but i got this exception: sleep: [echo] Sleeping for 2 seconds ... run: [java] javax.naming.NoInitialContextException: Cannot instantiate class: org.jboss.naming.HttpNamingContextFactory [Ro .ClassNotFoundException: org.jboss.naming.HttpNamingContextFactory ] [java] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657) [java] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247) [java] at javax.naming.InitialContext.init(InitialContext.java:223) [java] at javax.naming.InitialContext.(InitialContext.java:175) [java] at org.jboss.example.jms.common.Util.doesDestinationExist(Util.java:51) [java] at org.jboss.example.jms.common.ExampleSupport.setup(ExampleSupport.java:214) [java] at org.jboss.example.jms.common.ExampleSupport.setup(ExampleSupport.java:194) [java] at org.jboss.example.jms.common.ExampleSupport.run(ExampleSupport.java:146) [java] at org.jboss.example.jms.http.HttpExample.main(HttpExample.java:136) [java] Caused by: java.lang.ClassNotFoundException: org.jboss.naming.HttpNamingContextFactory [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:200) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:188) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251) [java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) [java] at java.lang.Class.forName0(Native Method) [java] at java.lang.Class.forName(Class.java:242) [java] at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42) [java] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654) [java] ... 8 more [java] [java] # [java] ###FAILURE! ### [java] # BUILD FAILED what should i do next? Thanks a lot! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114502#4114502 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114502 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Getting Started Documentation] - Todo Example Application ("jsfejb3.ear") Broken in Safari
Hi all, I downloaded and installed the JBoss 4.2.2.GA.zip. I followed the instructions starting from http://labs.jboss.com/file-access/default/members/jbossas/freezone/docs/Getting_Started_Guide/beta422/html/About_the_Example_Applications.html , including downloading the examples from http://www.redhat.com/docs/manuals/jboss/gettingstarted.zip . After unpacking the ZIP, everything built fine, the default server started up the EAR file that was built got loaded, the expected table and initial rows were successfully created in the hypersonic database, and the initial web page was properly displayed. After all of this, when I click on the link to "Create New Todo", nothing happens. Same goes for any clicks on "Show All Todos". The same links seem to work fine with Firefox and Konqueror. I've had this problem with past releases of JBoss where the contents of autogenerated script elements would sometimes start with
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: CMT doesn't rollback
Try this | try{ | School sc1 = new School("first"); | em.persist(sc1); | if(i == 1) throw new Exception(); | School sc2 = new School("second"); | em.persist(sc2); | }catch(Exception e){ | | System.out.println("roll back?"); | throw new RuntimeException(e); | } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114499#4114499 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114499 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - What happened for a Service Bean in multi-threading?
I used JBoss extension Service Bean as a singelton control. However, it does not prevent concurrency to call this service Bean. Multi-threadings could call the API in this service Bean at the same time. Seems container control on the bean pool is not effective for service Bean. Is this true? If yes, what's the best way to design a singelton stateless session Bean? I tried Jboss PoolClass, but it is so odd to compile. I appreciate all your good thoughts. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114498#4114498 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114498 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Injected Logger is null on tomcat, seam 1.2
Thanks pete. I try that tonite. U r great help :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114497#4114497 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114497 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Test database with Seam2, Maven and TestNG?
I got it working, but it was a configuration pain. For those that read this post here is a very quick howto: | * create src/main/conf - this will be files that are added to the war but not added to target/classes on build (and therefore will not interfere with testing) | * move src/main/resources/META-INF/persistence.xml to src/main/conf/META-INF/persistence.xml | * create src/test/resources/META-INF/persistence.xml (see below for example) | * set the base directory for surefire to ensure that the relative paths work | * configure pom to include src/main/conf | src/test/resources/META-INF/persistence.xml: 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"> | | org.hibernate.ejb.HibernatePersistence | file:classes/META-INF/orm.xml | file:classes | | ... | | | The mapping-file and jar-file allow the entities be picked up as if the file was in the src/main/resources/META-INF was used. pom.xml excerpts: ... | | maven-surefire-plugin | 2.4-SNAPSHOT | | ${project.build.directory} | | **/*Test.java | | | | | maven-war-plugin | 2.1-alpha-2-SNAPSHOT | | | | src/main/conf | WEB-INF/classes | | | | | ... | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114496#4114496 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114496 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How to uses DateTimeConverter in .page.xml parameter?
I am in a process of upgrading to Seam 2GA; and getting this error I wasn't getting with Seam 1.2.1GA. I have date/time fields on xhtml form; for which I set default values in page action. I am getting attached errors which appears to be related to date value conversion when writing to bean props. I am not sure how to add converter to page paramter??? convertjavax.faces.convert.DateTimeConverter | .page.xml | ... | | | ... | | | Error: If without converter in page parameter | ... | ERROR [SeamPhaseListener] uncaught exception | javax.el.ELException: java.lang.IllegalArgumentException: argument type mismatch | at javax.el.BeanELResolver.setValue(BeanELResolver.java:116) | at javax.el.CompositeELResolver.setValue(CompositeELResolver.java:68) | at com.sun.faces.el.FacesCompositeELResolver.setValue(FacesCompositeELResolver.java:93) | at org.jboss.el.parser.AstPropertySuffix.setValue(AstPropertySuffix.java:73) | at org.jboss.el.parser.AstValue.setValue(AstValue.java:84) | at org.jboss.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:249) | at org.jboss.seam.core.Expressions$1.setValue(Expressions.java:117) | at org.jboss.seam.navigation.Pages.applyConvertedValidatedValuesToModel(Pages.java:779) | ... | | | when adding converter, the error below occurs | | ... | | | ... | | | FATAL [application] JSF1006: Cannot instantiate converter of type javax.faces.convert.DateTimeConverter | 11:51:56,045 WARN [Param] could not create converter for: settlementDateTo | javax.faces.FacesException: Expression Error: Named Object: javax.faces.convert.DateTimeConverter not found. | at com.sun.faces.application.ApplicationImpl.createConverter(ApplicationImpl.java:726) | at org.jboss.seam.jsf.SeamApplication.createConverter(SeamApplication.java:112) | at org.jboss.seam.navigation.Param.getConverter(Param.java:52) | | OR | ... | | | ... | | FATAL [application] JSF1006: Cannot instantiate converter of type org.jboss.seam.ui.converter.DateTimeConverter | 11:58:57,301 WARN [Param] could not create converter for: settlementDateFrom | javax.faces.FacesException: Expression Error: Named Object: org.jboss.seam.ui.converter.DateTimeConverter not found. | at com.sun.faces.application.ApplicationImpl.createConverter(ApplicationImpl.java:726) | at org.jboss.seam.jsf.SeamApplication.createConverter(SeamApplication.java:112) | at org.jboss.seam.navigation.Param.getConverter(Param.java:52) | at org.jboss.seam.navigation.Param.getStringValueFromModel(Param.java:142) | at org.jboss.seam.navigation.Pages.updateStringValuesInPageContextUsingModel(Pages.java:820) | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114495#4114495 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114495 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: org.jboss.remoting.transport.jnp.TransportClientFactory
Thanks for the answer. I've downgraded to 2.0.0.GA. However, I'm still facing some problems - I moved to this thread http://www.jboss.com/index.html?module=bb&op=viewtopic&t=126274 Regards, Piotr View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114494#4114494 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114494 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Javassist user questions] - Find and replace synchronized blocks with JA 3.4?
I have been using the ExprEditor class along with #instrument to enhance byte code, but I am having a little trouble with detecting synchronised blocks. What I want to do is put a method call in place of the beginning and replace the end of the block with a different method call and remove the synchronisation entirely. Sounds a little crazy I know, but its all for a good purpose. Unfortunately I can't seem to work out from the tutorials how to go about changing the synchronised blocks and ExprEditor has no method for finding them. Any points on how to detected and replace would be much appreciated. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114493#4114493 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114493 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Integration test - PROVIDER_URL not provided in jndi.pr
I've downgraded to 2.0.0.GA. However now I'm getting this exception: | ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Described: name=ServerConfig state=PreInstall | java.lang.NoClassDefFoundError: Lorg/jboss/system/server/BaseServerConfig; | at java.lang.Class.getDeclaredFields0(Native Method) | at java.lang.Class.privateGetDeclaredFields(Class.java:2232) | at java.lang.Class.getDeclaredFields(Class.java:1715) | at org.jboss.aop.ClassContainer$1.run(ClassContainer.java:100) | at java.security.AccessController.doPrivileged(Native Method) | at org.jboss.aop.ClassContainer.populateFieldTable(ClassContainer.java:96) | at org.jboss.aop.ClassContainer.createFieldTable(ClassConta | Strange, but class jboss/system/server/BaseServerConfig doesn't exist in jboss-system.jar. My classpath looks like this: jboss-seam-2.0.0.GA/bootstrap/ jboss-seam-2.0.0.GA/lib/test/*.jar jboss-seam-2.0.0.GA/lib/*.jar (apart from jboss-seam-ui.jar) compiled tests classpath for compiling tests What is wrong with my settings? Regards, Piotr View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114492#4114492 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114492 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - CMT doesn't rollback
My application is using Jboss 4.2.1, EJB3(stateless session bean), EntityManager, Hibernate and Postgresql. it doesn't rollback. ds.xml | | PGDS/JTA | jdbc:postgresql://localhost:5432/postgres | org.postgresql.Driver | xx | yy | | PostgreSQL 8.0 | | | persistence.xml | | 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";> | | java:/PGDS/JTA | | | | | | session bean | @Stateless | @LocalBinding(jndiBinding="JTA/JTALocal") | public class JTABean implements JTALocal { | @PersistenceContext(unitName = "JTA-EJBPU",type=PersistenceContextType.TRANSACTION) | private EntityManager em ; | @TransactionAttribute(TransactionAttributeType.REQUIRED) | public void run (int i)throws Exception{ | | try{ | School sc1 = new School("first"); | em.persist(sc1); | if(i == 1) throw new Exception(); | School sc2 = new School("second"); | em.persist(sc2); | }catch(Exception e){ | | System.out.println("roll back?"); | throw e; | } | } | | } | JBoss startup info | [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider | [InjectedDataSourceConnectionProvider] Using provided datasource | [SettingsFactory] RDBMS: PostgreSQL, version: 8.2.5 | [SettingsFactory] JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.2 JDBC4 with SSL (build 507) | [Dialect] Using dialect: org.hibernate.dialect.PostgreSQLDialect | [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory | [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup | [TransactionManagerLookupFactory] instantiated TransactionManagerLookup | [SettingsFactory] Automatic flush during beforeCompletion(): disabled | [SettingsFactory] Automatic session close at end of transaction: disabled | [SettingsFactory] JDBC batch size: 15 | [SettingsFactory] JDBC batch updates for versioned data: disabled | [SettingsFactory] Scrollable result sets: enabled | [SettingsFactory] JDBC3 getGeneratedKeys(): disabled | [SettingsFactory] Connection release mode: auto | [SettingsFactory] Default batch fetch size: 1 | [SettingsFactory] Generate SQL with comments: disabled | [SettingsFactory] Order SQL updates by primary key: disabled | [SettingsFactory] Order SQL inserts for batching: disabled | [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory | [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory | [SettingsFactory] Query language substitutions: {} | [SettingsFactory] JPA-QL strict compliance: enabled | [SettingsFactory] Second-level cache: enabled | [SettingsFactory] Query cache: disabled | [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider | [SettingsFactory] Optimize cache for minimal puts: disabled | [SettingsFactory] Cache region prefix: JTA-EAR_ear,JTA-EJB_jar,JTA-EJBPU | [SettingsFactory] Structured second-level cache entries: disabled | [SettingsFactory] Echoing all SQL to stdout | [SettingsFactory] Statistics: disabled | [SettingsFactory] Deleted entity synthetic identifier rollback: disabled | [SettingsFactory] Default entity-mode: pojo | [SettingsFactory] Named query checking : enabled | [SessionFactoryImpl] building session factory | [SessionFactoryObjectFactory] Factory name: persistence.units:ear=JTA-EAR.ear,jar=JTA-EJB.jar,unitName=JTA-EJBPU | [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} | [SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.units:ear=JTA-EAR.ear,jar=JTA-EJB.jar,unitName=JTA-EJBPU | [SessionFactoryObjectFactory] InitialContext did not implement EventContext | [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} | [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer | [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=JTA-EAR.ear,jar=JTA-EJB.jar,name=JTABean,service=EJB3 with dependencies: | [JmxKernelAbstraction] persistence.units:ear=JTA-EAR.ear,jar=JTA-EJB.jar,unitName=JTA-EJBPU | [EJBContainer] STARTED EJB: com.ganz.jta.ejb.JTABean ejbName: JTABean | [EJB3Deployer] Deployed: file:/E:/jboss-4.2.1.GA/ser
[jboss-user] [JBoss Seam] - Re: Exception
My problem is resolved. Thanks Pete View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114488#4114488 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114488 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Same element ID in many forms on the page
Here it is. Also, when more then one element in the list the suggestionBox stops working. | | | Id | #{card.id} | | | Name | | | | | Tags: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114487#4114487 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114487 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: jboss seam project deploy error
sorry,i made a mistake,there isn't exist $JBOSS_HOME/server/default/deploy/lib directory; it should be $JBOSS_HOME/server/default/lib directory; i am sure that i copyed the sqlserver jdbc driver to $JBOSS_HOME/server/default/lib directory; then get the error info; what should i do? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114486#4114486 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114486 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Dealing with multple client jaxws implementations
We are deploying multiple generated soap clients, including a JBossWS generated client, an Axis generated client, and an XFire client. The first two run fine on top of the native JBossWS 2.0.1 stack, unfortunately the XFire client (for reasons I won't go into now) is not portable. Therefore, we're looking to switch between the native JBossWS and the XFire implementations. We figured we would configure jax-ws to use a factory (a (javax.xml.ws.spi.)Provider of providers) that would delegate to the actual implementation providers. As a proof-of-concept I built one to return the JBossWS Provider as a default. Unfortunately, on making a request to a JBossWS client, the ServiceDelegate is created successfully but fails on getting the service port with the following exception: SEI is missing @WebService annotation: interface com.mycompany.ApiClientProtected ApiClientProtected is a JBossWS generated class which does in fact contain the annotation. How have folks solved either the particular or the greater general problem? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114484#4114484 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114484 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: using raiseTimedEvent / TimerSchedule
I've been using a variation of this in Seam 1.1.5.GA where my Asynchronous method returns javax.ejb.Timer, and I declare "@In Timer timer;" in my class, so I can cancel the Timer if I need to. However, in Seam 2.0.1.CR1, as soon as I declare "@In Timer timer;" in my class, Events.instance().raiseAsynchronousEvent() and Events.instance().raiseTimedEvent() don't generate events any more. I don't get any errors or anything, I just don't receive events. How do I use Events.instance().raiseTimedEvent() where I have access to the Timer object in Seam 2.0.1.CR1? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114483#4114483 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114483 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Transactional Method Flush
yeah, i tried that, it works, but im looking for something like when my method finish without exception the flush occurs automatic... is there any way ? because i dont want to add in all my facade methos em.flush. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114481#4114481 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114481 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: problems with seam 2.0.0GA and custom validation message
Thank you very much for the reply! Regards, karol View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114479#4114479 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114479 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - problems with hibernate custom validators
Dear all, I'm trying to write a custom validator as described http://www.hibernate.org/hib_docs/validator/reference/en/html/validator-defineconstraints.html#validator-defineconstraints-own The validator is intended for use with new users registering and he has to check whether the login given by user is still available. Therefore I need to connect with the data layer to execute a finder on users. Is there any simple way of doing that? @PersistenceContext private EntityManager em; doesn't help since validator aint a bean. Thanks in advance for any help, Kind Regards, karol View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114477#4114477 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114477 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Startup hangs on Log4jService$URLWatchTimerTask
Well, I was right, it definitely was a newbie mistake. I'm working on an existing project and somebody changed a few things while I wasn't looking. Basically, the logging to STDOUT of the server startup console is being redirected to log/server.log after the point I indicated in my post and the server was actually starting up just fine. If you're having a "problem" similar to mine and you want to view the logging output, do a tail -f on the server.log file and you should see the expected output. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114476#4114476 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114476 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Re: Custom principal in Web application
I am actually struggling with this issue in 4.0.5GA. What is interesting is that the wiki article for using custom principals doesn't say that the custom principal will be used as the caller principal if you simply supply the class name via the module-option. I have stepped through a login session using UserRolesLoginModule with the principalClass option set, and I see that the createIdentity() calls create Principals of the custom type. What is interesting is that no where a custom principal type get assigned to a group named CallerPrincipal like the login module example in the wiki article does. I created a login module much like the code example in the wiki, and it worked as I expected - I call request.getUserPrincipal().getClass() in a jsp and it gives me the custom principal class name. Why would you allow customization of the principal class (via the module option), but not use a principal of that type for the caller principal? I can't tell if I am looking at a bug or if I am just misunderstanding the intent of the option. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114473#4114473 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114473 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: getAsObject not being called - why?
Thanks you for the reply Pete - How would I debug this? The scenario is that on render of my xhtml, it renders correctly - the basedonhottask is checked or not checked depending on whether basedonhottask is 0 or 1. On submit of the form after changing the checkbos for basedonhottask, it goes right back into getAsString - it does not call the backing bean getter or setter first, as I have set breakpoints on those as well as the converter functions. After exiting getAsString, I get | sourceId=caseDetailForm:hotTask[severity=(ERROR 2), summary=(/caseDetail.xhtml @95,41 value="#{selectedCase.basedonhottask}": java.lang.IllegalArgumentException: argument type mismatch), detail=(/caseDetail.xhtml @95,41 value="#{selectedCase.basedonhottask}": java.lang.IllegalArgumentException: argument type mismatch)] | How can I determine the issue? How can I hook into the apply request values phase to determine why the getAsObject is not being called? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114471#4114471 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114471 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: SelectItems and cache
Thanks Pete, I will keep an eye on CVS ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114469#4114469 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114469 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: getAsObject not being called - why?
Normally this sequence of events means you have some other problem prior to it converting it back to an Object. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114462#4114462 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114462 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam events
No, you should use the Seam contexts to pass variables. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114461#4114461 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114461 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Jboss jBPM/jBoss ESB link
h in that case might I suggest this one, one of my favourites and as with beer, do *not* go for the Dutch Fryske Hynder. Millstone van Zuidam is better, but I did not nose it yet... next week. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114460#4114460 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114460 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Transactional Method Flush
em.flush() View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114459#4114459 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114459 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: error message & trinidad
Use your debugger to find out why a ModelValidator isn't being attached to the input control (it should be) by putting a breakpoint in ValidateAllRendererBase.doEncodeChildren View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114458#4114458 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114458 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem upgrading to Seam 2.0.1.CR1
Is that the first exception you see? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114457#4114457 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114457 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Suggestion for Seam Release packaging
The library management system changed completely in 2.0.0.GA to use maven. The JBoss maven repository has a policy of never deleting old releases, and we make sure all dependencies of Seam are deployed to the maven2 repo - so you should always be able to grab the necessary jars. We don't plan to bundle bits of other frameworks we don't use in Seam with Seam though. I hope that projects don't delete old releases - I've never come across that before! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114456#4114456 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114456 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Integration test - PROVIDER_URL not provided in jndi.pr
Use 2.0.0.GA View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114455#4114455 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114455 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Scope of EntityManager
We fixed this for RichFaces 3.1.2.GA and later IIRC. 3.1.3 is definitely ok :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114454#4114454 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114454 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: AuthorizationException question
Listen for the org.jboss.seam.security.notAuthorized event http://docs.jboss.org/seam/2.0.1.CR1/reference/en/html/security.html#d0e7997 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114453#4114453 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114453 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: org.jboss.remoting.transport.jnp.TransportClientFactory
Try with 2.0.0.GA View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114452#4114452 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114452 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Access exception stacktrace from error page
It's there as #{org.jboss.seam.handledException} View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114450#4114450 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114450 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Changing the id of a processDefinition or of a instance?
Nope, the problem is that you forgot to deploy the process definition before creating a process instance: jbpmContext.deployProcessDefinition(pd). See the examples in the user guide. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114451#4114451 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114451 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Adding jmx options to the JAVA_OPTS gives NPE when start
Is this a candidate for a jira issue? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114448#4114448 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114448 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - getAsObject not being called - why?
here is the converter: @Name("tst") | @Scope(ScopeType.APPLICATION) | @org.jboss.seam.annotations.faces.Converter(id="tst") | public class Tst implements Converter { | | public Object getAsObject(FacesContext arg0, UIComponent arg1, String arg2) { | int i = 0; | return (arg2 == null || arg2.equals("") || arg2.equals("0") || arg2.equals("false") ? new BigDecimal(0) : new BigDecimal(1)); | } | | public String getAsString(FacesContext arg0, UIComponent arg1, Object arg2) { | if (arg2 instanceof Boolean) | { | return (arg2 == null || ((Boolean)arg2).equals(false) ? "N" : "Y"); | } | else | return (arg2 == null || ((BigDecimal)arg2).intValue() == 0 ? "false" : "true"); | } | | } Here is the xhtml: | http://www.w3.org/1999/xhtml"; | xmlns:s="http://jboss.com/products/seam/taglib"; | xmlns:ui="http://java.sun.com/jsf/facelets"; | xmlns:f="http://java.sun.com/jsf/core"; | xmlns:h="http://java.sun.com/jsf/html"; | xmlns:a4j="http://richfaces.org/a4j"; | xmlns:rich="http://richfaces.ajax4jsf.org/rich";> | | | | | | . | . | | | | | In my backing bean, the field basedonhottask is a BigDecimal and my converter should convert it to and from Boolean to BigDecimal. The proble is that upon render, it calls getAsString to convert from BigDecmal to the strings "false" or "true" depending on whether BigDecimal is 0 or 1 - and that seems to work fine - the checkbox is populated correctly. BUT, after changing the checkbox, on submit, it NEVER calls getAsObject - it calls getAsString again - dont know why??? Shouldnt it calls getAsObject to convert the BooleanCheckbos back into a BigDecimal? If this is a bug, is there a workaround? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114446#4114446 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114446 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: using two @Factory methods with two EntityManager object
I meant to do with XA datasources or with @PersistenceContext - SMPCs still use this stuff underneath. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114447#4114447 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114447 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBoss Portal 2.6.3 released
Wesley, thanks for valuable input, and quick response:) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=411#411 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=411 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBoss Portal 2.6.3 download
Richfaces bridge is the only 301 bridge... see my response to your other post here: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=125942 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114442#4114442 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114442 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBoss Portal 2.6.3 released
RichFaces released the bridge(Richfaces only) with 3.1.3 this week. We are working on adding Seam portlet functionality to that same bridge now. We leveraged the Myfaces/Oracle 301 impl. and followed the spec while adding our enhancements for RF and Seam. The only thing that remains is code changes in the Seam code base. There are only a few problems with conversations/login/exception redirects, and some may boil down to something weird going on with uncommitted transactions. afaik there is only 1 301 bridge in JBoss and it's housed in the RichFaces svn repo. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114439#4114439 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114439 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: BPEL Problem: Fault Handler
Hi Agus, Your fault message appears corrupted. I'm looking for a subelement in . Is that the actual message? If not, can you repost it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114436#4114436 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114436 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBoss Portal 2.6.3 download
Hi Thomas! I know you are a clever guy with lot's of inside information about JBoss, so please enlighten me if you can: I've posted comments on several threads about a JSR-301 portlet bridge implementation that JBoss "some project" is implementing. As far as I understand, the JBoss Portal guys are working on such a bridge, refer to this post: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=125942 I've also the impression that the Richfaces team is implementing such a bridge, refer to this issue: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=125942 Am I missing something here, or are they talking about two completely different things? And if they do, which one should I use when I want to "portletify" my Richfaces JSF web application? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114435#4114435 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114435 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBoss Portal 2.6.3 released
Wwesley Hales: I'm a bit confused about this JSR-301 portlet bridge. Do the portal team implement one bridge, and the Richfaces project another one? Please look at my post here to understand why I'm confused. Which one should I preferably use? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114433#4114433 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114433 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Changing Dead Letter Queue for specific queues
I'm attempting to create a program that allows support staff to work a queue that has all the failed messages from a specific input queue. This is basically due to integration issues, and this will allow us to correct messages that are not correctly sent to us, and notify the sending party. Is it possible for me to specify the a different dead letter queue than "queue/DLQ" per message queue in JBoss MQ (JBoss AS 4.0.5)? I can't find this anywhere in the documentation, and its definitely a behavior I need. For instance, I have "queue/LegacyInputQueue" and I want all failed messages to go to "queue/LegacyInputQueueFailed". Thanks, Todd View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114432#4114432 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114432 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: using two @Factory methods with two EntityManager object
How will they tell me to use/configure SMPC, afaik it's specific to SEAM... Are there any example apps in the Seam distro that uses SMPC? I would hope so. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114431#4114431 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114431 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam-gen : reverse DB : many-to-many convention ?
When I say doesn't support, perhaps what I mean is "isn't garunteed to do it correctly". I believe it works fine in Hibernate Tools (the reveng from db part) but not in generating the UI as atao says. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114428#4114428 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114428 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: jbpm, AssignmentHandler and bijection
Use assignment via EL with Seam, not AssignmentHandlers View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114430#4114430 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114430 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Injected Logger is null on tomcat, seam 1.2
The logger is used in the jpa example which deploys to plain tomcat. Take a look at it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114427#4114427 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114427 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: using two @Factory methods with two EntityManager object
You should ask these questions on the hibernate or EJB3 forums as you will probably get a better answer there. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114426#4114426 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114426 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: redirect based on roles
Can you use your debugger to see what roles the user has when the s:hasRole check is run? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114425#4114425 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114425 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Same element ID in many forms on the page
Can we see an example of it inside the iterator? i.e. post the xhtml including the iterator View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114423#4114423 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114423 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: using two @Factory methods with two EntityManager object
I have successfully used two EntityManager objects pointed to two different DB's. In the case of transaction propagation via one SFSB method calling another one (in my case in the same SFSB), an XA datasource may be required to ensure the distributed transaction is supported. Gavin's suggestion: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064581#4064581 I'm getting the exception due to the transaction attribute type settings (defaults to REQUIRED). It happens in different configurations (see test code below). I have found a workaround, see this thread: http://forum.java.sun.com/thread.jspa?messageID=10025073 but I will definitely look into SMPC and there's some good info in the last chapter of the JPA + Hibernate book by Bauer and King. Basically configuration stuff in components.xml that I was not aware of. Hopefully I can configure two SMPC's to replace my existing two JPA PersistenceContext EntityManager objects. The main question is on page 813 of the JPA/Hibernate book, is it possible to configure multiple ManagedPersistenceContext (component tag) classes pointing to different EMF's? testPeerXA.xhtml: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> | http://www.w3.org/1999/xhtml"; | xmlns:s="http://jboss.com/products/seam/taglib"; | xmlns:ui="http://java.sun.com/jsf/facelets"; | xmlns:f="http://java.sun.com/jsf/core"; | xmlns:h="http://java.sun.com/jsf/html"; | xmlns:rich="http://richfaces.ajax4jsf.org/rich"; | xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"; | xmlns:c="http://java.sun.com/jstl/core"; | template="layout/template.xhtml"> | | | | | | | | | | | | | | | | | | | testPeer.xhtml: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> | http://www.w3.org/1999/xhtml"; | xmlns:s="http://jboss.com/products/seam/taglib"; | xmlns:ui="http://java.sun.com/jsf/facelets"; | xmlns:f="http://java.sun.com/jsf/core"; | xmlns:h="http://java.sun.com/jsf/html"; | xmlns:rich="http://richfaces.ajax4jsf.org/rich"; | xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"; | xmlns:c="http://java.sun.com/jstl/core"; | template="layout/template.xhtml"> | | | | | | | | | | | | | | | | | | | SFSB: package com.cox.beans.session; | | import java.util.List; | import java.util.ListIterator; | import java.util.Map; | import java.util.TreeMap; | | import javax.ejb.Remove; | import javax.ejb.Stateful; | import javax.ejb.TransactionAttribute; | import javax.ejb.TransactionAttributeType; | import javax.persistence.EntityManager; | import javax.persistence.PersistenceContext; | import javax.persistence.PersistenceContextType; | | import org.jboss.seam.annotations.Destroy; | import org.jboss.seam.annotations.In; | import org.jboss.seam.annotations.Logger; | import org.jboss.seam.annotations.Name; | import org.jboss.seam.annotations.Out; | import org.jboss.seam.log.Log; | import org.jboss.seam.security.Identity; | | import com.cox.beans.entity.User; | | @Stateful | @Name("peerAction") | public class PeerAction implements PeerLocal { | | @PersistenceContext(unitName="coxIMDatasource", type=PersistenceContextType.EXTENDED) | private EntityManager emCoxIM; | | @PersistenceContext(unitName="boIcomsSecurityAudit", type=PersistenceContextType.EXTENDED) | private EntityManager emICOMS; | | @Logger | private Log log; | | @In | private Identity identity; | | private String networkId = ""; | | private String peer = ""; | | @Out | private List peerList; | | @Remove @Destroy | public void destroy() { | | } | public String getPeer() { | return "test"; | } | | public void setPeer(String peer) { | this.peer = peer; | } | | //results for testPeer.xhtml... | | /*got org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware o
[jboss-user] [JBoss Seam] - seam events
hi, i'm having problems with seam events definied in components.xml. if a certain events occurs a method with a string as an argument shall be called. example: | | | | | | | @Name("example") | public class Example { | public void saySomething() { | FacesMessages.instance().add("Hello World"); | Events.instance().raiseEvent("say", "Hello World"); | } | } | | @Name("exampleListener") | public class ExampleListener { | public void saySomething(String text) { | FacesMessages.instance().add(text); | } | } | this example does'nt work because seam tries to find a method named 'saySomething' without any argument. but how can i define that a method with an argument (e.g. string) shall be executed? is this possible via components.xml? cheers, sven View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114424#4114424 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114424 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Search entity doesn't need to be validated
"jazir1979" wrote : From my understanding, you need s:validate to trigger hibernate validator at the JSF level. Otherwise, the validations only trigger when you try to persist an entity? I could be wrong, however. No, you are completely correct. Don't use s:validate/s:validateAll in your search form, and don't try to persist the entity you are using to hold your search data and it won't be validated. And yes, I found I normally had to do @Name("exampleFoo") | public class ExampleFoo extends Foo { | |private Date startOfDateRange; |private Date endOfDateRange; |... | when using example entities for searching - you get both the fields from the entities for basic fields and can add extras. I want to get a tutorial into the docs at some point - "Working with your seam-gen'd app" which should include stuff like this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114420#4114420 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114420 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: JBossWS Tools Overview (wstools, wsprovide, wsconsume)
I meant to post the following topic: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=126300 to this thread as a reply. Instead it wound up as a separate topic in JBossWS. Looking for advice and pointers. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114421#4114421 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114421 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Relationship between wsconsume and wsimport
I saw some previous postings on wsimport and I do not see any mention in this thread about wsimport -- only wsconsume. Is this the JBoss final name for the wsdl consumption tooling capability? I am asking because I want to employ maven for web service generation and there is a plugin that includes wsimport functionality: anonymous wrote : This plugin runs the JAXWS WsImport compiler from Maven2. Please be aware this plugin requires a Java 5.0 compiler. I got this from: https://jax-ws-commons.dev.java.net/jaxws-maven-plugin/usage.html Can someone help me understand the distinctions/differences? Can I use the plugin to produce code that is comparable to what wsconsume produces? My target container is JBoss 4.2.2. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114419#4114419 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114419 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Exception
Try putting @BypassInterceptors on your @Remove method rms.csvListAction. Please don't bump. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114418#4114418 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114418 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Datasource problem with seam and jbpm
Post the exception stack trace. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114414#4114414 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114414 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - End conversation and h:message
Hi, im trying to show a message in my xhtml. | | http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> | http://www.w3.org/1999/xhtml"; | xmlns:s="http://jboss.com/products/seam/taglib"; | xmlns:ui="http://java.sun.com/jsf/facelets"; | xmlns:f="http://java.sun.com/jsf/core"; | xmlns:h="http://java.sun.com/jsf/html"; | xmlns:rich="http://richfaces.org/rich"; | xmlns:a4j="http://richfaces.org/a4j"; | xmlns:fpf="http://www.fpf.br/jsf"; | template="/layout/layout.xhtml"> | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | my managedBean, just essential | @Name("cadastroFornecedoresBean") | @Scope(ScopeType.CONVERSATION) | public class CadastroFornecedoresBean { | | /** | * Chamada da classe para auxiliar nas mensagens de comfirmação e erro. | */ | @In | private FacesMessages facesMessages; | | public String merge() { | almoxarifadoFacade.mergeFornecedor(fornecedor); | facesMessages.addFromResourceBundle(FacesMessage.SEVERITY_INFO, "#{msg.SUCESSO}"); | return "sucesso"; | } | | . | . | . | my page xml: | | http://jboss.com/products/seam/pages"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xmlns:s="http://jboss.com/products/seam/taglib"; | xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.0.xsd"; | login-required="false"> | | | | | | Operacao com Sucesso | | | | | | | | | | | | | and the code in my xhtml i want the message show | | my problem is the message not showing.. anyone can help me ? ty, and sry about english View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114415#4114415 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114415 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with manual flush mode for managed persistence c
You would set up multiple entity manager components in components.xml like | | | @In EntityManager entityManager1; | @In EntityManager entityManager2; View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114416#4114416 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114416 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: SelectItems and cache
Jacob, yes, I would use JBoss Cache. I have to make some changes to Seam UI to get this to work I think, and will update the docs when done :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114413#4114413 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114413 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: using two @Factory methods with two EntityManager object
Try using two SMPCs, this should work (I'm no EJB3 expert, so not sure why it doesn't work with two entity managers injected using @PersistenceContext, maybe ask on the EJB3 forum). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114412#4114412 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114412 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: First steps with Seam using JBoss tools
What is the underlying exception ? The original cause ? note: we had to fix bugs in seam-gen for 1.2.1 to have it work correctly not sure if this is one of them; those bugfixes are in the 1.2.1_AP branch of seam. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114411#4114411 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114411 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Connecting to Oracle (Driver Class is empty)
That message occurs if the connection profile is not returning the proper generic properties for us to get the connection class/driver class etc. Did you use the Generic connection profile ? Please report the spelling error in jira. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114410#4114410 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114410 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Are Stateless Session EJB Thread-safe
The best thing to do is to make a testcase and see what happens. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114409#4114409 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114409 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Startup hangs on Log4jService$URLWatchTimerTask
Hi all, When I start up my server, it gets this far: | = | | JBoss Bootstrap Environment | | JBOSS_HOME: /usr/local/jboss-4.2.0.GA | | JAVA: /usr/java/bin/java | | JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=360 | | CLASSPATH: /usr/local/jboss-4.2.0.GA/bin/run.jar:/usr/java/lib/tools.jar | | = | | 14:34:48,797 INFO [Server] Starting JBoss (MX MicroKernel)... | 14:34:48,800 INFO [Server] Release ID: JBoss [Trinity] 4.2.0.GA (build: SVNTag=JBoss_4_2_0_GA date=200705111440) | 14:34:48,803 INFO [Server] Home Dir: /usr/local/jboss-4.2.0.GA | 14:34:48,804 INFO [Server] Home URL: file:/usr/local/jboss-4.2.0.GA/ | 14:34:48,806 INFO [Server] Patch URL: null | 14:34:48,807 INFO [Server] Server Name: default | 14:34:48,808 INFO [Server] Server Home Dir: /usr/local/jboss-4.2.0.GA/server/default | 14:34:48,808 INFO [Server] Server Home URL: file:/usr/local/jboss-4.2.0.GA/server/default/ | 14:34:48,809 INFO [Server] Server Log Dir: /usr/local/jboss-4.2.0.GA/server/default/log | 14:34:48,810 INFO [Server] Server Temp Dir: /usr/local/jboss-4.2.0.GA/server/default/tmp | 14:34:48,811 INFO [Server] Root Deployment Filename: jboss-service.xml | 14:34:49,849 INFO [ServerInfo] Java version: 1.5.0_12,Sun Microsystems Inc. | 14:34:49,850 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_12-b04,Sun Microsystems Inc. | 14:34:49,851 INFO [ServerInfo] OS-System: SunOS 5.8,sparc | 14:34:51,912 INFO [Server] Core system initialized | 14:35:02,530 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/ | 14:35:02,537 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml | ... but then it hangs indefinitely. I turned on Log4j debug logging, and it tells me this: | 14:39:27,537 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml | log4j: System property is :null | log4j: Standard DocumentBuilderFactory search succeded. | log4j: DocumentBuilderFactory is: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl | log4j: debug attribute= "false". | When I remove the jboss-log4j.xml file from the conf directory, the server starts but then (predictably) periodically throws a warning at me: | 14:58:27,370 WARN [Log4jService$URLWatchTimerTask] Failed to check URL: resource:jboss-log4j.xml | java.io.FileNotFoundException: Could not locate resource: jboss-log4j.xml | I'm sure I'm doing something wrong that's obvious, but please help a newbie out! Thanks, Tres View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114408#4114408 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114408 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Are Stateless Session EJB Thread-safe
If there are more than one threads from a single client, can they access the same SLSB simultaneously? If so, what exception would be thrown? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114405#4114405 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114405 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Redirect and GET parameters
hi, try the following in your pages.xml | | | | | | | | | | cheers, sven View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114404#4114404 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114404 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Security: Better support for single sign on?!
I have a slightly different solution that avoids the need to add action parameters to pages. Basically I extended Identity and overrode the isLoggedIn method. Here is some code that will implement a trivial and unsecure SSO across many co-located applications simply by passing the username and password around in a session cookie: | package foo.seam; | | import java.util.Map; | import javax.faces.context.ExternalContext; | import javax.faces.context.FacesContext; | import javax.servlet.http.Cookie; | import javax.servlet.http.HttpServletResponse; | import org.jboss.seam.ScopeType; | import org.jboss.seam.annotations.Install; | import org.jboss.seam.annotations.Name; | import org.jboss.seam.annotations.Scope; | import org.jboss.seam.annotations.Startup; | import org.jboss.seam.annotations.intercept.BypassInterceptors; | import org.jboss.seam.security.Identity; | | @Name("org.jboss.seam.security.identity") | @Scope(ScopeType.SESSION) | @Install(precedence = Install.APPLICATION) | @BypassInterceptors | @Startup | public class SSOIdentity extends Identity { | @Override | public boolean isLoggedIn(boolean attemptLogin) { | FacesContext facesCtx = FacesContext.getCurrentInstance(); | ExternalContext extCtx = facesCtx.getExternalContext(); | Map cookies = extCtx.getRequestCookieMap(); | Cookie username = (Cookie)cookies.get("sso.username"); | Cookie password = (Cookie)cookies.get("sso.password"); | if((username != null) && (password != null)) { | setUsername(username.getValue()); | setPassword(password.getValue()); | } | return super.isLoggedIn(attemptLogin); | } | | @Override | protected void postAuthenticate() { | FacesContext facesCtx = FacesContext.getCurrentInstance(); | ExternalContext extCtx = facesCtx.getExternalContext(); | HttpServletResponse response = (HttpServletResponse)extCtx.getResponse(); | | Cookie username = new Cookie("sso.username", getUsername()); | username.setMaxAge(-1); | username.setPath("/"); | response.addCookie(username); | | Cookie password = new Cookie("sso.password", getPassword()); | password.setMaxAge(-1); | password.setPath("/"); | response.addCookie(password); | | super.postAuthenticate(); | } | | @Override | public void logout() { | super.logout(); | | FacesContext facesCtx = FacesContext.getCurrentInstance(); | ExternalContext extCtx = facesCtx.getExternalContext(); | Map cookies = extCtx.getRequestCookieMap(); | HttpServletResponse response = (HttpServletResponse)extCtx.getResponse(); | | Cookie username = (Cookie)cookies.get("sso.username"); | username.setMaxAge(0); | username.setValue(null); | username.setPath("/"); | response.addCookie(username); | | Cookie password = (Cookie)cookies.get("sso.password"); | password.setMaxAge(0); | password.setValue(null); | username.setPath("/"); | response.addCookie(password); | } | } | | Just drop this class in the EJB module of each app you're working with (or web module if you're using the J2EE packaging strategy with POJOs). It should work with a customer authenticate method, but I haven't tried it (I'm using the LDAP JAAS authenticate module). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114401#4114401 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114401 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - UNC file path is not accesible
Hi all I am using JBOSS-4.0.5.GA, In my web deployment descriptor, I define a remote system directory using UNC Path. I am file not found exception. java.io.FileNotFoundException: \\4csdc01\home\JayaprakashK\iWarrantyCPTAssets\InfraFile\maps\BusinessPartnerMap.xml at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:94) at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:103) .. Is this a problem with JBOSS?.. Also, I found a bug (JBAS-3775) related to UNC?.. Is that still open? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114399#4114399 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114399 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Redirect and GET parameters
"[EMAIL PROTECTED]" wrote : The page param should allow you to do this. | Could you elaborate it a little bit more? As described in the previous posts in this thread, the default behavior does not append "articleId=xx" to the URL redirected. what do I need to change to have the "articleId=xx" parameter show up in the URL? Thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114398#4114398 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114398 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: First steps with Seam using JBoss tools
What is the root cause. Is it java.lang.NoClassDefFoundError: javax/el/ELException | com.sun.facelets.tag.AbstractTagLibrary.addTagHandler(AbstractTagLibrary.java:469) | com.sun.facelets.tag.jstl.core.JstlCoreLibrary.(JstlCoreLibrary.java:32) | com.sun.facelets.tag.jstl.core.JstlCoreLibrary.(JstlCoreLibrary.java:27) ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114394#4114394 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114394 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss/Spring Integration] - Re: Deploying multiple XML files as a single SpringApplicati
Use our Microcontainer, which is a full blown state machine, so it doesn't really matter in which order you deploy your beans. And you can split the beans definitions in as fine grained files as you like. http://labs.jboss.com/jbossmc And you can already deploy existing Spring beans .xml files with Microcontainer, and not needing any Spring lib in the classpath: http://anonsvn.jboss.org/repos/jbossas/projects/microcontainer/trunk/spring-int/ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114391#4114391 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114391 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: A customer JSF tag to display Graphics2D in Seam PDF out
http://jira.jboss.com/jira/browse/JBSEAM-2414 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114390#4114390 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114390 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss/Spring Integration] - Re: Deploying multiple XML files as a single SpringApplicati
It's often useful to break beans out into separate XML files for legibility, as well as making it easier to swap certain portions for different configurations or environments. While this may speak to an over-reliance on Spring for DI, I still find it useful. When doing this, it's desirable to avoid the individual XML files being aware of each other if possible. I find it's a pretty common use case for Spring, eg (from their docs): ApplicationContext context = new ClassPathXmlApplicationContext( | new String[] {"applicationContext.xml", "applicationContext-part2.xml"}); In my case, I'm working with an app based heavily on Apache Camel. I'd like to use the same Apache Camel route definitions but with varying component configurations. So, use routes-spring.xml, which refers to beans that could be in components-dev-spring.xml or in components-prod-spring.xml depending on the environment. Currently, if I want to deploy this app to JBoss, I have to resort to hardcoding an import or using JNDI to get at beans. Am I missing something obvious? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114387#4114387 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114387 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam in Real World: Made with Seam
"[EMAIL PROTECTED]" wrote : Guys don't get too upset. User's can change the extension used in URL mappings to *anything they like*. And I know that plenty of folks here use other URL mappings than *.seam. No doubt, I don't see why you wouldn't change it. We deployed a very high profile real estate website (nearly 1M hits/day) using Seam and we used a alternate suffix. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114388#4114388 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114388 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Web Service Response encoding problem
Well. Sometimes you just don't seem to be able to beat the system. :-( I actually got them right once when I previewed. "üÃ¥äöÃÂàÃÂÃÂ" "üåäöÃà ÃÃ" "üåäöÜÅÄÖ" View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114386#4114386 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114386 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Web Service Response encoding problem
Of course neither one showed up OK. I'll make one last effort and disable HTML in this post. Hopefully this will look OK: "üåäöÃà ÃÃ" or this: "üåäöÜÅÄÖ" /Anders View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114385#4114385 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114385 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Localhost/IP Address issue
When running netstat, always provide the -ab option - it lists all ports opened and the app the opened them. But based on the netstat output you posted, it looks like the app server is still binding to localhost, and not 0.0.0.0. Please post the first 20 or so lines when you start the app server - everything from the command prompt up to this line: 12:06:36,026 INFO [ServerInfo] OS-System: Windows Vista 6.0,x86 and post the last 10 lines, especially the line that contains: 12:07:57,805 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080 and ending with the 'start in' line: 12:07:58,461 INFO [Server] JBoss (MX MicroKernel) [4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)] Started in 1m:23s:497ms View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114384#4114384 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114384 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Web Service Response encoding problem
Hi, I'm having problem with the encoding of java.lang.String in my Web Service response. Seems like a String in a complex data structure will be returned as ISO-8859-1 instead of UTF-8. If the WebMethod only returns a String it will be interpreted correctly as UTF-8. Very odd. I've written a small example made up of one interface: package se.test.webservice.bean; | | @javax.jws.WebService | @javax.jws.soap.SOAPBinding(style = javax.jws.soap.SOAPBinding.Style.RPC) | public interface Text extends java.rmi.Remote { | @javax.jws.WebMethod(operationName = "TEST1") | String test1(@javax.jws.WebParam(name = "Text1") | String x); | | @javax.jws.WebMethod(operationName = "TEST2") | String[] test2(@javax.jws.WebParam(name = "Text2") | String x); | } and a stateless session bean: package se.test.webservice.bean; | | @javax.ejb.Stateless | @javax.jws.WebService(endpointInterface = "se.test.webservice.bean.Text") | public class TextBean { | public String test1(String x) { | return ">" + x + "<"; | } | | public String[] test2(String x) { | String[] returnValue = {">" + x + "<", ">" + x + "<"}; | return returnValue; | } | } The jar is deployed on JBoss AS 4.2.1.GA. Calling method TEST1, I'm using the Web Service Explorer from within Eclipse, with a character string containing Swedish special characters "üåäöÜÅÄÖÂ" (I hope these will come out OK when I submit this post) the response looks fine. But calling method TEST2 with the same string will produce a response that looks like it is UTF-8 characters interpreted as ISO-8859-1: "üÃ¥äöÃÅÃâ¦ÃâÃâÂ". Strange. This is the produced wsdl: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the response from TEST1: http://schemas.xmlsoap.org/soap/envelope/";> | | | http://bean.webservice.test.se/";> | >üåäöÜÅÄÖ< | | | And the response from TEST2: | http://schemas.xmlsoap.org/soap/envelope/";> | | | http://bean.webservice.test.se/";> | | >üÃ¥äöÃÅÃâ¦ÃâÃâÂ< | >üÃ¥äöÃÅÃâ¦ÃâÃâÂ< | | | | I hope someone can shed some light on the problem. I looked at the preview and of course all the characters looked like crap. I'll try to restore them above but if I fail the correct version of the characters should look like "üåäöÃà ÃÃ" or "üåäöÜÅÄÖ" whatever version looks best. I wont even try to fix the TEST2-response. Regards, Anders View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114381#4114381 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114381 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: jboss AS, jboss Web and php
The error message is written in Unixese. In Windows, the missing file is php5servlet.dll, and it should be in the bin/native directory. When you unpack the zip download http://labs.jboss.com/jbossweb/downloads/php/, copy the file from the PHP/bin directory to bin.native. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114378#4114378 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114378 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Example + Local Database
By default, JBoss only binds to localhost (127.0.0.1). To get it to listen to the external address, invoke the run.sh or run.bat script with the -b option: ./run.sh -b 0.0.0.0 See http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossRunParameters View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114377#4114377 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114377 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: migration from jboss-4.0.5.GA to jboss-4.2.1.GA
Seam 2.0 requires JSF 1.2. So that's why you get the "no grammar found" error with JSF 1.1. The faces-config.xml in Seam 2.0 is using http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd, which JSF 1.1 does not understand. I don't know if Seam 2.0 is known to work with MyFaces 1.2 or not. You should check the Seam forum for that. As for fckeditor / fck-faces, I'd suggest that you get rid of that as soon as possible. Whoever wrote it used direct dependencies on MyFaces 1.1 implementation code (very bad idea). It probably doesn't even work with MyFaces 1.2. Stan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114376#4114376 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114376 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Unwaring web app - leaves some files in the war
I tried something. Instead of exploded directories, I packaged the war into a file, and the ear into a file. Now I am seeing the same results you are seeing. I though you stated that you were using exploded directories? Here is my directory/file structure (starting with the deploy directory): deploy/inear.ear/meta-inf/application.xml deploy/inear.ear/webapp.war/index.jsp deploy/inear.ear/webapp.war/web-inf/web.xml deploy/inear.ear/webapp.war/web-inf/lib/stuff.jar deploy/inear.ear/webapp.war/web-inf/classes/config.properties View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114375#4114375 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114375 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Example + Local Database
That seems more basic than what I was talking about :) Can you ping the IP address? Other than that I'm not sure - from this info you are not even getting to JBoss. It does not think anything is even there. Try http://10.0.0.188:8080 - what do you see? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114374#4114374 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114374 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBoss Portal 2.6.3 released
When will the bridge (I guess your talking about the JSR-301 portlet bridge implementation?) be finalized? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114372#4114372 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114372 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Transactional Method Flush
Hey, how can i make a method flush when it runs with success. I have managed Bean | @Name("cadastroFornecedoresBean") | @Scope(ScopeType.SESSION) | public class CadastroFornecedoresBean { | @In(create = true, value = "#{almoxarifadoFacade}") | private IAlmoxarifadoFacade almoxarifadoFacade; | . | . | . | try { | almoxarifadoFacade.persistFornecedor(fornecedor); | resultList = new ArrayList(); | fornecedor = new Fornecedor(); | facesMessages.addFromResourceBundle(FacesMessage.SEVERITY_INFO, "#{msg.SUCESSO}"); | } | catch (Exception e){ | //How to get the exception ? | } | | my facade | @Name("almoxarifadoFacade") | public class AlmoxarifadoFacade implements IAlmoxarifadoFacade { | . | . | . | @Transactional | public void persistFornecedor(Fornecedor fornecedor) { | em.persist(fornecedor); | } | so.. if my persist throw any exception my managed bean isnt getting it.. the entityManager flush after my managed bean method, how can i do to my facade auto flush when the method finish ?? Sry about my english. Ty View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114369#4114369 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114369 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Unwaring web app - leaves some files in the war
I also placed my class in a jar file in the web-inf/lib directory, and I am calling it from a jsp. So as far as I can tell I have the same setup that you have. Yet there must be something different because I am not seeing what you are seeing. For example, here are the contents of my work/jboss.web/localhost/webapp directory: tldCache.ser org/apache/jsp/index_jsp.java org/apache/jsp/index_jsp.class Notice that there is no web-inf directory, nor any jar file. Does the application work in 4.2.2? You never said. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114367#4114367 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114367 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Example + Local Database
for database connectivity I didnt get an error because i didnt make any changes in any xml file because i dont know where to start with. http://10.0.0.188:8080/seam-registration/ error: Unable to connect Firefox can't establish a connection to the server at 10.0.0.188:8080. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114365#4114365 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114365 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam PDF with content-disposition=attachment - is it possibl
Currently, when I generate PDFs using Seam PDF, they either a) open in the same browser window by default, or b) open in a new window, if I use s:link with target="_blank". What I'm missing (compared to the old way of generating PDFs using Jasper - not that I miss Jasper by any amount) is the ability to force a save dialog to pop up when a PDF is requested, by setting "content-disposition: attachment" in the response. Now, my question is, was this ever addressed by Seam? Is it possible to force a save dialog when generating PDF using Seam PDF? Alternatively, is it possible to get the generated PDF as a byte[] in the code - so that I would output it manually, setting the content-disposition on the way? Thanks a lot, Alex View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114366#4114366 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114366 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Example + Local Database
We need more info on the error you are seeings. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114362#4114362 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114362 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: JBoss Hanging on start up during Web Service ServletCont
Here is the web.xml that contains the listener. | 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_4.xsd";> | SSDIWeb | | | com.ctc.ssdi.SSDIWebInitialization | | | | ASIA | com.ctc.ssdi.asia.ASIA | 1 | | | COMEXIA | com.ctc.ssdi.comexia.COMEXIA | 1 | | | DESSIA | com.ctc.ssdi.dessia.DESSIA | 1 | | | ASIA | /ASIA | | | COMEXIA | /COMEXIA | | | DESSIA | /DESSIA | | | 30 | | This is the contex tinitialized code that is called from the listener. package com.ctc.ssdi; | | import javax.servlet.ServletContext; | import javax.servlet.ServletContextEvent; | import javax.servlet.ServletContextListener; | | import com.ctc.ssdi.asia.ASIA; | | /** | * This is the SSDIWebInitialization that will be called when the WAR is deployed. | */ | public final class SSDIWebInitialization | implements ServletContextListener | { | public void contextInitialized (ServletContextEvent servletContextEvent) | { | ServletContext servletContext = servletContextEvent.getServletContext (); | try | { | System.out.println("Inside of the contextInitialized in ContextListener."); | ASIA asia = new ASIA(); | asia.RegisterService(); | } | catch (Exception e) | { | servletContext.log ("Couldn't create addressesDB attribute: " + e.getMessage ()); | } | | //TODO: Create a waiting state to generate some sample data 1 and 5 minutes after it starts. | //This may need to be a thread. | } | | public void contextDestroyed (ServletContextEvent servletContextEvent) | { |System.out.println("Destroying the context."); | } | } Here is the registerAgent code that is called in the context initialized section. | public void RegisterService() { | System.out.println("Beginning the registration of the ASIA Web Service."); | | try{ | System.out.println("In the try block before the connection to the SSDR Registry Web Service."); | | com.ctc.ssdi.ssdr.generated.SsdrRegistryService service = new com.ctc.ssdi.ssdr.generated.SsdrRegistryService(); | com.ctc.ssdi.ssdr.generated.SsdrRegistry port = service.getSsdrRegistryPort(); | | System.out.println("Connected to the SsdrRegistry. Now creating the agentASIA Agent"); | | // Creating a new instance of the Agent Class for the ASIA Web Service | Agent agentASIA = new Agent(); | agentASIA.setName("ASIA"); | agentASIA.setCommunity("Fake Plane Alpha"); | agentASIA.setFunction("ELINT"); | agentASIA.setHost("http://127.0.0.1:8080/ssdi-web/ASIA?wsdl";); | agentASIA.setIpAddress("127.0.0.1"); | agentASIA.setLowFreq((float)0); | agentASIA.setHighFreq((float)1000); | // Note you need to space before and after the first and last words or the letters are cut off (not sure why) | agentASIA.setProvidedServices("subscribe,generalSearch"); | System.out.println("[...agentASIA created]"); | | // Running the subscribe function | java.lang.Boolean result = port.registerAgent(agentASIA); | System.out.println("The results of the agent registration are:" + result); | } catch (Exception ex){ | ex.printStackTrace(); | } | } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114363#4114363 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114363 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Example + Local Database
Hi Jay How are you? Actually I dont know what to change, i didn't try changing any thing. Do you have any idea about localhost problem? Thanks Jay View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114360#4114360 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114360 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user