[jboss-user] [JBoss Seam] - how can i use *.seam and *.jsf at the same time?
i am glad to see jboss seam example -dvdstore, and i want to add a jsp file named upload.jsp in the root dir. and like this: --root ---home.xhtml ---browse.xhtml ---dvd.xhtml .-- .. ---upload.jsp now, i want to use upload.jsp for upload file. i make a managed-bean in faces-config.xml and it works well. but when i write the url :http://localhost:8080/dvd/upload.jsf, the error happens, it seems that seam can't find "upload.jsp" file. who can give me a hand? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123715#4123715 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123715 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Stateless bean holding data?
As far as I can see, the peopleList is updated only when search() method is called, so if you just get back to the listing page, then it accesses the same bean with old data. You could put action in pages.xml or in pageflow definition to be called before rendering the page. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123714#4123714 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123714 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - JBoss and IP address
I installed JBoss 4.2.2 on a machine with an IP address of 192.168.1.200. (Running Ubuntu 6.06) To see the JBoss welcome page I can get there by going to http://localhost:8080 or http://127.0.0.1 ... but not by http://192.168.1.200:8080. Why? Since I can't display the page with that URL I can't get another machine on my network to display it either. How can I fix this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123713#4123713 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123713 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Using rich:datascroller With Seam and Hibernate Paginati
As I keep studying Pete's seamdiscs code, I feel less confident about how much I can really use beyond concepts. I understand the seamdiscs example is meant to highlight the Seam CRUD application framework, but as a result I think a lot of the data model integration doesn't apply to my case. Let me ask generally...I am aware that @DataModel takes a collection and wraps it in the appropriate JSF DataModel. If I were to write a DataModel that sublasses org.ajax4jsf.ajax.repeat.SerializableDataModel (which incidentally doesn't seem trivial to me anyway), should I simply manually perform the same kind of outjection that @DataModel and @DataModelSelection provide? Basically, I am trying to get the flexible paging ability while staying as close to "Seam doctrine" as possible. Any insight to that end is appreciated. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123709#4123709 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123709 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Re: JBoss Federated SSO: Does it support?
I have a Question: In the Wiki (http://labs.jboss.com/wiki/StartFedSSO) for installation and testing; it says to copy the default configuration and start the server again: Now create an exact same copy of 'default' configuration and name it 'default2' | \ | | run -c default2 -b node1.jboss.org (for cross domain test) or run -c default2 -b node2.jboss.com (for same domain test) ... Why would I run two instances of the server to test? To test shouldnt I be just deploying a random test WAR and have the "VALVE" configured. Any request to that application/WAR would require SSO. If I need to run SSO instances on each application server, whats the point? Am not able to get it!?! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123704#4123704 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123704 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Themes - Region interceptor override
This is only my opinion and I hope the portal team provides you with the specific response you are expecting. You are pointing at the weakness of the theme/layout architecture in 2.6, there is layout architecture is not honorable enough to support sufficient flexibility. YUI team is working on a version a layout and I cross the portal team will get inspired - they missed their "grid" that was already much more advanced that what is in here. Again it is only my words... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123700#4123700 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123700 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss Seam, a great product that doesn't work :(
It's definitely better to do an EAR, not a WAR. Seam + EJB3 can be embedded in a WAR but the whole thing is not designed for that usage. It's designed to live in a container. JBoss AS in particular. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123699#4123699 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123699 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss/Spring Integration] - Re: JBoss 4.2 Spring Deployer + Spring 2.08
"devnulled0" wrote : | I poked around in build.sh and build.xml.. looked around in the tools/etc/buildmagic directory and noticed that nothing about Spring was mentioned in there, but otherwise I don't know this build system well enough to know what to even look for or change. Any suggestions? Thanks! Uf, ok, I know build magic can be pita. I can have a look at the end of this next week. That soon enough? If I forget, grab me at JBossWorld, since I know you'll be there. :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123698#4123698 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123698 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss/Spring Integration] - Re: JBoss 4.2 Spring Deployer + Spring 2.08
"alesj" wrote : | First, I think you should be trying to fix this against some AS4.x branch. | Not the trunk, since trunk already contains new code needed for AS5. | | Then simply run (JBossAS_4.x_HOME)/build/build.sh. | This will download all the required thirdparty libs (that's what's missing with you - the libraries.ent warning) and build the server instance. | After that you should be able to run spring-int build as well. | By default (in pre AS5) spring-int is excluded from main build. | Thanks, I'm used to Maven so buildmagic is Greek to me at the moment. I checked out of the newest 4.x branch I could find with spring-int in it, which was: | tobin:~/dev/jboss brandon$ svn info | Path: . | URL: http://anonsvn.jboss.org/repos/jbossas/branches/JBoss_4_0_4_JBAS-4213 | Repository Root: http://anonsvn.jboss.org/repos/jbossas | Repository UUID: 84be2c1e-ba19-0410-b317-a758671a6fc1 | Revision: 69357 | Node Kind: directory | Schedule: normal | Last Changed Author: [EMAIL PROTECTED] | Last Changed Rev: 61460 | Last Changed Date: 2007-03-19 12:28:18 -0600 (Mon, 19 Mar 2007) | I moved to JDK5 and got JBoss to build just fine. However, when I went to build spring-int I got this error: | tobin:~/dev/jboss/spring-int brandon$ ./build.sh | Searching for build.xml ... | Buildfile: /Users/brandon/dev/jboss/spring-int/build.xml | | _buildmagic:init: | Trying to override old definition of task property | | _buildmagic:init:buildlog: | | configure: | | init: | | _buildmagic:build-bypass-checker: | | _buildmagic:build-bypass-notice: | | _buildmagic:build-bypass-check: | | jars: | | _buildmagic:init: | | init: | | compile-classes: | [javac] Compiling 8 source files to /Users/brandon/dev/jboss/spring-int/output/classes | | BUILD FAILED | /Users/brandon/dev/jboss/spring-int/build.xml:299: The following error occurred while executing this line: | /Users/brandon/dev/jboss/spring-int/build.xml:227: Reference spring.classpath not found. | I poked around in build.sh and build.xml.. looked around in the tools/etc/buildmagic directory and noticed that nothing about Spring was mentioned in there, but otherwise I don't know this build system well enough to know what to even look for or change. Any suggestions? Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123697#4123697 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123697 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss Seam, a great product that doesn't work :(
I'm just trying to figure out exactly what went wrong. You created a web project - so it is deploying as a WAR - right? Then you ran generate-entities and got the error? I'll have to look into the code a bit - but I believe the generate-entities will not work with a WAR deployment because you are generating entiy beans. Try generating an EAR application, and then running generate-entities. Also what does your Authenticator class look like, and your components.xml. The error is saying that it can't find your Authenticator class/component. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123696#4123696 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123696 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Is it possible to grab the FacesContext in a @WebRemote
ServletContexts is correctly set with the HttpServletRequest for a remoting request, so yes you can use it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123695#4123695 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123695 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - BAM includes forecasting, planning?
Triggered by the reply to this post: http://jboss.org/index.html?module=bb&op=viewtopic&t=128540, i tried to find all documents related to BAM. I did not find much, but the impression I get is more an after-the-fact analysis tool. When we are adding more date/time information to jBPM, can't we also add functionality to look ahead and forecast future workloads? It would be nice to know how many tasks way down in the process will have to be performed next week for a certain role. This should take into account duration of tasks, transitions, wait times and also scheduled fixed dates for certain tasks. Maybe I'm trying to get things from jBPM that do not belong in a workflow system, but being a newbie to the workflow technology, it seems like a logical feature to have in place. Let me know if there are plans in this direction and how I could potentially help. Thank you, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123694#4123694 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123694 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss Seam, a great product that doesn't work :(
Wow, thanks a lot for the prompt reply :). I had RHDS RC1 and eclipse jee with jboss tools.. What I'm doing is this. I'm making a Seam Web Project with JBoss Seam 2.0.0.GA on JBoss AS 4.2.0.GA The template works fine. When I access Generate Entities from the tool i get a n error saying something about ejb3deployer not beeing initialized. Because of the errors I tried going back to the command line. The template worked fine. Anyway.. I'm now doing JBoss AS 4.2.0.GA with JBoss Seam 1.2.1.GA looks like it works now. :-?? Also, what is that about Seam 2.0 being a technology preview ? Could that be the cause of the errors I get with deployment? I'm pretty sure that when I was writting by hand I left out some configurations. In conclusion it seems to be working for now. With Jboss Seam 1.2.1 Compared with Stripes, Seam still takes to much out of me, although if the facts on paper are right it will be worth it, at least that I'm hoping for. Also found http://in.relation.to/Bloggers/Everyone/Tag/Seam, and it provided with some help. If you know why I get that ejb3deployer error, or the most recent one ERROR [SeamLoginModule] Error invoking login method javax.el.PropertyNotFoundException: Target Unreachable, identifier 'authenticator' resolved to null In the meanwhile I'll be playing with what works, don't think there is much more I can do right now :). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123693#4123693 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123693 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Accessing EJB3s through a firewall
I'm employing the following configuration of JBossAS 4.2.1 GA to make stateless EJB3s accessible both through firewall/router and from LAN. 1. Port forwarding Configure port forwarding of the following ports from router to JBossAS:host: Naming - 1098, 1099 EJB3 - 3873 HTTP - 8080 2. EJB3 proxies Modify jboss.service.xml in ejb3.deployer\META-INF: ... | | jboss.aop:service=AspectDeployer | | | |${jboss.bind.address} |3873 | |3873 | | |org.jboss.aspects.remoting.AOPRemotingInvocationHandler | | | | | ... | 3. RMI stubs Add the following system property when starting JBossAS: -Djava.rmi.server.hostname= 4. DNS Make sure DNS entries are resolved as follows: -> (outside of the router - WAN) -> (inside of the router - LAN) Regards, Magnus View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123692#4123692 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123692 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: transaction failed
Hi, I have the same problem. Did you resolve it? Regards Jarek View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123687#4123687 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123687 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: SFSB vs. JavaBean
"EricJava" wrote : Then I was using other POJOs and wondering, why are these things not starting conversations? Now I see. I need to put @Scope(CONVERSATION) on them. | Using a conversation scoped component does not automatically make the conversation long running. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123686#4123686 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123686 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: inline image email attachment
i blame dark wizards - it's always the dark wizards... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123684#4123684 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123684 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss Seam, a great product that doesn't work :(
I'll see what I can help you with. Could you post some more details on the issues you are seeing? Did you get the basic seam-gen app working - but just adding on failed? Is it a WAR deployment or an EAR deployment? Have you tried a diff with the registration example - some times you might be missing a attribute or a simple typo? -Jay View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123682#4123682 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123682 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Identical in wsdl causes major headache!
I have a WSDL that looks like this: . The problem is I want to convert my wsdl to java skeleton using Jax WS wsconsume. I cannot do so because "J2EETransaction" in is not unique. I'm constrained in using identical name, J2EETransaction because my xsd only have one parent element: http://www.w3.org/2001/XMLSchema";> Is there any way to reference a child element like: or some other way? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123678#4123678 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123678 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Cannot get URL for schema (because of extra slash)
That class should be in lib/jbossws-common.jar. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123676#4123676 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123676 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss Seam, a great product that doesn't work :(
Agreed with above. For those of us coming from a more simple model (i.e. basic Struts, or even just plain Java development), having to deal with all the things Seam pulls together is a pretty tough start. I've been playing with it for a week and am just now starting to get the hang of what's going... or at least so I think. Still, when you look at what you're saving by not having to use each component individually, and all the "plumbing code" you are spared, it's tough to go back. Big bonus in that, being an application stack instead of a web framework, it's not as likely to go obsolete any time soon. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123673#4123673 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123673 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss Seam, a great product that doesn't work :(
Start with Eclipse Europa J2EE version and add JBoss Tools 2, it has wizards for a simple project you can then start fiddling around with. Seam is an evolution along a long line of web development frameworks and ideas. If you are new to this stuff it can probably feel like trying to drink from a fire hose but that doesn't mean that the product itself "doesn't work". View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123669#4123669 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123669 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: Pools and permits
In retrospect maybe this is wrong when considered against what you said. I admit I don't really know what I'm doing. What consequences could my approach have? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123667#4123667 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123667 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss Seam, a great product that doesn't work :(
I must say, Seam is not easy to get started with. I have been using it for a year and I'm still figuring things out. It's great when you get it going, but until you have some experience with it it can be very frustrating to figure out, "why is this not working." When I'm stuck with debugging something like what you have, what I do is I take a known-working application, and I incrementally transform the known-working app into the app you are trying to get working. That is tedious but it will find the problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123666#4123666 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123666 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - JBoss Seam, a great product that doesn't work :(
Well, after 3 days of frustration, I finnaly decided to ask help on your forum. I'm pretty sure that this has been already discussed somewhere else but here it goes :). I've run the seam generator tool. Started Jboss AS 4.2.0 GA. Everything was fine. Than I tried to write the registration example over it. Only wrote a small page for the registration... and the RegistrationAction that the tutorial was providing. And here everything that could go wrong went :(( The debug page keeps showing up, that's when JBoss AS doesn't complain about the deployer not beeing able to deploy stuff. Can anybody provide some hints on how to make new actions work ? Tried seam genereate-entities and after a while I succeeded to run it ( don't ask me how cause I :-?? have no clue as to how it finally worked ) I'm connecting to a mysql on local host if that helps anything. Basically I want to write an application in JBOSS SEAM starting from the skeleton provided by seam gen. I'm sure somebody could provide a tutorial. Just In Case : http://www.intelligentedu.com/blogs/post/best_new_training_sites/3676/15-best-jboss-seam-tutorials I read those things none of it when right ? Do you remember your Seam newbie days ? Can somebody tell me how they managed to get it to work? 10x in advanced. Maybe someone will take pitty on me.. so I can get other stupid questions out :D after I make the base stuff work. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123665#4123665 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123665 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: problems with optimistic locking/persistence data in EJB
try this: | t.begin(); | //queues an update from stale uNode | //Node mergedNode = em.merge(fromNode); | | //refresh reads back queued model | em.refresh(fromNode); | | t.commit(); | i commented out the call to merge (i think this is the call that's undoing your changes) and changed the argument to refresh (now it's fromNode instead of mergedNode). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123664#4123664 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123664 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: Pools and permits
Thanks, this is what I suspected. I had a need to use concurrently a small number of managed connections, so I created another layer of indirection above the connection handle -- now that handle is used to create another handle, and then immediately closed. Use of the second handle can proceed in parallel against the same managed connection. Thanks for your time. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123663#4123663 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123663 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Rollback container managed persistence EJB
do you need something special to do for rollback the transaction when a customized exception (Inherits from Exception) ocurr? Thanks for your help View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123662#4123662 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123662 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: SFSB vs. JavaBean
"[EMAIL PROTECTED]" wrote : anonymous wrote : If I put just @Name, it's a POJO, and you're saying it's request scoped? | | Yes. Waitaminute, looking at the JBoss Seam book (an official JBoss publication), by Michael Yuan and Thomas Heute, on page 320: anonymous wrote : However, Seam POJO components are stateful and have a conversational scope by default. When you say "request scoped" maybe you mean "temporary conversation scoped"? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123661#4123661 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123661 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: NullPointerException in VFSUtils.readManifest during WA
filed in jira: http://jira.jboss.com/jira/browse/JBAS-5178 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123660#4123660 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123660 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Using JBOSS optimistic tree cache and Websphere 6.1.0.13
Hi, While trying to use hibernate 3.2.5 with WAS 6.1.0.13 I am facing these issues: My hibernate cfg file has the transaction manager set up to be org.hibernate.transaction.WebSphereExtendedJTATransactionLookup which is recommended while using hibernate with Websphere 6.1. I am using CMT transaction manager factory. However this gives me the error: aused by: java.lang.UnsupportedOperationException at org.hibernate.transaction.WebSphereExtendedJTATransactionLookup$TransactionManagerAdapte r.suspend(WebSphereExtendedJTATransactionLookup.java:111) at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:78) at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:67) at org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:80) at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:4241) ... 40 more Then going through JBOSS discussion boards, I understood that I need to set the transaction manager to be org.hibernate.transaction.WebSphereTransactionManagerLookup which is meant to be used for lower versions of websphere. By doing so, this error disppeared, however I got the following problem while using optimistic tree cache. [1/25/08 11:49:45:664 PST] 0029 RegisteredSyn E WTRN0074E: Exception caught from before_completion synchronization operation: org.jboss.util.NestedRuntimeException: ; - nested throwable: (org.jboss.cache.lock.TimeoutException: write lock for / could not be acquired after 15000 ms. Locks: Read lock owners: {} Write lock owner: GlobalTransaction::1 (caller=GlobalTransaction::2, lock info: write owner=GlobalTransaction::1 (activeReaders=0, activeWriter=Thread[QTMSessionPool,5,], waitingReaders=0, waitingWriters=1, waitingUpgrader=0))) at org.jboss.cache.interceptors.TxInterceptor$LocalSynchronizationHandler.beforeCompletion( TxInterceptor.java:1022) at org.jboss.cache.interceptors.OrderedSynchronizationHandler.beforeCompletion(OrderedSynch ronizationHandler.java:72) at com.ibm.ws.Transaction.JTA.RegisteredSyncs.distributeBefore(RegisteredSyncs.java:242) at com.ibm.ws.Transaction.JTA.TransactionImpl.prePrepare(TransactionImpl.java:2389) at com.ibm.ws.Transaction.JTA.TransactionImpl.stage1CommitProcessing(TransactionImpl.java:1 622) at com.ibm.ws.Transaction.JTA.TransactionImpl.processCommit(TransactionImpl.java:1593) at com.ibm.ws.Transaction.JTA.TransactionImpl.commit(TransactionImpl.java:1528) at com.ibm.ws.Transaction.JTA.TranManagerImpl.commit(TranManagerImpl.java:237) at com.ibm.ws.Transaction.JTA.TranManagerSet.commit(TranManagerSet.java:162) at com.ibm.ejs.csi.TranStrategy.commit(TranStrategy.java:756) at com.ibm.ejs.csi.TranStrategy.postInvoke(TranStrategy.java:181) at com.ibm.ejs.csi.TransactionControlImpl.postInvoke(TransactionControlImpl.java:581) at com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java:3910) at com.ibm.ejs.container.MessageEndpointHandler.afterDelivery(MessageEndpointHandler.java:1 353) at com.ibm.ejs.container.MessageEndpointHandler.invokeMessageEndpointMethod(MessageEndpoint Handler.java:775) at com.ibm.ejs.container.MessageEndpointHandler.invoke(MessageEndpointHandler.java:736) at $Proxy0.afterDelivery(Unknown Source) at com.ibm.ws.sib.ra.inbound.impl.SibRaTransactionalDispatcher.afterDelivery(SibRaTransacti onalDispatcher.java:468) at com.ibm.ws.sib.ra.inbound.impl.SibRaDispatcher.dispatch(SibRaDispatcher.java:720) at com.ibm.ws.sib.ra.inbound.impl.SibRaSingleProcessListener$SibRaWork.run(SibRaSingleProce ssListener.java:584) at com.ibm.ejs.j2c.work.WorkProxy.run(WorkProxy.java:418) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469) Caused by: org.jboss.cache.lock.TimeoutException: write lock for / could not be acquired after 15000 ms. Locks: Read lock owners: {} Write lock owner: GlobalTransaction::1 (caller=GlobalTransaction::2, lock info: write owner=GlobalTransaction::1 (activeReaders=0, activeWriter=Thread[QTMSessionPool,5,], waitingReaders=0, waitingWriters=1, waitingUpgrader=0)) at org.jboss.cache.lock.IdentityLock.acquireWriteLock(IdentityLock.java:169) at org.jboss.cache.TreeNode.acquireWriteLock(TreeNode.java:546) at org.jboss.cache.TreeNode.acquire(TreeNode.java:506) at org.jboss.cache.interceptors.OptimisticLockingInterceptor.lockNodes(OptimisticLockingInt erceptor.java:141) at org.jboss.cache.interceptors.OptimisticLockingInterceptor.invoke(OptimisticLockingInterc eptor.java:68) at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:67) at org.jboss.cache.interceptors.TxInterceptor.runPreparePhase(TxInterceptor.java:754) at org.jboss.cache.interceptors.TxInterceptor$LocalSyn
[jboss-user] [Beginners Corner] - Re: Loading Applets
:) Managed to figure it out. Turns out that in order to access any files within the file system in the application, you need to login. But because the applet loader retrieves the file in a different session I receive the login page. of which the first few characters are "
[jboss-user] [JBoss Seam] - Re: InvokeMethod and Test
Any ideia ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123655#4123655 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123655 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Re: logout from swing client
I think you can..Try this ( we did this in our swing client) In your swing client you must be having a handle to your callback handler, LoginContext & your implementation of PrivilgedAction CallBackHandler cbh = new FooCallBackHandler(); | LoginContext lc = new LoginContext("FooRealm", cbh); | lc.login(); | Subject userSubject = lc.getSubject(); | // do your secured stuff here | userSubject.doAsPrivileged(PrivilegedAction action, AccessControlContext acc); | // done with my stuff, so i am loggin out | lc.logout() View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123654#4123654 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123654 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - DataTable invokes bean one time too much
Hello, i have a small strange problem... I have a datatable inside my JSF code. | | | Id | | |... | | The JSF gets the data for the table as a Collection (ArrayList) from a stateless SessionBean. | public ArrayList getTableContent() { | | log.info("INVOKE getTableContent"); | | ArrayList result = new ArrayList(); | | ... (some jBPM code) | | return result; | The Collection-objects are simple EntityClasses and the view is rendered correctly. But when i watch the JBOSS-console, i see that the getTableContent()-method is invoked always one time too often. Lets say we have one Object in the collection, then the method is invoked twice and so on... Doesnt JSF just invoke this method one time and then create the datatable? Why should it invoke it so often? How can i assign a local var in JSF just for example like this: Collection c = value="#{showWorkflows.tableContent}" , so that it is just called one time? Any more ideas? Thx in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123653#4123653 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123653 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Stateless bean holding data?
Hello, I have two pages, edit and search. From the edit screen, the user can go to the search screen (which also contains a list). From the search/list screen, they can select an entity to edit. The problem is that my list, which is part of a stateless session bean, is being retained throughout trips to the search/list page. I.e., the previous search results are being shown after leaving and coming back. Is this the expected behaviour? My edit page is backed by a stateful session bean using the default conversation scope, so could that be throwing things off? Should I just add a "clearList()" call to my links from the search page to empty it as I leave? The code for the list page and its stateless session bean are below: | package org.domain.myProject.session; | | import java.util.ArrayList; | import java.util.List; | | import javax.ejb.Stateless; | import javax.persistence.EntityManager; | import javax.persistence.PersistenceContext; | | import org.domain.myProject.entity.Person; | import org.domain.myProject.session.local.SearchPeopleLocal; | import org.jboss.seam.annotations.In; | import org.jboss.seam.annotations.Logger; | import org.jboss.seam.annotations.Name; | import org.jboss.seam.faces.FacesMessages; | import org.jboss.seam.framework.EntityQuery; | import org.jboss.seam.log.Log; | | @Stateless | @Name("searchPeople") | public class SearchPeopleAction implements SearchPeopleLocal { | @Logger | private Log log; | | @In | FacesMessages facesMessages; | | @PersistenceContext | private EntityManager em; | | private List peopleList; | | @SuppressWarnings("unchecked") | public void search() { | /* | * We are using an EntityQuery since it seems to be the quickest solution to | * dynamic searches. | */ | EntityQuery eq = new EntityQuery(); | eq.setEntityManager(em); | eq.setEjbql("from Person p"); | | /* | * The EntityQuery can have restrictions (basically the "WHERE" part of the SQL) | * placed on the returned results. Since they are (I believe) called remotely | * from this class, we have to pass the 'seamComponent.parameter' (which is | * the value that we'll be restricting on) in expression language | */ | List restrictions = new ArrayList(); | restrictions.add("lower(p.name) like lower(concat('%',#{searchPeople.name},'%'))"); | eq.setRestrictions(restrictions); | | peopleList = eq.getResultList(); | | if (peopleList.size() == 0) | facesMessages.add("Search returned no results"); | | log.info("Result list size is #0", log.info("Result list size is #0", peopleList.size()); | } | | // The below variables (and their getters / setters) are used to make | // the dynamic query | private String name; | | public String getName() { | return name; | } | | public void setName(String name) { | this.name = name; | } | | public List getPeopleList() { | return peopleList; | } | | public void setPeopleList(List peopleList) { | this.peopleList = peopleList; | } | } | | http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> | http://www.w3.org/1999/xhtml"; | xmlns:s="http://jboss.com/products/seam/taglib"; | xmlns:f="http://java.sun.com/jsf/core"; | xmlns:h="http://java.sun.com/jsf/html";> | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If it's of any use, I can also post the code for the edit page and it's stateful session bean. Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123652#4123652 Reply to the post : http://www.jboss.com/inde
[jboss-user] [Security & JAAS/JBoss] - Re: java.lang.SecurityException: Insufficient method permiss
Nope...When the session times out & the Pricipal is cleared out by JBoss, then you can't call the protected ejb. UNLESS you want to change method permission on that ejb to . If you can't do that & still want to call cleanUp(int) , you'll have to by pass the secured ejb, or do a programmatic jaas log in again. (which is kinda covoluted) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123651#4123651 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123651 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - default servlet handling welcome page prior to filter runnin
I'm running JBoss 4.2.2 and have a filter in the ROOT.war WEB-INF/web.xml of the jboss-web.deployer. For some reason though when I request a page like http://host.domain.name/, the default servlet tacks on the index.html (which is a valid file and is one of the entries in the welcome file list of the web.xml) prior to my filter running. My filter is basically like the following: | | RewriteFilter | my.class.RewriteFilter | | | | RewriteFilter | /* | | The default servlet portion of the jboss-web.deployer/conf/web.xml is like the following: | | default | org.apache.catalina.servlets.DefaultServlet | | debug | 0 | | | listings | false | | 1 | | Is there something I'm missing? Or will the default servlet always process before my filter? Thanks, Dave View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123650#4123650 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123650 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Using rich:datascroller With Seam and Hibernate Paginati
@neilac333: I think it is a good idea that someone focuses on a generic database backed pagination for the Richfaces datatable. Unfortunately I had no time to do so and ended up in using Trinidads table (for our project sorting and paging is needed) with in-memory pagination/sorting, because Pete's code gives me an exception when sorting/paging through a very large resultset. Besides it is not really fast and does a lot of count(*) when paging to the next page. I would appreciate if you could keep me/us updated with your results / researches on this topic! :-) Regards, Alexander View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123649#4123649 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123649 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: task/process id may not be null
yepp, i understand We decided that Seam isnt sufficient for integrating dynamic workflows at runtime into our application (no offense), so i moved over to the jBPM API at this point, which seems to work within Seam without bigger problems... Thx for your quick replies! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123645#4123645 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123645 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: SFSB vs. JavaBean
"[EMAIL PROTECTED]" wrote : anonymous wrote : If I put just @Name, it's a POJO, and you're saying it's request scoped? | | Yes. Ok, that clarifies things. I was using EntityHome, which is conversation scoped (in Home.java superclass). Then I was using other POJOs and wondering, why are these things not starting conversations? Now I see. I need to put @Scope(CONVERSATION) on them. "[EMAIL PROTECTED]" wrote : anonymous wrote : This still doesn't fully answer the question. Most things can be done with POJOs. For example most beans aren't message-driven. For many simple things there is no performance benefit to clustering beans. So, should we be using EJBs or POJOs? POJOs have a benefit of simplicity: no need to write an interface. | | You've summed up the arguements well, and so can now make an informed decision for which to use ;) Ok, now I'm getting it. I'll use POJOs. Are there any other limitations on POJOs that are significant for routine use? For example, I assume I can do all the same Seam security stuff on POJOs that I can on SFSBs? And I assume that POJOs can be members of long-running conversations, and can use @Begin and @End on them? This last factor (being in long-running conversations) is the most important. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123644#4123644 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123644 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Using rich:datascroller With Seam and Hibernate Paginati
So I have done some research, and I have found that it actually isn't the rich:datascroller I should be focusing on but rather the rich:dataTable to which it is bound. It appears to me I need to do two things. First, I need to write my own DataModel. It seems I am supposed to use the RichFaces class ExtendedDataModel to help manage paging. Here is an implementation of a SerializableDataModel, which subclasses ExtendedDataModel, from the RichFaces site: | package org.richfaces.demo.extendeddatamodel; | | | | import java.io.IOException; | | import java.util.ArrayList; | | import java.util.HashMap; | | import java.util.List; | | import java.util.Map; | | | | import javax.faces.context.FacesContext; | | | | import org.ajax4jsf.model.DataVisitor; | | import org.ajax4jsf.model.Range; | | import org.ajax4jsf.model.SequenceRange; | | import org.ajax4jsf.model.SerializableDataModel; | | /** | | * | | * @author ias | | * This is example class that intended to demonstrate use of ExtendedDataModel and SerializableDataModel. | | * This implementation intended to be used as a request scope bean. However, it actually provides serialized | | * state, so on a post-back we do not load data from the data provider. Instead we use data that was used | | * during rendering. | | * This data model must be used together with Data Provider, which is responsible for actual data load | | * from the database using specific filtering and sorting. Normally Data Provider must be in either session, or conversation | | * scope. | | */ | | public class AuctionDataModel extends SerializableDataModel { | | | | private AuctionDataProvider dataProvider; | | private Integer currentPk; | | private Map wrappedData = new HashMap(); | | private List wrappedKeys = null; | | private boolean detached = false; | | | | /** | | * | | */ | | private static final long serialVersionUID = -1956179896877538628L; | | | | /** | | * This method never called from framework. | | * (non-Javadoc) | | * @see org.ajax4jsf.model.ExtendedDataModel#getRowKey() | | */ | | @Override | | public Object getRowKey() { | | return currentPk; | | } | | /** | | * This method normally called by Visitor before request Data Row. | | */ | | @Override | | public void setRowKey(Object key) { | | this.currentPk = (Integer) key; | | | | } | | /** | | * This is main part of Visitor pattern. Method called by framework many times during request processing. | | */ | | @Override | | public void walk(FacesContext context, DataVisitor visitor, Range range, Object argument) throws IOException { | | int firstRow = ((SequenceRange)range).getFirstRow(); | | int numberOfRows = ((SequenceRange)range).getRows(); | | if (detached) { // Is this serialized model | | // Here we just ignore current Rage and use whatever data was saved in serialized model. | | // Such approach uses much more getByPk() operations, instead of just one request by range. | | // Concrete case may be different from that, so you can just load data from data provider by range. | | // We are using wrappedKeys list only to preserve actual order of items. | | for (Integer key:wrappedKeys) { | | setRowKey(key); | | visitor.process(context, key, argument); | | } | | } else { // if not serialized, than we request data from data provider | | wrappedKeys = new ArrayList(); | | for (AuctionItem item:dataProvider.getItemsByrange(new Integer(firstRow), numberOfRows, null, true)) { | | wrappedKeys.add(item.getPk()); | | wrappedData.put(item.getPk(), item); | | visitor.process(context, item.getPk(), argument); | | } | | } | | } | | /** | | * This method must return actual data rows count from the Data Provider. It is used by pagination control | | * to determine total number of data items. | | */ | | private Integer rowCount; // better to buffer row count locally | | @Override | | public int getRowCount() { | | if (rowCount==null) { | | rowCount = new Integer(getDataProvider().getRowCount()); | | return rowCount.intValue(); | | } else { | | return rowCount.intValue(); | | } | | } | | /** | | * This is
[jboss-user] [JBossWS] - Re: Cannot get URL for schema (because of extra slash)
"memoens" wrote : created issue http://jira.jboss.com/jira/browse/JBWS-1969 Awesome. You know, I pulled the source for what I think is 2.0.2 JBossWS and I don't see the class (org.jboss.wsf.common.URLLoaderAdapter) that I mentioned. I think I might be using the wrong library (.jar) somewhere... The version is reported as 2.0.2 as I reported above, but I may be using an incorrect module somewhere... Can someone validate that the abovementioned class should be used in JBossWS 2.0.2GA? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123640#4123640 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123640 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: jboss AS, jboss Web and php
As nitm pointed out, any war file should work. Just follow the example provided by php-examples.war. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123639#4123639 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123639 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Test Jboss
http://labs.jboss.com/jsfunit/ - read for yourself! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123636#4123636 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123636 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @Logger is null
Anyway never mind. Looks like i have the issue resolved. Something with the way it was building. Their must have been some error in the building. I think it had to do with where it wsa placing webservices etc ... at least thats what i adjusted. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123634#4123634 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123634 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Seam Validator: @Remove & @Destroy errors
I opened: http://jira.jboss.com/jira/browse/JBIDE-1691 and http://jira.jboss.com/jira/browse/JBIDE-1690 (this one is already resolved, you're very fast!!) should i close it ? thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123633#4123633 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123633 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Security annotations not working in 5.0.0.Beta3
http://jira.jboss.org/jira/browse/EJBTHREE-1186?watch=true View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123631#4123631 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123631 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Test Jboss
anonymous wrote : You could take a look at JSFUnit. But check how far Stan has got with support for Seam. Last I asked, it wasn't complete. Does JSFUnit use jboss application server? or its not possible yet to use jboss application server? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123629#4123629 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123629 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Annotations and class inheritance
I posted a blog entry on the subtleties of annotations and inheritance: http://chiralsoftware.com/blog/Annotations-inheritance-EJBs-and-JBoss-Seam-aeb5d89dd0fdbe82.html There are some aspects of it that have caused me to scratch my head, wondering why some annotation seemed to have disappeared. Now I understand it (I hope). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123630#4123630 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123630 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: code completion not working
I'm sorry for the later answer. Yes, the Seam Support is enable. (Project > Properties > Seam Settings) but I can't get the Content Assist on a Expression Language (.xhtml) for my entitys and seam beans. The Window > Preferences > Java > Editor > Content Assist is set as default. The project was created with "seam new-project" on seam 2.0.GA. Do you know what to do? Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123627#4123627 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123627 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Test Jboss
You could take a look at JSFUnit. But check how far Stan has got with support for Seam. Last I asked, it wasn't complete. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123625#4123625 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123625 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: jboss AS, jboss Web and php
hi i am using phpMyAdmin with jboss AS. i didnt put it in the samples directory (i am not using the sample dir at all), instead i just packed it up in a war and deployed it as a regular jboss application. it works great. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123623#4123623 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123623 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam Test Jboss
Hi, Can I use my jboss server in place of using jboss embedded container? If yes then how? I am facing lot many problems while running test scripts. http://www.jboss.org/index.html?module=bb&op=viewtopic&t=128228&postdays=0&postorder=asc&start=0 Thanks in advance, Vikram Chhetry View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123622#4123622 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123622 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: SFSB vs. JavaBean
"vladimir.kovalyuk" wrote : 1. Does JPA persistence context propagation rules work for Seam-managed conversation-scoped Beans? No, they are different. JPA persistence context propagation rules are complex. SMPC propgation is simple. You will get the same PC for the length of that conversation injected into the bean. So if you aren't in a long running conversation, it will be the same PC for the whole of the request. anonymous wrote : 2. Is there exceptional behavior in the case of EntityHome? No View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123620#4123620 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123620 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: ManagedConnectionFactory.setLogger
Adrian had already given you the details , I have raised a JIRA which will cater to the requirement the way you want it . Rathar than complaining and wasting time here you could have raised a JIRA for it :( http://jira.jboss.com/jira/browse/JBAS-5174 In case you change your mind do vote JIRA . View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123617#4123617 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123617 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Javassist user questions] - Proxy serialization, ok but what about inner Objects ?
Hello, I working with proxies build with ProxyFactory method. How to us it is describe in javadoc. When I want to serialize/deserialize it, everything seems to be ok except that only proxy instance is serialized, not inner objects. Eg. Object "A" contains an instance of "B" After serialization/deserialization, instance of "B" in "A" is null Something to configure or is it a bug ? When I look at this code : public static SerializedProxy makeSerializedProxy(Object proxy) throws java.io.InvalidClassException { Class clazz = proxy.getClass(); return new SerializedProxy(clazz, ProxyFactory.getFilter(clazz), ProxyFactory.getHandler(clazz)); } I don't understand how serialization can keep inner objects ... Damien View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123615#4123615 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123615 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: jboss AS, jboss Web and php
Peter, I have installed php 5.2.? (the lastest stable as of yesterday) and I am using your php5servlet.dll I got PHP working...yeah... Another question: Can I put a package like phpbb3 or phpmyadmin in the php-examples folder and it should work, correct? I will try this but I was wondering if you have try this already. Thanks a lot Peter! Nestor :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123610#4123610 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123610 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to set EndTask transition dynamically
Thank you for the hint, and for the additional docs in the distribution. I didn't manage to use the very nice and straightforward Seam jBPM features with @DataModel. What worked best for me was the simple page parameter approach discussed in http://www.jboss.com/index.html?module=bb&op=viewtopic&t=127771 Thanks again for all your helpful work. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123607#4123607 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123607 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: How can I use session sope in jbossws?
I don't know if this helps, but see my thread on a similar subject: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=128375 I tried to get the session context via the MessageContext, but that doesn't appear to work. At least not the way I tried. There is a helpful explanation on how to get the request context here: https://jax-ws.dev.java.net/articles/MessageContext.html and that's what I've used to get as far as I have. But I'm still not able to retrieve the property I'm after (the PASSWORD_PROPERTY). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123600#4123600 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123600 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problems with @RequestParameter
Hi thank you for your answer. The bean is not just an intermediary, it is a backing bean for page displaying in some way data in the entity which id I want to pass through url parameter. For example http://URL/page.html?id=324 After entering page.html the id is passed to the bean and in the @Create method I'm finding the entity with id 324 setting the beans local variables some of them @outjected and whose value is taken from the entity with id 324. Kind Regards, Karol View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123598#4123598 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123598 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 2.0.1.CR2 is out
http://jira.jboss.com/jira/secure/ReleaseNote.jspa?projectId=10071&styleName=Html&version=12311884 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123593#4123593 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123593 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Request param acquire
This is possible but not with the javax.faces API. You would have to fall back to the servlet API. Note the differences: http://java.sun.com/javaee/5/docs/api/javax/faces/context/ExternalContext.html#getRequestParameterMap() http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletRequest.html#getParameterMap() I think something like this should work: | ServletRequest request = (ServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest(); | | // the map contains keys as String and values as String [] | Map params = request.getParameterMap(); | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123592#4123592 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123592 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Persistence in EJB3
Hi, I am new to EJB3. I am using Persistence to connect to Mysql I got the following error when I try to deploy 11:32:39,410 INFO [EJBContainer] STARTED EJB: com.dreamplay.dpds.ejb.LogonTopicBean ejbName: LogonTopicBean 11:32:39,894 INFO [EJB3Deployer] Deployed: file:/C:/jboss-4.2.0.GA/server/default/deploy/DPDS-Server.jar 11:32:39,894 ERROR [URLDeploymentScanner] Incomplete Deployment listing: --- MBeans waiting for other MBeans --- ObjectName: persistence.units:jar=DPDS-Server.jar,unitName=DPDS State: NOTYETINSTALLED I Depend On: jboss.jca:name=MySqlDS,service=DataSourceBinding --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- ObjectName: jboss.jca:name=MySqlDS,service=DataSourceBinding State: NOTYETINSTALLED Depends On Me: persistence.units:jar=DPDS-Server.jar,unitName=DPDS My persistence.xml looks like this --- http://java.sun.com/xml/ns/persistence"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"; version="1.0"> org.hibernate.ejb.HibernatePersistence java:/MySqlDS properties> property name="hibernate.show_sql" value="false" /> property name="hibernate.format_sql" value="false" /> property name="hibernate.archive.autodetection" value="class" /> property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver" /> property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/dreamPlay" /> property name="hibernate.connection.username" value="dreamplay" /> property name="hibernate.connection.password" value="dreamplay" /> property name="hibernate.c3p0.min_size" value="5" /> property name="hibernate.c3p0.max_size" value="20" /> property name="hibernate.c3p0.timeout" value="3000" /> property name="hibernate.c3p0.max_statements" value="50" /> property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" /> property name="hibernate.hbm2ddl.auto" value="create-drop" /> property name="hibernate.transaction.factory.class" value="org.hibernate.transaction.JTATransactionFactory"/> property name="transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/> property name="cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/> properties> --- And my method call is EntityManagerFactory entityMangerFactory = Persistence.createEntityManagerFactory("DPDS"); EntityManager entityManager = entityMangerFactory.createEntityManager(); EntityTransaction entityTransaction = null; try{ entityTransaction = entityManager.getTransaction(); entityTransaction.begin(); UserDAO userDao = new UserDAO(); userDao.setUserId(userObj.getUserId()); userDao.setPassword(userObj.getPassword()); userDao.setLogonTime(userObj.getLogonTime()); entityManager.persist(userDao); entityTransaction.commit(); } catch( Exception exc ){ if ( entityTransaction != null ){ entityTransaction.rollback(); } } finally { entityManager.close(); entityMangerFactory.close(); } Please help me. What I am doing wrong. Thanks ma1 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123591#4123591 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123591 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - JBoss Messaging Download info
Hi, I 'm using jboss-4.2.1.GA. I want to install jms Messaging instead of using MQ.I would like to know, Which version is suitable for my environment from this list. * jboss-messaging-1.4.1.Beta1.zip * jboss-messaging-1.4.1.Beta1-src.zip * jboss-messaging-1.4.0.SP3.zip * jboss-messaging-1.4.0.SP3-src.zip * jboss-messaging-1.4.0.SP2.zip * jboss-messaging-1.4.0.SP2-src.zip * jboss-messaging-1.4.0.SP1.zip * jboss-messaging-1.4.0.SP1-src.zip * jboss-messaging-1.3.0.GA-src.zip * jboss-messaging-1.3.0.GA.zip Thanks in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123589#4123589 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123589 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Timeout/Lock exception in single user/single thread envi
You could check if a tx is already running, and if so, suspend it and resume it again in a finally block, yes. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123588#4123588 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123588 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Config Question
"lovelyliatroim" wrote : anonymous wrote : | | Hmm - have you tried this with 2.1.0.CR3 as well? | | | No I havent but i have now!! | | Had some issues getting the 2.1.0.CR3 to work in JBoss AS 5.0 Beta3. First off the binary lib jboss-cachecore.jar in the meta-inf directory contains all -service.xml files, so JBoss AS picks this up and tries to deploy them and fails in doing so. Removed the -service files and re-jared the jboss-cachecore.jar without -service files. | http://jira.jboss.org/jira/browse/JBCACHE-1277 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123587#4123587 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123587 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Jboss messaging - persistance issue for blob data
Now I found my issue. Instead of changing the code, i went to clustered-oracle-persistant.xml. then i added a tag false Now every thing is perfect. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123586#4123586 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123586 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Security annotations not working in 5.0.0.Beta3
Would you mind opening up a JIRA exhibiting this behavior? If you attach a sample deployment (and code of both the EJB and the Client), we'll be able to better verify this. Thanks for the detailed info. S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123585#4123585 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123585 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Facelets ui:include bean param became null in s:link tag
Hi, I don't know whether I did correctly in the following code. The bean action throw exception "Target Unreachable, identifier 'action' resolved to null" in s:link. If I change s:link to ice:commandLink, it works. I don't know what is wrong. Thanks for help. | | | | view.xhtml | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123583#4123583 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123583 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - RHM qpid
Hi there, I am trying to use RHM as a messaging server and replace JBoss with it. Did anyone manage to do this and could I get any hints on how to do it? Thank you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123581#4123581 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123581 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Exact Tomcat Version
It is based on jbossweb 2.0.x. based on TC 6.0.13 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123578#4123578 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123578 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Security annotations not working in 5.0.0.Beta3
I'm trying to call an EJB with security annotations set on it, but only some of them work properly. Here is the EJB that I have: | @SecurityDomain("simple-security-domain") | @RolesAllowed( { "bank-manager", "teller" }) | @Stateless | public class StatelessCalculatorBean implements Calculator, CalculatorRemote { | | @EJB(beanName = "InterestRateMBean") | private InterestRateManager interstRateManager; | | public double calculateTotalInterest(double presentValue, int years) { | return calculateFutureValue(presentValue, years) - presentValue; | } | | @RolesAllowed("teller") | public double calculateFutureValue(double presentValue, int years) { | double interestRate = interstRateManager.getInterestRate() / 100; | return presentValue * Math.pow((1.0 + interestRate), years); | } | | @RolesAllowed("bank-manager") | public double getInterestRate() { | return interstRateManager.getInterestRate(); | } | | @DenyAll | public String getTheAnswerToLifeTheUniverseAndEverything() { | return "42"; | } | | @PermitAll | public String freeForAll() { | return "You're in!"; | } | | } Here are my roles: | admin=bank-manager,teller | bank-manager=bank-manager | teller=teller | joe=customer | Here is what happens when I try to access the various methods from a standalone client: | | User: admin, Roles: bank-manager, teller | | admin could call calculateFutureValue (requires 'teller') | admin could call calculateTotalInterest (requires 'bank-manager' or 'teller') | admin could call getInterestRate (requires 'bank-manager') | admin could not call getTheAnswerToLifeTheUniverseAndEverything (DenyAll) - Caller unauthorized | admin could not call freeForAll (PermitAll) - Caller unauthorized | | User: bank-manager, Roles: bank-manager | | bank-manager could not call calculateFutureValue (requires 'teller') - Caller unauthorized | bank-manager could call calculateTotalInterest (requires 'bank-manager' or 'teller') | bank-manager could call getInterestRate (requires 'bank-manager') | bank-manager could not call getTheAnswerToLifeTheUniverseAndEverything (DenyAll) - Caller unauthorized | bank-manager could not call freeForAll (PermitAll) - Caller unauthorized | | User: teller, Roles: teller | | teller could call calculateFutureValue (requires 'teller') | teller could call calculateTotalInterest (requires 'bank-manager' or 'teller') | teller could not call getInterestRate (requires 'bank-manager') - Caller unauthorized | teller could not call getTheAnswerToLifeTheUniverseAndEverything (DenyAll) - Caller unauthorized | teller could not call freeForAll (PermitAll) - Caller unauthorized | | User: joe, Roles: customer | | joe could not call calculateFutureValue (requires 'teller') - Caller unauthorized | joe could call calculateTotalInterest (requires 'bank-manager' or 'teller') | joe could not call getInterestRate (requires 'bank-manager') - Caller unauthorized | joe could not call getTheAnswerToLifeTheUniverseAndEverything (DenyAll) - Caller unauthorized | joe could not call freeForAll (PermitAll) - Caller unauthorized | There are two problems (bugs?): 1) Permit all does not work for any of the roles 2) From my understanding, the class-level @RolesAllowed annotation should apply to all the methods that don't override this with their own method-level @RolesAllowed annotation. As seen in the output above, everybody was able to access calculateTotalInterest() even though only bank-manager and teller were supposed to have access. Has anybody else encountered this? I'll be glad to open a JIRA issue if these are bugs. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123579#4123579 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123579 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: ManagedConnectionFactory.setLogger
anonymous wrote : Rather than "fix" your MCF to log more scalably/performantly, So we should optimize our debug output because JBoss is so dumb to set a logger which implicitly turns debug/trace on? anonymous wrote : you want us to be able to not configure a log writer but we don't have that configuration. Right, you don't have it and I don't care even if you would come over here and make the fix. Bye, bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123580#4123580 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123580 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Jboss messaging - persistance issue for blob data
Sorry , its wrong Correct changs is, ps.setObject(columnIndex, bytes); (its working) ps.setBlob(columnIndex, (Blob)is);(this line was not working) I haven't used ByteArrayInputStream. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123577#4123577 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123577 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: inline image email attachment
jira issue: http://jira.jboss.com/jira/browse/JBSEAM-2534 NOTE: above Mozilla Firefox was supposed to be Mozilla Thunderbird (apologies) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123576#4123576 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123576 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Loading Applets
Doesn't appear to be an 'edit post' option... oh well I suppose the main problem here is when I use an applet tag (from anywhere) to access the class files http://localhost/cews/"; \> or an html in the same dir all of them fail with the magic number problem, which I assume is because instead of a class file some sort of html/xml (404 page?) file is retrieved and the applet viewer treats this as a class file instead. How am I to actually get to those class files when my server refuses to even try? Oh and I moved the class/jars from the image folder up one level to the root: http://localhost/cewslite/ Argh View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123574#4123574 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123574 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Transaction recovery
Hi, I am using SEAM Managed EntityManager with FushMode set to Manual for a JTA datasource. When I flush the EntityManager for some invalid update, I get a database exception. I catch this exception, the entity I am updating is still attached and I try to correct the invalid data and then try to reflush the update. However I can't persist the change even though this time it is valid. I get a javax.persistence.TransactionRequiredException: no transaction is in progress exception. I am wondering is there any way I can recover from transaction failure? My code is below. | @Name("manager") | @Scope(CONVERSATION) | public void SeamPOJO { | @In | private EntityManager em; | | @End | public String commit () { | // Create entity | Person person = new Person(); | // set invalid data | person.setName("namethatistoolong"); | em.persist(person); | try { | em.flush(); | } catch (Exception e) { | // data is invalid correct it |person.setName("john"); |em.flush(); | } | } | ~any advice, comments appreciated. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123575#4123575 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123575 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 2.0.1.CR2 is out
For the sake of convenience, could we get a URL to the change log for this release? I wasn't able to find one (at a quick glance) on the site posted at the top comment. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123571#4123571 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123571 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: ManagedConnectionFactory.setLogger
"iit" wrote : | You don't want understand, right? | No, I understand perfectly. You're MCF does lots of work when it is configured with a log writer (even if the stream is effectively > dev/null). Rather than "fix" your MCF to log more scalably/performantly, you want us to be able to not configure a log writer but we don't have that configuration. You don't want to spend the time providing a patch to make this possible and you don't want to wait for somebody else to do it, so instead you claim the lack of this configuration is a bug. You probably want it to be CRITICAL as well so it goes in the next release? :-) I think that's a pretty fair summary of where we disagree. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123572#4123572 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123572 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: NotContextException when I deploy ejb3 and ejb2 in the s
Thanks a lot for your help. Good work! :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123569#4123569 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123569 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: jboss-4.2.2.GA on Win2K3 does not respond to HTTP reques
If you ask the browser to show you the source, is anything there? Also, try some of the telnet requests jaikiran mentions at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=127760 (adjusting the command to use the ports you have specified). What is the exact URL you are using? What happens if you use http://localhosts:/jmx-console? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123570#4123570 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123570 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: ManagedConnectionFactory.setLogger
"[EMAIL PROTECTED]" wrote : | i.e. There will be no logging unless the appserver associates an output stream | with MCF. If or how it does it is entirely down to it. | | Since JBoss uses log4j and always associates a writer you can control | it using the log4j config. | | Since JBoss is Open Source you change those rules, if you don't like it. | It's called a feature. | | I fail to see how you can argue with a straight face that overridding a policy decision | can possibly be a bug? You don't want understand, right? To recap (from the javadoc): If you set a log writer, logging and tracing is ON! It doesn't matter if that is a null stream or not, because the MCF creates a huge debug/trace output. To use a RA with debug/trace enabled in a high-load scenario in production is not appropriate. In our case it's not usable. That is a bug. But anyway, bug or not, it doesn't work and that's what matters. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123568#4123568 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123568 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - mail example no mails received
I'm reading my mailbox all properties seem to be setup correclty | @MessageDriven(activationConfig={ | @ActivationConfigProperty(propertyName="mailServer", propertyValue="mail..net"), | @ActivationConfigProperty(propertyName="mailFolder", propertyValue="INBOX"), | @ActivationConfigProperty(propertyName="storeProtocol", propertyValue="pop3"),//pop3 | @ActivationConfigProperty(propertyName="pollingInterval", propertyValue="6"), //1000 is 1 second 60*60 each hour | @ActivationConfigProperty(propertyName="flush", propertyValue="false"), //do not remove the info from the mail | @ActivationConfigProperty(propertyName="debug", propertyValue="true"), //do not remove the info from the mail | @ActivationConfigProperty(propertyName="userName", propertyValue="seamMailbox"), | @ActivationConfigProperty(propertyName="password", propertyValue="pass") | }) | @ResourceAdapter("mail-ra.rar") //jboss-jca.jarannotation : org.jboss.annotation.ejb.* //It should be in $JBOSS_HOME/server/default/deploy/ejb3.deployer/jboss-annotations-ejb3.jar | @Name("mailpoplistener") | public class EmailPop implements MailListener | {//email support include JBOSS-seam-mail.jar in WEB-INF/lib | // or JBOSS JavaMail APIlib/mail.jar (copy in activation.jar | @Logger private Log log; | @In(create=true) private Email email; | @In(create=true) private Renderer render;//rendering email | @In ("#{entityManager}") publicEntityManager em;//allow for db ACCESS | | Exception ErrCod=null; | StringEnv="Mail pop"; | public void onMessage(Message message) { |// Process the message |// detect beursmessageelse Forward for attention | try{ Env="Get Email message"; | log.info("mail from:"+message.getFrom()); | log.info("mail from:"+message.getSubject()); | log.info("mail from:"+message.getContentType()); | log.info("mail from:"+message.getContent()); | | beursmail.process(message); | } catch(Exception er) | {ErrCod=er; | String errmsg=er.getClass().getSimpleName() +" err: "+ er.getMessage(); | log.error(Env+" Modifying timeout failed "+ errmsg); | } | } | but no mails are getting in and as flush is enabled ; all mails are cleared in debug mode I see following : | DEBUG: JavaMail version 1.4ea | 17:05:28,218 INFO [STDOUT] DEBUG: java.io.FileNotFoundException: C:\WINDOWS\programfiles\java\jre1.6.0_03\lib\javamail.providers (The system cannot find the file specified) | 17:05:28,218 INFO [STDOUT] DEBUG: !anyLoaded | 17:05:28,218 INFO [STDOUT] DEBUG: not loading resource: /META-INF/javamail.providers | 17:05:28,218 INFO [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.providers | 17:05:28,218 INFO [STDOUT] DEBUG: Tables of loaded providers | 17:05:28,218 INFO [STDOUT] DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]} | 17:05:28,218 INFO [STDOUT] DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]} | 17:05:28,218 INFO [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map | 17:05:28,218 INFO [STDOUT] DEBUG: !anyLoaded | 17:05:28,218 INFO [STDOUT] DEBUG: not loading resource: /META-INF/javamail.address.map | 17:05:28,218 INFO [STDOUT] DEBUG: java.io.FileNotFoundException: C:\WINDOWS\programfiles\java\jre1.6.0_03\lib\javamail.address.map (T
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Configuration JNDI
Forgot: The RAD doesn't know the ejb-ql-tag... that's the reason for the syntax error... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123564#4123564 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123564 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: how to estimate / calculate the end date of a process?
Thank you both for your quick replies. The startDate variable seems useful; I will see if I can use that for my 'scheduled start date' that a user needs to input for certain tasks in the process when they start a new process. However, it looks more like the actual date the task was started. Maybe the scheduled start date should be a custom variable? Sounds like an interesting development, the Bussiness Activity Monitoring feature. Where can I find more info on Bussiness Activity Monitoring or the Simulation functionality? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123563#4123563 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123563 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: JBoss 4.3.0 fails to start
I had downloaded the zipped version jboss-eap-4.3.0.GA-1.ep1.8.zip and did not run the installer. This were the contents of jmx-console-users.properties: # A sample users.properties file for use with the UsersRolesLoginModule #admin=admin I removed the # comment and specified the user(admin) and password (admin) in the eclipse plugin to make it work. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123561#4123561 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123561 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Configuration JNDI
Ok - thanks, you helped a lot - perhaps I don't understand everything, but I'm on the way now - and I got an idea about understanding all that. Now there's the next problem I've got. If I understood right after googling the RAD generates non-JBoss-conform EJBQL - and so the Error tolds me I saw in the log-File. So I made a jbosscmp-jdbc.xml beside the jboss.xml with code for each query: | | | Data | | | ejbSelectLastId | | | | | | Data | | | | | But RAD now gives syntax error - and I'm also not sure, if my file is correct - and will solve the EJB-problems. For 2.: I also use direct SQL. The lookup for this - I'm not sure, if it will work - what lookup I have to put there? The same as for the EJB's? Hope for another great answer ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123562#4123562 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123562 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 2.0.1.CR2 is out
When we have a GA release of Seam 2.1 that we consider stable enough to drop the 2.0 branch. This is a while away yet! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123560#4123560 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123560 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Multiple Domains
Over the past week I have been reading a tremendous amount about jboss seam and how to use it. I'm very interested in using it for a new project I'm starting soon, but I'm couldn't find any documentation or examples described what I need. The easiest way to described my project is a large site that spans multiple domains. The system will need to have unified login - meaning one login for a user will work across all of the sites/domains. What makes this complex is that a user can have different roles in each site. For example, userA might be an admin in www.sitea.com, but only be a moderator in www.siteb.com. My question is as follows, is there a way to inject/set a site_id accessible by beans and security rule (drules)? This way when a user tries accessing a function I could check for the following tuple is a user has a roleA for siteA, or when a user goes to www.siteA.com/index.seam it will know to load with index for siteA and not siteB. Is this possible using the seam framework? standalone jsf? Any ideas on how I could implement it? maybe using a phaselistener? Thank you, Eli View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123558#4123558 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123558 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: ManagedConnectionFactory.setLogger
"iit" wrote : | And thanks that you've clearified your business model to me. You introduce bugs and want that users pay to fix it. Nice. | You know that using logical fallacies (especially when they are this obvious) just makes your argument look weaker to those that understand them. anonymous wrote : | And yes, we will try to convince our customers to get out of JBoss. Bye. Ok. That's your perogative as I explained above. As with any software, if it doesn't do what you want. don't use it. Nobody is forcing you and since you didn't pay anything you haven't lost anything except possibly some "opportunity cost". View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123554#4123554 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123554 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JBoss Cache POMS
Ah, thanks Manik, I didn't look in JIRA, oops ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123559#4123559 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123559 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Integrating process' execution with external webapps issues
I have the following scenario at one of the projects i've been working in: I have a process definition that should work together with several Web applications. I believe that the interaction should happen at the State nodes (which purpose i believe (correct if i'me wrong) is to delegate the execution to some external component) What i dont get yet is: should the component be an application that has no user interaction ? Can it be a Web application? We are using the jbpm-console (that's why i'm asking for the integration with other web applications) and at some point in the process' execution we would like to redirect the execution (via http request/response) to another application, then redirect it back. I do know that the actionhandlers were designed to work in an stand-alone way, without any web contexts dependency. What is the best way to build this solution ? Sorry if this is some kind of old discussion in the forum, I looked for a post about this kind of issue and didnt find any. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123555#4123555 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123555 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: jboss-4.2.2.GA on Win2K3 does not respond to HTTP reques
Same problem here (Ubuntu 7.0.4, JDK 1.5 u11). I had apache running on and it worked; took that down, started up JBoss on but all I get is empty pages (no connection timeout)... really weird Does anybody have any ideas? Regards Alejandro View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123556#4123556 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123556 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 2.0.1.CR2 is out
Good work! I love JIRA and I dislike bugzilla, but I agree with your concept... How will release work with SVN and multi branch strategy? I seem 2.1 in trunk an 2.0 in branch... When 2.1 will be mainstream over 2.0? Thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123557#4123557 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123557 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: ManagedConnectionFactory.setLogger
"iit" wrote : | Which on JBoss is log4j configuration by default. Which just shows that you don't read what you quote. Here is the complete sentence: The ManagedConnection instances created by ManagedConnectionFactory "inherits" the log writer, which can be overridden by ApplicationServer using ManagedConnection.setLogWriter to set ManagedConnection specific logging and tracing. Ok, I agree I misread it. But it's still not a bug. Try this quote from getLogWriter anonymous wrote : | ApplicationServer manages the association of output stream with the ManagedConnectionFactory. When a ManagedConnectionFactory object is created the log writer is initially null, in other words, logging is disabled. | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123553#4123553 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123553 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: NotContextException when I deploy ejb3 and ejb2 in the s
For specifying the jndi-name for the remote interface of your EJB3, use the @RemoteBinding annotation (for local interface use @LocalBinding) @RemoteBinding (jndiBinding="ejb3/MySessionBean") See the http://trailblazer.demo.jboss.com/EJB3Trail/ for more details. Here's the link for StatelessSessionBeans http://trailblazer.demo.jboss.com/EJB3Trail/serviceobjects/slsb/index.html View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123551#4123551 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123551 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: how to estimate / calculate the end date of a process?
1) no, Business Activity Monitoring is currently under development. The simulation functionality might also be of interest to you 2) From what I read you want the tasks to be automatically started. There is no functionality for this. Use e.g. timers that end a 'wait-state' and transition to a specific task View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123550#4123550 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123550 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: TreeCache Listener behaviour
Ok, thanks for your answer Manik View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123549#4123549 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123549 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Ajax polling of a conversation Bean
Hello everyone, I need to regularly poll the progress of a really long operation (getting data from a web service) running in a conversation bean. I do that with Seam Remoting using a @WebRemote annotated method in the conversation bean. Everything works flawlessly, except that when my remote call tries to access the conversation bean, it can't because the thread running my long operation already holds the bean. The result is that Seam creates a new conversation bean for my remote call, causing my Remote call to return incorrect data. Has anyone had this problem before ? I am ready to provide more information if needed. Francois View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123548#4123548 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123548 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user