[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: TLS extension for hostnames

2008-11-19 Thread EricJava
"[EMAIL PROTECTED]" wrote : If you use APR (jbossweb native) the answer is: not it doesn't if (open a JIRA for it). I may do that. "[EMAIL PROTECTED]" wrote : If you use JIO it is supported if the JVM supports it. | Note that only very new browsers support it. I use JBoss AS 4.2.3 in its def

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: PHP on TOMCAT

2008-11-19 Thread EricJava
"[EMAIL PROTECTED]" wrote : JBoss propose a php extension via a php-servlet see http://www.jboss.org/jbossweb/modules/php/index.html | postgresql is included in the bundle. That's cool, but I would much rather use Quercus if possible. PHP's binaries have had enough security holes over the yea

[jboss-user] [Beginners Corner] - Re: Help us learn how Feature Requests R gathered

2008-11-18 Thread EricJava
"plaurentphd" wrote : My name is Paula Laurent. I’m a Computer Science PhD student at DePaul University conducting research on soliciting and prioritizing requirements. The goal of this research is to find out about the current requirements processes used in Open Source projects. Hi Paula

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: PHP on TOMCAT

2008-11-18 Thread EricJava
With some difficulty, I got Quercus to talk to the Postgres JDBC. It requires a very precise JNDI config. Anyway, it works, and I feel that any PHP app that requires only one database to interact with would have a very good shot at running smoothly in Quercus under JBoss or Tomcat. Unfortunat

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: PHP on TOMCAT

2008-11-18 Thread EricJava
"EricJava" wrote : You can run PHP without even needing to use any of the PHP binaries. Check out http://www.caucho.com/resin-3.0/quercus/ And I just now tried it out in Tomcat 6.0.18, and it was super-simple. 1. Download Resin. I grabbed Resin 3.1.8. 2. Unzip it 3. Grab two JAR

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: PHP on TOMCAT

2008-11-18 Thread EricJava
You can run PHP without even needing to use any of the PHP binaries. Check out http://www.caucho.com/resin-3.0/quercus/ I'm about to try it out to see if I can get pgAdmin running in it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4190297#4190297 Reply t

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - TLS extension for hostnames

2008-11-18 Thread EricJava
TLS has a cool feature which makes it easy to do virtual hosts, with TLS, all on one IP address. From: http://www.faqs.org/rfcs/rfc3546.html 3.1. Server Name Indication | |TLS does not provide a mechanism for a client to tell a server the |name of the server it is contacting. It

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Booting faster by deleting stuff

2008-11-03 Thread EricJava
Ok, my brain did not do its duty just now. That's not an error, that's normal startup I believe. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186536#4186536 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186536

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Always starting with -b 0.0.0.0 option

2008-11-03 Thread EricJava
"PeterJ" wrote : Two possibilities: | | 1) Edit the run.sh so that is always supplies '-b 0.0.0.0' | | 2) Create a new shell script and have it execute the run.sh script passing -b 0.0.0.0 | | I prefer option 2. A really good option for the script in #2 is to start and stop JBoss w

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Booting faster by deleting stuff

2008-11-03 Thread EricJava
I did some more checking. I took the fresh jboss-4.2.3.GA-jdk6.zip file straight from the download site, I unzip it, I run it, and I get that invoker error shown above. This is pretty strange. It shouldn't be erroring as a fresh install, should it? What could be causing this? View the orig

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Booting faster by deleting stuff

2008-11-03 Thread EricJava
Thanks, I'm going through that to figure out what I can delete and how to do it in a way that doesn't result in errors. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186527#4186527 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mod

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: PHP with JBoss Application Server?

2008-11-03 Thread EricJava
Yes, it can be done. It's just a web application. Take a look at http://www.caucho.com/resin-3.0/quercus/ . View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186524#4186524 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Booting faster by deleting stuff

2008-11-03 Thread EricJava
What are the services in the default profile that we can safely get rid of? A lot of stuff is running, and I don't understand what all of it is. I know that some of it, like JBossMQ, are legacy things that we never use, but when I delete it, I get errors while starting. I would like to be abl

[jboss-user] [JBossMQ] - How to delete JBossMQ from the JBoss AS default profile?

2008-11-03 Thread EricJava
We're not using it. It exposes unsecured URLs to the web. We'd like to either disable it or just delete the whole thing. But if I delete the SAR directory, I start getting errors on boot: Creating service jboss:service=NamingBeanImpl | 2008-11-03 17:50:27,926 DEBUG [org.jboss.system.Service

[jboss-user] [JBoss Tools (users)] - Re: A bug with displaying CSS background images?

2008-04-08 Thread EricJava
Hi Max, Thanks for the answer. It looks like there is a smaller bug in 2.01 which caused in-line styles to fail. According to Andrei it's fixed in JBossTools-2.1.0.Beta1-ALL-win32. If you could let me know where I could download that, I'll give it a try. The external CSS linked image bug

[jboss-user] [JBoss Tools (users)] - Re: A bug with displaying CSS background images?

2008-04-07 Thread EricJava
Any word on a fix for this? This is a critically bad bug for our designer, because he needs to position text over images correctly. Right now, he's doing that part of the design in DW and pasting it over. That is not a good development process. When is a fixed version of WTP coming out? Tha

[jboss-user] [JBoss Tools (users)] - Re: When I hit

2008-04-07 Thread EricJava
We got WTP 2.0.1 installed and it now publishes correctly. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142228#4142228 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142228 ___

[jboss-user] [JBoss Tools (users)] - Re: upgrade to WTP 2.0.2 breaks EAR deployment in JBoss Tool

2008-04-04 Thread EricJava
I tried this patch: http://download.eclipse.org/webtools/patches/drops/R2.0.2/P-P20080325024219-20080325024219/ and it did not help. Any ideas on how we can fix this? I'm not sure how to downgrade the WTP. It came with the Eclipse bundle I got from their site. View the original post : http

[jboss-user] [JBoss Tools (users)] - Re: upgrade to WTP 2.0.2 breaks EAR deployment in JBoss Tool

2008-04-04 Thread EricJava
"[EMAIL PROTECTED]" wrote : I haven't heard this should be windows specific issue befor though... It could be that I'm running a different version? I just grabbed Europa J2EE from the Eclipse site, and maybe their package for Windows vs. for Linux has different WTP versions? Is there a way to

[jboss-user] [JBoss Tools (users)] - Re: upgrade to WTP 2.0.2 breaks EAR deployment in JBoss Tool

2008-04-04 Thread EricJava
I did the "get updates" thing and the problem is still there. Would it help to (for now) manually copy the jar files over? This is a critical, show-stopper, serious bug. I hope it can get fixed soon. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141797#4141

[jboss-user] [JBoss Tools (users)] - Re: upgrade to WTP 2.0.2 breaks EAR deployment in JBoss Tool

2008-04-04 Thread EricJava
I'm hitting exactly the same phenomenon. It can't find the jboss-seam.jar, because none of the ear's jars are copied. What's uber-strange is that it works on Linux but not on Windows. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141569#4141569 Reply to t

[jboss-user] [JBoss Tools (users)] - When I hit "run", somehow the EAR JARs don't copy over

2008-04-04 Thread EricJava
I have a Seam project, and when I hit run, it copies stuff over, but with in the -ear directory, it only has the WAR and the META-INF directories. It doesn't copy any of the JARs referenced in META-INF/application.xml. What's strange is that the same project works when I do that on my Linux ma

[jboss-user] [JBoss Tools (users)] - Re: A bug with displaying CSS background images?

2008-04-03 Thread EricJava
I think I found some JBIDE reports on this: http://jira.jboss.org/jira/browse/JBIDE-1960 and a couple others with similar types of problems. It's strange that it works fine on my Linux box, but not on a Windows box. I hope we'll get a fix for this stuff soon because it's a major problem for vi

[jboss-user] [JBoss Tools (users)] - A bug with displaying CSS background images?

2008-04-03 Thread EricJava
Strange situation: I'm editing some XHTML files. I can use styles with a background image when running Tools on my Linux machine, and the BG image shows up fine. When I run the same files on my Windows machine, the BG image does not show up in the preview window. Any idea what could be happen

[jboss-user] [JBoss Tools (users)] - Re: How does -test project reference dependent libraries?

2008-03-22 Thread EricJava
I think that Eclipse knows about more stuff than what is in META-INF. I think it has some metadata elsewhere that tells it about dependencies. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138461#4138461 Reply to the post : http://www.jboss.com/index.html?

[jboss-user] [JBossWS] - Re: Specifying the server's URL in the client?

2008-02-13 Thread EricJava
Hello Oskar, Thanks for the suggestion. I tried that. After doing it that way, I had the problem of needing to use JAXB to put my parameters into the SOAPBody. That worked, but then I got unsolvable class conflicts where I got to this: [java] Exception in thread "main" com.sun.xml.ws.s

[jboss-user] [JBossWS] - Re: WebService response problem

2008-02-13 Thread EricJava
It's this: [java] Exception in thread "main" com.sun.xml.ws.streaming.XMLStreamReaderException: XML reader error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1] | [java] Message: Premature end of file. | [java] at com.sun.xml.ws.streaming.XMLStreamRead

[jboss-user] [JBossWS] - Re: WebService response problem

2008-02-13 Thread EricJava
I'm running into exactly the same thing. I have put the following jars in my lib/endorsed directory: jaxb-api.jar jboss-jaxws-ext.jar jboss-saaj.jar xalan.jar | jboss-jaxrpc.jar jboss-jaxws.jar serializer.jar xercesImpl.jar | but I'm still getting the error. Is there one mor

[jboss-user] [JBossWS] - Re: Specifying the server's URL in the client?

2008-02-11 Thread EricJava
No one has any ideas on this? Right now it looks like my options are either a) the client must fetch the WSDL every single time it makes a request, or b) the server's URL must be hard-coded in the WSDL file that is bundled with the client. Neither of these are good. There's no reason at all fo

[jboss-user] [JBoss Seam] - A web service with attachments in Seam?

2008-02-11 Thread EricJava
I'm trying to make a simple web service using everyone's favorite framework (Seam of course). Getting it started is easy: put on a @WebService annotation on a SBSB, deploy it, and it's working. That's cool. Now I want to have that web service receive attachments. Does anyone have pointers fo

[jboss-user] [JBossWS] - Re: SOAP with Attachment in JBoss 4.0.4 GA

2008-02-10 Thread EricJava
I'm wondering the same thing, except I'm using AS 4.2.2, and can switch to 5.0 if it makes it easier. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128255#4128255 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p

[jboss-user] [JBossWS] - Specifying the server's URL in the client?

2008-02-10 Thread EricJava
Simple question: What's the right way to set the server's URL from within the client? The reason I ask is because I'll be distributing a client. The user will be able to choose which server to connect to. Other people will run servers; I don't even know what the servers will be. Unfortunatel

[jboss-user] [JBossWS] - Re: Generating a WSDL statically (from ant?)

2008-02-09 Thread EricJava
I got the command line tool to work, and figured out a few things: 1. I don't need to download the JBoss WS packages. Everything comes with JBoss AS, including the command line tools. 2. The wsprovide.sh command works easily, with very simple command line arguments. 3. However, it does NOT wo

[jboss-user] [JBossWS] - Generating a WSDL statically (from ant?)

2008-02-09 Thread EricJava
As we all know, "JBoss is cool". Using JBoss AS 4.2.2 and Seam 2.0.1, I set up a web service bean by simply annotating a class with @Stateless @WebService, and then annotated a method with @WebMethod, and presto, I have a working web service. On the other side of things, I quickly built a clie

[jboss-user] [JBoss Seam] - Re: Correct way to start conversation

2008-02-08 Thread EricJava
On your method annotated with @Begin, do you have @Begin(join=true)? I know you have join on the s:link but I think it needs to be on the @Begin annotation. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128039#4128039 Reply to the post : http://www.jboss.c

[jboss-user] [JBoss Seam] - Re: When to use @PersistenceContext vrs @In EntityManager (S

2008-02-06 Thread EricJava
Use SMPC for everything. Is there any reason not to? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127243#4127243 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127243 ___ j

[jboss-user] [JBoss Seam] - Re: An annotation I would like to see: @Trim

2008-02-06 Thread EricJava
I just looked up Interceptors in my EJB3 book, and it looks pretty simple. I had ignored it before because I didn't think I had any reason to mess with them, but now it looks like it's a great fit for this type of need. I'll post an article on it when it's done, and link it on this thread. Vi

[jboss-user] [JBoss Seam] - Re: An annotation I would like to see: @Trim

2008-02-06 Thread EricJava
Certainly I will. I post articles all the time in my blog, with source code to do things I think are useful: http://chiralsoftware.com/Blog One of them even got included in Seam 2.0.1! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127154#4127154 Reply to

[jboss-user] [JBoss Seam] - Re: An annotation I would like to see: @Trim

2008-02-06 Thread EricJava
"kasim" wrote : Couldnt you just put an interceptor on the Entity bean? Hey that's a good idea. I've never written one. Maybe now is the time to try it out. Basically all my string setters should have trim() on them. View the original post : http://www.jboss.com/index.html?module=bb&op=viewt

[jboss-user] [JBoss Seam] - An annotation I would like to see: @Trim

2008-02-06 Thread EricJava
Here's an idea / wish I've had for a long time: Most of the fields in most of my biz objects are strings. Usually they are strings which should always be trimmed, so most of my setter methods look like: public void setCity(String city) { | if(city == null) { | this.city = null; |

[jboss-user] [JBoss Seam] - Re: ui:insert and setting values

2008-02-03 Thread EricJava
Ok, I figured out a way to do this which works nicely. I simply use: etc. It works. Is this the right way? I remember seeing somewhere that it's bad to use the http://java.sun.com/jstl/core tags within Facelets, so, for example, I never use or those things. Is this good advice? Can anyo

[jboss-user] [JBoss Seam] - ui:insert and setting values

2008-02-03 Thread EricJava
Simple question: I'm defining a template which I want to display one of the defined items twice. For example, here's what the template looks like: | Here it is the first time: | | And now we see it again: | | And that works correctly. Next step, I would like to have diffe

[jboss-user] [JBoss Seam] - Re: EntityManager is Null inside Constructor

2008-02-03 Thread EricJava
Yes, if you think about it, there's no way injection could occur before the constructor. There's no object to inject into! In all my Seam managed components, the constructor does little or nothing beyond setting default values for some fields. You can use the @Create annotation (I believe it i

[jboss-user] [JBoss Seam] - Re: s:link without the href? Only for the onclick

2008-02-02 Thread EricJava
That's a good idea. I could. The advantage is that by doing that, it could refresh the values (just in case they have changed), or otherwise check that the object in question is still editable. I guess the round-trip time for doing that would be minimal. I'll try it both ways and see how it

[jboss-user] [JBoss Seam] - Re: s:link without the href? Only for the onclick

2008-02-02 Thread EricJava
That was not so clever of me. I should have had "return false" instead of just "false". Obviously I'm not a JavaScript programmer, which is why I love RichFaces, so I can avoid having to do JS programming. Which leads me to my question: is there some way of doing this in RichFaces, perhaps us

[jboss-user] [JBoss Seam] - s:link without the href? Only for the onclick

2008-02-02 Thread EricJava
Simple question here: I'm setting up my entire site in such a way that it will display pages, and the various sections of the page will have an "edit" button next to them. When the user clicks "edit", there is a DHTML operation that transforms the static display into a form. The user can then

[jboss-user] [JBoss Seam] - Using @In to get the Hibernate session

2008-01-31 Thread EricJava
I'm using SMPC, and Hibernate is the underlying provider. I can't live without Criteria queries. Is it reasonable to do this: @In("#{entityManager.delegate}") | private Session session; ? My entire app won't work without using Hibernate as the provider, and I need to use getDelegate() any

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Storing large objects in the DB?

2008-01-30 Thread EricJava
My application allows users to attach images to many different objects in the DB. It also allows PDFs etc to be attached. These types of attachments are typically in the 100s of K, or maybe up to a couple of MB. I know that there are two camps on this. One, put attachments on disk as plain f

[jboss-user] [JBoss Seam] - Re: s:fileupload and a4j

2008-01-30 Thread EricJava
Uploads are a tricky thing. One way to do them is to use an iframe for the upload, which can then update its parent frame. The other, better way is to use an applet. The big advantages of an applet is it allows file browsing and previewing, and allows the upload to happen without needing to

[jboss-user] [JBoss Seam] - I'm the first to download it!

2008-01-30 Thread EricJava
I check the Seam download page, as I do every morning, and saw Seam 2.0.1 GA, with zero downloads! Well, now there has been one download and I'll switch my app over this morning. I have been using CR1 and CR2 and they have been fine. Congratulations Team Seam. View the original post : http

[jboss-user] [JBoss Seam] - Re: SFSB vs. JavaBean

2008-01-28 Thread EricJava
Pete and Jacob, thanks for the info on that. That clarifies a lot of things. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124183#4124183 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124183 _

[jboss-user] [JBoss Seam] - Re: failed to lazily initialize a collection

2008-01-27 Thread EricJava
I use the Seam-managed persistence context (@In private EntityManager entityManager) and conversation scope, and that cures all these things. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123861#4123861 Reply to the post : http://www.jboss.com/index.html?mo

[jboss-user] [JBoss Seam] - Re: @Restrict on POJOs?

2008-01-26 Thread EricJava
That's what I thought. The documentation needs to be corrected or clarified. "Declarative security" sounds like JBoss Rules-based security, using the @Restrict annotation. I just wanted to confirm that before I build this system on 90% POJOs, because it's going to use Drools security rules fo

[jboss-user] [JBoss Seam] - @Restrict on POJOs?

2008-01-26 Thread EricJava
Looking at the Seam documentation, it says: anonymous wrote : Javabeans may be used just like a stateless or stateful session bean. However, they do not provide the functionality of a session bean (declarative transaction demarcation, declarative security, efficient clustered state replication,

[jboss-user] [JBoss Seam] - Re: JBoss Seam, a great product that doesn't work :(

2008-01-26 Thread EricJava
Well, it says "No META-INF/application.xml found". Is there an application.xml file? There needs to be one. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123785#4123785 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=

[jboss-user] [JBoss Seam] - Re: SFSB vs. JavaBean

2008-01-26 Thread EricJava
"msystems" wrote : Must be an error ! Seam POJO's are default EVENT (request) scoped and not conversation or temp. conversation scoped. Indeed: http://docs.jboss.org/seam/2.0.1.CR2/reference/en/html/concepts.html anonymous wrote : By default, JavaBeans are bound to the event context. which is

[jboss-user] [JBoss Seam] - Re: JBoss Seam, a great product that doesn't work :(

2008-01-25 Thread EricJava
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#412

[jboss-user] [JBoss Seam] - Re: JBoss Seam, a great product that doesn't work :(

2008-01-25 Thread EricJava
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

[jboss-user] [JBoss Seam] - Re: SFSB vs. JavaBean

2008-01-25 Thread EricJava
"[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

[jboss-user] [JBoss Seam] - Re: SFSB vs. JavaBean

2008-01-25 Thread EricJava
"[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

[jboss-user] [JBoss Seam] - Annotations and class inheritance

2008-01-25 Thread EricJava
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.

[jboss-user] [JBoss Seam] - Re: s:link + method parameter

2008-01-24 Thread EricJava
I ran into the same thing. Rather than using DataModel, I simply put an inside the , and then I used a @RequestParameter annotation. It's a bit more verbose but it's clear what it does and how it works. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=412324

[jboss-user] [JBoss Seam] - Re: SFSB vs. JavaBean

2008-01-24 Thread EricJava
"[EMAIL PROTECTED]" wrote : This is scope to the request scope by default - so it is stateful across the request but its *not* conversational. | | @Name("pojo") | | class Pojo {} Wait, I thought conversation scope was the default scope? It is for SFSBs, right? If I annotate my bean wi

[jboss-user] [JBoss Seam] - Re: Tricky Q on Hibernate filters and roles

2008-01-24 Thread EricJava
I think I know what I should do. 1. Go ahead and use a filter if I want to, for my convenience, but not as a security mechanism. 2. Put a @Restrict annotation on the entities, and then use JBoss Rules to restrict various operations by roles, etc. So I could say, a sysadmin can look at any obj

[jboss-user] [JBoss Seam] - Re: Tricky Q on Hibernate filters and roles

2008-01-23 Thread EricJava
"nickarls" wrote : There is hope: http://jcp.org/en/jsr/detail?id=317 That would be really nice. I can't wait. Criteria type queries and collections of embedded objects are the two things I want most. Why can't my entities have a boring old Set in them? Let's hope this comes out soon! View

[jboss-user] [JBoss Seam] - Re: Tricky Q on Hibernate filters and roles

2008-01-23 Thread EricJava
Thanks for the reference on that. In this case, I won't use filters. Instead, on my session beans, I'll modify the query: if the user doesn't have sysadmin role, then add the "domain = ..." to every query. Btw I really hope that a future release of EJB spec adds something like the Hibernate C

[jboss-user] [JBoss Seam] - Tricky Q on Hibernate filters and roles

2008-01-23 Thread EricJava
Here's the situation: I'm creating a site where users can collaborate to work on data as a group. I'm calling a set of data for a set of users a "domain". Every user is a member of exactly one domain, and of course users can only access data within their own domain. On top of this, there are

[jboss-user] [JBoss Seam] - Re: Don't use DTDs in your .xml files

2007-12-31 Thread EricJava
Done: http://jira.jboss.org/jira/browse/JBSEAM-2441 But this really is a long-standing bug / deficiency in dom4j. It should have various configuration options of what to do if a DTD can't be found: 1. Silently ignore the problem and continue parsing 2. Throw an exception that says, "I don't ha

[jboss-user] [JBoss Seam] - Re: Don't use DTDs in your .xml files

2007-12-30 Thread EricJava
"yilmaz_" wrote : That is not true. Scheme provides validation templates for your xml file. Right, but the point is, if the parser can't find the schema file, it doesn't try to fetch it over the net. "yilmaz_" wrote : If dom4j can not find it. It downloads it from internet. And I'm making the

[jboss-user] [JBoss Seam] - Don't use DTDs in your .xml files

2007-12-29 Thread EricJava
Here's a quick blog entry on some of the fun that can arise when using DTD declarations in your .xml files within Seam: http://chiralsoftware.com/blog/No-route-to-host-while-parsing-b6b5f0cbb79e5cd8.html Short conclusion: don't. View the original post : http://www.jboss.com/index.html?module=

[jboss-user] [JBoss Seam] - Re: A customer JSF tag to display Graphics2D in Seam PDF out

2007-12-21 Thread EricJava
"[EMAIL PROTECTED]" wrote : I couldn't think of a good name. Component is too generic. JSF component. AWT component. Seam component? To me "swing" is synonymous with Java GUI components. So p:swing, despite not being technically correct, seemed to me to be the only thing captured the idea

[jboss-user] [JBoss Seam] - Re: What does it take for a POJO to promote a conv. to long-

2007-12-21 Thread EricJava
Will do, after I solidly confirm it with a test case. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115123#4115123 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115123 ___ j

[jboss-user] [JBoss Seam] - Re: Seam in Real World: Made with Seam

2007-12-21 Thread EricJava
Made with Seam: http://gamerdental.com/ . It's not up yet but it is based purely on JBoss Seam. Why would a dentist need Seam? We're going to have a patient login area, with all kinds of functionality, made easy with Seam. Seam's role-based security will be a help on that. And in the public

[jboss-user] [JBoss Seam] - Re: What does it take for a POJO to promote a conv. to long-

2007-12-21 Thread EricJava
I found out what was messing me up. I had a page with a4j:mediaOutput. The method that was creating the media output was driving me crazy because it was ignoring the conversation! Well, of course it was, because conversations don't propagate "through" a mediaOutput. I think that may be a bug

[jboss-user] [JBoss Seam] - Re: A customer JSF tag to display Graphics2D in Seam PDF out

2007-12-20 Thread EricJava
"[EMAIL PROTECTED]" wrote : BTW - I didn't quite follow why you had a problem with rendering your charts with the built-in charting. Just looking at the code, I see no reason why your charting subclass wouldn't have been rendered in the Graphics2D context that I use for our charts. I'm not f

[jboss-user] [JBoss Seam] - Re: A customer JSF tag to display Graphics2D in Seam PDF out

2007-12-20 Thread EricJava
Yes indeed! In my blog post, I wrote: anonymous wrote : One interesting thing to notice is that this button is using the Linux look-and-feel, because, in this case, the server was running Linux. If this server had been running on some other operating system, the button would, by default, take

[jboss-user] [JBoss Seam] - Re: A customer JSF tag to display Graphics2D in Seam PDF out

2007-12-20 Thread EricJava
"[EMAIL PROTECTED]" wrote : http://jira.jboss.com/jira/browse/JBSEAM-2414 Thanks Norman! I made another blog post on it: http://chiralsoftware.com/blog/JFreeCharts-in-PDF-with-JSF-and-c47ae72d938fe060.html This post discusses using the tag to put JFreeChart charts into a PDF. Bottom line: you

[jboss-user] [JBoss Seam] - What does it take for a POJO to promote a conv. to long-runn

2007-12-20 Thread EricJava
Let's say I have a POJO like this: @Name("item") public class Item { // } What exactly do I need to put on that POJO to have it promote a conversation to a long-running conversation, and install itself in that conversation? It seems like it's possible to do this but I'm never completely sur

[jboss-user] [JBoss Seam] - Re: A customer JSF tag to display Graphics2D in Seam PDF out

2007-12-19 Thread EricJava
"[EMAIL PROTECTED]" wrote : That's very nice. If you'd like to contribute this back to Seam, I'd be happy to include it in the next release. Certainly! I would be honored. I hereby release copyright for that code. Contact me: eric *at* chiralsoftware d0t net if you need something more formal

[jboss-user] [JBoss Seam] - Re: A customer JSF tag to display Graphics2D in Seam PDF out

2007-12-19 Thread EricJava
Right, I mentioned that: "Before we go any further: why don't we use the Seam pdf:image tag, instead of writing a new tag? " The problem is that that will result in PDFs that don't look so good and can't be accessed by search engines (yes, I might want search engines to read my chart legend an

[jboss-user] [JBoss Seam] - A customer JSF tag to display Graphics2D in Seam PDF output

2007-12-18 Thread EricJava
I posted a long blog entry, along with source code, about how to create a custom JSF tag to do more in Seam PDF: http://chiralsoftware.com/blog/JBoss-Seam-iText-PDF-custom-JSF-4642a90cb4d7412d.html The motivation: I wanted to be able to include arbitrary java.awt.Component s in the output, so I

[jboss-user] [JBoss Seam] - Re: Erratic behavior of actions (JBoss AS 4.2.2 / Seam 1.2.1

2007-12-03 Thread EricJava
I think it may be an erratic browser issue, not a Seam issue. It just now worked fine in IE, but not in FF. The customer is using 100% IE so I won't try to debug this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109952#4109952 Reply to the post : http:

[jboss-user] [JBoss Seam] - Erratic behavior of actions (JBoss AS 4.2.2 / Seam 1.2.1)

2007-12-03 Thread EricJava
Really weird: I have a form that uses an EntityHome extension. The persist and delete buttons take two or three tries for them to work. I know this sounds really strange, but I'll have the form up, and click "delete", and nothing happens. I click again, and it says "successfully deleted". I'

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: -Djboss.bind.address not working anymore (4.2.2)?

2007-12-03 Thread EricJava
Yes, I've added it to JAVA_OPTS, and it doesn't do anything. -D makes it seem like a System property, but it looks like org.jboss.Main doesn't want it provided as a system property. Unfortunately, in run.conf, you can only add things to JAVA_OPTS. There's nothing in there to add arguments for

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: -Djboss.bind.address not working anymore (4.2.2)?

2007-12-03 Thread EricJava
But the -D option isn't an argument to org.jboss.Main. It's only an argument to the JVM. The Java class never sees it as a command line argument. All that happens is the system property gets set. I don't see how it could be preserved in that code. And my tests show -Djboss.bind.adress has n

[jboss-user] [Installation, Configuration & DEPLOYMENT] - -Djboss.bind.address not working anymore (4.2.2)?

2007-12-02 Thread EricJava
I know that the -b 192.168.1.1 argument works fine, but -Djboss.bind.address=192.168.1.1 should work just the same way. But it doesn't seem to have any effect. I looked at org.jboss.Main, in the process arguments function, it says: // JBAS-4119, bind to localhost by default, instead of

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Does Postgres work with JBoss 4.2.2?

2007-11-19 Thread EricJava
Um, that was stupid. Wrong file name for the XML file. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105913#4105913 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105913 ___

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Does Postgres work with JBoss 4.2.2?

2007-11-19 Thread EricJava
No matter what I try, I get: 08:18:52,213 ERROR [URLDeploymentScanner] Incomplete Deployment listing: | | --- Packages waiting for a deployer --- | [EMAIL PROTECTED] { url=file:/usr/java/jboss/server/default/deploy/postgres-dsl.xml } | deployer: null | status: null | state: INI

[jboss-user] [JBoss Seam] - Queries with optional arguments

2007-11-04 Thread EricJava
I've got a Seam application, and now I'm writing the search page. It has advanced search options. For example, there is a drop-down where the user can select the customer, so it will only find records for that customer. If the drop-down isn't used, it will find records from any customer. An

[jboss-user] [JBossWS] - JSON output?

2007-11-01 Thread EricJava
Simple question: Does anyone know of a good way to respond to requests with JSON instead of XML? I know, XML is the better way to do things but JSON is a fact of life for many JS libraries. I notice there is a feature request on this: http://jira.jboss.com/jira/browse/JBWS-1165 but I could fi

[jboss-user] [EJB 3.0] - Treating a long as a Date within EJB QL?

2007-10-31 Thread EricJava
Background: Moments in time are best stored as number of miliseconds from the start of epoch. That's what we do in our DB. All time values are stored as 64-bit integers, and creating java.util.Date s from these is easy: new Date(l). Now comes the question: how do I handle this in EJB QL querie

[jboss-user] [JBoss Seam] - Re: ajax4jsf mediaOutput in Seam?

2007-10-29 Thread EricJava
D'OHH! element="image" does not work. element="img" does work. Recommendation: maybe mediaOutput should give some kind of warning when it is an unknown type of element? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100056#4100056 Reply to the post : htt

[jboss-user] [JBoss Seam] - ajax4jsf mediaOutput in Seam?

2007-10-25 Thread EricJava
I'm trying to use mediaOutput in Seam: (1.2.1): The chartGenerator.paint method never gets called; the whole thing is ignored. In fact if I change the name "paint" to something else that isn't even a method on that class, it doesn't throw any exceptions or do anything. I searched around the

[jboss-user] [JBoss Seam] - Re: Workaround for bug JBSEAM-1322?

2007-10-12 Thread EricJava
I made the change to the code suggested in the bug comments, recompiled, and it now works fine. So I have my own patched version of it. Fortunately the build script in Seam works great with no external dependencies so recompiling the whole thing is trivial. View the original post : http://ww

[jboss-user] [JBoss Seam] - Workaround for bug JBSEAM-1322?

2007-10-12 Thread EricJava
http://jira.jboss.com/jira/browse/JBSEAM-1322 I'm hitting it, getting: java.lang.ArrayIndexOutOfBoundsException: 2048 | at org.jboss.seam.web.MultipartRequest.checkSequence(MultipartRequest.java:466) | at org.jboss.seam.web.MultipartRequest.parseRequest(MultipartRequest.java:333) | at org

[jboss-user] [JBoss Seam] - Re: Cleaner RESTful urls? Any suggestions?

2007-09-13 Thread EricJava
"[EMAIL PROTECTED]" wrote : So, these are rumors and hearsay posted on random weblogs. Is there any link, like, to Googles own description of its bot? These are not rumors and hearsay, these are solidly documented facts. They are so well-known that they are common knowledge, and it may be hard

[jboss-user] [JBoss Seam] - Re: Cleaner RESTful urls? Any suggestions?

2007-09-12 Thread EricJava
Having the right URLs is vitally important for any type of SEO or search engine indexing of your site. http://example.com/products.seam?productId=48484 is a lot worse than http://example.com/products/LawnDarts/super-penetrating-dart-484842 View the original post : http://www.jboss.com/index

[jboss-user] [JBoss Seam] - Long-running conversations and EntityHome

2007-09-12 Thread EricJava
EntityHome is quite a useful class. Extend it, and you can create, update, and delete entities easily. The problem with it is that it's a POJO. I tried everything I could think of, but could not get it to exist in a long-running conversation. This limits its usefulness. So, I created a loca

[jboss-user] [JBoss Seam] - instanceof in Expression Language?

2007-09-04 Thread EricJava
I can see that instanceof is a reserved word, but is it implemented? I'm displaying a table with links to detail pages. But those pages will be different depending on what sub-type of object is in the table. It would be great to be able to say: rendered="shape instanceof Rectangle" and then h

[jboss-user] [JBoss Seam] - Re: JavaScript events on s:fileUpload?

2007-08-23 Thread EricJava
Looks like I might be able to achieve this with the a:jsFunction component. That lets me call into the whole JSF framework from a plain JS function. I can get a JS function to trigger when the file upload field is changed. And that could then trigger something with a:jsFunction. I did try to

  1   2   >