[jboss-user] [JBossWS] - Re: Can not javax.xml.bind.JAXBContext in which jar file.
Thomas, After checking out a fresh copy of the 1.2.0 branch, I tried to run the release target. Several points : 1/ Ant.properties # Optional JBoss Home #jboss50.home=/home/tdiesler/svn/jbossas/trunk/build/output/jboss-5.0.0.Beta2 #jboss42.home=/home/tdiesler/svn/jbossas/branches/Branch_4_2/build/output/jboss-4.2.0.CR1-ejb3 #jboss40.home=/home/tdiesler/svn/jbossas/branches/Branch_4_0/build/output/jboss-4.0.5.SP1-ejb3 Actually not very optional, you have to define each jbossX.home, no way to define only 1 integration point. 2/ build-setup.xml Obviously links to jbossX.thirdparty are rather personal :-) After that, it's ok. Just another big point, when i try , i got the following error : Could not load provider:org.jboss.ws.tools.jaxws.impl.WSContractConsumerFactoryImpl I searched the implementation class and found nothing in the source... missed something ? Thank you. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018104#4018104 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018104 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Can not javax.xml.bind.JAXBContext in which jar file.
Sorry for the noise, I've found the implementation of WSContractConsumerFactory in the subprojects dir. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018106#4018106 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018106 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Security Remember Me Functionality
From a security perspective, this is not a good idea. I can steal your username and password from the cookie with a bit of Javascript. The only requirement for that is that somewhere in the web application, user input is printed on the webpage unfiltered (e.g. on a registration screen, there is an The address $email is not valid. error message and $email comes form a form field.) I make you click on a link I prepared and redirect you with a POST and some malicious payload to the vulnerable registration form. My POST enters Javascript code into the form that gets then printed onto the webpage in the error message. In that Javascript, I read your cookie and send it to my server. This is known as cross-site scripting and there are many variations. Short story: Do not trust the client, do not store sensitive information on the client. The best Remember Me feature is something similar to what Amazon is using: A username cookie is stored on the client, and the web application welcomes the user with his real name and also shows the remembered shopping basket. However, any sensitive operation (editing the shopping basket, buying stuff) requires re-authentication. This combined with an application audit for XSS holes is a good strategy. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018114#4018114 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018114 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Security Remember Me Functionality
Furthermore: Today, clients can fill out login-forms automatically. It is a much safer approach: a) the user decides when he wants to store sensitive information on the client (e.g. not on a browser in some internet cafe) b) the user has a clear warning and a message (Do you want to store that login information?) that he has seen before, not some obscure Remember Me checkbox with an unknown implementation he can't control c) the user can apply local measures to improve security, for example, my remembered login form data is stored in a master-password protected wallet (Safari + OS X) d) its much harder for attackers to abuse this functionality for fishing, you'd need DNS spoofing to get the victim to a malicious webpage with a faked domain, so that the client auto-fills the attackers form Having said that, we might add the trusted client Remember Me to Seam, but only with big red warning lights. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018118#4018118 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018118 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] EAR classloading
Hi All, Our company is evaluating JBoss as an application server choice for our current applications to be deployed on. I have two questions regarding the structure of the EAR in JBOSS with respect to class loading. According to the J2EE 1.4 specification, one can put utility jars in the EAR, which are visible to all wars and EJB modules that make up the enterprise application. I am trying to do that with JBoss, but get ClassNotFoundExceptions. If i put all jars in the WAR that needs them, all classes are loaded properly. My second question is regarding class loader isolation in the EAR scope. Suppose I have some enterpise application and several webapps in it. At some point they both require the same libraries (jars), but one of the webapps wants to use a specific version of some jar only for itself. If I have some X.jar as a utility jar visible to two WARs, and WAR 1 has another version of X.jar in its own lib directory, which classes will be loaded first when the respective class in the webapp 1 requests them - the ones in its own lib directory, or the shared ones? Thank you very much for the feedback. Best Regards, Angel ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Getting Started Documentation] - Re: Can't build Duke's bank
As far as I understand it, you must copy the jboss source code into the directories of the j2ee tutorial from sun, i.e. j2eetutorial14/. You can build from the directory j2eetutorial14/examples/bank/build than. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018137#4018137 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018137 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Getting Started Documentation] - Re: Where is the additional JBoss code for the Java EE Tutor
It's in the zip: http://docs.jboss.org/jbossas/getting_started/v4/startguide40.zip View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018138#4018138 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018138 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Conversation versus Session Context
Hello, sorry bothering you again. I donĀ“t fully understand this pattern. What I did so far is creating a ComponentBindings-POJO | @Name(componentBindings) | @Scope(ScopeType.EVENT) | public class ComponentBindings { | @Logger | Log log; | | HtmlPanelGrid selectedItemPreview; | HtmlPanelGrid selectedItemEditor; | | @Create | public void init() { | log.debug(LogFormat.INSTANCE.format(LogFormat.L_INSTANCE, ComponentBindings.class.getSimpleName())); | } | | public HtmlPanelGrid getSelectedItemEditor() { | return selectedItemEditor; | } | public void setSelectedItemEditor(HtmlPanelGrid selectedItemEditor) { | this.selectedItemEditor = selectedItemEditor; | } | | public HtmlPanelGrid getSelectedItemPreview() { | return selectedItemPreview; | } | public void setSelectedItemPreview(HtmlPanelGrid selectedItemPreview) { | this.selectedItemPreview = selectedItemPreview; | } | } | My backing bean looks now like this: | @Stateful | @Name(selectItemFacade) | @Scope(ScopeType.CONVERSATION) | public class SelectItemFacadeBean implements SelectItemFacade { | | @Logger | Log log; | | // Bijection | @Out | ItemDescription selectedItemType; | @Out(required=false) | Item item; | | // Instance | @In(create=true) | ComponentBindings componentBindings; | | @Create @Begin() | public void init() { | this.componentBindings.setSelectedItemPreview((HtmlPanelGrid)FacesContext.getCurrentInstance().getApplication().createComponent(HtmlPanelGrid.COMPONENT_TYPE)); | this.selectedItemType = ItemRegistry.INSTANCE.getDefaultItemDescription(); | updateSelectedItemComponents(); | } | | private void updateSelectedItemComponents() { | if (this.selectedItemType != null this.componentBindings.getSelectedItemPreview() != null) { | selectedItemType.getPreviewComponent(FacesContext.getCurrentInstance(), this.componentBindings.getSelectedItemPreview(), this.item); | } | } | | public Item getItem() { | return item; | } | | public void setItem(Item item) { | this.item = item; | } | | public SelectItem[] getAvailableItemTypes() { | return ItemRegistry.INSTANCE.getAvailableTypesAsSelectItem(); | } | | public ItemDescription getSelectedItemType() { | return selectedItemType; | } | | public void setSelectedItemType(ItemDescription selectedItemType) { | this.selectedItemType = selectedItemType; | } | | public ComponentBindings getComponentBindings() { | return componentBindings; | } | | public void setComponentBindings(ComponentBindings bindings) { | this.componentBindings = bindings; | } | | // Actions | @Begin(join=true) | public void handleItemTypeChange(ValueChangeEvent evt) { | ItemDescription desc = ItemRegistry.INSTANCE.getDescription((String)evt.getNewValue()); | if (desc != null) { | this.selectedItemType = desc; | updateSelectedItemComponents(); | log.debug(Item type changed to + this.selectedItemType.getLabel()); | } | } | | @Begin(join=true) | public String edit() { | log.debug(Action: edit called;); | | if (this.selectedItemType != null this.item == null) { | log.debug(Creating + selectedItemType.getLabel() + and getting edit Component;); | this.item = selectedItemType.createItemInstance(); | } | | return NavCodes.ACTION_EDIT; | } | | @Destroy @Remove | public void destroy() { } | | } | My Page looks now like this: | ui:define name=body | | h:messages globalOnly=true styleClass=message / | h:form id=panel | h:panelGrid columns=1 | | h:panelGroup | h:selectOneMenu valueChangeListener=#{selectItemFacade.handleItemTypeChange} onchange=submit() | f:selectItems value=#{selectItemFacade.availableItemTypes} / | /h:selectOneMenu | /h:panelGroup | | h:panelGroup | h:panelGrid binding=#{selectItemFacade.componentBindings.selectedItemPreview} / | /h:panelGroup | | h:panelGroup |
[jboss-user] [Installation, Configuration Deployment] - EAR classloading
Hi All, Our company is evaluating JBoss as an application server choice for our current applications to be deployed on. I have two questions regarding the structure of the EAR in JBOSS with respect to class loading. According to the J2EE 1.4 specification, one can put utility jars in the EAR, which are visible to all wars and EJB modules that make up the enterprise application. I am trying to do that with JBoss, but get ClassNotFoundExceptions. If i put all jars in the WAR that needs them, all classes are loaded properly. My second question is regarding class loader isolation in the EAR scope. Suppose I have some enterpise application and several webapps in it. At some point they both require the same libraries (jars), but one of the webapps wants to use a specific version of some jar only for itself. If I have some X.jar as a utility jar visible to two WARs, and WAR 1 has another version of X.jar in its own lib directory, which classes will be loaded first when the respective class in the webapp 1 requests them - the ones in its own lib directory, or the shared ones? My JBOSS version is: Version: 4.0.5GA(build: CVSTag=Branch_4_0 date=200610162340) Version Name: Zion Built on: October 16 2006 Thank you very much for the feedback. Best Regards, Angel View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018151#4018151 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018151 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Security Remember Me Functionality
Christian, I'll have to agree and disagree with you. First, I agree, never trust the client, there is all manner of bad things that can be done by the client or done to the client to have it expose confidential information. Next, I'll disagree that the proposed scheme would allow an attacker easy access to the user's password. If a secure hash (like SHA-256, SHA-1 or MD5 [which has some issues]) is stored in the cookie it would take some extensive work (like searching an answer space that is 2^69 big on SHA-1). I don't think hstang explicitly indicated a secure hash, I just assumed it. The inclusion of the expiry time in the hash prevents it from being attacked with a dictionary attack because the salt adds sufficient randomness. On average the attacker would need to compute 2^68 secure hashes, that will take a while. Also, for useful features like site personalization, having the user re-enter their password each time they access the site would greatly detract from the value of the feature. Most people just wouldn't use it. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018166#4018166 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018166 ___ 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 Alpha 2 Release
Keep this up and we will beat the posting count for Seam! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018168#4018168 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018168 ___ 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 Alpha 2 Release
As long as it wasn't me View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018167#4018167 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018167 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: like your product
Thanks ! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018169#4018169 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018169 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Management portlet improvements
No I'll add 5 weeks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018170#4018170 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018170 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Security Remember Me Functionality
There is not much difference between getting a valid hash that I can use to log-in to your application, or a cleartext password. I have access to your data. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018199#4018199 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018199 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Security Remember Me Functionality
And for site personalization, that is what I described as the Amazon approach. This is what we currently allow, you just need the username for that and then force re-authentication if the user wants to do more and modify some sensitive data. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018200#4018200 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018200 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Needing help for the lazy initialize
Can someone help me? I learn from the blog use the sublist, I'm in trouble with rows up to 1000. It cost seconds to finish the loading. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018201#4018201 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018201 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: JSF at jboss-4.0.5.GA
See the instructions at the end of this wiki: http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossWithIntegratedMyFaces To switch to the RI, you may also need to delete temp directories such as server/default/tmp and server/default/work. And of course, you need to get rid of the MyFaces context listener in your web.xml. In short, if you completely get rid of MyFaces you will have no danger of executing MyFaces classes. You shouldn't need to extract the TLD into your WAR. The proper TLD's are packaged with the RI. JSF will discover them automatically. In JBoss 4.2 and JBoss 5.0, the RI is installed by default. http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossWithJSFCDDL Stan View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018206#4018206 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018206 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Needing help for the lazy initialize
for example | ul | ui:repeat value=#{catgories} var=catgory | li#{category.name}/li | ul | ui:repeat value=#{catgory.positions} var=position | li#{position.name}/li | ul | ui:repeat value=#{position.articles} var=article | li#{article}/li | /ui:repeat | /ul | /ui:repeat | /ul | ui:repeat | /ul | Refering to the blog example, I used the #{position.recentArticles} instead. | public List getRecentArticles(){ | return articles.sublist(0, 10);//just a example so ignore the length problem | } | But it also initilized the other articles. And it cause the performance leak. And I want to limit the initialization of the articles. I want it just initilize the recent 10 articles. How can I do that? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018207#4018207 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018207 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Predestroy!
Any response from EJB3 team? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018209#4018209 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018209 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jpdl-3.2.Beta2: how to access variable from task form in
You do not seem to have any variables declared in the tasks and yes you need a controller there. afaik, the variables are transient if not declared on the task. In the other nodes they will not be available... again...afaik. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018212#4018212 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018212 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: BPEL Installation - NewBie
please learn the basics of soap before starting with webservices. SOAP uses HTTP POST, not GET, so it is normal to get the 'not supported' message View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018211#4018211 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018211 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Security Remember Me Functionality
I'm not sure how you could recover the password in plaintext, as it is hash-ed along with other attributes. As Jack has mentioned, the most clever attack on the most secure hash algorithm we have available today (SHA-1) would take ~ 2^63 steps to find a collision, which is barely feasible. Now I don't have to steal the password to gain access. Just equally effectively, I just need to gain access to the cookie with cross-site scripting to gain access. Maybe then you can add an additional IP address attribute to the hash content as a precautionary measure. However, this approach fails if the malicious attacker is on the same network that you are on. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018219#4018219 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018219 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jpdl-3.2.Beta2: how to access variable from task form in
Hi there again! kukeltje wrote : You do not seem to have any variables declared in the tasks Errr, yes, I know. But any variable declared in the task forms is automagically available in other task forms that use the same variable names. Like: h:inputText | value=#{var['quantity']} | converter=javax.faces.Integer | converterMessage=The quantity must be numeric. | validatorMessage=The quantity must be at least 1. | f:validateLongRange minimum=1/ | /h:inputText Even more: defining them in the task as well (in processdefinition.xml) makes the values NOT being available in other forms... This is exactly what made me ask how I can access a variable from a task form in jPDL (too bad the subject of forum posts is not truncated in the preview). kukeltje wrote : yes you need a controller there Are you referring to the Decision, or elsewhere...? By the way: I wonder if there's another way to define variables? I can image that in most cases one would not like to define the type and boundaries of a variable in multiple places, like 'converter' and 'minimum' for 'quantity' in both form.create.xhtml and form.evaluate.xhtml. Arjan. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018220#4018220 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018220 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Needing help for the lazy initialize
Take a look at section 8.4 'Using the JPA delegate' and 8.5 'Using Hibernate filters' in the Seam reference documentation - it seems like this might be what you are looking for. Hope this helps, Lawrie View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018222#4018222 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018222 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Security Remember Me Functionality
Attacker does not need to recover the password to login to the application. All they need is the hash, which is right there in the cookies. Sure, you can try to timeout the hash after some period of time, but this is silly because (a) a short timeout means that the whole functionality is useless and (b) a longer timeout means that knowing the hash is as good as knowing the password. All browsers can remember passwords anyway. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018225#4018225 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018225 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Needing help for the lazy initialize
There's no support for this in EJB3. Just use an ordinary query. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018228#4018228 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018228 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam-managed persistence contexts ok to use outside conv
Yes, for outside a conversation, what you really mean is inside a temporary conversation. Just because the current conversation is not long-running, does not mean there is no conversation context. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018229#4018229 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018229 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: valueChangeListener doesnt work in Seam?
I added a valueChangeListener to a dropdown in the booking example and it worked perfectly. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018232#4018232 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018232 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Needing help for the lazy initialize
lawrieg, thanks. Youre advice helps. I just use the session to implement the part initialize of the collection. Thank you. Also thanks to gavin. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018234#4018234 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018234 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Web services and Seam
At least in the initial release, Seam-WS will probably not feature any specific functionality for service orchestration, since this functionality is being provided by jBPM itself (for WS orchestration) and by JBoss ESB (for ESB event orchestration). (Initially I had thought we would do this ourselves, but it turns out to be unnecessary.) What we will be providing initially is the stateful component model for the service. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018236#4018236 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018236 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: pass parameters from page to page
You can access a request parameter named 'para1' as #{param.para1}. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018239#4018239 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018239 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Disable event-based validation
Hi, I'd like to use Hibernate validation only at application level (i.e. in code and with s:validateAll). Is there a way to disable the ValidateEventListener, i.e. event-based validation? If so, how can I do this? Thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018243#4018243 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018243 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Error while running JBoss server
Seems you're trying to debug the servlet by running it as an application. That's not the way to do it. You need to connect to the web application (the servlet module) running inside JBoss and set some breakpoints. Then do an HTTP request to the servlet (using a web browser usually) and see the breakpoint being hit. You may need to change your JBoss startup script to enable remote debugging first for that to work (certainly if JBoss isn't running inside Eclipse). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018249#4018249 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018249 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - [Jboosws1.2]Encoding problem
JBossws1.2 JBoss 4.0.5GA Windows XP Maybe a little bit offtopic but i submit my case : - WS Client based upon a wsdl stored locally (called File1) - When I run the client, I got the following error : | Caused by: org.apache.xerces.xni.XNIException: Parser should stop: JBossWS_www.mycomp.com_orb_types45651.xsd[domain:http://www.w3.org/TR/1998/REC-xml-19980210]: | :[key=InvalidByte]::Message=Invalid byte 2 of 3-byte UTF-8 sequence. | Actually, when I look at the ${jboss.home}/server/default/tmp/jbossws, I see my 2 files : - ...orb_types45651.xsd with encoding : Unix/iso-8859-1 - ...PortType_PortType45647.wsdl with encoding : Unix/utf-8 Whatever the encoding of my original wsdl file (utf-8 or iso-8859-1) , I come to this error. So I can guess the problem is that the schema is generated in iso-8859-1 (default encoding for windows xp) instead of utf-8 This is checked when I run JBoss with the following jvm options : -Dfile.encoding=UTF-8, in this case it works! My question is, is the solution to force the generation of schema with the utf-8 encoding ? Thank you. R. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018252#4018252 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018252 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - A couple Captcha questions
We are looking at using Captchas on a couple public pages in our application. We added the JCaptcha functionality from CVS. We have a couple questions that hopefully someone could help out with: 1) Out of the box we have a very hard time reading many of the generated images. Any advice on how to configure the fonts, deformations, size, etc? Is this possible? 2) Performance of generating the image. It takes ~10 seconds to render the image. After the first image is rendered, additional images are about ~5 seconds. Any advice on how to improve the performance. 3) Are there any other Captcha packages aside for JCaptcha that works well in a JSF or Seam environment? Thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018263#4018263 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018263 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Gen template error?
Hey Guys while you are at the bug. Can you please report this if its not done already. when running seam generate-entities , i get the following error which refers to the file list.xhtml.ftl line 30 which is | #if property.value.typeName == string [hibernate] INFO: Hibernate Tools 3.2.0.snapshotb9 | Feb 17, 2007 11:27:43 AM org.hibernate.connection.DriverManagerConnectionProvider close | INFO: cleaning up connection pool: jdbc:mysql:///test | [hibernate] 2. task: generic exportertemplate: view/list.xhtml.ftl | [hibernate] Feb 17, 2007 11:27:44 AM freemarker.log.JDK14LoggerFactory$JDK14Logger error | [hibernate] SEVERE: | | [hibernate] Expression property.value.typeName is undefined on line 30, column 6 in view/list.xhtml.ftl. | [hibernate] The problematic instruction: | [hibernate] -- | [hibernate] == if property.value.typeName == string [on line 30, column 1 in view/list.xhtml.ftl] | [hibernate] -- | | [hibernate] Java backtrace for programmers: | [hibernate] -- | [hibernate] freemarker.core.InvalidReferenceException: Expression property.value.typeName is undefined on line 30, column 6 in view/list.xhtml.ftl. | [hibernate] at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124) | [hibernate] at freemarker.core.ComparisonExpression.isTrue(ComparisonExpression.java:121) | [hibernate] at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:77) | [hibernate] at freemarker.core.Environment.visit(Environment.java:196) | [hibernate] at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) | [hibernate] at freemarker.core.Environment.visit(Environment.java:196) | [hibernate] at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160) | [hibernate] at freemarker.core.Environment.visit(Environment.java:351) | [hibernate] at freemarker.core.IteratorBlock.accept(IteratorBlock.java:95) | [hibernate] at freemarker.core.Environment.visit(Environment.java:196) | [hibernate] at freemarker.core.MixedContent.accept(MixedContent.java:92) | [hibernate] at freemarker.core.Environment.visit(Environment.java:196) | [hibernate] at freemarker.core.Environment.process(Environment.java:176) | [hibernate] at freemarker.template.Template.process(Template.java:231) | [hibernate] at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:247) | [hibernate] at org.hibernate.tool.hbm2x.TemplateProducer.produceToString(TemplateProducer.java:67) | [hibernate] at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:28) | [hibernate] at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:97) | [hibernate] at org.hibernate.tool.hbm2x.GenericExporter.exportPOJO(GenericExporter.java:84) | [hibernate] at org.hibernate.tool.hbm2x.GenericExporter.exportPersistentClass(GenericExporter.java:73) | [hibernate] at org.hibernate.tool.hbm2x.GenericExporter.exportClasses(GenericExporter.java:56) | [hibernate] at org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java:41) | [hibernate] at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95) | [hibernate] at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:40) | [hibernate] at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:182) | [hibernate] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) | [hibernate] at org.apache.tools.ant.Task.perform(Task.java:364) | [hibernate] at org.apache.tools.ant.Target.execute(Target.java:341) | [hibernate] at org.apache.tools.ant.Target.performTasks(Target.java:369) | [hibernate] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) | [hibernate] at org.apache.tools.ant.Project.executeTarget(Project.java:1185) | [hibernate] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) | [hibernate] at org.apache.tools.ant.Project.executeTargets(Project.java:1068) | [hibernate] at org.apache.tools.ant.Main.runBuild(Main.java:668) | [hibernate] at org.apache.tools.ant.Main.startAnt(Main.java:187) | [hibernate] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) | [hibernate] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) Thanks. Any idea what could be the work-around to this? or maybe i should deploy the project before generating entities ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018266#4018266 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018266
[jboss-user] [EJB/JBoss] - Re: Probleme java/Jboss ?
Don't put that there. An array isn't a valid serializable object (and putting fields in an interface is an established Bad Thing (tm) according to Josh Bloch, though sometimes handy for cases like this). Best change that array to 2 separate String fields (I assume they're allowed values for some parameter?). P.S. there's no need to mark the field public static final in the interface, it's implicit (just as methods in interfaces are implicitly public). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018273#4018273 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018273 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Null Value in s:link w/IceFaces
Ok, I'm making progress solving the problem. It turns out that you definitely do need to annotate the list in the backing bean used to populate the ice:dataTable with @DataModel. If you don't, even though IceFaces rendering components will see your line-item variable correctly populated, the Seam s:link tag won't feed the value back into Seam. Now my next complication... Can you successfully nest ice:dataTable's w/Seam? Here's what I have so far: Rendering xhtml: | ice:dataTable id=departments width=100% cellspacing=1 |value=#{outer} var=item |rowClasses=rowClass1,rowClass2 | ice:column | s:link id=viewItem value=#{item.name} action=#{mgrBean.selectItem(item)}/ | | ice:dataTable width=100% cellspacing=1 |value=#{inner} var=bucket |rowClasses=rowClass1,rowClass2 | ice:column | s:link id=viewBucket value=#{bucket.name} action=#{mgrBean.selectBucket(bucket)}/ | /ice:column | /ice:dataTable |/ice:column | /ice:dataTable | ManagerBean.java | @Name(mgrBean) | public class ManagerBean { | ... | @DataModel | private ListFoo list; | ... | @Create | public void init() { |// populate list | } | | public String selectItem(Foo foo) {...} | public String selectBucket(Bar bar) {...} | } | Foo.java | @Name(foo) | public class Foo { | @DataModel | private ListBar buckets; | ... | } | So it might render something like this: | ONE | A | B | TWO | C | THREE | D | E | Here's what happens: The outer table is rendered and clicking on the s:link elements for ONE, TWO, or THREE correctly passes the corresponding (non-null) objects to the backing bean (calling selectItem()). But clicking on A-E is still passing null to selectBucket() on the backing bean (ManagerBean). Has anyone nested these before? How about nesting non-IceFaces dataTables? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018276#4018276 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018276 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Gen template error?
saeediqbal1 wrote : Hey Guys while you are at the bug. Can you please report this if its not done already. when running seam generate-entities , i get the following error which refers to the file list.xhtml.ftl line 30 which is | | | #if property.value.typeName == string | | | [hibernate] INFO: Hibernate Tools 3.2.0.snapshotb9 | | Feb 17, 2007 11:27:43 AM org.hibernate.connection.DriverManagerConnectionProvider close | | INFO: cleaning up connection pool: jdbc:mysql:///test | | [hibernate] 2. task: generic exportertemplate: view/list.xhtml.ftl | | [hibernate] Feb 17, 2007 11:27:44 AM freemarker.log.JDK14LoggerFactory$JDK14Logger error | | [hibernate] SEVERE: | | | | [hibernate] Expression property.value.typeName is undefined on line 30, column 6 in view/list.xhtml.ftl. | | [hibernate] The problematic instruction: | | [hibernate] -- | | [hibernate] == if property.value.typeName == string [on line 30, column 1 in view/list.xhtml.ftl] | | [hibernate] -- | | | | [hibernate] Java backtrace for programmers: | | [hibernate] -- | | [hibernate] freemarker.core.InvalidReferenceException: Expression property.value.typeName is undefined on line 30, column 6 in view/list.xhtml.ftl. | | ... | | | | Thanks. Any idea what could be the work-around to this? or maybe i should deploy the project before generating entities ? | You're not alone. I'm seeing the same error too when running against Oracle or MySQL Ideas anyone? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018284#4018284 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018284 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Problems with navigations with null outcomes
Hi. I am just changing all navigation rules from faces-config.xml to pages.xml. Then when my action returns a null outcome it does not redisplay the current page. I have this method in my component: | @Stateful | @Name(userManager) | public class UserManagerAction { | ... | public String create() { | em.persist(user); | em.flush(); | return userList; | } catch (EntityExistsException e) { | return Outcome.REDISPLAY; | } | } | } | And according the documentation (1.1.6) I tried two configuration in my pages.xml: a) (This is not in the docs, but I saw it in this forum) | | page view-id=/user/new.xhtml no-conversation-view-id=/user/list.xhtml | navigation from-action=#{userManager.create} | redirect view-id=/user/list.xhtml/ | /navigation | /page | | b) (according the book) | page view-id=/user/new.xhtml no-conversation-view-id=/user/list.xhtml | navigation from-action=#{userManager.create} | rule | redirect view-id=/user/list.xhtml/ | /rule | /navigation | /page | In the both cases (a, b) after userManager.create() returns null or Outcome.REDISPLAY the current page is not redisplayed, I always get the list.xhtml page. Anyone knows why? Could this be a bug? or is it my fault? Please help me. BTW, it could be good idea to add to Outcome class something like: Outcome.SUCCESS. This because in these cases (using navigations with String returning methods and pages.xml navigations) the outcome sometimes does not matter. I know we can use void methods, but adding error messages and checking those in the navigation rule involves more configuration steps, I think unnecessary for these cases. What do you think? Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018291#4018291 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018291 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: A couple Captcha questions
1) I've created a JIRA issue for this - http://jira.jboss.org/jira/browse/JBSEAM-865 2) This is really a question for the JCaptcha people, you might want to ask on their mailing list. 3) A simple google search reveals there are a few of them, but I haven't tried any of them. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018294#4018294 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018294 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - store and get data-files
Hello, I integrated jsp's into jbpm's task.jsp to get more functionality. In my process I am able to upload a file (txt file) and store it into the server's file system. As hsqldb is not able to store binary objects, I just store the file's path into it. But when I try to get the file back as a user, I don't get it. Is there any way to configure the jbpm server so that I can get the file by using a download link? Thank you, Dennis View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018295#4018295 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018295 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: OneToMany does not load
Put a break point on the District.getStores() method and see what the stores variable contains. If it has only one store then the problem is hibernate related (so ask there as you'll get more help), otherwise come back here. Make sure you are working with an uptodate version of the entity. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018304#4018304 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018304 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Partial steps to get file upload running, final step doe
Hi, I have the same problem. I stored a file into the file system of the server. But how do I get the file from the server. I tried to get it by using a link with file.getAbsolutePath() but that doesn't work. Dennis View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018305#4018305 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018305 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @DataModel doesn't load the first time
Sounds like for some reason the datamodel isn't getting outjected straight away. Perhaps try outputting a logical outcome and specifying a redirect navigation rule *might* help. Otherwise you could try explicitly clearing the searchResults varialbe in basicSearch() - or try using an EntityQuery which should work ootb. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018306#4018306 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018306 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - New conversation variable stack component (proposal)
Hi all, Was going to put this in JIRA (will shortly) but I thought I'd float the idea here first to kick it around a bit. At the moment it is quite tricky and/or cumbersome to pass arbitrary values up and down a nested conversation stack (@Begin(nested = true)) in a generic manner. In the simplest terms I often want to be able to pass information up (to parents) or down (to nested children) in the conversation stack. Currently this is usually achieved by an action method in a component setting/accessing a variable on itself or another component (for passing information up) or by using request parameters/page parameters. This is fine for tightly coupled pages/components that know about each other and what will be in scope when, but for loosely coupled pages/components in a generic framework this doesn't work so well. (Like the Seam framework with generic EntityHome and Query components). For example creating or editing an entity that has a many-to-one association may require navigating to a search page for the one side of relationship to be selected. Combos boxes are not always sufficient due to lack of searching and large numbers of items. Similarly after editing and saving an entity it may be useful to pass information about the new entity state up to the search that originated the edit. These are simple examples but you get the idea (I hope!) A possible approach to solve this would involve introducing a NestedConversationStack component. The component would be conversation scoped and would allow addition and retrieval of variables by key at any level of the conversation stack. A more advanced implementation might involve a sub-scoping of a variable when it is added to only allow conversations above/below the current one to be able to access the variable. (possible sub-scoping options might be ALL, CHILD, PARENT, DESCENDENTS, ANCESTORS) A more thorough example... User opens Entity A Search. Conversation (1) begins. Selects an existing item to edit (would probably use a request parameter but could insert the required entity id into the stack with CHILD scope) Redirect to Entity A Detail. Nested conversation (2) begins. Detail component extracts entity id and loads entity from DB. User clicks a button to go to a sub-search for an associated to Entity B. (insert arbitrary restrictions on which B entities are allowed, like a filter, into the stack with CHILD scope) Redirect to Entity B Search. Nested conversation (3) begins. (search component extracts filter and applies to search). User selects an Entity B and clicks OK. (insert selected entity into stack with PARENT scope). Nested conversation (3) ends. Redirect back to Entity A Detail. (extracts selected entity and updates association to Entity B). User clicks OK. Data saved to DB. (could insert the updated entity here with PARENT scope if the search was interested). Nested conversation (2) ends. Redirect back to Entity A Search. Eventually conversation (1) ends or times out and the component will be destroyed. My motivation for this is because I am building a mini-framework (similar to Seam framework) as a platform for building web products on. The idea being the framework handles most of the tedium of data binding/validation and the tricky stuff like conversation handling/page redirects etc. The big piece I have missing is a method for arbitrary information passing between the different pages (99% of which are some derative of a search or detail page and will use the framework) in a generic fashion when a nested conversation is active Search - Detail - Search - Search etc. Any feedback or thoughts on this appreciated. Any clarification needed pls ask and I will attempt to explain better! :) Cheers. Mike. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018315#4018315 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018315 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Disable event-based validation
Ask this on the hibernate JSR-220 forum. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018316#4018316 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018316 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: New conversation variable stack component (proposal)
Forgot to add I have a VERY rough implementation of this which I will try out next week. I can post if it would add some clarity. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018317#4018317 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018317 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Gen template error?
Put it in JIRA :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018318#4018318 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018318 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problems with navigations with null outcomes
Try | page view-id=/user/new.xhtml no-conversation-view-id=/user/list.xhtml | navigation from-action=#{userManager.create} | rule if-outcome=userList | redirect view-id=/user/list.xhtml/ | /rule | /navigation | /page | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018319#4018319 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018319 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Problem with Hibernate
hi people! i do reverse engineering (mysql5) with 'seam generate-entities' and works with success, when I 'seam restart' builds OK too, but when the application runs I got this error related with Hibernate: | ... | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- | ObjectName: persistence.units:ear=helloworld.ear,jar=helloworld.jar,unitName=hel | loworld | State: FAILED | Reason: javax.persistence.PersistenceException: org.hibernate.HibernateExcepti | on: Hibernate Dialect must be explicitly set | I Depend On: | jboss.jca:service=DataSourceBinding,name=helloworldDatasource | my seam-gen/build.properties seems to be OK: ... | hibernate.connection.url=jdbc\:mysql\:///foo | hibernate.dialect=org.hibernate.dialect.MySQL5Dialect | what am I missing ??! thanks in advance View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018326#4018326 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018326 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Gen template error?
I had the same issue but reverting to the templates from CVS and re-applying my changes fixed it. I assumed that there was a difference in the versions there somehow. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018327#4018327 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018327 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: BPEL Installation - NewBie
Try http://localhost:8080/hello/greeter?wsdl to get the WSDL document of the service directly to your browser and confirm the server is running. A response of GET not supported instead of 404 not found already indicates that the web service is up and running. As Ronald says, SOAP requires the POST method. The J2EE client (hello-client.jar) is deployed automatically by the ant script before it runs the unit test. You don't need to deploy it manually. If you are running into problems, please post the stack trace and server log and we'll try to help. anonymous wrote : So, now I want to know which versions of following | | jboss | jdk | jbpm | bpel | | I should use get working my BPEL hello world example. The user guide mentions that jBPM BPEL has been tested in JBoss AS 4.0.3.SP1, 4.0.4.GA and 4.0.5.GA in the default configuration. jdk-1.4.2 and 1.5.0 both work well, provided you endorse the XML APIs as described in the manual. Regarding jBPM, use the version that comes with the BPEL distribution. Again, the user guide explicitly says that you do not need to download jBPM separately because the required libraries are already provided. The alpha series of jBPM BPEL used jBPM 3.0.x. The beta series used jBPM 3.1.x, except for the latest beta3 which already uses jBPM 3.2.beta1. Generally, you can replace the jBPM jars provided with the BPEL distribution with any version of the same branch, but only the bundled version has been tested. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018328#4018328 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018328 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: JbpmBpelDS not bound
Unless jbpm-bpel-ds.xml is removed from jbpm-bpel.sar, the data source gets deployed along the jbpm bpel service. However, the web application jbpm-bpel.war also gets deployed before the service and, sometimes, even before the data source. The web app starts the jBPM job executor thread (see the bottom of the stack trace). If the web app is the first to start, The job executor will access the data source before the data source is ready. Note that this is harmless: as you can read from the server log, the thread goes to sleep for a while and then retries: 2007-02-09 14:50:07,590 ERROR [org.jbpm.job.executor.JobExecutorThread] exception in job executor thread. waiting 3 milliseconds By the time the thread wakes up, the data source is available already. As jgreiner says, deploying the web app separately prevents the error from showing up. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018329#4018329 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018329 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - Re: file permision prob
Can you try few things? 1) Please make sure that your JAVA_HOME environment variable is set before you run ./run.sh. 2) Please Clean data, log, tmp and work directory from server/default. Restart jboss and see if you still have problem. You do not have to restart jboss for your new deployment to work. You can just keep your war file in /server/default/deploy and portal should pick it up. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018337#4018337 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018337 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Null Value in s:link w/IceFaces
Further research... the original question in the post has been answered but nesting dataTables remains. Trying non-IceFaces DataTables yields the same result so I'm going to open a new post without the clutter of IceFaces. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018338#4018338 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018338 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with Hibernate
You need to post the exception (and full stack trace) that occurs earlier in startup View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018339#4018339 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018339 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Gen template error?
i just used eclipses built in cvs rep. to download jboss-seam folder from the head section in the repository. is that the one with new template files? or was it the version section? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018340#4018340 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018340 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with Hibernate
sure http://localhost:8080/helloworld/home.seam An Error Occurred: Cannot get value for expression '#{usuariosList.firstResult}' Stack trace: javax.faces.el.EvaluationException: Cannot get value for expression '#{usuariosList.firstResult}' at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:402) at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:53) at org.jboss.seam.pages.Param.getValueFromModel(Param.java:93) at org.jboss.seam.core.Pages.getPageParameterValue(Pages.java:414) at org.jboss.seam.core.Pages.getConvertedParameters(Pages.java:390) at org.jboss.seam.ui.HtmlLink.encodeBegin(HtmlLink.java:123) at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242) at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249) at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:29) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:43) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.IllegalArgumentException: EntityManagerFactory not found in JNDI at org.jboss.seam.core.ManagedPersistenceContext.getEntityManagerFactoryFromJndiOrValueBinding(ManagedPersistenceContext.java:159) at org.jboss.seam.core.ManagedPersistenceContext.initEntityManager(ManagedPersistenceContext.java:76) at org.jboss.seam.core.ManagedPersistenceContext.getEntityManager(ManagedPersistenceContext.java:100) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.seam.util.Reflections.invoke(Reflections.java:18) at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102) at org.jboss.seam.Component.callComponentMethod(Component.java:1835) at org.jboss.seam.Component.unwrap(Component.java:1861) at org.jboss.seam.Component.getInstance(Component.java:1683) at org.jboss.seam.Component.getInstance(Component.java:1636) at org.jboss.seam.Component.getInstance(Component.java:1630) at
[jboss-user] [JBoss Seam] - Problems Nesting h:dataTable
I'm trying to nest h:dataTable with s:link elements without success. Actually I can render a 2-level nested data table but if I click on the innermost links I get null passed to the action method. Clicking on the top-level links works fine and the expected objects are passed tomy action method. Frustrating! The rendered nested tables look something like this (everything rendered is a clickable s:link element--bold represents the outer table and regular text the inner nested tables): | One | Big Projects | Small Projects | Two | Hot | Cold | Three | Misc | A list of trivial Blah objects holds the One/Two/Three. Each Blah also has a list of Bucket objects. This is supposed to simulate a 1-to-m Entity relationship loaded from a database. I also have a stateful session bean, Year, that manages things. Here's the important clip from my xhtml that renders the tables. | h:dataTable id=outerTable | var=z | value=#{list} | h:column | s:link value=#{outer.name} action=#{year.selectItem(outer)}/ | h:dataTable id=innerTable |var=inner |value=#{outer.buckets} | h:column | s:link value=#{inner.name} action=#{year.selectBucket(inner)}/ | /h:column | /h:dataTable | /h:column | /h:dataTable | Here are the important bits from Year.java | @Stateful | @Name(year) | @Scope(ScopeType.SESSION) | public class YearBean implements Year { | @DataModel | private ListBlah list; | | @Create | public void init() { | // Create populate 2-tier data structure simulating loaded Entites | list = new ArrayListBlah(); | ListBucket b = new ArrayListBucket(); | b.add( new Bucket(Big Projects)); | b.add( new Bucket(Small Projects)); | list.add(new Blah(One,b)); | | b = new ArrayListBucket(); | b.add( new Bucket(Hot)); | b.add( new Bucket(Cold)); | list.add(new Blah(Two,b)); | | b = new ArrayListBucket(); | b.add( new Bucket(Misc)); | list.add(new Blah(Three,b)); | } | | public String selectBucket(Bucket bucket) { | if( bucket == null ) | System.out.println(+++ Null Bucket Selected! ); | else | System.out.println( Bucket selected: + bucket.getName()); | return bucket; | } | | public String selectItem(Blah blah) { | if( blah == null ) | System.out.println(+++ Null Blah Selected! ); | else | System.out.println( Blah selected: + blah.getName()); | return blah; | } | | } | And finally Blah.java and Bucket.java: | @Name(blah) | public class Blah { | private String name; | | @DataModel | private ListBucket buckets; | | public Blah(){} | | public Blah(String name, ListBucket buckets) { | this.name = name; | this.buckets = buckets; | } | public String getName() { return name; } | public ListBucket getBuckets() { return buckets; } | } | | | @Name(bucket) | public class Bucket { | private String name; | | public Bucket(){} | | public Bucket(String name) { | this.name = name; | } | public String getName() { return name; } | } | | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018347#4018347 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018347 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Issue with 'seam generate-entities'
How do i get rid of this error operator == is undefined for the argument type(s) int on these lines (!getMembersId().getId() == null) I tried doing .intValue() but no go. Annoying problem in the method isIdDefined View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018350#4018350 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018350 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Application Server basics
Hello All, I am new to the server technologies. I would like to know a little bit on Application server in general (like architecture, design, limitations, cost anaylsis etc). Can anyone suggest some good books/links on Application server?If I am posting this in the wrong forum please let me know the correct one then? Thanks and your help is greatly appreciated. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018351#4018351 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018351 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Issue with 'seam generate-entities'
Correction. the above error is this operator == is undefined for the argument type(s) int,null why does it consider null when we explicitly state the return value to be not null like here @Column(name = id, nullable = false) | @NotNull | public int getId() { | return this.id; | } | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018352#4018352 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018352 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: JSF implementation issues in 5.0.0.Beta1
Why would you want to bundle your own version of the RI with your application? You can do that if you like, but it has some disadvantages: 1) You have to bundle RI jars with every JSF application. 2) You lose resource injection for managed beans. 3) You lose logging integration. So any log messages from the RI will look weird in the Log4J logs. 4) You have to declare a config listener in your own web.xml. I also don't understand why you would want to bundle your own EL jars. The ones that ship with JBoss are probably more current than what you are using. I'm not asking to be snide or anything. This is new functionality to JBoss and I'd really like to know if there are legitimate reasons for doing what you are doing. After all, you wouldn't dream of bundling your own JSP compiler in your WAR. Why would you want to bundle your own JSF? Also, see http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossWithJSFCDDL Regards, Stan View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018356#4018356 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018356 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Server not Starting
According to these lines: 14:45:10,038 INFO [ServerInfo] Java version: 1.4.2,Free Software Foundation, In c. 14:45:10,038 INFO [ServerInfo] Java VM: GNU libgcj 3.4.5 20051201 (Red Hat 3.4. 5-2),Free Software Foundation, Inc. you are running the JVM that comes with Red Hat. Make sure youy set JAVA_HOME to reference the JVM from Sun. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018362#4018362 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018362 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - JbpmContext.setActorId
I am trying to set the actorId on the JbpmContext and it looks like the only way to do this is with the DefaultAuthenticationService or the setActorId will return ClassCastException. Also, the default authentication service is null so this is not working either. What am I missing? How do I tell jBPM the authenticated user? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018363#4018363 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018363 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Issue with 'seam generate-entities'
Your id field is an int and not an Integer. @NotNull is nonsensical for primitive types. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018364#4018364 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018364 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Re: jboss not running on ubuntu
Did you install JBoss while running as root? And you are now trying to run it as your account? You could either change the ownership of the files, or change the access mode. By the way, what I did was first changed /opt to be fully accessible by everyone, then I installed JBoss using my own account. Might not be the most secure mechanism, but worked for me. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018367#4018367 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018367 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: Proxy ClassCastException after successful EJB lookup
skymic, you should have started a new post, not appended to an existing one. I suspect that you are using EJB3 (you didn't say which version of ejb you are using), in which case you might want to try the lookup as: Object ref = ic.lookup(SDOCI/remote/SDOCIBusinessService/remote); If this does not work, use the jmx-console to invoke the list() method in the jboss:service=JNDIView mbean to list the entire JNDI tree. That should tell you what to use for the name. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018368#4018368 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018368 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: JbpmContext.setActorId
Nevermind, I looked at my test code again and discovered I was creating the configuration using ParseXml call and not getInstance and the XML for the configuration did not have any services. Once I used getInstance it used the jbpm.cfg.xml that was in the path and created the DefaultAuthenticationService which just holds on to the actor that I was setting. This is the behavior that I was looking for. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018369#4018369 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018369 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Two portlets in the same content/window?
Do you really need this to be two portlets? Why not just a single portlet with two views, and a mechanism to determine which view to show? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018372#4018372 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018372 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam-gen Issues
Hello All, I have experienced the following seam-gen issues using PostgreSQL 8.0.3 When I run seam-gen, I receive an error message which states that the expression property.value.typeName is undefined in the following line #if property.value.typeName == string within the freemarker template file called list.xhtml.ftl When I examined the trace, I found that the above error occurred because the view called pg_logdir_ls does not have a primary key. I do not know where this view comes from, as it was not created by me. I then deleted the generated entities and the view, and re-ran seam generate-entities again, and this time I did not receive the error message above. However, when I attempt to run the generated output, I receive a deployment error stating Missing table: pg_logdir_ls Could anyone help me with the following questions: (1) What creates the view called pg_logdir_ls? (2) Why do I receive the deployment error after: (a) Deleting all of the generated entities from the first unsuccessful run of seam generate-entities, (b) Deleting the view called pg_logdir_ls, and (c) Re-running seam generate-entities? (3) Is there a more widespread problem with seam-gen and views which do not have a primary key, or is my problem constrained to my environment? Looking forward to any help you can provide. Many thanks, Bruce. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018375#4018375 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018375 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam-gen Issues
Every table should have a primary key. Otherwise it is not a relation. Neither seam-gen nor Hibernate nor JPA will ever support tables with no primary keys. I have no idea where this table comes from. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018376#4018376 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018376 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with Hibernate
I always get this whenever I have not started the database. Anyway, it occurs because Hibernate cannot connect to MySQL. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018377#4018377 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018377 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Gen template error?
This was already fixed in CVS. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018378#4018378 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018378 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Gen template error?
i concur, this seems to be fixed now in the cvs build i downloaded. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018379#4018379 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018379 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Issue with 'seam generate-entities'
thats what seam-gen gave me. anyway i';ll get back to playing with seam View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018380#4018380 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018380 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Issue with 'seam generate-entities'
Are you trying to say that seam-gen generated code that did not compile? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018382#4018382 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018382 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problems with navigations with null outcomes
Yes, adding from-outcome works. I also did that before posting here. So, this means we need to add a rule even for null outcomes? I had seen in the seam reference (1.1.6GA), page 87, this: Null outcomes are a special case in JSF. The null outcome is interpreted to mean redisplay the page. The following navigation rule matches any non-null outcome, but not the null outcome: | page view-id=/editDocument.xhtml | navigation from-action=#{documentEditor.update} | rule |render view-id=/viewDocument.xhtml/ | rule/ | /navigation-case | /navigation-rule | So, should the reference be updated? Or? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018383#4018383 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018383 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Issue with 'seam generate-entities'
compile was successful. but eclipse is showing the red dot i now think i should ignore that Buildfile: C:\devhome\workspace\pproject\build.xml init: compile: BUILD SUCCESSFUL Total time: 656 milliseconds View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018384#4018384 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018384 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problems Nesting h:dataTable
Is #{outer.buckets} a DataModel? If not, make it one. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018381#4018381 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018381 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problems with navigations with null outcomes
The docs are correct, are you sure you are really observing this? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018387#4018387 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018387 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with Hibernate
the MySQL server seems to be OK, 'generate-entities' and phpmyadmin connects to the server normaly. what am I missing? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018388#4018388 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018388 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jpdl-3.2.Beta2: how to access variable from task form in
I'm referring to the task nodes. not specificially the task forms Currently you have to define things in multiple forms since the core/default task controller does not take things into account. Defining types of variables on the process level is something that is currently under discussion. See the jira for this. I'll try to reproduce things tomorrow (h this morning :-) ) to see what the current behaviour is. It all sounds a bit strange. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018390#4018390 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018390 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problems with navigations with null outcomes
I just retested this. A never matches a null outcome. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018391#4018391 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018391 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: DataModelSelection and components.xml
How can I get the row index when I'm using entityquery.resultList? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018395#4018395 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018395 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: s:selectItems - whto work
I removed all of my @PersistenceContext in favor of @In(create=true) | public EntityManager entityManager; I also replaced all | @EJB with @In(create=true) MyDAO myDAO; This did make it work a little better. Then I stepped into AbstractEntityConverter and EntityConverter. I found that getAsObject was being passed what looked like my entity default toString. I then override toString with the following: public String toString() | { | return (id==null) ? null : id.toString(); | } Now it works correctly. It it necessary to implement toString on all my entites in this manner or did I configure something wrong? I did not change much as I had this working with si:selectItems. I also had to specify the entity class on my h:selectManyListbox . This was not necessary for si:selectItems. Is it planned to make this work the same way with s:selectItems? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018398#4018398 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018398 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - Cant find JBoss 3.2.x in the debug configurations
Hi all, I installed 2.0.0.Beta2 (JBossIDE-2.0.0.Beta2-Bundle-win32.zip). I follow the tutorial and everything is fine until I reach Chapter 10 - JBoss Configuration and Launch. The problem is that I cannot find the JBoss 3.2.x in the left tree panel. What's wrong? Please help! Thanks! Lam View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018403#4018403 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018403 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Re: EAR classloading
Have a look at: http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossClassLoadingUseCases http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018404#4018404 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018404 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam-gen Issues
Hello Gavin, Its a database view, not a Table, and many applications have database views which do not have primary keys. Many thanks, Bruce. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018409#4018409 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018409 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Help, who uses EntityHome with SFSB? I don't know how to def
I used the EntityHome with the settings in components.xml, and it works well. When I turn to SFSB, I'm confused. I don't know how to define the interface. I define it in a few forms. And none works. Could someone give me an example? Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018421#4018421 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018421 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - registration example not working
Hi. I tried out few seam examples, and all the ones i tried worked fine except the registration example which is the one i really need to work so i can start learning, since it is the simplest one. I am using JDK 1.6.0 (b105) Tomcat 6.0.9, seam 1.1.6 GA. can anyone tell me what i am missing? Here is what i get when i visit the url of that example: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation: when resolving interface method javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory; the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the current class, org/apache/jsp/register_jspx, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used in the signature javax.faces.webapp.FacesServlet.service(FacesServlet.java:152) root cause javax.faces.FacesException: java.lang.LinkageError: loader constraint violation: when resolving interface method javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory; the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the current class, org/apache/jsp/register_jspx, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used in the signature org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:422) org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234) org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:59) org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384) javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) root cause javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation: when resolving interface method javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory; the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the current class, org/apache/jsp/register_jspx, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used in the signature org.apache.jasper.servlet.JspServlet.service(JspServlet.java:274) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416) org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234) org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:59) org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384) javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) root cause java.lang.LinkageError: loader constraint violation: when resolving interface method javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory; the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the current class, org/apache/jsp/register_jspx, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used in the signature org.apache.jsp.register_jspx._jspInit(register_jspx.java:35) org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:80) org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:157) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:320) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416) org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234) org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:59) org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384) javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) note The full stack trace of the root cause is available in the
[jboss-user] [JBoss Seam] - Re: Problems Nesting h:dataTable
@DataModel can be used in entity? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018429#4018429 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018429 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Help, who uses EntityHome with SFSB? I don't know how to
Because the example seam-pay and the document uses pojo, so I can't find any examples View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018434#4018434 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018434 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - IllegalStateException problem on running jboss
Hi,everybody I am using jboss 4.0.5 GA, it generates the following error when i tried to test a ckcodeimage.jsp: anonymous wrote : | 14:20:15,796 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception | java.lang.IllegalStateException: getOutputStream() has already been called for this response | at org.apache.catalina.connector.Response.getWriter(Response.java:599) | at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:195) | at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124) | at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:117) | at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:182) | at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:115) | at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:75) | at org.apache.jsp.jsp.ckcodeimage_jsp._jspService(ckcodeimage_jsp.java:133) | at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334) | at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) | at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833) | at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639) | at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285) | at java.lang.Thread.run(Thread.java:595) | | ckcodeimage.jsp is the following: | %@ page contentType=image/jpeg; charset=GBK import=java.awt.*,java.awt.image.*,java.util.*,javax.imageio.* % | %! | Color getRandColor(int fc,int bc){//?? | Random random = new Random(); | if(fc255) fc=255; | if(bc255) bc=255; | int r=fc+random.nextInt(bc-fc); | int g=fc+random.nextInt(bc-fc); | int b=fc+random.nextInt(bc-fc); | return new Color(r,g,b); | } | % | % | //??? | response.setHeader(Pragma,No-cache); | response.setHeader(Cache-Control,no-cache); | response.setDateHeader(Expires, 0); | | // | int width=60, height=20; | BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); | | // ??? | Graphics g = image.getGraphics(); | | //? | Random random = new Random(); | | // ? | g.setColor(getRandColor(200,250)); | g.fillRect(0, 0, width, height); | | // | g.setFont(new Font(Times New Roman,Font.PLAIN,18)); | | //??? | //g.setColor(new Color()); | //g.drawRect(0,0,width-1,height-1); | | | // 155??? | g.setColor(getRandColor(160,200)); | for (int i=0;i155;i++) | { | int x = random.nextInt(width); | int y = random.nextInt(height); | int xl = random.nextInt(12); | int yl = random.nextInt(12); | g.drawLine(x,y,x+xl,y+yl); | } | | // ?(4???) | //String rand = request.getParameter(rand); | //rand = rand.substring(0,rand.indexOf(.)); | String sRand=; | for (int i=0;i4;i++){ | String rand=String.valueOf(random.nextInt(10)); | sRand+=rand; | // ?? | g.setColor(new