[jboss-user] [EJB 3.0] - Re: EJB3: org.hibernate.type.SerializationException: could n
Hi, the problem is that i don't have the permission to make changes on the DB because it's a LIVE/Production DB. So problems with releases/changes and so on. I tried to access now my attributs via @NamedQuery like this: SELECT r.roadPK.origin.iata,r.roadPK.destination.iata, r.availabilityMethod FROM Road r but there I got a compiler error: Caused by: org.hibernate.HibernateException: Errors in named queries: Road.listAll | at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:397) | at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327) | at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867) | at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669) | ... 75 more By testing with SELECT r.roadPK.origin, r.roadPK.destination,r.availabilityMethod FROM Route r i didn't get any error but also any output. lol Like i told it before, with SELECT r.availabilityMethod FROM Route r is no problem! So logically I can access my attributs via r.roadPK.origin.iata but I get there the error! So I think that my mapping is wrong. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227445#4227445 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227445 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: NullPointerException in JavaEEComponentHelper with JBoss
We finally were able to reproduce this issue. This issue arises because of Classpath entries in MANIFEST.MF of the ejb jar files. Looking at the MANIFEST.MF files your application has set the Classpath attribute to point to other ejb jar deployments. This leads to incorrect handling of the bean deployment for such jar (and the jars referred in the Classpath attribute). These issues are now being tracked here: https://jira.jboss.org/jira/browse/JBAS-6843 https://jira.jboss.org/jira/browse/EJBTHREE-1815 To get your application working on the current AS-5.x till these issues are fixed, here's what you can do: 1) Remove the Classpath entries (completely) from the MANIFEST.MF of the jar deployments. 2) JEE5 packaging provides a simpler way of adding jars to classpath. All plain jar files (i.e. not EJB deployments) can be placed in a folder named "lib" at the root of the EAR: | ifsapp.ear | | | | | |--- META-INF | | |--- application.xml | | | | | |--- lib | | | --- xyz.jar (plain jar files) | | | --- more plain jar files | | | | | |--- ejbjar1.jar | | | |--- ejbjar2.jar | | | |--- myapp.war | | | |--- | 3) All EJB deployments can then be placed at the root of the EAR and marked as a EJB module in the application.xml (this you already do). Make sure you don't have any ejb jars in the EAR/lib folder. Everything in the lib folder will be available in the classpath of all the components (ejbjar1, ejbjar2, war...) in the EAR. P.S: This packaging is portable across servers since the "lib" folder (which can be configured to be named different) is defined by JEE5 spec. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227447#4227447 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227447 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: cant run the greeter sample from richfaces developers gu
Replys are in your other post: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=154538 Please don't cross-post Best regards Wolfgang View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227442#4227442 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227442 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Is mail blocking?
It seems mail node is blocking, I just tried. I would like to handle when the sending of a mail fails. I saw that this node can handle exceptions, so I added one : | #{mailSubject} | #{mailText} | | | | | | | | Result is that I still get the exception, and workflow stops here. I even don't get inside the InvalidEmailAddressExceptionHandler class. What's wrong? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227438#4227438 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227438 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBoss application deployment - Handling properties outsi
You can place those property files in %JBOSS_HOME%/server/< serverName>/conf folder which by default is in the classpath. You can then access those files in the code, something along these lines: InputStream is = this.getClass().getClassLoader().getResourceAsStream("myprops.properties); | Properties props = new Properties(); | props.load(is); | But obviously, you cannot have multiple versions of the same file on the same server instance (that's what i thought your original requirement was - one version per ear on the same server instance). View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227437#4227437 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227437 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: trouble with greeter example...
Handled in your other post http://www.jboss.org/index.html?module=bb&op=viewtopic&t=154538 Best regards Wolfgang View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227436#4227436 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227436 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Missing SecurityProxy.class in jboss5.0 application
Hi, give "jbosssx-as-client.jar" a try, this one contains your class in 5.0.1. Best regards Wolfgang View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227433#4227433 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227433 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBoss application deployment - Handling properties outsi
"jaikiran" wrote : What is the reason for keeping these properties outside the .ear? Is it because you will have to unzip the archive to make any changes to the properties? If yes, then have a look at the exploded deployment option http://www.jboss.org/community/docs/DOC-9719. That way you can include the properties within each ear and don't have to worry about unzipping the ear for doing any changes. | Currently our application (deployed on Weblogic) is deployed in a way that many configuration files are outside of the ear file. Also some properties related to environment issues such hosts and ports. We would like to deploy same strucrue in JBoss if possible. Is there a way to stay with this structure in JBoss. We noticed that we can't access files outside of the ear file. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227429#4227429 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227429 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: How do I add the richfaces library to eclipse? (experien
Hi, I think the "JSF library" feature is only for defining the JSF standard implementation, but not for libraries built upon JSF. So, you need two steps: 1) create a JSF library in eclipse with the option "server supplies implementation" (JBoss contains Mojarra) and choose your JBoss server runtime. Here are two eclipse screenshots which will hopefully help (on a german page): http://www.informatik.fh-wiesbaden.de/~knauf/KomponentenArchitekturen2008/jsfbasics/index.html#project Beware to upgrade Eclipse/WebTools to 3.4.2, because in previous versions the classpath to the JSF libs was wrong. 2) drop the Richfaces JARs in WEB-INF\lib (without any further configuration) This should do it Wolfgang View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227427#4227427 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227427 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBoss 5.0.1, how to create new topic
Works Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227424#4227424 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227424 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: WSConsume does not support JAX-WS 2.1 with JBossWS 3.0.5
I'd need to double check what was available in AS 4.2.2, I think the -t 2.1 option was later disabled because the implementation of JAX-WS 2.1 was not complete yet. For sure you can use the 2.1 target starting from JBossWS Native 3.1.0.GA as the JAX-WS 2.1 has been completed there. Otherwise (if you cant move to AS 4.2.3 which is the oldest target container supported by JBossWS 3.1.0) try with JBossWS-Metro 3.0.5, which already had full JAX-WS 2.1 impl. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227423#4227423 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227423 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBoss 5.0.1, how to create new topic
Sorry, the operation name should be 'deployQueue', not 'createQueue'. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227420#4227420 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227420 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: deploying a java portlet in eclipse
Hi, Thanks a lot for d reply ...It really worked !!! and i was successfully able to embed d portlet into d portal... regards View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227416#4227416 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227416 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBoss 5.0.1, how to create new topic
I try that example yesterday, and always I got | Unable to find operation createQueue(java.lang.String,java.lang.String) | This is my example: | package com.jboss.test; | | import java.util.Properties; | | import javax.management.MBeanServerConnection; | import javax.management.ObjectName; | import javax.naming.Context; | import javax.naming.InitialContext; | import javax.naming.NameNotFoundException; | | | public class MakeQueue { | | public static void main(String[] args) throws Exception { | | Properties props = new Properties(); | props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); | props.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming"); | props.put(Context.PROVIDER_URL, "jnp://localhost:1100"); | | InitialContext iniCtx = new InitialContext(props); | | try{ | iniCtx.lookup("queue/test"); | }catch (NameNotFoundException e) { | | | MBeanServerConnection mBeanServer = lookupMBeanServerProxy(iniCtx); | | ObjectName serverObjectName = new ObjectName("jboss.messaging:service=ServerPeer"); | | String queueName = "test"; | | mBeanServer.invoke(serverObjectName, "createQueue", | new Object[] {queueName, "queue/test"}, | new String[] {"java.lang.String", "java.lang.String"}); | | } | } | | private static MBeanServerConnection lookupMBeanServerProxy(InitialContext ic) throws Exception | { | if (ic == null) | { | ic = new InitialContext(); | } | return (MBeanServerConnection)ic.lookup("jmx/invoker/RMIAdaptor"); | } | | } | In build path I include all jar from JBoss 5.0.1/client and jboss-messaging.jar View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227418#4227418 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227418 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: Maximum XMX value on 32bit Windows Machine
Thank you again Peter, always fast and accurate. Antonello View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227415#4227415 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227415 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBoss 5.0.1, how to create new topic
You can have a look at the JBM examples source, especially this file: examples/common/src/org/jboss/example/jms/common/Util.java the deployQueue() method. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227408#4227408 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227408 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBoss 5.0.1, how to create new topic
OK, I saw that... But I dont known how to use ServerPeer to deploy topic. If someone has an example. Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227407#4227407 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227407 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Use of jBPM variables in action handler fields
by reading what I stated before. Your variable contains the string you passed to it, including the #{.} and by parsing it with the jBPM EL resolver it will be filled. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227401#4227401 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227401 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm engine
http://www.google.nl/search?q=hibernate+coherence+oracle&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:nl:official&client=firefox-a View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227398#4227398 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227398 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: How to get the source code?
You can checkout it's from svn repository, https://anonsvn.jboss.org/repos/jbosstools/trunk/hibernatetools/ View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227399#4227399 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227399 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: ExpirationPolicy not working
I am actually set the key as well, it is there in the code keyNode.put(ExpirationAlgorithmConfig.EXPIRATION_KEY, expTime); View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227391#4227391 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227391 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBoss 5.0.1, how to create new topic
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4193509#4193509 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227378#4227378 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227378 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Portal page transition with passing parameters to portlet.
Hi Good Day people, I'm been trying to solve this problem on the past few days but got no luck on the finding the solution. I tried to ask mr. google to find some reference but I cannot find the the right one or something related to my problem, thats why I post now the problem on the forum. *** Describe your environment: JBoss Portal Version: JBoss Enterprise Portal Platform 4.3 Did you get Portal from Subversion? or download it? : download JBoss AS Version: 4.3.3 Database Vendor and Version: SQLServer 2005 JDBC Connector and version: sqljdbc, (sorry i dont know the version.) OS Platform: Windows XP SP2 For the background, I'm using the CMS bundled to jboss portal for my news portlet. I create news using CMS by creating a file and saving it as a html file. On my portlet, using the CMS service i was able to retrieved the folders and files about the news. I'm using JSF on a portlet environment. *** Describe the problem: Here's the problem. On my portal I have 2 pages. Home and News | Home | News | The news page contain the news portlet that show all the news on the portal. When i click on a particular news, It will display the details of the news or the contents of the file. (This is already ok) The home page contain also the news portlet. The news portlet displays only the latest news (which is also done). The thing is that the users suggest that when news link is click from the home page, the screen will be redirected to the News page showing the news details. Thats what is bugging on my mind on the past few days. *** I have a initial solution on the problem. Using the jboss render request and action request, i was able to create the correct url going to the news page. Using also that, I can also add parameters on the url. but the problem on my initial solution, i cannot access the request parameters of the portal page on my portlet. Is there a way i can access the request parameters of the portal on my portlet so i can use it as my flag to display the news contents instead of the default listing of page on the News Page? I also try browsing the examples on jboss portal but i cannot find something like that. what i notice on 1 example is when the user click on something on the portlet, the portlet is maximized on the current page but not like what i describe above. *** Hi people, if you think there is a better solution about my approach or other idea, or tips, please post a reply, any help are greatly appreciated. Thank you very much! Regards, View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227375#4227375 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227375 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: No two Schemas should share the same targetNamespace
Hi yary, what you mean attach the source code? i got the sampe problem with you.. can you explain it to me... how you fixed it? thank's BR Ali Bastomi View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227374#4227374 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227374 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user