[jboss-user] [JBoss Portal] - Re: Locked out from viewing CMS admin portlet
I already found and fixed the issue by changing portlet-instances.xml in portlet-cms.war. I have played around heavily with permissions, and I must somehow have turned things upside down. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113290#4113290 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113290 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Locked out from viewing CMS admin portlet
Hi I somehow managed to lock myself out from viewing the CMSPortletAdminInstance. It doesn't show up under "Portlet Instances" in the admin portal, and the CMS admin page is empty, yet the portlet seems to still exist. When I create a new instance with the same name, I see an error stating that an instance with such a name exists already. Any ideas on how to give back myself these permissions, without wiping the database? Thanks, Tobias View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113289#4113289 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113289 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Solved: Problems with ajax4jsf and view-handler
The Problem was a missing library in the ant-script... Thank you View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113286#4113286 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113286 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: Multiple database JNDI calls in single EJB
You know the implication of changing it to no-tx-datasource, right? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113284#4113284 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113284 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: Multiple database JNDI calls in single EJB
I changed the datasources to be no-tx-datasource, they were local-tx-datasource. Seems to work fine now... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113283#4113283 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113283 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - TestNG unit tests with seam 2.0 in JPA environment?
I am having issues trying to figure out how to configure my unit tests to test my entities and seam components. I am running in the JPA environment. I made a test base class to setup the entity manager. I am just not sure how to hook up the EntityManagerFactory with my datasource. Test class code: @Override @BeforeClass | public void init() throws Exception | { | super.init(); | | PGSimpleDataSource dataSource = new PGSimpleDataSource(); | dataSource.setDatabaseName("testdb"); | dataSource.setUser("user"); | dataSource.setPassword("pword"); | dataSource.setServerName("localhost"); | | getInitialContext().bind("jdbc/testDatasource", dataSource); | Map props = new HashMap(); | props.put("hibernate.default_schema", "test"); | props.put("hibernate.default_catalog", "testdb"); | | entityManagerFactory = Persistence.createEntityManagerFactory("testDatabase", props); | } | My /src/main/resources/persistence.xml: | | org.hibernate.ejb.HibernatePersistence | java:comp/env/jdbc/testDatasource | | | after_statement | my | my | | | | | | | | | | Without tomcat to setup the initial context I am not sure how to wire this to get the test running right. I am in a maven environment using testng and surefire to run the test. Any ideas? The error: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial | at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645) | at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) | at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:325) | at javax.naming.InitialContext.bind(InitialContext.java:400) | ... Thanks, Andrew View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113281#4113281 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113281 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Trouble W/ NullPointerException
changed it to | List resultList = entityManager.createQuery("select s from " + | "Server s where lower (s.status) = :param order by s.usedspace desc") | .setParameter("param", "online") | .getResultList(); | same error. i did find my entityManager is null for some reason. once again, i think this is a misconception of ebj3 that i must have. i have even tried switching these to stateful beans and still null entitiyManager. i should point out that this is a seam-gen base i am working off of. i have used entityManager.persist, create, remove etc. else where with no problem. it only happens when i have it in an object that i have called using "new" View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113279#4113279 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113279 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: JBoss + MySQL + Persistence encoding issues
anyone? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113278#4113278 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113278 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: org.jboss.resource.adapter.jdbc.WrappedCallableStatement
"cybercollege" wrote : I am using Eclipse, I have added jboss-common-jdbc-wrapper.jar file which contains the org.jboss.resource.adapter.jdbc.WrappedCallableStatement; | but when I try to import as follow: | | import org.jboss.resource.adapter.jdbc.WrappedCallableStatement; | | I get the following error: | | The import org.jboss.resource.adapter.jdbc.WrappedCallableStatement | cannot be resolved. | | There are so many other classes in org.jboss.resource.adapter.jdbc and I have tried importing a few and they are imported successfully. I don't understand what's the problem with the one I need to import. | | Strange. This class is infact present in the jboss-common-jdbc-wrapper.jar. Which version of JBoss do you use? Does refreshing and rebuilding the project in Eclipse help? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113276#4113276 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113276 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: PersistenceException when using double in Oracle10g
I have the same issue. I disabled validation for now. Pete this isnt a hibernate issue, i think its a seam issue because the mapping is saved in a seam reverse engineering xml file but it doesnt pick up the mapping. why?. Please help!! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113277#4113277 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113277 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Trouble W/ NullPointerException
Please try using the setParameter(s) instead. see if the query works then. It probably doesnt see the params at all. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113274#4113274 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113274 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Exception
Try changing the top one to ScopeType.SESSION as they have in the booking example @Stateful | @Name("hotelSearch") | @Scope(ScopeType.SESSION) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113273#4113273 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113273 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: How to deploy EJB in JBoss?
Create a jar file containing your EJBs and the ejb-jar.xml and place it in the deploy folder of JBoss. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113268#4113268 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113268 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: how to merge global variables value in a JOIN
Hi Is it possible to have different value with the same name for two instances.. Any configuration need to be modified? Regards Stan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113269#4113269 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113269 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: Multiple database JNDI calls in single EJB
Have you configured your datasources (in the -ds.xml file) to be XA? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113267#4113267 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113267 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: start jboss5 error
"jaikiran" wrote : You did not mention the java version you are using. I'm sorry. Your exception stacktrace does contain the java version anonymous wrote : 10:53:13,505 INFO [ServerInfo] Java version: 1.6.0_02,Sun Microsystems Inc. | 10:53:13,521 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.6.0_02-b05,Sun Microsystems Inc. Read through the wiki link that i posted, it contains the workaround. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113266#4113266 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113266 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: start jboss5 error
You did not mention the java version you are using. But going by the exception anonymous wrote : Caused by: java.lang.ClassNotFoundException: [Ljava.lang.String; i guess, you are using Sun Java6. See http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassNotFoundJava.lang.StringInJDK6 for a workaround. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113263#4113263 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113263 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Exception
Please help me??? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113257#4113257 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113257 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - start jboss5 error
who can help me? the error is : 10:53:12,833 ERROR [AbstractKernelController] Error installing to Instantiated: name=DeploymentFilter state=Described java.lang.IllegalStateException: Class not found: [Ljava.lang.String; at org.jboss.metadata.spi.signature.Signature.stringsToClasses(Signature.java:174) at org.jboss.metadata.spi.signature.Signature.stringsToClasses(Signature.java:125) at org.jboss.metadata.spi.signature.Signature.getParametersTypes(Signature.java:292) at org.jboss.metadata.plugins.loader.reflection.AnnotatedElementMetaDataLoader.getComponentMetaDataRetrieval(AnnotatedElementMe at org.jboss.metadata.plugins.context.AbstractMetaDataContext.getComponentMetaDataRetrieval(AbstractMetaDataContext.java:280) at org.jboss.metadata.spi.retrieval.MetaDataRetrievalToMetaDataBridge.getComponentMetaData(MetaDataRetrievalToMetaDataBridge.ja at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.methodHasAnnotations(AOPConstructorJoinpoint.java:202) at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.hasMethodMetaData(AOPConstructorJoinpoint.java:172) at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.hasInstanceOrJoinpointMetaData(AOPConstructorJoinpoint.java at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:99) at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:103) at org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(InstantiateAction.java:52) at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:197) at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:136) at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:233) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:724) at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:445) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:555) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:489) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:289) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:192) at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:302) at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:272) at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:119) at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:64) at org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer.deploy(BasicXMLDeployer.java:76) at org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer.deploy(BasicXMLDeployer.java:146) at org.jboss.system.server.profileservice.ProfileServiceBootstrap.deploy(ProfileServiceBootstrap.java:295) at org.jboss.system.server.profileservice.ProfileServiceBootstrap.bootstrap(ProfileServiceBootstrap.java:222) at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:89) at org.jboss.system.server.profileservice.ServerImpl.doStart(ServerImpl.java:403) at org.jboss.system.server.profileservice.ServerImpl.start(ServerImpl.java:342) at org.jboss.Main.boot(Main.java:210) at org.jboss.Main$1.run(Main.java:522) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.ClassNotFoundException: [Ljava.lang.String; at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.jboss.metadata.spi.signature.Signature.stringsToClasses(Signature.java:170) ... 35 more 10:53:13,505 INFO [ServerInfo] Java version: 1.6.0_02,Sun Microsystems Inc. 10:53:13,521 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.6.0_02-b05,Sun Microsystems Inc. 10:53:13,521 INFO [ServerInfo] OS-System: Windows XP 5.1,x86 10:53:13,567 INFO [JMXKernel] Legacy JMX core initialized Failed to boot JBoss: java.lang.RuntimeException: Exception during Bootstrap at org.jboss.kernel.
[jboss-user] [JBoss Seam] - Re: Trouble W/ NullPointerException
thanks for the responses. unfortunately im still struggling. i tried both of your recommendations with no luck. here is the entity manager as declared in my components.xml | | i didnt find much with debug either. apparently im not doing something right. | 2007-12-16 21:26:11,361 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.web.parameters | 2007-12-16 21:26:11,361 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.web.parameters | 2007-12-16 21:26:11,361 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.web.parameters | 2007-12-16 21:26:11,370 ERROR [STDERR] java.lang.NullPointerException | 2007-12-16 21:26:11,371 ERROR [STDERR] at com.dcg.action.ReturnServer.queryServer(ReturnServer.java:76) | 2007-12-16 21:26:11,371 ERROR [STDERR] at com.dcg.action.ReturnServer.findServer(ReturnServer.java:51) | 2007-12-16 21:26:11,371 ERROR [STDERR] at com.dcg.action.FtpRemote.findServer(FtpRemote.java:66) | 2007-12-16 21:26:11,372 ERROR [STDERR] at com.dcg.action.FileUploadAction.ftpFile(FileUploadAction.java:120) | 2007-12-16 21:26:11,372 ERROR [STDERR] at com.dcg.action.FileUploadAction.UploadFile(FileUploadAction.java:82) | 2007-12-16 21:26:11,372 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | 2007-12-16 21:26:11,372 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | 2007-12-16 21:26:11,372 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | 2007-12-16 21:26:11,372 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) | 2007-12-16 21:26:11,372 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112) | 2007-12-16 21:26:11,372 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166) | 2007-12-16 21:26:11,372 ERROR [STDERR] at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:44) | 2007-12-16 21:26:11,372 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex | could this have something to do with the way i called these classes using "new" View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113254#4113254 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113254 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss/Spring Integration] - Jboss 5 Beta 2 and Spring Deployer
Hello, I managed to have JBoss 4.2.1 + Spring + ejb 3.0 working together with the spring deployer. I deployed my spring archive inside an EAR & it was working fine. However the same fails in jboss 5 Beta 2 as the EAR deployer fails to recognize the spring archive inside. Any suggestions/ideas ? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113252#4113252 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113252 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: HELP: SEAM + RICHFACES + PORTLETS
hi pete, We have applied Seam 1.2.1GA + Portal 2.4.1 in one of our projects and it is successfully deployed quite some time ago. One of the pages in the web UI need to refresh its content periodically (like 2 mins). The rendering time is long (about 15 secs) and it is due to the amount of information to display. That is after we applied some of the tips at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=117190 We had wanted to use ajax in this project to reduce the amount of rendering, instead of a brute force rendering of the entire page. I saw a discussion at the portal user forum on supporting ajax, it is http://www.jboss.com/index.html?module=bb&op=viewtopic&t=115083&postdays=0&postorder=asc&start=10 Can the above be a temporary solution, until Seam 2.0.2 is available? (sorry, i am not familiar with the seam source code, so if u could advise me on this matter, it would certainly speed up matters) Thank you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113251#4113251 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113251 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Developing with Seam 2 and deploying on WebSphere
There appears to be some incompatibility (namely a missing getELContext() method) between the JSF library supplied by IBM with Websphere and the JSF 1.2 RI version utilised by Seam: Here is the stacktrace: Uncaught exception thrown in one of the service methods of the servlet: Faces Servlet. Exception thrown : java.lang.NoSuchMethodError: javax/faces/context/FacesContext.javax/el/ELContext; By manipulating the class loading sequence we can ensure that Seam uses the JSF 1.2 RI bundled in the war, however a different exception is thrown, this time a ClassCastException. Here is the PARENT_LAST classloader stacktrace: Exception caught while initializing context javax.faces.FacesException: java.lang.ClassCastException: org.jboss.seam.jsf.SeamApplicationFactory incompatible with javax.faces.application.ApplicationFactory Has anyone reproduced this problem, and are there any suggestions for how it might be addressed? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113245#4113245 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113245 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: Multiple database JNDI calls in single EJB
Just wondering, is it better to split my EJB into 3 seperate EJBs? ProphetDataEJB - Uses Prophet_Data database, returns information required / allows updates ProphetCubeEJB - Uses Prophet_Cube database, returns information required / allows updates ProphetEJB - uses the returned information from the above EJBs, and calls update methods within each of the above EJBs Is it better to do it that way? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113244#4113244 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113244 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: [newbie] Problem passing parameters
"german.otero" wrote : Ok, In this example, we have a MessageManagerBean that is Session scopped. so it has the reference, is the same as the entityHome. or any Session Bean then holds the reference. this session bean, will have the reference to my selected object, until the end of my session.. or i need to say to him Hey destroy anything because i finish my work.. A conversation provides an implementation of this idea and allows you to scope your "session" to the natural length of the user's interaction anonymous wrote : On the other hand suppouse that when i click the view/edit button, open a popUp window, so a single user, with single session, can open 2 AType for edit 2 windows, 1 session bean... ERR it must be other way to pass object form one page to other.. thinking that i do not have a conversation... | i'm starting a conversation, with an object. Use a conversation :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113243#4113243 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113243 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: wsconsume exception on document binding
sorry, the wsdl got cutted.. here it is: | | http://docs.active-endpoints.com/activebpel/sample/wsdl/parseArray/2007/03/parseArray.wsdl"; xmlns="http://schemas.xmlsoap.org/wsdl/"; xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:tns="http://docs.active-endpoints.com/activebpel/sample/wsdl/parseArray/2007/03/parseArray.wsdl"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";> | | http://docs.active-endpoints.com/activebpel/sample/wsdl/parseArray/2007/03/parseArray.wsdl"; xmlns="http://www.w3.org/2001/XMLSchema"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";> | http://schemas.xmlsoap.org/soap/encoding/"; schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/> | | | | | | | | | | | | | | | | | | | | | | http://schemas.xmlsoap.org/soap/http"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/> | |http://schemas.xmlsoap.org/wsdl/soap/"/> | | http://schemas.xmlsoap.org/wsdl/soap/"/> | | | http://schemas.xmlsoap.org/wsdl/soap/"/> | | | | | |http://mirkwood:8080/active-bpel/services/ParseArrayService"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/> | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113242#4113242 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113242 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - wsconsume exception on document binding
I am trying to use ActiveBPEL togheter with JBossAS. I found an example where i can pass an array parameter to a bpel process (here http://forums.active-endpoints.com/attachment.php?attachmentid=1748&d=1173126517 , provided by the Active-Endpoints staff). I deployed it on tomcat, downloaded the wsd, and tried to consume with wsconsume which says: | wsconsume.sh ParseArrayService.wsdl | Invalid wsdl:operation "parseStringArray": its a document-literal operation, message part must refer to a schema element declaration | why this? i suppose it's a correctly exposed web service, so wsconsume should be able to consume it.. below the wsdl: | | http://docs.active-endpoints.com/activebpel/sample/wsdl/parseArray/2007/03/parseArray.wsdl"; xmlns="http://schemas.xmlsoap.org/wsdl/"; xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:tns="http://docs.active-endpoints.com/activebpel/sample/wsdl/parseArray/2007/03/parseArray.wsdl"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";> | | http://docs.active-endpoints.com/activebpel/sample/wsdl/parseArray/200 /XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema";> | http://schemas.xmlsoap.org/soap/encoding/"; schemaLocation="http://sche | | | | | | | | | | | | | | | | | | | | | | http://schemas.xmlsoap.org/soap/http"; xmlns:soap="http:// | |http://schemas.xmlsoap.org/wsdl/soap/"/ | | http://schemas.xmlsoap.org/wsdl/soap/"/> | | | http://schemas.xmlsoap.org/wsdl/soap/"/> | | | | | |http://mirkwood:8080/active-bpel/services/ParseArrayService"; xmlns:soap="h | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113241#4113241 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113241 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Multiple database JNDI calls in single EJB
Hi, I have some code in an EJB that I want to open up two different database connections (using JNDI) to two different datasources... so... Context loContext = (Context) new InitialContext().lookup("java:"); | DataSource loDataSource1 = (DataSource)loContext.lookup("Prophet_Data"); | Connection loConnection1 = loDataSource1.getConnection(); | try { | DataSource loDataSource2 = (DataSource)loContext.lookup("Prophet_Cube"); | // Issue when this getConnection() is called | Connection loConnection2 = loDataSource2.getConnection(); | try { | // | } finally { | if (!(loConnection2 == null)) { | loConnection2.close(); | } | } | } finally { | if (!(loConnection1 == null)) { | loConnection1.close(); | } | } | When I call loDataSource2.getConnection(), the following exception is raised: 11:21:35,475 WARN [loggerI18N] [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] Adding multiple last resources is disallowed. Current resource is [EMAIL PROTECTED] | 11:21:35,476 ERROR [STDERR] org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: a090101:c463:47658705:2467 status: ActionStatus.ABORT_ONLY >); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: a090101:c463:47658705:2467 status: ActionStatus.ABORT_ONLY >)) | 11:21:35,477 ERROR [STDERR] at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:94) | 11:21:35,478 ERROR [STDERR] at nz.co.mcpond.test.ejb.helloejb.HelloEJB.getText(HelloEJB.java:23) | 11:21:35,478 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | 11:21:35,478 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) If I set com.arjuna.ats.jta.allowMultipleLastResources to true, within jbossjta-properties.xml, then I can use the second connection, however, I have read that this is not really safe to do so. So, I am just wondering, what is the best way to use two seperate database connections within the same EJB (using JNDI)? I am using two seperate database connections, because I want to read data from both databases (and update both databases) depending on values from each table within each database... Antonio Broughton View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113240#4113240 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113240 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - FlushModeType.MANUAL in conversation
Hi, I cannot control the synchronization from a persistent object to the database. The more I read and the more I try out the more I get confused. I hope that somebody can give me a helping hint. For testing I generated a simple ear project with seam-gen (Seam 2.0.0.GA) and added an entity class and a stateful session bean. The use case: A logged in user wants to change his email address (unique field in table). A server-side validation with a database selection is effected and fails if the new email address exists in the database. What happens: If I enter a new email and press Save, a synchronization (flush) takes place just before the selection of the existing email addresses has been started. In FlushMode.AUTO this is normal, but not in FlushMode.MANUAL. The effect is that EVERY new email is known to the system and the validation does not work as it should. The entity class MyUser is: | package some.model; | | // imports... | | @Entity | @Table | @Name("user") | public class MyUser implements Serializable { | | @Id @GeneratedValue | private Long id = null; | | // username is the business key | @Column(name="username", nullable = false, unique = true) | private String username; | | @Email | @Column(name="email", nullable = false, unique = true) | private String email; | | private String firstname; | private String lastname; | | public MyUser() { | } | | //... getter and setter ... | | } | The stateful session bean implementation is: | package some.controller; | | // imports ... | | @Name( "userAction" ) | @Scope( ScopeType.CONVERSATION ) | @Stateful | public class UserActionBean implements Serializable, UserAction { | private static final long serialVersionUID = 1L; | | @PersistenceContext(type=PersistenceContextType.EXTENDED) | private EntityManager entityManager; | | @In(create=true) | private transient FacesMessages facesMessages; | | @In( value = "user", required = false ) | @Out( value = "user", required = false ) | private MyUser selectedUser; | | @In | private Identity identity; | | private String backupEmail; | | @Begin(flushMode=FlushModeType.MANUAL, join=true) | public String selectLoggedInUser() { | System.out.println( "Selected logged in User: " + identity.getUsername() ); | List existing = (List) entityManager | .createQuery("from MyUser u where u.username = :uname)") | .setParameter("uname", identity.getUsername()) | .getResultList(); | if (existing.size() == 1) { | selectedUser = (MyUser) existing.get(0); | backupEmail = selectedUser.getEmail(); | System.out.println( "Redirecting to /editLoggedInUser.xhtml" ); | return "/editLoggedInUser.xhtml"; | } else { | return "/home.xhtml"; | } | } | | @End | public String saveLoggedInUser() { | | // Try if email exists | // There should NOT be a flush before the query is effected | // But there IS a flush before the query is effected | if (emailExists()) { | selectedUser.setEmail(backupEmail); | return null; | } | | // Normal flush (success case) | entityManager.flush(); | | FacesMessages.instance().add( "#{user.username} has been saved." ); | return "/home.xhtml"; | } | | private boolean emailExists() { | List existing = (List) | entityManager.createQuery("from MyUser u where u.email = :email)") | .setParameter("email", selectedUser.getEmail()) | .getResultList(); | if(existing.size() != 0) { | facesMessages.add("#{messages['NewEmailExists']}" + selectedUser.getEmail()); | return true; | } | return false; | } | | @Remove @Destroy | public void destroy() {} | } | Extension of "menu.xhtml" to start the conversation: | ... | | | | ... | The form "editLoggedInUser.xhtml" is: | 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="h
[jboss-user] [JBoss Seam] - Re: selected tab is lost on sorting of embeded datatable
This is really a richfaces question, so try the richfaces forum. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113238#4113238 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113238 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Page flow issues using jPDL
You should be able to do fine in conversation - just make sure not to propagate the conversation on navigation links. jPDL has a default transition - look in the jBPM docs for details. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113237#4113237 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113237 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: PersistenceException when using double in Oracle10g
Ask on the hibernate forum :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113236#4113236 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113236 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: Database JNDI call in EJB
To the war file (containing the jsp file), I added a resource-ref element to web.xml and jboss-web.xml: web.xml | Prophet Cube Data | jdbc/Prophet_Cube | javax.sql.DataSource | Container | jboss-web.xml: | | jdbc/Prophet_Cube | javax.sql.DataSource | java:/Prophet_Cube | | I also found, that when I modify the EJB jar, I need to also re-deploy the WAR file. I forgot to mention that I was deploying _two_ deployment files: * jar - EJB code * war - jsp code Is this the proper practice for deploying EJBs? That you also need to re-deploy the war / client files also? (some sort of re-freshing?) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113234#4113234 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113234 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: HELP: SEAM + RICHFACES + PORTLETS
Please don't use captial letters. The RichFaces and portal team are currently working on this for Seam2/RichFaces/(JBoss) Portal. Support for Seam + portal is available already, hopefully we can add RichFaces support in 2.0.2 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113233#4113233 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113233 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Asynchronous method triggered multiple times.
vfaid, ask in the EJB3 forum JakeC - not with the EJB3 timer, but it is with the Quartz timer. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113229#4113229 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113229 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Injection doesnt work
Where? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113228#4113228 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113228 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how to map abstract view Id to a xhtml file in Seam?
Use URLRewrite, we plan to integrate this deeper into Seam in the future http://jira.jboss.com/jira/browse/JBSEAM-274 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113227#4113227 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113227 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: missing conversation entry error
Does the delete method complete without exception? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113226#4113226 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113226 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: form submission and s:button
Yes, but why not use h:commandButton? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113224#4113224 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113224 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Question about SEAM booking example
Bizarrely the hibernate only example (no JPA) is called hibernate2 ;) http://jira.jboss.com/jira/browse/JBSEAM-2387 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113225#4113225 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113225 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Javassist user questions] - Annotating JDK classes
Hi, I'm trying to annotate all the classes used by the user application, the thing is that even with agentlib there classes that are loaded before the agent. How can I annotate all the classes including the JDK classes? Thanks, Guy View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113223#4113223 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113223 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Database JNDI call in EJB
Hi, I am fairly new to JBoss, so I am possibly missing something. I have a simple EJB, which just sets up a Connection to a JNDI datasource, then closes the connection. try { | Context loContext = (Context) new InitialContext().lookup("java:"); | DataSource loDataSource = (DataSource)loContext.lookup("Prophet_Data"); | Connection loConnection = loDataSource.getConnection(); | try { | // | } finally { | if (!(loConnection == null)) { | loConnection.close(); | } | } | } catch (Exception e) { | e.printStackTrace(); | } The JNDI Prophet_Data is defined within a seperate application, which is packaged into its own EAR (Which is Pentaho). If I deploy this EJB jar to JBoss, then call the EJB within a simple jsp: Properties props = new Properties(); | props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); | | props.put(Context.PROVIDER_URL, "localhost:1099"); | | Context ctx = new InitialContext(props); | | HelloHome home = (HelloHome)ctx.lookup("ejb/Hello"); | Hello bean = home.create(); | bean.simpleFunction(); | bean.remote(); | ctx.close(); When browsing to the jsp (eg: http://localhost:8080/testejb/testejb.jsp), it works fine. However, If I modify the EJB code (and just add say, the initialisation of an integer eg: int i = 0; Then I redeploy the EJB jar... when I goto http://localhost:8080/testejb/testejb.jsp, it causes an exception to occur: java.rmi.ServerException: EJBException:; nested exception is: | javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract nz.co.mcpond.test.ejb.helloejb.Hello nz.co.mcpond.test.ejb.helloejb.HelloHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException | org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:365) | org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:136) | org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107) | org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:637) | org.jboss.ejb.Container.invoke(Container.java:981) | sun.reflect.GeneratedMethodAccessor402.invoke(Unknown Source)... I can get around this by setting, CallByValue to true, however, reading http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration seems to suggest that this is a performance hit. Am I doing something wrong? or not setting something correctly? Is this because the JNDI datasource is not defined within my EJB jar? (ie: because it is defined within Pentaho.ear, does this mean that only that application can use the JNDI (without using CallByValue??) Any help would be appreciated Antonio Broughton View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113222#4113222 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113222 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam PDF documents and conditional content
p:text has a rendered attribute. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113221#4113221 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113221 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Set non-shared Hibernate interceptor on JPA EntityManage
I am in need of auditlogging and versioning as well in the application we're building. And as always: the more elegant and slim solution, the better. So I wonder: Did you ever solve this in a nice way? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113220#4113220 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113220 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Could not find datasource: java:/JbpmDS
Sorry! How can I do that? | Context ctx = new InitialContext(); | | Hashtable env; | env = new Hashtable(); | env.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory"); | env.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jn.interfaces"); | env.put("java.naming.provider.url","jnp://localhost:1099"); | ctx = new InitialContext(env); | | NamingEnumeration list = ctx.list(""); | | while (list.hasMore()) { | NameClassPair nc = (NameClassPair) list.next(); | | System.out.println(nc); And the result of that is: | TopicConnectionFactory: org.jboss.naming.LinkRefPair | jmx: org.jnp.interfaces.NamingContext | HTTPXAConnectionFactory: org.jboss.mq.SpyXAConnectionFactory | ConnectionFactory: org.jboss.mq.SpyConnectionFactory | UserTransactionSessionFactory: $Proxy12 | HTTPConnectionFactory: org.jboss.mq.SpyConnectionFactory | XAConnectionFactory: org.jboss.mq.SpyXAConnectionFactory | UserTransaction: org.jboss.tm.usertx.client.ClientUserTransaction | UILXAConnectionFactory: javax.naming.LinkRef | UIL2XAConnectionFactory: javax.naming.LinkRef | queue: org.jnp.interfaces.NamingContext | console: org.jnp.interfaces.NamingContext | UIL2ConnectionFactory: javax.naming.LinkRef | HiLoKeyGeneratorFactory: org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory | UILConnectionFactory: javax.naming.LinkRef | EventDispatcher: org.jboss.ws.eventing.mgmt.DispatcherDelegate | QueueConnectionFactory: org.jboss.naming.LinkRefPair But ... I don't know exacty do what you are telling me. Could you tell me how I could do that? Thanks a lot! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113218#4113218 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113218 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - unable to update entity in collection
Another odd thing with hibernate: using the code below I'm unable to update entity data but successfully may add new one to collection : anonymous wrote : /** | * Writes qualification info into DB | * | * @param qualification object model to be updated | * @return true if successfull | * @throws Exception | */ | public boolean saveQualification(UsersAcademicQualifications qualification) throws Exception { | if (qualification != null) { | | usersAcademicQualificationsHome.setInstance(qualification); | | if (qualification.getId() != null && qualification.getId().trim().length() > 0) { | usersAcademicQualificationsHome.update(); | } | else { | usersAcademicQualificationsHome.persist(); | } | | usersAcademicQualificationsHome.getEntityManager().flush(); | | //updating related entities | usersAcademicQualificationsHome.setId(qualification.getId()); | qualification = usersAcademicQualificationsHome.find(); | | //adding new qualification to related Users object | { | qualification.getUsers().getUsersAcademicQualifications().add(qualification); | usersFacade.saveUser(qualification.getUsers()); | } | | return true; | } | return false; | } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113216#4113216 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113216 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
This is awsome seam maven2 plugin . Thank you so much for setting this up. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113215#4113215 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113215 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - unable to update entity in collection
Another odd thing with hibernate: using the code below I'm unable to update entity data but successfully may add new one to collection : /** | * Writes qualification info into DB | * | * @param qualification object model to be updated | * @return true if successfull | * @throws Exception | */ | public boolean saveQualification(UsersAcademicQualifications qualification) throws Exception { | if (qualification != null) { | | usersAcademicQualificationsHome.setInstance(qualification); | | if (qualification.getId() != null && qualification.getId().trim().length() > 0) { | usersAcademicQualificationsHome.update(); | } | else { | usersAcademicQualificationsHome.persist(); | } | | usersAcademicQualificationsHome.getEntityManager().flush(); | | //updating related entities | usersAcademicQualificationsHome.setId(qualification.getId()); | qualification = usersAcademicQualificationsHome.find(); | | //adding new qualification to related Users object | { | qualification.getUsers().getUsersAcademicQualifications().add(qualification); | usersFacade.saveUser(qualification.getUsers()); | } | | return true; | } | return false; | } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113214#4113214 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113214 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How to set and get cookie in seam?
Hi, I have one stateless bean in my app, and my scenario is: 1. first time visit page set cookie with some value, 2. second and more visits check if cookie exist and read it's value. I don't know where is my problem, each time I read only 2 cookies whitch aren't mine: 1. session id cookie 2. identity cookie | package pl.sguni.universum; | | import java.math.BigInteger; | import java.util.Random; | | import org.jboss.seam.ScopeType; | | import javax.ejb.EJBException; | import javax.ejb.Stateless; | import javax.ejb.TransactionAttribute; | import javax.ejb.TransactionAttributeType; | import javax.faces.context.FacesContext; | import javax.persistence.Query; | import javax.servlet.http.Cookie; | import javax.servlet.http.HttpServletRequest; | import javax.servlet.http.HttpServletResponse; | | import org.jboss.seam.annotations.In; | import org.jboss.seam.annotations.Name; | import org.jboss.seam.annotations.Scope; | import org.jboss.seam.annotations.web.RequestParameter; | | import pl.sguni.constants.LetterType; | import pl.sguni.engine.BattleSystem; | import pl.sguni.model.Moves; | | @Stateless | @Scope(ScopeType.SESSION) | @Name("advAction") | public class AdvAction extends BattleSystem implements AdvConsole { | public AdvAction() {} | | @In | protected FacesContext facesContext; | | @RequestParameter | private String id; | | @In("#{remoteAddr}") private String ipString; | //*** | @TransactionAttribute(TransactionAttributeType.REQUIRED) | public String adv() { | String ret = "/AdvDone.xhtml"; | try { | long a = System.currentTimeMillis(); | //= | if ((id.length() > 0) && (ipString.length() > 0)) { | if (!checkCookie()) { | createCookie(ipString); | ret = "/Adv.xhtml"; | } | } | //= | long b = System.currentTimeMillis(); | System.out.println("TIME: " + (b - a) + " ms."); | } catch(EJBException e) { | log.error("User: ->advAction - adv(): " + e.getMessage()); | } | return ret; | } | | | private void createCookie(String value) { | Cookie cookie = new Cookie("adv", id); | cookie.setMaxAge(0); | cookie.setSecure(false); | cookie.setVersion(32140800); | HttpServletResponse res = (HttpServletResponse)facesContext.getExternalContext().getResponse(); | res.addCookie(cookie); | } | public boolean checkCookie() { | String cookieName = null; | Cookie[] cookie = ((HttpServletRequest)facesContext.getExternalContext().getRequest()).getCookies(); | | if(cookie != null && cookie.length > 0) { | System.out.println("Cookie : [" + cookie + "] of length : " + cookie.length); | for (int i = 0; i < cookie.length;i++) { | Cookie currentCookie = cookie; | cookieName = currentCookie.getName(); | if (cookieName.contentEquals("adv")) { | System.out.println("DEBUG:cookie_value = " + currentCookie.getValue()); | return true; | } | } | } else | System.out.println("Cannot find any cookie"); | return false; | } | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113213#4113213 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113213 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: error in build cvs source code
hi kukeltje, thanks for your quickly answer. The file does't exist. regards Fengzhi View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113210#4113210 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113210 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Ajax Url
The ajax feature is not addressing much of it but anyway, the question is how to get an URL that is not pointing at a window or page but at the server itself, allowing to build a servlet url to whatever context is needed. The only way I found is to compute it { | PortalNodeURL url = response.createRenderURL(request.getPortalNode()); | url.setRelative(false); | String portalURL= url.toString(); | String context = request.getContextPath(); | int contextPathIndex = portalURL.indexOf(context); | return portalURL.substring(0, contextPathIndex); | } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113207#4113207 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113207 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Re: j_security_check not working in LDAP based Authenticatio
Solved the problem. I've added the following in login-config.xml uniquemember | SUBTREE_SCOPE | ou=Groups,dc=company,dc=co,dc=uk | true | cn | false | And, changed the following role-name in web.xml to the 'actual' role name as in LDAP. JBoss is not mapping the roles names described in jboss-web.xml View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113206#4113206 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113206 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: Configuring query time-out in Jboss 3.2.5
Given we are not upgrading now, is there still an option to do that? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113203#4113203 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113203 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: OSGi Deployer on MC 2.0
"vbatista" wrote : | I have read on these forums that jboss 5.0 Beta3 will have the microcontainer 2.0, and that this version of the MC will have an OSGi deployer. Can any one confirm this? Is there any planned date for the release of JBoss 5.0 Beta3? | http://www.jboss.com/index.html?module=bb&op=viewtopic&t=117317&start=10 Beta3 --> next week. "vbatista" wrote : | If my assumption is wrong, is there any one who have already integrated any OSGi framework with JBoss (fenix, equinox,..), even if this in not a full integration (Classloader issues, ...)? | Since it's really easy to swap the ClassLoader with current Deployers implementation, perhaps you can look at what I had in mind with my first shot at our OSGi - using existing OSGi frameworks to delegate the classloading to their CL implementations. http://anonsvn.jboss.org/repos/jbossas/projects/osgi/trunk/ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113202#4113202 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113202 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Why use JBoss Messaging?
25 views and no body knows? Somebody must? Please..! :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113201#4113201 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113201 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: EAR project looses dependencies
should work just fine - let us know how it goes. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113200#4113200 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113200 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Permission Denied when getting FileInputStream
Hi All, I am getting a java.io.FileNotFoundException(Permission denied) exception when I am trying to open a FileInputStream to a file in my local directory that has permissions -rwxr--r--. Our application actually allows to copy a file from any location in the unix file system to our application's "vault" in the same unix file system. I am getting this error when trying to copy a file with the above permissions from my home directory to the vault location from GUI. But I am able to successfully copy the same file from the my home directory to the same vault location using a test case(run using TestNG which basically uses JUnit). Our application is deployed in JBoss and I am logging in as myself into our application. I have seen the server.policy file in /jboss-4.0.2/server/default/conf/ which grants AllPermissions: grant { |// Allow everything for now |permission java.security.AllPermission; | }; But I am still wondering why I am getting the (Permission denied) exception when I access our application from GUI while I am trying to open a FileInputStream to this file which has "read" access to all the users (in the backend code); suprisingly I don't get this error when I run the backend code from the TestNG test case !!! I would really appreciate any help regarding what I am missing here. I am not even sure whether it is JBoss's login-config.xml or server.policy that I need to change to get read access to the file I am accessing. Please let me know. This is difficult to debug for me and I am totally frustrated now. I have been on this for the past 4 days, but could not resolve it. Looking for help. Our application uses, Spring 2.0, Hibernate 3.2 and AJAX backed by Oracle and deployed in JBoss 4.0.2. Thanks, Sarin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113199#4113199 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113199 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user