[jboss-user] [JBoss Seam] - Re: SelectItems with objects?

2007-02-06 Thread SmokingAPipe
And it worked. Cool! Except it stored the object in my entity as a serialized object instead of a reference. I think I need to put in a @ManyToOne or whatever because that has nothing to do with the select menu. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic

[jboss-user] [JBoss Seam] - Re: SelectItems with objects?

2007-02-06 Thread SmokingAPipe
Yes, that's exactly the problem. I don't know why there was scope="PAGE" in the example line, but I took that out (didn't specify any scope) and now it converts correctly. Now one of my other fields is not converting correctly, but that should be easy to fix, and then hopefully this thing will

[jboss-user] [JBoss Seam] - Re: SelectItems with objects?

2007-02-06 Thread SmokingAPipe
I looked at the HTML output and I can see that the option values are being correctly set as the entity IDs. So, now I really don't understand this. Hmm. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012200#4012200 Reply to the post : http://www.jboss.com

[jboss-user] [JBoss Seam] - Re: SelectItems with objects?

2007-02-06 Thread SmokingAPipe
Ok, I had a few problems, which I sorted out (I still have a lot of problems but at least these are now sorted). First, if I'm using an unusual name for the entityManager, I need to do this: and then I need to have a factory that uses that. Stupid mistakes. Now everything is working as far a

[jboss-user] [JBoss Seam] - Re: SelectItems with objects?

2007-02-06 Thread SmokingAPipe
I tried it like this: | | | java:/EntityManagerFactories/smpcData | | and then I got: java.lang.IllegalStateException: entityManager is null | org.jboss.seam.framework.EntityQuery.validate(EntityQuery.java:27) | org.jboss.seam.framework.EntityQuery

[jboss-user] [JBoss Seam] - Re: SelectItems with objects?

2007-02-06 Thread SmokingAPipe
Quick question: I'm using SMPC but my EntityManager is not named entityManager. What do I put in my components.xml to fix that? I'm eager to try this now because it looks like exactly the right way to do this. I guess I will switch to 1.1.5 in the near future so I'll try that also. View the

[jboss-user] [JBoss Seam] - Re: A time picker?

2007-02-06 Thread SmokingAPipe
I'm just going to do this in the simple way, which is setting components in the SFSB and then having the SFSB handle it when persist() or whatever is called. At some point when a time picker is packaged and ready to go I'll try it. View the original post : http://www.jboss.com/index.html?modu

[jboss-user] [JBoss Seam] - Re: Multiple DataModels in an SFSB

2007-02-06 Thread SmokingAPipe
I have had multiple DataModels in SFSBs and had no problems, but I have always used @DataModel on a variable, not on a method. Also I would think that @Factory and @DataModel should not be on the same thing. Try putting your @DataModels as variables, and leave your @Factorys on the appropriate

[jboss-user] [JBoss Seam] - Re: SelectItems with objects?

2007-02-06 Thread SmokingAPipe
Ok I may go ahead and try that. Btw here's the link: http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamSelectItemsNewDesign View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4011780#4011780 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mo

[jboss-user] [JBoss Seam] - Re: SelectItems with objects?

2007-02-06 Thread SmokingAPipe
COOL! That's exactly what I'm talking about. A select menu where the values are entities. This is a pretty common usage but it's not something which is handled well in any of the existing systems (whether JSP, JSF, or even PHP or whatever). If there's a good Seam solution that would be cool.

[jboss-user] [JBoss Seam] - SelectItems with objects?

2007-02-06 Thread SmokingAPipe
Simple problem: I want to have a selectonemenu where the labels are strings (as usual) and the values are objects. For example, let's say that the user can go to a checkout page and select a shipping address: home, business, or other. Those have labels, but the value is an Address object. Wha

[jboss-user] [JBoss Seam] - A time picker?

2007-02-05 Thread SmokingAPipe
Seam comes with a nice DatePicker component, which is very easy to use. But if I need to pick a time, not just a date, is there a good component for that? One way I could do it is to have an input for the hour, an input for the minute, and then a date picker. That would give me three fields wh

[jboss-user] [JBoss Seam] - Re: Resource loading in Seam - ideas

2007-02-05 Thread SmokingAPipe
There are three classes of problem that come up. 1. Independent external resources: Something like an image. This isn't part of anything else and can be generated and served all by itself. 2. A piece that needs to go into some other external file. Like I might need to insert a little piece in

[jboss-user] [JBoss Seam] - Re: New fileUpload component

2007-02-05 Thread SmokingAPipe
Cool, a file upload component! One small comment: there should be a way to apply a Converter to this. What does this mean? Very often files are very big, and should be streamed straight to disk or processed in some way (image resized) before being put into a byte array. For example, Java 2d

[jboss-user] [JBoss Seam] - Re: Multiple @Factory methods in one SFSB?

2007-02-05 Thread SmokingAPipe
I just tried it and it worked fine. The @Factory methods themselves were totally simple with no dependencies on anything other than the SMPC. I'm finally getting the hang of all the ins and outs of Seam, and was able to put together my SFSB to do some fairly complicated queries (if I had had t

[jboss-user] [JBoss Seam] - Re: Problems with el

2007-02-05 Thread SmokingAPipe
How could it work on value bindings? Think about it. It's always possible for a value binding to be bi-directional. It must be get-able and set-able. If it's a method call with a parameter, how could that be setable? This is logical and I don't see any logical way it could be otherwise. As

[jboss-user] [JBoss Seam] - Re: Multiple @Factory methods in one SFSB?

2007-02-05 Thread SmokingAPipe
Woops, I already asked this question: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990862#3990862 I'm going to try it this time and see what happens. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4011194#4011194 Reply to the post : http://www.

[jboss-user] [JBoss Seam] - Re: @Factory

2007-02-05 Thread SmokingAPipe
@Factory cannot take more than one argument. I asked a question just now about having multiple @Factory methods in a SFSB. I couldn't see anything in the docs that mention that, but I looked in the Seam examples and there weren't any classes there that had more than one Factory in them, so I d

[jboss-user] [JBoss Seam] - Re: NullPointerException when get a row from a list

2007-02-05 Thread SmokingAPipe
If the cnMessages component has not been accessed from a page, then Seam will not have initialized it (ie, called the factory). Just because your other class is trying to access it, Seam doesn't know anything about that and won't magically call the factory method. That class will have to call

[jboss-user] [JBoss Seam] - Multiple @Factory methods in one SFSB?

2007-02-04 Thread SmokingAPipe
Is there any reason not to have multiple methods with the @Factory annotation within the same SFSB? I looked at all the docs and it didn't say anything about this. I assume that Seam figures out which values have factories and calls the factories as needed and doesn't care too much which SFSB

[jboss-user] [JBoss Seam] - Re: Possible reasons why a DataModelSelection isn't selectin

2007-02-03 Thread SmokingAPipe
Cool, thanks for the pointer on that. That was the problem. I just didn't immediately know to look at the @Begin method signature. Now I know. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010613#4010613 Reply to the post : http://www.jboss.com/index.ht

[jboss-user] [JBoss Seam] - Re: An easy DatePicker component with Seam?

2007-02-03 Thread SmokingAPipe
I looked at that. I haven't tried it but it sounds exactly like what is needed: a way to let JSF components have dependencies that are external to the page (html) being rendered. This is going to be more and more of a need as time goes on, because, as I said, I'm sure we're going to start want

[jboss-user] [JBoss Seam] - Re: Possible reasons why a DataModelSelection isn't selectin

2007-02-03 Thread SmokingAPipe
And I figured out the problem. The conversation becomes a long-running (non-temporary) conversation if there is a @Begin method. My @Begin method was returning a String. The method itself didn't do anything useful so I had it return null as the string. This does not work! That nukes the con

[jboss-user] [JBoss Seam] - Re: Possible reasons why a DataModelSelection isn't selectin

2007-02-03 Thread SmokingAPipe
Now this is even more strange. I have noticed that when I surf around on my site to other screens that have DataModels, and then I go back to the page that wasn't working, suddenly that page is working! Is there any explanation for this? I have it totally repeatable. This is in Seam 1.1.0.

[jboss-user] [JBoss Seam] - Re: Possible reasons why a DataModelSelection isn't selectin

2007-02-03 Thread SmokingAPipe
I found out that when my action is getting called, the DataModel is null, which would explain why the selection is also null. Now I need to figure out what is setting this DataModel to null. It makes no sense. Doing even the simple things in Seam can be quite challenging sometimes because it

[jboss-user] [JBoss Seam] - Possible reasons why a DataModelSelection isn't selecting?

2007-02-03 Thread SmokingAPipe
I have a h:dataTable, just in the usual way. Within that I have a s:link with an action. The only thing that action does is generate a log message with the value of the DataModelSelection corresponding to the DataModel. It's always null. This is within an active conversation. Any ideas what

[jboss-user] [JBoss Seam] - Re: An easy DatePicker component with Seam?

2007-02-03 Thread SmokingAPipe
It seems to me there will be more and more need to serve content out of the classpath for Seam. What about when it needs to start serving SVG files, Flash files, or other media content? All these things are going to come up more, not less, and having them integrated into Seam and ready to go w

[jboss-user] [JBoss Seam] - Re: An easy DatePicker component with Seam?

2007-02-02 Thread SmokingAPipe
I got it working. It's cool! I didn't even know it was there. Comments: The datepicker image file (dtpick.gif) needs to be in the application or the icon won't show up and you'll be wondering, where did the date picker go. Second, yes, there does need to be some CSS somewhere because the backg

[jboss-user] [JBoss Seam] - Re: An easy DatePicker component with Seam?

2007-02-02 Thread SmokingAPipe
Ah there is a handy file right there in booking called date.css. I'm going to install that in my app, and presumably it will start working. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010179#4010179 Reply to the post : http://www.jboss.com/index.html?mo

[jboss-user] [JBoss Seam] - Re: An easy DatePicker component with Seam?

2007-02-02 Thread SmokingAPipe
I put date.css i there and it worked nicely. And due to the coolness of Faclets I just modify one template file and date.css is available on every page. One thing that went away when I installed date.css is it no longer shows the "today" button. I'll have to look in the css to change that. S

[jboss-user] [JBoss Seam] - Re: An easy DatePicker component with Seam?

2007-02-02 Thread SmokingAPipe
By the way, this datepicker thing brings up the whole issue of external resources. I just looked at my page's sourcecode and noticed that there is (not surpingly) JavaScript all over the place. My understanding is that script elements only properly belong in the head element of HTML, and ideal

[jboss-user] [JBoss Seam] - Re: An easy DatePicker component with Seam?

2007-02-02 Thread SmokingAPipe
Are you serious? That's it? I'll give it a try. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010119#4010119 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4010119 ___ jbos

[jboss-user] [JBoss Seam] - An easy DatePicker component with Seam?

2007-02-02 Thread SmokingAPipe
What's the easiest way to make a date picker component in Seam? I'm using Seam with Facelets and I couldn't find anything about one being built in. This is Seam 1.1.0, although I will soon be upgrading to 1.1.5. I have not installed Icefaces or anything like that and I would like to avoid the

[jboss-user] [Security & JAAS/JBoss] - Basic question: what should LoginModule.login() return?

2007-01-30 Thread SmokingAPipe
Looking at the javadocs for LoginModule.login(), it says it returns: "true if the authentication succeeded, or false if this LoginModule should be ignored." Ok, this is quite ambiguous to me. "Authentication succeeded" could mean, "I was able to process the information correctly" or "I processe

[jboss-user] [Security & JAAS/JBoss] - Re: How can I get JBoss to use my login module?

2007-01-29 Thread SmokingAPipe
I have it working. It's critical to use exactly the right format in jboss.xml. It must be: myDomain not anything with java:/jaas or anything like that. I wrote my own LoginModule from scratch and it works fine. Is there any reason why I shouldn't use my own LoginModule instead of subclass

[jboss-user] [Security & JAAS/JBoss] - Re: JBoss4.0 and JAAS/Login-config.xml

2007-01-29 Thread SmokingAPipe
I ran into exactly the same maddenning problem, and came to the same conclusion: do not use java:/jaas in your security-domain in the beans jar. Use just the local part of the name. Kinda crazy getting this stuff to work sometimes. View the original post : http://www.jboss.com/index.html?mo

[jboss-user] [Security & JAAS/JBoss] - How can I get JBoss to use my login module?

2007-01-29 Thread SmokingAPipe
I wrote a new class that implements javax.security.auth.spi.LoginModule. I put an entry for it in login-config.xml. I made the class into a jar and put the jar in server/default/lib. It never seems to load. I changed the login-config.xml file and intentionally made the class name incorrect a

[jboss-user] [JNDI/Naming/Network] - Getting started guide?

2007-01-22 Thread SmokingAPipe
Here's the simple thing I need to do: I have a JBoss server with a bunch of EJB3 entities in it. I also have some session beans to handle various things. That's the server side. On the client side, I have some custom-written Swing applications which need to interact with session beans (on the

[jboss-user] [JBoss Seam] - Re: Displaying Picture from blob

2007-01-17 Thread SmokingAPipe
I haven't looked at Peter's solution but I know it would be quite easy and efficient to write a plain old Servlet to do this. It is perfectly possible to use EntityManagers within Servlets, and serving an image from a Servlet is a good way to go. You avoid any overhead of Seam, JSF or anything

[jboss-user] [JBoss Seam] - Re: The persistence manager doesnt find EJB3 entities when t

2007-01-17 Thread SmokingAPipe
If you're getting "not mapped", the first place to look is to see if you're getting the correct entity manager. I was getting this problem and found out that (for obscure reasons) I wasn't getting the EntityManager I thought I was getting. I'm pretty sure that your unit test cotext is giving y

[jboss-user] [JBoss Seam] - Re: website Templating

2007-01-17 Thread SmokingAPipe
I switched to Faclets and it's great. I haven't used it with Tomahawk. Right now the biggest problem I have with Facelets is dealing with older broken HTML. All your pages in Faclets have to be properly-formatted XHTML. This is good, but could be frustrating if you had a large body of HTML th

[jboss-user] [Installation, Configuration & Deployment] - Re: Stupid problem: no logging period for an EAR file

2007-01-16 Thread SmokingAPipe
Problem solved: One of the webapps deployed on that JBoss installation was doing something insane to the logging system and stopped it from logging anything. It would be ideal if there were some mechanism that would block webapps from misbehaving like that. Anyway, that was the problem. The o

[jboss-user] [JBoss Seam] - Re: ca anybody help?

2007-01-16 Thread SmokingAPipe
Of course, don't copy my file! It has things in it like the JNDI refs that won't be the same on your application. Also my file doesn't have an xml declaration. I'm not sure why that is; it works fine, but maybe there should be an XML dec. View the original post : http://www.jboss.com/index.

[jboss-user] [JBoss Seam] - Re: ca anybody help?

2007-01-16 Thread SmokingAPipe
The exception says, "error while reading /WEB-INF/components.xml ". If what you quoted above is your actual XML file that is why it isn't working. That is not a valid well-formed XML file. Far from it. Mine looks like: | | | true | Foo/#{ejbName}/local |

[jboss-user] [JBoss Seam] - Re: ca anybody help?

2007-01-16 Thread SmokingAPipe
I'm 99% certain the problem is in your EAR's application.xml file. You probably have a line like: | el-api.jar | | but the el-api.jar file is not being put into the EAR file. The el-api.jar file must be in the EAR of course because it is used not just in the web app la

[jboss-user] [Installation, Configuration & Deployment] - Re: Stupid problem: no logging period for an EAR file

2007-01-16 Thread SmokingAPipe
Any ideas? Surely I'm not the first person to notice this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002366#4002366 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002366 __

[jboss-user] [Installation, Configuration & Deployment] - Re: Stupid problem: no logging period for an EAR file

2007-01-15 Thread SmokingAPipe
On a whim, I was looking around, and saw the server/default/deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml file. I edited that file and changed: javax.servlet,org.apache.commons.logging to: javax.servlet,org and restarted and it WORKED in the sense that I suddenly saw a ton of web a

[jboss-user] [Installation, Configuration & Deployment] - Re: Stupid problem: no logging period for an EAR file

2007-01-15 Thread SmokingAPipe
And I set my log4j.xml file to: http://jakarta.apache.org/log4j/"; debug="true"> | | | | | | | | | | | | | | | which should log everything above info level. All my log messages are at "severe" level. None of them s

[jboss-user] [Installation, Configuration & Deployment] - Re: Stupid problem: no logging period for an EAR file

2007-01-15 Thread SmokingAPipe
And apparently I'm not the only one who is getting this "there are no logs" problem when using virtual hosts in JBoss: http://osdir.com/ml/log4j-user@logging.apache.org/msg07435.html View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002140#4002140 Reply to th

[jboss-user] [Installation, Configuration & Deployment] - Re: Stupid problem: no logging period for an EAR file

2007-01-15 Thread SmokingAPipe
I looked at the jmx-console and looked at the log4j mbean, and set the CatchSystemErr and CatchSystemOut to false, and that didn't seem to change anything. The one thing that does work is (Java 6) System.console().printf(). That cannot be redirected at all from within Java. Unfortunately if I

[jboss-user] [Installation, Configuration & Deployment] - Re: Stupid problem: no logging period for an EAR file

2007-01-15 Thread SmokingAPipe
I tried putting this: | | in the web server.xml file for JBoss and that made the whole thing fail. Hmm, surely logging is possible for applications in JBoss? I just want to do the obvious things: if there is an uncaught exception, log it, and also be able to say logger.severe("som

[jboss-user] [JBoss Seam] - Re: When to use @Factory

2007-01-15 Thread SmokingAPipe
I think your option #1 is good when a conversation is starting. What if it needs to display this list several times i the conversation? You don't want to call findListOfStuff() every time it is displayed, because that might involve DB queries, etc. Option #2 is ok if it's ok to regenerate the

[jboss-user] [JBoss Seam] - Re: Logging using java.util.logging.*?

2007-01-15 Thread SmokingAPipe
All of my log messages are at SEVERE level and none are showing up. When the EAR deploys, I don't even see that notice showing up on the console. It's like when there is a virt. host, ALL log info about that goes away. This is an absolute nightmare because I know my app is throwing an exceptio

[jboss-user] [Installation, Configuration & Deployment] - Re: Stupid problem: no logging period for an EAR file

2007-01-15 Thread SmokingAPipe
Btw this is with JBoss 4.0.5. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002089#4002089 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002089 ___ jboss-user mailing list

[jboss-user] [Installation, Configuration & Deployment] - Stupid problem: no logging period for an EAR file

2007-01-15 Thread SmokingAPipe
I have a server that has two virtual hosts with two EAR files on it. I get absolutely NO logging information from them. I don't get notified when they deploy. I'm looking at the JBoss console, and even when these apps do "System.out.println()", nothing shows up. I use java.util.logging.Logg

[jboss-user] [JBoss Seam] - Re: Logging using java.util.logging.*?

2007-01-15 Thread SmokingAPipe
I have found the problem. It is several layers of fragile junk being mis-labeled as logging systems. The main culprit is Tomcat's new JULI logging system, new since Tomcat 5.5.9 I believe. This piece of junk is a sophisticated system which allows each individual application to have its own l

[jboss-user] [JBoss Seam] - Re: Logging using java.util.logging.*?

2007-01-15 Thread SmokingAPipe
Yeah, I'll post this in some other forum. It is certainly a bug and it's very easily reproducible. I need to report it on some other forum. Virt. hosts are working fine. The only two problems I encountered were 1. Seam-managed persistence contexts were not being isolated between apps. I fix

[jboss-user] [JBoss Seam] - Re: Logging using java.util.logging.*?

2007-01-15 Thread SmokingAPipe
Anyone have any ideas on this? This is 100% trivially reproducible: when an app is used with a virtual host parameter, not a single log message relating to that app appears anywhere, and nothing you can change in log4j.xml changes that. This is fragile, broken junk. Logging systems exist for

[jboss-user] [JBoss Seam] - Re: Logging using java.util.logging.*?

2007-01-15 Thread SmokingAPipe
I'll certainly be trying 1.1.1 when it comes out. But in this case I'm sure that wouldn't help. In my app, I have: System.out.println: nothing appears java.util.logging.Logger: nothing appears Servlet.log(): nothing appears When all my other apps start up they leave all sorts of chatter about m

[jboss-user] [JBoss Seam] - Re: Logging using java.util.logging.*?

2007-01-15 Thread SmokingAPipe
I think I know what might be happening. I think there must be a log4j.jar file in one of my ear files because it may be a dependency of something else, which means it has its own classloader which means it isn't picking up the log4j.xml file from jboss. Blah. This stuff is fragile junk. If n

[jboss-user] [JBoss Seam] - Re: Logging using java.util.logging.*?

2007-01-15 Thread SmokingAPipe
Correction: new FileWriter("/tmp/logger.txt", true), so that it will append. I wonder how I can submit this super-secret code to Sun so they might actually make java.util.logging work in a reliable way. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4001719#

[jboss-user] [JBoss Seam] - Re: Logging using java.util.logging.*?

2007-01-15 Thread SmokingAPipe
Success: try { | final FileWriter fw = new FileWriter("/tmp/logger.txt"); | fw.write("log message here, at: " + new java.util.Date() + "\n"); | fw.close(); | } catch(Exception e) { } | Sun's java.util.logging came

[jboss-user] [JBoss Seam] - Re: Logging using java.util.logging.*?

2007-01-15 Thread SmokingAPipe
Even System.out.println is no longer working. This boggles my mind at this point. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4001711#4001711 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4001711 __

[jboss-user] [JBoss Seam] - Re: Logging using java.util.logging.*?

2007-01-15 Thread SmokingAPipe
It's truly bizzar. I'm looking at the console and I see log messages related to creation of message queues, Tomcat deployment, etc, for all applications EXCEPT my two EAR files. There must be something very strange going on. There really should be a JVM flag like -Xlog-for-real-to-the-consol

[jboss-user] [JBoss Seam] - Re: Logging using java.util.logging.*?

2007-01-15 Thread SmokingAPipe
I could try it, but literally NO messages at all are displaying relating to my applications. Not when they deploy, nothing. Absolute silence. Something is very very wrong. I have long wanted Sun to come up with a way to send log messages to the console with absolute certainty. Instead of wo

[jboss-user] [JBoss Seam] - Re: Logging using java.util.logging.*?

2007-01-15 Thread SmokingAPipe
I'm wondering if there is any modified version of rt.jar maybe that a) does not allow modification to the java.util.logging.* classes and b) does not allow messages to be intercepted or otherwise be hidden from the console. Logging is supposed to help me debug. I shouldn't have to spend hours

[jboss-user] [JBoss Seam] - Logging using java.util.logging.*?

2007-01-15 Thread SmokingAPipe
I'm having a very very strange problem: when I run my EAR on my local machine, I get log messages on console. All my beans etc using java.util.logging to send log messages. When I run the exact same EAR file on my production server I get absolute silence on the console from my app. My severe

[jboss-user] [JBoss Seam] - Re: Multiple WARs in one Seam application?

2007-01-14 Thread SmokingAPipe
And... that was indeed the problem. I had two SMPCs that had the same config data. I think this must be an SMPC bug. It sure made me have a most interesting Sunday afternoon. It is now fixed. I understand that SMPC names are going to go through some change when Seam 1.1.1 (?) is out. I wou

[jboss-user] [JBoss Seam] - Re: Multiple WARs in one Seam application?

2007-01-14 Thread SmokingAPipe
Waitaminute I think I'm seeing what the problem must be the SMPC is somehow acting globally. I should try to change the names of my various SMPC references in one or the other of the apps. I have a feeling this may be a bug within SMPC, where it is not properly isolating. And I should / c

[jboss-user] [JBoss Seam] - Re: Multiple WARs in one Seam application?

2007-01-14 Thread SmokingAPipe
Ok, I now have two separate EAR files. I have fixed it so that I have "foo.com" and "bar.com" in both the jboss-web.xml files and in the jboss web server.xml file. Strangely enough the apps seem to work, EXCEPT some entities are now not mapping. and I get exceptions like: Exception during INV

[jboss-user] [JBoss Seam] - Re: Multiple WARs in one Seam application?

2007-01-14 Thread SmokingAPipe
(forgot to add) I'm almost thinking of just moving one of my apps to a different IP address and just running two totally isolated JBosses, but this seems absurd. Web servers could already do multiple virtual hosts over ten years ago so surely this is a stable capability within JBoss. View the

[jboss-user] [JBoss Seam] - Re: Multiple WARs in one Seam application?

2007-01-14 Thread SmokingAPipe
Ok, I assume that the way I do this is: 1. In jboss-web-tomcat.sar/server.xml, I add "host" sections. I should use a symbolic name, like "foo", not a full hostname, like "foo.com". I put in entries for these with real DNS hostnames. 2. In each of the war files jboss-web.xml, I put foo, bar,

[jboss-user] [JBoss Seam] - Re: Multiple WARs in one Seam application?

2007-01-14 Thread SmokingAPipe
Yes I configured them in the jboss-tomcat.sar/server.xml. I also split the application up into two totally separate ear files. Now nothing is working. This is a nightmare. JBoss + Seam offers great promise but literally I have spent 1/4 of my time in this project tracking down configuration

[jboss-user] [JBoss Seam] - Re: Multiple WARs in one Seam application?

2007-01-13 Thread SmokingAPipe
Actually it appears that it is not working. Hmm. It is just giving me "no host matches name". View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4001386#4001386 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4001386

[jboss-user] [JBoss Seam] - Re: Multiple WARs in one Seam application?

2007-01-13 Thread SmokingAPipe
I just now tried it simply by moving the WAR file into the EAR file and modifying the application.xml of the EAR and it worked. Of course the virt. hosts need to be all configured in JBoss' server.xml too. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=40013

[jboss-user] [JBoss Seam] - Multiple WARs in one Seam application?

2007-01-13 Thread SmokingAPipe
Simple question: I have a Seam app that goes into a .ear file. Within that EAR file there is a WAR file with all the web pages. If I want the same application (EAR) to serve more than one domain name with different content (ie, two virtual hosts within the EAR) can I do that just by putting mo

[jboss-user] [JBoss Seam] - Re: please help, conflicting Seam 1.1 and JAXB 2.0

2007-01-10 Thread SmokingAPipe
What I did was I deleted the JAXB jars from the JBoss installation, and I used Java 6, which ships with a built-in JAXB 2, and everthing works fine. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000289#4000289 Reply to the post : http://www.jboss.com/index

[jboss-user] [JBoss Seam] - Re: Error during model data update

2007-01-10 Thread SmokingAPipe
Check for null values in your Trip object. It gets created when the bean starts. Fine. But what about the object fields in Trip? I'm looking at this: #{selectedTrip.startDate.time}. If selectedTrip.startDate is null, that will result in a data model update error on all fields I believe. Wh

[jboss-user] [JBoss Seam] - Re: Entity not persisting from within a Servlet Filter

2007-01-08 Thread SmokingAPipe
You can definitely do this from a filter. I have a servlet that gets an EntityManager. It must get a transaction to work! It can do queries without a transaction but it cannot do writes without one. As for why it can't find a transaction, I have no idea. Maybe post some of your persistence

[jboss-user] [JBoss Seam] - Re: @Factory and @Out: why required=false?

2007-01-08 Thread SmokingAPipe
Hmm, obviously I'm confused. Maybe I was doing something wrong in makeFoo(). I'll try this some more to see what's going on. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999191#3999191 Reply to the post : http://www.jboss.com/index.html?module=bb&op=pos

[jboss-user] [JBoss Seam] - Re: Dealing with JAR conflicts

2007-01-08 Thread SmokingAPipe
Ha! Thank you. That worked. I was also noticing that when I ran my XML binding stuff from the command line, the output was different from when I ran it in JBoss. The reason for this was that JBoss ships with its own jaxb jars, which were conflicting with Java 6's built-in jars. I just delet

[jboss-user] [JBoss Seam] - Re: Dealing with JAR conflicts

2007-01-08 Thread SmokingAPipe
Now I tried setenv doing: setenv JAVA_OPTS '-Xbootclasspath/p:/home/me/MyApp/extras/httpclient.jar' before running JBoss and it still did not work. I could modify Sun's classloader in rt.jar so that it is forced to load all classes from the httpclient from a certain directory, or I could rebui

[jboss-user] [JBoss Seam] - Re: Dealing with JAR conflicts

2007-01-08 Thread SmokingAPipe
I had it print out the classloader in question, and got: [EMAIL PROTECTED] url=file:/usr/java/jboss/server/default/tmp/deploy/tmp2172MyApp.ear | No idea what to make of this, because I can't find ANY place that it could be loading this old version from. I have looked in every jar in the JBo

[jboss-user] [JBoss Seam] - Re: Dealing with JAR conflicts

2007-01-08 Thread SmokingAPipe
Now I am completely baffled. I took apart jbossall-client.jar and replaced the httpclient in there. I checked every jar in the jboss directory for httpclient, and replaced every instance of it. I deleted the tmp work directory with my app. And I still get java.lang.RuntimeException: java.la

[jboss-user] [JBoss Seam] - Re: Dealing with JAR conflicts

2007-01-08 Thread SmokingAPipe
Well, I replaced all those JARs and it didn't seem to help any. The httpclient class files are also contained in a few of the other JARs in JBoss, and replacing it everywhere is not completely easy. Hmm, there must be some way to tell JBoss to use my JAR instead of the built-in JARs. View th

[jboss-user] [JBoss Seam] - Dealing with JAR conflicts

2007-01-08 Thread SmokingAPipe
Here's the problem: My application is using Apache HttpClient to do various things. Unfortunately it absolutely relies on version 3.0 of HttpClient, and also unfortunately, JBoss 4.0.5 is packaged with an older version. When my application tries to call the setRequestEntity method, which doesn

[jboss-user] [JBoss Seam] - Re: Public members as bean properties within EL?

2007-01-07 Thread SmokingAPipe
"[EMAIL PROTECTED]" wrote : That would mean JAXB is not JavaBeans compliant. It's either properties (with getter and setter methods) or fields, not both. I didn't spend a lot of time delving into it, but that's definitely what was happening in my class. I just now made up a very simple test cla

[jboss-user] [JBoss Seam] - @Factory and @Out: why required=false?

2007-01-07 Thread SmokingAPipe
Ok, I'm not understanding something here. I have a SFSB that with a snippet that looks like this: | @Out private Foo foo; | | @Factory("foo") private void makeFoo() { } | and that causes a "foo did not exist but was required" exception when a page is first accessed. This is wit

[jboss-user] [JBoss Seam] - Re: Public members as bean properties within EL?

2007-01-07 Thread SmokingAPipe
Btw this is all with Java 6 (mustang) built-in JAXB. Yes I'm doing everything cutting-edge here. When I started this project I had never used J2EE before, and I started with pre-release Java 6, JBoss Jems Beta 2, and Seam 1.0.0 CR or something. I have had to absorb a ton of different techniqu

[jboss-user] [JBoss Seam] - Re: Public members as bean properties within EL?

2007-01-07 Thread SmokingAPipe
The problem I was running into was that unfortunately JAXB looks at both private fields and getter methods to determine properties, so if I have: | class Foo { |private String name; |public String getName() { return name; } | } | JAXB was giving me an error that there were tw

[jboss-user] [JBoss Seam] - Public members as bean properties within EL?

2007-01-07 Thread SmokingAPipe
I have a class that looks like this: | public class Foo { |public String name; |public String favoriteColor; | } | When I try to access this in EL, using something like #{foo.name} it gives me an exception because it says that "name" is not a bean property. I can fix the pro

[jboss-user] [JBoss Seam] - Re: Simple question: finding the client IP address in a sess

2007-01-06 Thread SmokingAPipe
I did that and it works. That is cool! I didn't even know about factory elements in components.xml. I might set them up for other things I need, like looking at HTTP headers (user-agent, etc). Given that I can traverse maps in EL that should be a piece of cake. I've been in Servlet-world fo

[jboss-user] [JBoss Seam] - Re: Simple question: finding the client IP address in a sess

2007-01-05 Thread SmokingAPipe
Thank you Norman. I put that into my components.xml and now I can do an injection like: @In("#{remoteAddr}") private String ipString; and it works, which is pretty cool. Seam. There's quite a bit of a learning curve but once it is working it's pretty cool stuff. View the original post : h

[jboss-user] [JBoss Seam] - Simple question: finding the client IP address in a session

2007-01-05 Thread SmokingAPipe
Let's say I'm writing a session bean that does logins. I may want to log the client IP addresses as they make their attempts. Is there some elegant Seam-style injection way to get an IP address? I tried this: @In("#{request.remoteAddr}") private String ipString; but it did not work. View t

[jboss-user] [EJB 3.0] - Customizing the persistence of an embedded object

2006-12-31 Thread SmokingAPipe
Simple question: I have a class that uses an embedded object that's not an entity, like this: | @Entity | public class LogMessage { |private java.util.logging.Level level; | } | Right now, the way that handles it is it creates a bytea column to store the level. Of course that's

[jboss-user] [Messaging, JMS & JBossMQ] - Re: Sending Entities in Messages?

2006-12-28 Thread SmokingAPipe
Ah, never mind that one. My MDB wasn't in my beans jar, and even JBoss isn't psychic, so... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996759#3996759 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996759

[jboss-user] [Messaging, JMS & JBossMQ] - Re: Sending Entities in Messages?

2006-12-28 Thread SmokingAPipe
I just now looked at the JMX console and I didn't see my queue/TestQueue anywhere in it, so obviously JBoss isn't registering that MDB. Hmmm. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996747#3996747 Reply to the post : http://www.jboss.com/index.html?

[jboss-user] [Messaging, JMS & JBossMQ] - Re: Sending Entities in Messages?

2006-12-28 Thread SmokingAPipe
I have all this set up, and I'm getting: javax.naming.NameNotFoundException: TestQueue not bound | at org.jnp.server.NamingServer.getBinding(NamingServer.java:529) | at org.jnp.server.NamingServer.getBinding(NamingServer.java:537) | at org.jnp.server.NamingServer.getO

[jboss-user] [Messaging, JMS & JBossMQ] - Re: Sending Entities in Messages?

2006-12-28 Thread SmokingAPipe
I realize that JBoss/MQ is dead because JBoss Messaging is going to replace it in the upcoming JBoss 5. Are there any good quick-start guides for doing this simple thing? In a regular Java program, I would create a worker thread, but obviously in an enterprise environment, we don't want to cre

[jboss-user] [JBoss Seam] - Re: Getting LazyInitializationErrors with a SMPC

2006-12-27 Thread SmokingAPipe
I now have Facelets working and am moving pages over from JSP-style <% include(... to using proper Facelet Templates. I have look at various template systems (both Java and PHP) and this one is the best. It produces well-formed output every time and lets me easily define a real page template t

<    1   2   3   4   >