[jboss-user] [JBossWS] - Re: is it safe to pack keystore file in my application and s
PeterJ, thanks for the advice! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029095#4029095 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029095 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Mail rendering fails with MyFaces exception
| m:message xmlns=http://www.w3.org/1999/xhtml; | xmlns:m=http://jboss.com/products/seam/mail; | xmlns:h=http://java.sun.com/jsf/html; | xmlns:f=http://java.sun.com/jsf/core; | m:header name=X-Sent-From value=JBoss Seam / | m:from name=Wikii address=[EMAIL PROTECTED] / | m:to name=#{userHome.instance.firstname} #{userHome.instance.lastname}#{userHome.instance.email}/m:to | m:subject[Wiki] Registration Confirmation/m:subject | m:body | html | body | pHello #{userHome.instance.firstname} #{userHome.instance.lastname},/p | | p | you registered an account. You need to click the following link to confirm the validity of your e-mail address and to activate your account:/p | | h:outputLink value=#{globalPrefs.baseURL}/confirmRegistration.seam?activationCode=#{userHome.instance.activationCode}Click this link to activate the account '#{userHome.instance.username}'/h:outputLink | | /body | /html | f:facet name=alternative | h:outputText | Hello #{userHome.instance.firstname} #{userHome.instance.lastname}, | | you registered an account. You need to use the following link to confirm the validity of your e-mail address and to activate your account: | | #{globalPrefs.baseURL}/confirmRegistration.seam?activationCode=#{userHome.instance.activationCode} | | | /h:outputText | /f:facet | /m:body | /m:message | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029099#4029099 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029099 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Failure in jms activation
Yes, i saw the source change on JmsClientAspectXMLLoader. Thanks again. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029105#4029105 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029105 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Mail rendering fails with MyFaces exception
I dunno. I guess Pete will need to take a look. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029107#4029107 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029107 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Mail rendering fails with MyFaces exception
I just tested the wiki registration process, it all works for me, including the email. But diff seems to be broken: SEVERE: Error Rendering View[/docHistory.xhtml] | javax.faces.el.EvaluationException: Exception while invoking expression #{wikiLinkResolver.resolveWikiLink} | at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153) | at org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:58) | at org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:75) | at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:106) | at org.jboss.seam.wiki.core.ui.WikiTextParser.linkTag(WikiTextParser.java:43) | at org.jboss.seam.text.SeamTextParser.link(SeamTextParser.java:1338) | at org.jboss.seam.text.SeamTextParser.plain(SeamTextParser.java:753) | at org.jboss.seam.text.SeamTextParser.line(SeamTextParser.java:684) | at org.jboss.seam.text.SeamTextParser.paragraph(SeamTextParser.java:341) | at org.jboss.seam.text.SeamTextParser.text(SeamTextParser.java:282) | at org.jboss.seam.text.SeamTextParser.startRule(SeamTextParser.java:169) | at org.jboss.seam.wiki.core.ui.UIWikiFormattedText.encodeBegin(UIWikiFormattedText.java:43) | 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.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249) | at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573) | at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108) | at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229) | 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.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:130) | at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:107) | at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:78) | at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:383) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63) | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:53) | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96) | at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220) | 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) |
[jboss-user] [JBoss Eclipse IDE (users)] - Deploy EAR from IDE rel 2.0?
Hi, Following the instructions in the JBoss IDE tutorial, I configured my JBoss 4.x instance into Eclipse and can start and stop it from the IDE. However, I don't have the Preferences 'Deployer' option called out in the tutorial (Chapter 11) nor do I see a 'Deployment-Deploy To...' option when I click on the Fibo EAR. Instead, what I see under Preferences is this: JBoss Eclipse IDE - JBoss Servers - JBossWS - XDoclet I installed the big 2.0.0.ALPHA Windows Bundle release and can execute the simple Fibo tutorial example without error or warning but can't deploy from within the IDE. Besides being inconvenient, I don't believe I can debug without enabling this feature. How do I configure EAR depoyment within JBoss IDE? Thanks, Garry View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029111#4029111 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029111 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Re: Making the application as default
This exception occurs during the restart of the app server. The application is not accesible there after Below is the exact stack trace 22:07:23,380 ERROR [TomcatDeployer] Error during deployment: file:/C:/JBoss/jboss-5.0.0.Beta1/server/default/deploy/ITMS.war/ org.jboss.deployers.spi.DeploymentException: Failed to create web module at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:403) at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:78) at org.jboss.deployers.plugins.deployers.helpers.AbstractSimpleRealDeployer.deploy(AbstractSimpleRealDeployer.java:53) at org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer.commitDeploy(AbstractSimpleDeployer.java:52) at org.jboss.deployers.plugins.deployer.DeployerWrapper.commitDeploy(DeployerWrapper.java:145) at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:440) at org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:381) at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:366) at org.jboss.system.server.profileservice.ProfileServiceBootstrap.bootstrap(ProfileServiceBootstrap.java:246) at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:89) at org.jboss.system.server.profileservice.ServerImpl.doStart(ServerImpl.java:401) at org.jboss.system.server.profileservice.ServerImpl.start(ServerImpl.java:340) at org.jboss.Main.boot(Main.java:210) at org.jboss.Main$1.run(Main.java:508) at java.lang.Thread.run(Thread.java:595) Caused by: org.jboss.deployers.spi.DeploymentException: Error creating rar deployment file:/C:/JBoss/jboss-5.0.0.Beta1/server/default/deploy/ITMS.war/ at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) at org.jboss.web.deployers.AbstractWarDeployer.deployWebModule(AbstractWarDeployer.java:608) at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:399) ... 14 more Caused by: javax.management.MalformedObjectNameException: Unterminated key property part at javax.management.ObjectName.construct(ObjectName.java:465) at javax.management.ObjectName.(ObjectName.java:1297) at org.jboss.web.deployers.AbstractWarDeployer.deployWebModule(AbstractWarDeployer.java:583) ... 15 more View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029115#4029115 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029115 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - JBoss Eclipse IDE Tutorial 1.5.0 (FiboBean homeinterface and
Hi, I have downloaded the JBoss Eclipse IDE 1.5.1 GA and follow the IDE Tutorial. So far I have developed the FiboBean according to the tutorial and checked meanwhile 7x the XDoclet configurations. When running XDoclet the Console says the following which looks ok to me (see below). Unfortunately no tutorial.homeinterface nor tutorial.remoteinterface was created. Also the ejb-jar.xml and jboss.xml are marked with error crosses although I have copied the sourcecose from the tutorial. Anybody out there who can help? Thanks in advance, Peter N65540: [ejbdoclet] (XDocletMain.start 47 ) Running [ejbdoclet] (XDocletMain.start 47 ) Running [ejbdoclet] (XDocletMain.start 47 ) Running [ejbdoclet] (XDocletMain.start 47 ) Running N66256: [webdoclet] (XDocletMain.start 47 ) Running [webdoclet] (XDocletMain.start 47 ) Running _xdoclet_generation_: BUILD SUCCESSFUL Total time: 2 seconds View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029116#4029116 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029116 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - working directory
I keep all my work under c:\Wk, which I save regularly. Can I use JBoss in a way that war and ear directories are somewhere under this, as unpackaged archives, and JBoss deploy directory only refers to them? In standalone Tomcat I did it like this: there was a contextname.xml under conf/Catalina/localhost: I have tried to put it into deploy/minta2.war/WEB-INF/context.xml, but The requested resource (/minta2/) is not available. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029118#4029118 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029118 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: working directory
So this was the minta2.xml: | Context | path=/minta2 | docBase=c:/Wk/prg/Java/Minta2/web | workDir=c:/Wk/prg/Java/Minta2/web/WEB-INF/build / | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029119#4029119 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029119 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Getting Started Documentation] - Re: Fibo tutorial interface package not generated, please he
Hi, I have exactly the same problem (see beginners corner Tutorial IDE 1.5.0). Have you managed to solve the problem already ? Regards Peter View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029120#4029120 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029120 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Getting Started Documentation] - Re: Problem with tutorial.web.ComputeServlet
Hello Ivan, not exactly your problem, but it looks like that you also follow the Eclipse IDE Tutorial. Did you manage to create with Xdoclet the interfaces for the FIBO EJB ? Regards Peter View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029121#4029121 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029121 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: An error occured while rendering window 'default.Admin.M
I saw the same problem when I ran JBoss Portal 2.4.1 using Java SE 6. When I run it with J2SE 5.0 I do not see the problem View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029122#4029122 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029122 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Getting Started Documentation] - Re: JBossIDE Main tutorial: tutorial.interfaces package not
Hi Robert, I have exactly the same problem. Did you manage to make it work ? Regards Peter View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029123#4029123 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029123 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Re: Making the application as default
Double check the jboss-web.xml file, you might have mistyped something. Also, if you remove the jboss-web.xml file (or remove the context-root entry from that file), does the war deploy properly? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029124#4029124 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029124 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: working directory
Look in server/default/conf/jboss-services.xml. The last mbean (URLDeploymentScanner) has an attribute named URLs. You can add a directory there. In addition, all of your exploded directories will have to have the .war and .ear extensions. For example, assume the directories: c:\wk\prg\jboss\webapp.war\... c:\wk\prg\jboss\something.ear\... Then change the URLs attribute as follows: attribute name=URLs |deploy/,file://c:/wk/prg/jboss/ | /attribute (Note: I am not sure about the number of slashes required between file: and c:, it could be 1, 2 or 3) This causes the deployer to deploy all applications, whether exploded or packaged in files, in the c:/wk/prg/jboss directory. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029125#4029125 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029125 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Extended Persistence Context without EntityManager
This may be a silly question, but bare with me. Is it possible to have an extended persistence context without using an EntityManager (rather a native Hibernate Session)? By that, I mean that you can retrieve an object, render the view, and on postback, the following will still be true, because the previous Session is restored. conversationScopedObject == session.get(conversationScopedObject.getId()); The reason I ask is because I am trying to get an understanding of what Seam/EJB 3 provides that Seam/Hibernate does not. I want to avoid using a detached object to do basic CRUD, and to do so I would imagine that the best way is to use the extended persistence context (otherwise known as session-per-conversation pattern). I don't want to go hacking up a solution. I am interested to know if this is something that is supported by Seam without EJB 3. If it isn't, then I will understand why EJB 3 is necessary. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029126#4029126 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029126 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Layout : show a single window without the region / bug a
a better patch is in the Jira. avoid to have another window come in the page if the window was not declared in the page. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029127#4029127 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029127 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: working directory
Thank you for your answer, Peter. I admit I was hoping for a nicer solution, but what can we do? My project directories have src,doc,notes and deploy subdirectories and I use the main dir as a Project dir in eclipse. So it seems I will have to rename all deploy subdirs to contextname.war and list each and every such path in URLs. I preferred Tomcat's approach... Thanks a lot anyway. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029128#4029128 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029128 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - Re: Problems with Xdoclet under JbossIDE
Hi, I have the same problem. Have you solved it already ? Regards Peter View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029129#4029129 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029129 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Extended Persistence Context without EntityManager
It's possible because Hibernate _implements_ the EJB 3.0/Java Persistence standard. So by definition it has to offer a superset of features. EJB 3.0/Java Persistence is needed because it is an industry standard of a subset of Hibernate features. If you are looking for things that Hibernate can not do but that Java Persistence can not do, you will not find any. But it's also not useful to compare a product with a specification, compare product with product. Seam offers easy access to the Hibernate feature superset (in addition to making EJB 3.0 standard features easier available). Read up on the Seam managed persistence contexts in the doc, you can use either EntityManager or Hibernate Session API with that. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029130#4029130 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029130 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Extended Persistence Context without EntityManager
If you are looking for things that Hibernate can not do but that Java Persistence can not do should be If you are looking for things that Hibernate can not do but that Java Persistence can do View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029131#4029131 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029131 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - ClassCastException: $Proxy?? problem
I have spent a whole week trying to solve a problem without success. Frankly, I don't know what else to do except to turn for help here. For development: JDeveloper JbossAS Window 2003 Server Components: Entity bean(AddressEntity.java) Session bean(AddressFacade.java) Session bean interfaces(AddressFacadeRemote,java, AddressFacadeLocal.java ) JSF page(create.jsp) JSF backing bean (Create.java) Deployment: foopojo.jar contain POJO and persitence.xml fooejb.jar contains Session bean classes and jboss.xml odmweb.war contains: jsp files, backing beans, jboss.web, faces-config.xml, web.xml etc. odmapp.ear contains: foopojo.jar, fooejb.jar, fooweb.war, application,xml and jboss-app.xml application.xml contains | | module | web | web-urifooweb.war/web-uri | context-rootfooweb/context-root | /web | /module | module ejbfooejb.jar/ejb /module |moduleejbfoopojo.jar/ejb /module | /application | The application is deployed as EAR (fooapp.ear) to jboss-4.2.0.CR1 I have in my backing bean ( Create.java ): public String addButton_action() { |try { | |//NOTE: addressEntity is property in this class | addressEntity.setCreatedBy(user.getUserName()); |java.util.Date timestamp = new java.util.Date(System.currentTimeMillis()); |addressEntity.setDateCreated(timestamp); | addressEntity.setDateLastModified(timestamp); | addressEntity.setVersion(1); | addressEntity.setHits(0); | getAddressFacadeRemote().createEntity(addressEntity); | info(Address was successfully created.); | } catch (Exception ex) { |ex.printStackTrace(); |error(ex.getLocalizedMessage()); |} |return address_create; |} | |public AddressFacadeRemote getAddressFacadeRemote() { | if(this.addressFacadeRemote == null){ | try { | Context ctx = new InitialContext(); | //NOTE: RemoteJNDIName is fooapp/AddressFacade/remote in the session bean AddressFacade; | //NOTE: Next is Line# 236 as reported in the exception thrown | this.addressFacadeRemote = (AddressFacadeRemote) ctx.lookup(AddressFacade.RemoteJNDIName); | } | catch (NamingException e){ | throw new RuntimeException(e); | } | } | return addressFacadeRemote; | } | Create.jsp is an input form 1. I start the page 2. Fill the form 3. Click a button to process the data 4. The system check for error but there is no error to display 5. The system throws the following error: 08:49:33,578 ERROR [STDERR] java.lang.ClassCastException: $Proxy117 08:49:33,593 ERROR [STDERR] at com.xxx.vmo.foo.pojo.address.Create.getAddressFacadeRemote(Create.jav a:236) 08:49:33,593 ERROR [STDERR] at com.xxx.vmo.foo.pojo.address.Create.addButton_action(Create.java:846) 08:49:33,593 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) I can't go past this error no matter what I try. I would appreciate any help. Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029132#4029132 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029132 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: MDB destination issues
anonymous wrote : | In my deployment scenario I don't know the queue name (i.e. destination) until just prior of load time of my mdb's, i.e. it is unknown at compile time. Is there a way to solve this? | Not really. The connection consumer created for your deployment requires the destination to be provided. If you wanted to do a 'trick' I suppose you could provide the value of the destination in your ejb-jar.xml file as a property. At deployment time, JBoss will resolve a property reference to the correct system property. Example | destination${some.destination}/destination | If you take a look at the messagedriven tests in our testsuite, you can see an example of this. Note, for this to work, the name of the destination would have to be set as a system property somehow prior to your deployment. Note, I don't really recommend doing this as it's non standard behavior but it might get you by. anonymous wrote : | Also, there may very well be cases where messages that can be handled by the same mdb implementation arrive on different queues, is it possible to deploy an mdb multiple times to receive messages from separate queues? | You can't deploy the *same* MDB (ie the same MDB name) to multiple queues, but there is nothing to stop you from deploying the same MDB code with different EJB names to multiple destinations. Example: | ejb-nameXListener/ejb-name | ejb-classorg.example.SomeMDB/ejb-class | | ejb-nameYListener/ejb-name | ejb-classorg.example.SomeMDB/ejb-class | | Also, there is nothing to stop you from deploying multiple listeners to a single queue, but only one listener will receive a message, not both. Some people use this scheme as a 'poor man's' load balancing for a single destination. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029135#4029135 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029135 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: MDB destination issues
Thanks for the quick response! So, (I'm quite new to JBoss) is there a way to dynamically and programmatically create such deployments? In that case I could read my config with queue names and such when JBoss starts up and create the deployments accordingly, and voilá - home safe. / Jonas View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029137#4029137 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029137 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: FacesMessage not appearing....
Are there known issues with the authentication implementation? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029141#4029141 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029141 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: JBPM WITHOUT the starter kit
Mark, Can I get some feedback from you? You don't want to run inside application server, but do you care if JBPM (or some other JBoss.org, non-app server project) required a specific directory structure to run? How do you intend to run JBPM? In Tomcat? In your own Java SE process? I ask this because we're developing an Embedded JBoss project that would allow you to bring things a la carte to non-AS environments like Tomcat and plain, vanilla Java SE. This project is designed to work in the environments classloader and designed to boot superfast. Its in JBoss AS HEAD SVN under the embedded/ module if you're interested. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029145#4029145 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029145 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: FacesMessages queued but not being displayed.
And this bug is a killer, only happens on one of my machines, and the two machines are using exactly the same setup. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029153#4029153 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029153 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Feature request: Fine-grained entity security
Imagine that you have to do a permission check when a user sets a new price for an item, let's say in an online shopping application. I'd design this security aspect from the bottom up, lowest layer first. - Model layer: Checking UPDATE and INSERT with the lifecycle callbacks is too coarse-grained. Sometimes a user can update an item, but not set a new price. Even if you use programmatic security, e.g. calling Seam Identity.hasPermission() in the Item.setPrice() accessor method, you run into issues with exception handling in the APPLY MODEL VALUES phase. - Controller layer: You can do fine-grained checking on and in the methods of your action/controller components. But you again don't get a chance to intercept Item.setPrice() if this property is bound directly to a JSF widget. Of course, you could check in ItemController.setItemPrice() if the price was modified, and then call Identity.hasPermission(), but that is just too much work: you need to bind the JSF widget to a controller property instead of directly to the entity, and then manually copy the property from and to the entity instance after doing your permission checking. This copying is especially tricky if we are talking about lists of objects and Hibernates collection wrappers (you often have to clear() a collection before re-filling it, causing massive DELETE and INSERT on the SQL level). - View layer: You can of course hide the JSF text input widget that binds to item.price if the user isn't allowed to change the price. That doesn't stop the users from messing with your request parameters. Or am I wrong and there is effectively no way in JSF to sneak in some request parameters that set the price on the model? Even with client-side state saving? So we don't really have a convenient strategy for this quite common scenario, or I missed something. We should work on a solution and document it in the Security chapter. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029155#4029155 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029155 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - using a JBPM timer
I need to create a workflow where a node will stay in a wait state until either a timer times out or the user completes the task -- whichever comes first. What's the best way to model this use case? I think I understand how to assign and complete tasks. But I'm not too sure about timers. (I am still getting my JBoss deployment working with the jbpm scheduler, so I can't test the scenarios yet). Here's a simplified version of the task-node with a timer (and without any user assignments yet): | task-node name=MyWaitNode | task | timer duedate=05/04/2007 | action class=com.acme.MyActionHandler /action | /timer | /task | transition name=Next Step to=Next Step / | /task-node | A couple of questions: 1) If the timer times out by the duedate and the user didn't complete the task, will the workflow automatically transition to the next node, Next Step? Or do I need to signal to transition in the ActionHandler associated with the timer? 2) How do I make sure that MyActionHandler is *always* triggered - that is, regardless of whether the timer timed out or the user completed the task? Should I associate an action with the transition? 3) Do timers (and the 'scheduler' service) required db persistence? My test workflow example isn't persistent (though in the future it probably will be). My understanding is that I only need to enable the 'scheduler' property in my jbpm.cfg.xml file and make sure that the JbpmThreadsServlet is configured correctly in my web app's web.xml file. Is that correct? Thanks in advance, pf View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029157#4029157 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029157 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: JBPM WITHOUT the starter kit
ok, one day later, but a search on the forum with : no AND (starterskit OR starters kit) yielded at least http://www.jboss.com/index.html?module=bbop=viewtopict=100749 on the first or second page certainly a helpful document. Some one cares to make a wiki entry out of it? Or even better, an piece for the documentation. There were some other links as well, but not for someone with your high level of knowledge. I think if I refined the search I would have had some more relevant links View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029160#4029160 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029160 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Feature request: Fine-grained entity security
Would it make sense to tie this into Hibernate validation, or is this a silly idea? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029163#4029163 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029163 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Webservice Client consumer
Hello i have some problems to built a client which can use web services deployed... My config is like : - eclispe jboss IDE 2.0.0 beta - jboss 4.0.5 EJB3 config - jdk 1.5_11 i deploy normaly an EJB3.0 webservice on jboss, and my wsdl is like : anonymous wrote : ? | | | ? | | | | ? | | | | ? | | | | ? | | | | ? | | ? | | | | | ? | | | | | | ? | | soap:binding style=rpc transport=http://schemas.xmlsoap.org/soap/http/ | ? | | soap:operation soapAction=/ | ? | | soap:body namespace=http://wsSite/jaws; use=literal/ | | ? | | soap:body namespace=http://wsSite/jaws; use=literal/ | | | ? | | soap:operation soapAction=/ | ? | | soap:body namespace=http://wsSite/jaws; use=literal/ | | ? | | soap:body namespace=http://wsSite/jaws; use=literal/ | | | | ? | | ? | | soap:address location=http://localhost:8080/SiteMarchand-ejb/wsSiteBean/ | | | my client is like : import java.net.MalformedURLException; | import java.net.URL; | import java.rmi.RemoteException; | | import javax.xml.namespace.QName; | import javax.xml.rpc.Call; | import javax.xml.rpc.Service; | import javax.xml.rpc.ServiceException; | import javax.xml.rpc.ServiceFactory; | | public class testWS { | | /** | * @param args | * @throws MalformedURLException | */ | public static void main(String[] args) { | // TODO Auto-generated method stub | String urlstr=http://localhost:8080/SiteMarchand-ejb/wsSiteBean?wsdl;; | URL url=null; | try { | try { | url = new URL(urlstr); | } catch (MalformedURLException e) { | // TODO Auto-generated catch block | e.printStackTrace(); | } | | System.out.println(Contacting webservice at + urlstr); | String ns = http://wsSite/jaws;; | | QName qname = new QName(ns,wsSiteService); | QName port = new QName(ns, wsSitePort); | QName operation = new QName(ns, getPrixProduit); | | ServiceFactory factory = ServiceFactory.newInstance(); | Service service = factory.createService(url, qname); | Call call = service.createCall(port, operation); | try { | Double d = (Double) call.invoke(new Object[]{ezekiel}); | } catch (RemoteException e) { | // TODO Auto-generated catch block | e.printStackTrace(); | } | } catch (ServiceException e) { | // TODO Auto-generated catch block | e.printStackTrace(); | } | } | } i imported these libraries in my classpath : anonymous wrote : | jre system library 1.5_11 | JbossAOP 1.3 libraries (sdk 1.5) | J2EE 1.4 Libraries (JBoss-IDE) | jboss ejb3 libraries | jbossws-client.jar And my error returned : anonymous wrote : Contacting webservice at http://localhost:8080/SiteMarchand-ejb/wsSiteBean?wsdl | Exception in thread main java.lang.NoClassDefFoundError: org/apache/xerces/xs/XSModel | at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:106) | at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:82) | at org.jboss.ws.jaxrpc.ServiceImpl.(ServiceImpl.java:96) | at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157) | at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128) | at testWS.main(testWS.java:37) ligne 37 of testWS.java is Service service = factory.createService(url, qname); So is there someone who can give me a solution or my error ? Or maybe a tips to create automaticaly the client with my configuration... Thanks for responses, please View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029164#4029164 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029164 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Webservice Client consumer
sorry it seems there is somes mod for xml ... i put it again : ? | definitions name=wsSiteBeanService targetNamespace=http://wsSite/; | types/ | ? | message name=wsSite_getDelaiProduitResponse | part name=return type=xsd:int/ | /message | ? | message name=wsSite_getPrixProduit | part name=arg0 type=xsd:string/ | /message | ? | message name=wsSite_getPrixProduitResponse | part name=return type=xsd:double/ | /message | ? | message name=wsSite_getDelaiProduit | part name=arg0 type=xsd:string/ | /message | ? | portType name=wsSite | ? | operation name=getDelaiProduit parameterOrder=arg0 | input message=tns:wsSite_getDelaiProduit/ | output message=tns:wsSite_getDelaiProduitResponse/ | /operation | ? | operation name=getPrixProduit parameterOrder=arg0 | input message=tns:wsSite_getPrixProduit/ | output message=tns:wsSite_getPrixProduitResponse/ | /operation | /portType | ? | binding name=wsSiteBinding type=tns:wsSite | soap:binding style=rpc transport=http://schemas.xmlsoap.org/soap/http/ | ? | operation name=getDelaiProduit | soap:operation soapAction=/ | ? | input | soap:body namespace=http://wsSite/; use=literal/ | /input | ? | output | soap:body namespace=http://wsSite/; use=literal/ | /output | /operation | ? | operation name=getPrixProduit | soap:operation soapAction=/ | ? | input | soap:body namespace=http://wsSite/; use=literal/ | /input | ? | output | soap:body namespace=http://wsSite/; use=literal/ | /output | /operation | /binding | ? | service name=wsSiteBeanService | ? | port binding=tns:wsSiteBinding name=wsSiteBeanPort | soap:address location=http://localhost:8080/SiteMarchand-ejb/wsSiteBean/ | /port | /service | /definitions View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029165#4029165 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029165 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How do I call Seam code from a web service?
I'm trying to call some seam components from a JBoss web service class. When I use: Component.getInstance() I get the java.lang.IllegalStateException: No application context active error message. I can't seem to find anything in the examples, documentation, or the seam book which will help me out. Any idea what I should do? Thanks! Devon View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029167#4029167 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029167 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Feature request: Fine-grained entity security
You can definitely write a JPA interceptor which checks actual field values using equals() during an update operation. (In theory you should really use Type.isDirty() in Hibernate, but that's not portable.) So you would require that the user annotate entity attributes with @Restrict, and imply a permission like (customer, name) from that. Then the interceptor would look at the fields annotated @Restrict and check the permission when the entity is updated. The thing which makes me a bit skeptical of this stuff is that there would only be field-level permissions for update operations, not for read, create, delete. I suppose you could interpret a field-level permission during create as meaning that it gets checked if it is non-null. But read would be *very* difficult to do. Shane, I don't see how Hibernate Validator would help. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029168#4029168 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029168 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Feature request: Fine-grained entity security
Alternatively, the user can write an entitylistener, and call Identity.checkPermission() themselves. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029169#4029169 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029169 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How do I call Seam code from a web service?
Wrap the contextFilter around the soap servlet. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029170#4029170 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029170 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: JBPM WITHOUT the starter kit
Hi Bill, In a nutshell, we are moving away from the J2EE (JEE) stack - but staying Java. I think that TerraCotta has it right on the money when it comes to how you should be developing your applications from an enterprise perspective. So having to carry around a big application server and manage it is bit 'old school'. The current jBPM is a beast. Even when we had it working in starter kit mode, when something went wrong the black box was just too black. We were not sure if it was jBPM, JBoss or something else. Would we care if jBPM required a specific directory structure to run? I think JBoss should always ask itself whether a constraint that they are imposing is something that a competing open source project can overcome. If you see other workflow engines requiring it, then ok... but I don't think they do. We want to run a workflow engine wherever we want. We may have one instance running in Tomcat to handle presentation related workflows that would be lighter allowing Tomcat to do what it does best - serve up JSPs. And we may want to run a heavier weight workflow in some standalone process on some server and expose it via a web service or even (gulp) an RMI call. We do NOT want it to require JMS as JMS in JBoss has proved to be a royal pain in the butt. And, it would be cool if the two workflow engines could work together seamlessly. Your embedded JBoss info sounds interesting. I think you have my email so send me the info. I think you know I am a big fan of JBoss. I've been around since version 2. But times are a' changin' and you guys gotta keep it easy, slick and modular. Hope this helps, Mark View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029171#4029171 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029171 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How do I call Seam code from a web service?
If you mean like this: | filter | filter-nameSeam Servlet Filter/filter-name | filter-classorg.jboss.seam.servlet.SeamServletFilter/filter-class | /filter | | filter-mapping | filter-nameSeam Servlet Filter/filter-name | url-pattern/costService*/url-pattern | /filter-mapping | Then it isn't working for me. If you mean something else, can you be more specific. Searching for contextFilter in the docs yields nothing. Sorry to be so dense:( Devon View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029172#4029172 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029172 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: FacesMessages queued but not being displayed.
How are you adding your messages to FacesMessages? There is an API change for the FacesMessages that was introduced in 1.2. If you want to attach a message to a JSF control, then you should use the new FacesMessages.addToControl() method View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029173#4029173 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029173 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Excluding certain datatypes from Replication?
I'm using 1.4.1, and I'm wondering if there is an extensible way to exclude certain datatypes from replication. Basically, treating them as if they were marked as transient. If theres an easy way to do this without modifying the code, please let me know. If not, any plans to add this ability in 2.0? Seems like it could be a useful configurable option/feature. As always, thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029174#4029174 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029174 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Re: ClassCastException: $Proxy?? problem
Have you packaged the AddressFacade bean's interfaces in more than one archive? Maybe in the fooejb.jar and fooweb.war? If so, then remove those interfaces from the war and maintain them in only one place, the fooejb.jar. For more details, have a look at: http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassCastExceptions Specifically, the jmx-console method mentioned over there. See if that helps. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029175#4029175 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029175 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How do I call Seam code from a web service?
Got it. I changed the url filter to: url-pattern/costService/url-pattern | And it works now. Thanks! Devon View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029176#4029176 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029176 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Re: java.lang.IllegalStateException in sessionContext.getCal
Open a JIRA issue with details. Maybe attach a simple test case/app for the ejb3 team to reproduce the issue and fix it asap. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029177#4029177 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029177 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Re: Form Based Login Question: Redirect to different page af
Rework your application such that the pages do not expect objects in session etc. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029178#4029178 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029178 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Re: list users configured in JBoss
Roles are configured at the security domain level. It is keyed in by an identity (username/principal). It is not clear as to what you are trying to achieve here. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029179#4029179 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029179 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Re: JBoss Portal, Alfresco SSO using CAS
Can you ask in the portal forums? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029180#4029180 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029180 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Re: SSL connection for EJB
Try the JSSE settings for keystore and truststore View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029181#4029181 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029181 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Testimonials] - Re: ATG on JBoss - How good is ATG stuff
We're running ATG 7.2 on JBoss in production and have it running in Eclipse. What are you looking for help with? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029182#4029182 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029182 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: using a JBPM timer
1: look at the testcases in the source. Lots of info there 2: yes, place an action on the transition or the 'leave node' event 3: I'm not sure. best if you try. But even if it does, you could always use the in-memory hsqldb. No 'real' persistence then. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029186#4029186 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029186 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: JBPM WITHOUT the starter kit
To improve things, being it the docs or the enige or whatever could you elaborate a little on anonymous wrote : The current jBPM is a beast. Even when we had it working in starter kit mode, when something went wrong the black box was just too black. We were not sure if it was jBPM, JBoss or something else. anonymous wrote : And, it would be cool if the two workflow engines could work together seamlessly. is one for Tom to address anonymous wrote : We do NOT want it to require JMS as JMS in JBoss has proved to be a royal pain in the butt. I've had my fair share of *beep* as well, but did you try the fully redesigned one? I've not had the time but I hear it is a good piece of work View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029188#4029188 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029188 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - my CRUD way, is it right? show yours please!
jboss-seam-1.2.0 jboss-4.0.5.GA jdk1.5.0_0.8 the following is my way to do CRUD,it works! but I'm not sure if it will cause some potential problems ,like performance. please show me yours! I like seam so much! package org.kaiak.model; | | import java.io.Serializable; | | import javax.persistence.Entity; | import javax.persistence.GeneratedValue; | import javax.persistence.Id; | import javax.persistence.Table; | import javax.persistence.Version; | | import org.hibernate.validator.Length; | import org.jboss.seam.annotations.Name; | | @Entity | @Name(permission) | @Table(name = t_myor_permission) | public class Permission implements Serializable { | | //seam-gen attributes (you should probably edit these) | private Long id; | private Integer version; | private String name; | | //add additional entity attributes | | //seam-gen attribute getters/setters with annotations (you probably should edit) | | @Id @GeneratedValue | public Long getId() { | return id; | } | | public void setId(Long id) { | this.id = id; | } | | @Version | public Integer getVersion() { | return version; | } | | private void setVersion(Integer version) { | this.version = version; | } | | @Length(max=20) | public String getName() { | return name; | } | | public void setName(String name) { | this.name = name; | } | } | | package org.kaiak.service; | | import javax.ejb.Local; | | @Local | public interface PermissionManager { | public String persist(); | public String edit(); | public String delete(); | public void findPermissions(); public void destroy(); | |//add additional interface methods here | } | | package org.kaiak.service; | | import java.util.List; | | import javax.ejb.Remove; | import javax.ejb.Stateful; | import javax.persistence.EntityManager; | | import org.jboss.seam.annotations.Begin; | import org.jboss.seam.annotations.Destroy; | import org.jboss.seam.annotations.End; | import org.jboss.seam.annotations.Factory; | import org.jboss.seam.annotations.In; | import org.jboss.seam.annotations.Logger; | import org.jboss.seam.annotations.Name; | import org.jboss.seam.annotations.Out; | import org.jboss.seam.annotations.datamodel.DataModel; | import org.jboss.seam.annotations.datamodel.DataModelSelection; | import org.jboss.seam.core.FacesMessages; | import org.jboss.seam.log.Log; | import org.kaiak.model.Permission; | | @Stateful | @Name(permissionManager) | public class PermissionManagerBean implements PermissionManager { | | @Logger | private Log log; | | @In | FacesMessages facesMessages; | | @In | EntityManager entityManager; | | @DataModel | private ListPermission permissionList; | | @In(required = false) | @Out(required = false) | private Permission permission; | | @DataModelSelection | private Permission selectedPermission; | | @Begin | @Factory(permissionList) public void findPermissions() { | permissionList = entityManager.createQuery( | select perm from Permission perm order by perm.id) | .getResultList(); | } | | @End(beforeRedirect = true) | public String persist() { | entityManager.persist(permission); | return list; | } | | @End(beforeRedirect = true) | public String delete() { | permission = selectedPermission; | permissionList.remove(permission); | entityManager.remove(permission); | return list; | } | | public String edit() { | if (selectedPermission != null) | permission = selectedPermission; | return form; | } | | @Destroy | @Remove | public void destroy() { | } | } | | | permissionList.xhtml | | !DOCTYPE composition PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN | http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; | ui:composition xmlns=http://www.w3.org/1999/xhtml; | xmlns:s=http://jboss.com/products/seam/taglib; | xmlns:ui=http://java.sun.com/jsf/facelets; | xmlns:f=http://java.sun.com/jsf/core; | xmlns:h=http://java.sun.com/jsf/html; | template=layout/template.xhtml | | ui:define name=body | | h1permissionList/h1 | pGenerated list page/p | | h:messages globalOnly=true styleClass=message/
[jboss-user] [JBoss Seam] - Re: my CRUD way, is it right? show yours please!
have you seen what Seam Gen provides? I started my project before Seam Gen... but it's very cool. http://michaelyuan.com/download/seam/rhds-20070306.html from http://www.michaelyuan.com/blog/ View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029192#4029192 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029192 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Extended Persistence Context without EntityManager
Hmm, what you said makes perfect sense, though I feel that I did not do a good job of stating my question. As a proud owner of JPwH I can positively say that I understand that Hibernate is a provider of the JPA standard (and a very good one!) Let me try to be a bit more clear. I want to put my Hibernate session factory (or Session?) in the conversation scope so that it reattaches to the JDBC data source on a new request, but still uses the same first-level session cache. However, I would like to be able to do so without the EJB-microcontainer. It appears that Seam must rely on the microcontainer to use the extended persistence context, and when it does so, it always appears to inject it using the EntityManager as a target. Perhaps this pseudo-code would be more clear. I want to be able to do: @PersistenceContext(type=EXTENDED) | Session session; Is something like this possible? Or would it be more like the configuration below? core:managed-hibernate-session name=extendedSession scope=conversation / Basically, if there were anyway that the Seam developers could provide an example of a long running conversation that avoids the use of detacted objects using ONLY hibernate sessions, we would do backflips for you. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029193#4029193 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029193 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: FacesMessage not appearing....
In another post moving to this wan mentioned. FacesMessages.addToControl() I will try tonight. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029194#4029194 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029194 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - SeamRemoting Spring DelegatingVariableResolver
I realize that FacesContext is not available on a Seam remoting call because the request does not go through the JSF lifecycle. However, since the FacesContext is null, the Spring beans EL integration also goes out the window. Instead, Seam uses an internal UnifiedELValueBinding that is unaware of any custom JSF variable resolvers ;( Would it be possible to add a configuration in Seam to add variable resolvers when the FacesContext is not available? For those of us using Spring beans, they become pretty important during a remoting call. Naturally, it would always be possible to drop back to using lookups for the Spring application context, but that would be a step backwards. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029195#4029195 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029195 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Extended Persistence Context without EntityManager
This is all explained in the reference documentation, you can use JSF + Seam + Hibernate and nothing else. Check out /examples/hibernate in the Seam distribution. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029201#4029201 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029201 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: InheritanceType JOINED stategy problem
i can't resolve this problem yet, could anybody help me ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029203#4029203 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029203 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: SeamRemoting Spring DelegatingVariableResolver
Oh yeah! I finally figured out a way to do away with the need for the delegating variable resolver all together, which in my mind really feels like the right solution to this problem! I am now using seam:component to expose my Spring bean as a native Seam component instance rather than relying on the variable resolver to look it up for me each time. Just the performance gain alone is going to make this worthwhile. What was the problem before? you ask. Ah, well, Spring proxies were giving me quite a stumble. After A LOT of debugging inside of Eclipse, I finally got to the bottom of the matter. Seam can only expose Cglib proxies created by Spring, not JDK proxies (and Spring cannot do javassist, which would be another alternative). Since the default for Spring is to use JDK proxies, I was facing a sure failure. Long story short, imagine that you have a TransactionProxyFactoryBean that you want to inject into a Seam managed component acting as a JSF backing bean...pretty standard stuff for Spring folks. Here is how it is done in 3 steps. (I am taking a somewhat complex example, courtesy of Appfuse). CourseManagerImpl.java - business object public class CourseManagerImpl extends org.appfuse.service.impl.GenericManagerImplCourse, Long implements CourseManager { | // make CGLIB happy, feed it a default constructor | public CourseManagerImpl() { | super( null ); | } | | public CourseManagerImpl( GenericDaoCourse, Long courseDao ) { | super( courseDao ); | } | | // finder methods... | } applicationContext.xml - Spring configuration snippet bean id=baseTransactionProxy class=org.springframework.transaction.interceptor.TransactionProxyFactoryBean abstract=true | !-- Seam cannot work with JDK proxies, so we must instead use Cglib-enhanced objects -- | property name=proxyTargetClass value=true / | property name=optimize value=true / | property name=transactionAttributes | props | prop key=get*PROPAGATION_REQUIRED,readOnly/prop | prop key=*PROPAGATION_REQUIRED/prop | /props | /property | /bean | | bean id=courseManager parent=baseTransactionProxy lazy-init=true | seam:component beanClass=com.example.CourseManagerImpl / | property name=target | bean class=com.example.CourseManagerImpl autowire=constructor/ | /property | property name=proxyInterfaces value=com.example.CourseManager / | /bean CourseListAction - Seam component / JSF backing bean @Name( courseListAction ) | @Scope( ScopeType.CONVERSATION ) | public class CourseListAction implements Serializable { | @In( create = true ) | private CourseManager courseManager; | | // other stuff... | } Now, the injecting of the courseManager does not rely on the Spring-JSF variable resolver and hence is available during @WebRemote calls. Keep in mind that the Spring bean must be lazy or you get strange errors on startup. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029204#4029204 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029204 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - POJO created in the client has null properties when inside t
I have an EJB3 entity POJO mapped with Hibernate and a stateless session bean that is supposed to persist it. The POJO is created in the client and then passed to the bean to save it. For example: MyClass c = new MyClass(); c.setProp1 = prop1; c.setProp2 = prop2; myBean.save(c); However, inside the bean all the properties of the passed object are null. When I call em.merge(c); em.persist(c); only nulls are saved in the database. I suspect the bean is actually accessing a proxy so how can I get the properties that were set in the client? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029205#4029205 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029205 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Query with empty restriction
I get the following exception when I have in components.xml the following query, but #{member.countries} refers to an empty list: SELECT c FROM Country c where c IN (#{member.countries}) If you look at the root cause of the error the message says: org.hibernate.hql.ast.QuerySyntaxException: unexpected end of subtree [SELECT c FROM Country c where c IN ()] The #{member.countries} expression for a member that has no countries specified doesn't show up in the generated query (SELECT c FROM Country c where c IN ()). Why is this happening, and how could I cause the query to simply return an empty list instead of this exception? Thanks. javax.faces.el.EvaluationException: /list.xhtml @36,43 rendered=#{empty countries}: Cannot get value for expression '#{countries.resultList}' | at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:60) | at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:1075) | at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:241) | 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) | Caused by: javax.faces.el.EvaluationException: Exception getting value of property resultList of base of type : org.jboss.seam.framework.EntityQuery$$EnhancerByCGLIB$$4d3f50d3_7 | at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:96) | at org.apache.myfaces.el.ELParserHelper$MyPropertySuffix.evaluate(ELParserHelper.java:532) | at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145) | at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:383) | at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:53) | at org.jboss.seam.framework.Query.getParameterValues(Query.java:332) | at org.jboss.seam.framework.Query.evaluateAllParameters(Query.java:340) | at org.jboss.seam.framework.EntityQuery.createQuery(EntityQuery.java:101) | at org.jboss.seam.framework.EntityQuery.getResultList(EntityQuery.java:40) | at org.jboss.seam.framework.EntityQuery$$FastClassByCGLIB$$225925e6.invoke(generated) | at
[jboss-user] [JBoss Seam] - Re: Extended Persistence Context without EntityManager
Okay, I'm the ass. Sorry for wasting your time. Chapter 8.3 describes this very clearly with the Seam-managed SessionFactory and FlushMode feature of Hibernate. I also didn't read close enough (or slow enough) to realize that the session-factory-jndi-name attribute is actually the name of the session factory in the hibernate.cfg.xml file. Intuition wanted to mess with my head. For those of you just joining us, turn your attention to this quote from the reference manual: anonymous wrote : Seam lets you specify FlushModeType.MANUAL when beginning a conversation. ...changes will not be flushed to the database until we explicitly force the flush to occur. and this code components.xml core:hibernate-session-factory name=hibernateSessionFactory/ | core:managed-hibernate-session name=hibernateSession auto-create=true session-factory-jndi-name=WhateverYouLike/ hibernate.cfg.xml session-factory name=WhateverYouLike | !-- props -- | /session-factory So what this is saying is that Seam can manage your hibernate sessions by using a Seam-managed Hibernate SessionFactory. If you inject that Session into a conversation-scoped Seam component, you now have a session-per-conversation for free! Using FlushMode.MANUAL you can even choose to delay the flushing of the session to the database across many different transactions. Now, the challenge is for me to get this working in my little sandbox. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029207#4029207 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029207 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Delaying ValueChangeEvent problem...
I am queuing event when it is fired after Apply_Request_values phase for Update_model_value phase but it is fired first time during(Apply_Request_values) but not after Update_model_Values phase public void changeMethod(ValueChangeEvent event) { PhaseId phaseId = event.getPhaseId(); String oldValue = (String) event.getOldValue(); String newValue = (String) event.getNewValue(); if (phaseId.equals(PhaseId.ANY_PHASE)){ System.out.println(Called ANY_PHASE); event.setPhaseId(PhaseId.UPDATE_MODEL_VALUES); event.queue(); }else if (phaseId.equals(PhaseId.UPDATE_MODEL_VALUES)){ System.out.println(Called after UPDATE MODEL VALUES phase..); } } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029209#4029209 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029209 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user