[jboss-user] [JBossWS] - Configured DII Not Working

2007-07-19 Thread c_eric_ray
JBoss 4.0.5.GA/JBossWS 1.0.3 This code from the User's Guide does not work. Any ideas? String endpoint = http://redbull:8080/ping/Ping;; | String namespace = http://ls.vicor.com/ws;; | | ServiceFactory factory = ServiceFactory.newInstance(); | URL

[jboss-user] [JBoss Seam] - Re: selectDate not popping up on click

2007-06-29 Thread c_eric_ray
I'm using firefox and it doesn't work. Seam 1.2.1, JBoss AS 4.0.5.GA View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4059337#4059337 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059337

[jboss-user] [JBoss Seam] - selectDate not popping up on click

2007-06-27 Thread c_eric_ray
link href=../css/date.css rel=stylesheet type=text/css / | | h:inputText id=startDateInput value=#{licensePoolEntity.startDateAsDate} | s:convertDateTime pattern=MM/dd// | /h:inputText | s:selectDate for=startDateInput startYear=2007 endYear=2099 format=MM/dd/yyy | img

[jboss-user] [JBoss Seam] - @Startup clarification

2007-05-14 Thread c_eric_ray
When using the depends attribute which of the following is correct. 1. Fully qualified name of Bean Interface - com.whatever.Customer 2. Fully qualified name of Bean - com.whatever.CustomerBean 3. Name of Seam component - @Name(customer) So when defining my seam component and using the @Startup

[jboss-user] [JBoss Seam] - Spawning a thread from a seam component

2007-05-11 Thread c_eric_ray
Is this safe and if so is there a recommended pattern? Do I need to use Asynch.getAsynchronousProxy method to do this and can I just create a Thread object and call start(). Any feedback is appreciated. View the original post :

[jboss-user] [JBoss Seam] - Re: Spawning a thread from a seam component

2007-05-11 Thread c_eric_ray
Please explain what you mean by disallowed though possible in the EJB container. I've only been developing EJBs for about a year and I'm still learning. Where's a good place to look for information about threading inside an EJB container? Thanks. View the original post :

[jboss-user] [Beginners Corner] - Re: CallbyValue false and OutOfMemory errors

2007-05-10 Thread c_eric_ray
I see the same thing after deploying my app several times. I think I read somewhere that JBoss has a memory leak with they're deployer code. Anyway, I haven't figured out a way to correct the issue either. View the original post :

[jboss-user] [Beginners Corner] - Executing code upon deployment

2007-05-10 Thread c_eric_ray
What's the best way to execute some code upon deployment. I need to do a bit of validation on some data in the database each time my application is deployed or started. I know of one way to do this: use the service architecure of jboss (@Service) I don't really like this solution as it is

[jboss-user] [JBoss Seam] - Re: Requirements for using @Startup annotation?

2007-05-10 Thread c_eric_ray
What's the syntax to make a bean annotated with @Startup depend on a second bean. For example, I have two beans: | 1. StartupValidationBean | 2. ReleaseLocksBean | | | I want to do something like this: | | | @Startup(depends={my.package.ReleaseLockBean}) | | public class

[jboss-user] [JBoss Seam] - ServletFilter or Interceptor

2007-05-10 Thread c_eric_ray
If I want to globally disable access to part of an enterprise application that uses Seam should I use a ServletFilter or use the EJB Interceptor model? I must be able to disable access from web services and from web pages but still allow some functionality to conintue in other parts of the

[jboss-user] [JBoss Seam] - Re: Requirements for using @Startup annotation?

2007-05-10 Thread c_eric_ray
yes, the FQN appears to work just fine. btw, this is a very nice feature of seam. thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044841#4044841 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044841

[jboss-user] [JBoss Seam] - What does this mean...

2007-05-09 Thread c_eric_ray
I'm trying to use the s:link tag and I get the following exception. Here's the actual code. | s:link id=userNameLink value=#{u.username} action=#{manageUser.selectForUpdate} / | | java.lang.IllegalStateException: No active event context | at

[jboss-user] [JBoss Seam] - java.lang.IllegalStateException: No active event context

2007-05-09 Thread c_eric_ray
Can anyone tell me what this exceptions means. I've googled 10 different ways and there is just NO information on this. I'm getting it on the render phase after using s:link to push a row selection to a seam component. View the original post :

[jboss-user] [JBoss Seam] - Re: java.lang.IllegalStateException: No active event context

2007-05-09 Thread c_eric_ray
I managed to find a thread on this forum that talked about . I had it set to true as I copied the components.xml from an older project. When I set it to false, the problem went away. Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044415#4044415 Reply

[jboss-user] [JBoss Seam] - Re: java.lang.IllegalStateException: No active event context

2007-05-09 Thread c_eric_ray
dangit | myFacesLifecycleBug | is what's missing from the previous post at the end of the first sentence. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044417#4044417 Reply to the post :

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - bundling datatources with the application

2007-04-17 Thread c_eric_ray
I want to bundle a datasource xml file with my ear. Here's how I have it bundled. | application.ear || |-- META-INF/ |-- ejbs.jar |-- webapp.war |-- my-ds.xml | When this deploys it appears jboss is taking the my-ds.xml file and renaming it to jboss-ds.xml

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - context.xml is not loading

2007-04-11 Thread c_eric_ray
Per the instructions here: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html I've bundled my context.xml file with my .ear file but it doesn't seem to be loading. I have it bundled in the .war in META-INF. Contents of context.xml | !-- Add Static image Files -- | Context

[jboss-user] [JBoss Seam] - Re: Multiple datasources?

2007-04-04 Thread c_eric_ray
datasource... | datasources | | local-tx-datasource | jndi-namePostgresDS1/jndi-name | connection-urljdbc:postgresql://localhost:5432/db1/connection-url | driver-classorg.postgresql.Driver/driver-class | user-namedb1/user-name | passworddb1/password |

[jboss-user] [Installation, Configuration Deployment] - Re: deploying a jdbc driver with the application ear ???

2007-04-04 Thread c_eric_ray
xlnt. i'll leave my configuration as is. btw, thanks for the quick response. you guys at jboss rock. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4034680#4034680 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4034680

[jboss-user] [JBossWS] - Re: JBoss WS 1.0.3 and JDK 1.6 not working

2007-03-28 Thread c_eric_ray
Excellent. I assumed as much. Thanks for the confirmation. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4032316#4032316 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4032316 ___

[jboss-user] [JBoss Seam] - Exception in PhaseListener RENDER_RESPONSE(6) afterPhase

2007-03-28 Thread c_eric_ray
I'm really having a hell of a time figuring this out. Any advice on how to attack this exception would be appreciated. Using JBoss 4.0.5 and Seam 1.0.1.GA I do not get this exception with JBoss 4.0.4 and Seam 1.0.1.GA. Of note, the problem only occurs when using s:link, using h:commandLink

[jboss-user] [JBoss Seam] - Re: Exception in PhaseListener RENDER_RESPONSE(6) afterPhase

2007-03-28 Thread c_eric_ray
tried upgrading seam and jboss AS at the same time and had too many issues. i posted several issues i was having with seam and received no response see: http://www.jboss.com/index.html?module=bbop=viewtopict=105120 What's difficult is that the exceptions are burried deep in Seam and I don't

[jboss-user] [JBossWS] - Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.

2007-03-27 Thread c_eric_ray
[EMAIL PROTECTED] wrote : You have the SUN jaxrpc impl on your classpath. Make sure javax.xml.soap.SOAPMessage is pulled from jboss-jaxrpc.jar I have this exact problem and it ocurred when I moved to JDK 1.6. How do I tell JBoss to use jboxx-jaxrpc.jar instead of the Sun jaxrpc-impl? Thanks.

[jboss-user] [JBoss Seam] - 1.0.1 to 1.1.6 upgrade question

2007-03-27 Thread c_eric_ray
I've just upgraded to 1.1.6 from 1.0.1 and now I'm getting this exception and I don't know where to start debugging because it's ocurring before my code is even hit. Any advice on where start is appreciated. Here's the exception. | 10:43:33,396 ERROR [SeamPhaseListener] uncaught exception

[jboss-user] [JBoss Seam] - question about SafeActions and s:link

2007-03-27 Thread c_eric_ray
why would at org.jboss.seam.core.SafeActions.isActionSafe through an IllegalArguementException when using s:link I'm using Seam 1.1.6 here's the jsf | s:link value=#{item.id} action=#{element.openItem} / | element is a Seam componement annotated SFSB. View the original post :

[jboss-user] [JBoss Seam] - Re: question about SafeActions and s:link

2007-03-27 Thread c_eric_ray
throw, not through. my bad. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4032211#4032211 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4032211 ___ jboss-user mailing list

[jboss-user] [EJB 3.0] - Re: Transaction does not rollback

2007-02-12 Thread c_eric_ray
You can annotate a user defined exception as such | @ApplicationException(rollback=true) | public class MyException extends Exception { | | ... | | } | This instructs the TM to rollback if this exception is thrown. View the original post :

[jboss-user] [JBoss Seam] - Re: EntityManager and manual flush mode

2007-01-30 Thread c_eric_ray
if you need full control over flush you need application managed persistence View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4008340#4008340 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4008340

[jboss-user] [JBoss Seam] - org.jboss.seam.core.Manager is destroying conversation state

2007-01-30 Thread c_eric_ray
from log file 2007-01-30 08:46:03,749 DEBUG [org.jboss.seam.core.Manager] Discarding conversation state: 1720 | I'm using JMeter to simulate concurrent users and load. After some amount of time or transactions (i'm not sure why this is happening) the seam Manager class destroys all active

[jboss-user] [EJB 3.0] - Re: Transaction does not rollback

2007-01-25 Thread c_eric_ray
[EMAIL PROTECTED] wrote : application defined exceptions to not rollback the current transaction. You need to use the context setRollbackOnly to achieve this effect. I need to do just this very thing. However, for the life of me I cannot figure out how to get a refence to the EJBContext.

[jboss-user] [JBoss Seam] - Re: Forced Outjection

2007-01-11 Thread c_eric_ray
Yeah, should be UserEntity. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4000462#4000462 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4000462 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: @Out frustration

2007-01-09 Thread c_eric_ray
CptnKirk wrote : @Out's scope defaults to the scope of the enclosing controller, in this case the SLSB. SLSB have a stateless scope. I think that Seam may actually promote the outjection of context variables of stateless components to event scope for you (but I'm not positive). | | Event

[jboss-user] [JBoss Seam] - Re: @Out frustration

2007-01-09 Thread c_eric_ray
here's the qout from Gavin... anonymous wrote : But the reality is that a SESSION scoped persistence context is always a bad thing (it is a memory leak, to begin with), and you should never do that. | I guess I don't understand. View the original post :

[jboss-user] [JBoss Seam] - Forced Outjection

2007-01-09 Thread c_eric_ray
I have the following situation... | 1. user logs in | 2. user object is outjected | 3. work is done | 4. backend process updates user in database | 5. bean notices user update and refreshed from database | | | I need the refreshed user data to be outjected however it is not |

[jboss-user] [EJB 3.0] - Re: @Depends annotation doesn't work with Jboss 4.0.3SP1 Ejb

2007-01-02 Thread c_eric_ray
Has this issue been corrected in JBoss 4.0.4GA with the EJB3 installation? I ask because I'm seeing the same thing. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3997320#3997320 Reply to the post :

[jboss-user] [JBoss Seam] - NullPointerException in LogImpl

2006-12-04 Thread c_eric_ray
During activation of a passivated bean I get the following exception. My code: | @Logger | private Log log; | | @PostActivation | public void activate() { | log.info(activating bean); | } | The exception: | Caused by: java.lang.NullPointerException | at

[jboss-user] [JBoss Seam] - Re: jndi name of ejb in ear

2006-12-04 Thread c_eric_ray
I'm interested in a solution to this as well. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3991122#3991122 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3991122 ___ jboss-user

[jboss-user] [JBoss Seam] - Re: NullPointerException in LogImpl

2006-12-04 Thread c_eric_ray
Didn't see it. Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3991133#3991133 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3991133 ___ jboss-user mailing list

[jboss-user] [JBossWS] - May have found a bug - need expert opinion

2006-09-28 Thread c_eric_ray
snippet of wsdl gernerated by jbossws | definitions name=ListBagsService | targetNamespace=http://distributedcapture.vicor.com/ws/rids; | xmlns=http://schemas.xmlsoap.org/wsdl/; | xmlns:ns1=http://rids.webservice.distributedcapture.vicor.com/jaws; |

[jboss-user] [JBossWS] - Re: WSDL mapping of java.util.Map is wrong

2006-09-28 Thread c_eric_ray
from what I understand, Map is not a supported type. see chapter 5 of JSR 101: JavaTM APIs for XML based RPC btw, when you post code, put it in a | code block | so we can read it. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3975014#3975014 Reply to

[jboss-user] [JBossWS] - Re: Inject EJB problem in web service method !!

2006-09-28 Thread c_eric_ray
if you are using a java client point it to the TestSessionBean?wsdl and it should work. this way you get the bean isntantiated in the EJB container. if you don't reference the web service as a bean then you loose the EJB context and thus you loose the EJB supported injection. Same thing

[jboss-user] [JBoss Seam] - Re: Problem testing seam using EntityManager

2006-09-25 Thread c_eric_ray
no. i gave up on it. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3973898#3973898 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3973898 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: Seam component as converter with EntityManager/Persisten

2006-09-25 Thread c_eric_ray
anonymous wrote : | However, JavaBean Seam Components do work. But you have to add an interceptor ( @Interceptors(SeamInterceptor.class) or @Intercept(InterceptionType.ALWAYS), and use a Seam Managed Persistence Context ( @In(create=true) private EntityManager em; plus the changes in Chapter

[jboss-user] [EJB 3.0] - JNDI and the EntityManager

2006-09-25 Thread c_eric_ray
Instead of injecting the EntityManager like so... | @PersistenceContext(unitName=some_name) | EntityManager em; | can I use JNDI to look up an EntityManager with a specific persistence unit? If so, what would the naming path be? Thanks. View the original post :

[jboss-user] [EJB 3.0] - Re: JNDI and the EntityManager

2006-09-25 Thread c_eric_ray
Thanks. BTW, where do I find a list of properties for things like this? I mean, where would I have looked to find the jboss.entity.manager.jndi.name was a valid property to use. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3974037#3974037 Reply to the post

[jboss-user] [JBoss Seam] - Re: ERROR: invalid large-object descriptor: 0 with postgreql

2006-09-21 Thread c_eric_ray
You cannot use an extended context with Blob. This is the reason you are getting the descriptor error. Make your persistence context type transactional. See this post, Part 2, for a more detailed description: http://forum.hibernate.org/viewtopic.php?t=963566 Also, you might need to use the

[jboss-user] [JBoss Seam] - Re: Issue with ValueChangeListener and calling SLSB in Seam

2006-09-21 Thread c_eric_ray
Did here. In fact, my implementation of valueChangeListener never even gets invoked. | h:selectOneMenu value=#{workPackage.account} rendered=#{!hasRemittance} style=font-size:80% | valueChangeListener=#{packages.selectAccount} onchange=submit() | f:selectItems

[jboss-user] [JBoss Seam] - Seam component not reachable for valueChangeListener method

2006-09-21 Thread c_eric_ray
I have a named Seam component that implements the following method. | @Name(packages) | @Stateful | @Scope(ScopeType.SESSION) | public class PackageAction { | ... | public void selectAccount(ValueChangeEvent event) { | log.info([#0]: event #1, user.getUsername(),

[jboss-user] [JBoss Seam] - Re: Seam component not reachable for valueChangeListener met

2006-09-21 Thread c_eric_ray
What's even more odd is that I can give the valueChangeListener a bogus seam component name and nothing happens. No errors or exceptions what so ever. valueChangeListener=#{foobar.listAccounts} has no affect on the rendering or lifecycle. View the original post :

[jboss-user] [JBoss Seam] - Re: Seam component not reachable for valueChangeListener met

2006-09-21 Thread c_eric_ray
Seam is great. I am an idiot. My converter was hosed. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3973437#3973437 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3973437 ___

[jboss-user] [JBossWS] - Re: Handling anyType

2006-09-20 Thread c_eric_ray
I to am affected by this problem. Where can I find instructions on how to get the src and build it. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3972959#3972959 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3972959

[jboss-user] [JBossWS] - Re: Are Axis client calls to JBossWS @WebService services su

2006-09-20 Thread c_eric_ray
I have the same problem. Any resolution? I've googled the heck out of this and no luck finding a resolution. I'm stumped. WebService... | @WebService(targetNamespace=http://distributedcapture.vicor.com/ws/rids;) | @SOAPBinding(style=SOAPBinding.Style.RPC) | public class ListDates { |

[jboss-user] [JBossWS] - Deploying more than one endpoint fails

2006-09-14 Thread c_eric_ray
my web.xml looks like this... | servlet | servlet-nameEchoMe/servlet-name | servlet-classcom.vicor.distributedcapture.webservice.SimpleWSTest/servlet-class | /servlet | servlet-mapping | servlet-nameEchoMe/servlet-name |

[jboss-user] [JBossWS] - Re: EJB3 web service interface

2006-09-14 Thread c_eric_ray
Does anyone know the answer to this question? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971601#3971601 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971601 ___ jboss-user

[jboss-user] [EJB 3.0] - Re: Using SSL at the persistence layer

2006-09-13 Thread c_eric_ray
Yes, you are correct. The connection-property element is for passing specific jdbc driver parameters. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971269#3971269 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971269

[jboss-user] [JBossWS] - EJB3 web service interface

2006-09-13 Thread c_eric_ray
Can I use the Local interface or do all EJB3 beans exposed as a web service have to Remote View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971294#3971294 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971294

[jboss-user] [EJB 3.0] - Using SSL at the persistence layer

2006-09-12 Thread c_eric_ray
How do I set up my jta-data-source to use SSL. I can't find any documentation that shows what property must be set to make this work. Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971071#3971071 Reply to the post :

[jboss-user] [EJB 3.0] - Re: Using SSL at the persistence layer

2006-09-12 Thread c_eric_ray
Add this property to your *-ds.xml file located in JBOSS_HOME/server/default/deploy. | connection-property name=ssltrue/connecion-property | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971153#3971153 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Configuring the Seam Logger to write to disk

2006-09-12 Thread c_eric_ray
An alternative is to add an appender and a category for your application like so... |appender name=YOUR_APP class=org.jboss.logging.appender.DailyRollingFileAppender | errorHandler class=org.jboss.logging.util.OnlyOnceErrorHandler/ | param name=File

[jboss-user] [Beginners Corner] - Logging in a servlet

2006-09-12 Thread c_eric_ray
What's the best way to get access to the log4j Logger from the LoggingService. I would think that I could use a JNDI lookup but I don't know what context to get or what the name is. I've seen sample from googling this topic that look like this... Logger.getInstance(category); But I'm not sure

[jboss-user] [Beginners Corner] - Re: Logging in a servlet

2006-09-12 Thread c_eric_ray
http://www.theserverside.com/discussions/thread.tss?thread_id=29870 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971161#3971161 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971161

[jboss-user] [JBoss Seam] - Re: Session timeouts and seam

2006-09-07 Thread c_eric_ray
LOL Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3970080#3970080 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3970080 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Session timeouts and seam

2006-09-06 Thread c_eric_ray
What's the best way to handle session timeouts? Right now a 403 Error code is returned. I trap that using error-code tag in the web.xml. This works okay, I was just wondering if there's another approach or something slighty more graceful. View the original post :

[jboss-user] [JBoss Seam] - Re: ActiveX with JSF and Seam

2006-09-01 Thread c_eric_ray
Thanks bfo81. You're always a great help. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3968921#3968921 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3968921 ___ jboss-user

[jboss-user] [JBoss Seam] - ActiveX with JSF and Seam

2006-08-31 Thread c_eric_ray
Does anyone know if ActiveX controls will work normally within a JSF/Seam environment. I mainly ask because I've had problems with javascript not getting through the Facelets compiler. The Facelets compiler doesn't like things like or || or =. I have to remove the !-- -- comment tags from

[jboss-user] [JBoss Seam] - Re: ActiveX with JSF and Seam

2006-08-31 Thread c_eric_ray
Here's an example of an ActiveX control in a web page. I'm sure there are other ways to do it, but this is what I've seen | OBJECT ID=SomeId WIDTH=73 HEIGHT=33 | CLASSID=CLSID:11D03A61-3A78-11D1-8C8E-00A024D25EF6 | CODEBASE=SomeFile.CAB#version=3,0,0,1 | /OBJECT | You'll see this

[jboss-user] [JBoss Seam] - Re: Merging objects problems.

2006-08-25 Thread c_eric_ray
mrohad wrote : question regarding PersistenceContextType.EXTENDED | is it possible to explictly deattach the Entities some how? | | I am selecting the entitybeans I want ,then showing them and their relationship entitybeans in a JSF table ,then I would like to store them in a cache and

[jboss-user] [JBoss Seam] - Re: EntityManager newibe Question

2006-08-25 Thread c_eric_ray
Sounds like you should just have the EJB container inject it like so. | @PersistenceContext(unitName=your_persistence_unit) | private EntityManager em; | The new EJB3 spec allows for container injection. I think they call it Inside Out Container (IOC) or something like that. Anyway, it's

[jboss-user] [JBoss Seam] - Configuring the Seam Logger to write to disk

2006-08-25 Thread c_eric_ray
How do I configure a Seam injected Log class to write to disk? I've spent way too much time on this. :( Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3967535#3967535 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Configuring the Seam Logger to write to disk

2006-08-25 Thread c_eric_ray
Thank you. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3967563#3967563 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3967563 ___ jboss-user mailing list

[jboss-user] [Beginners Corner] - How do you load a properties file

2006-08-25 Thread c_eric_ray
my.properties file located in package com.company.product.unit so full package path is com.company.product.unit.my.properties code... | ClassLoader.getResourceAsStream(my.properties); | ClassLoader.getResourceAsStream(com/company/product/unit/my.properties); | I can't get the file to

[jboss-user] [Beginners Corner] - Re: How do you load a properties file

2006-08-25 Thread c_eric_ray
This does not work either | ResourceBundle bundle = ResourceBundle.getBundle(my); | where properties file name is my.properties and it's even located in the same package. why does this NOT work? View the original post :

[jboss-user] [Beginners Corner] - Re: How do you load a properties file

2006-08-25 Thread c_eric_ray
yes. you are correct. any ideas why the getResourceAsStream method does not work. thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3967585#3967585 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3967585

[jboss-user] [Beginners Corner] - Re: How do you load a properties file

2006-08-25 Thread c_eric_ray
tries that too. didnt' work. any way, it works using ResourceBundle. thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3967591#3967591 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3967591

[jboss-user] [JBoss Seam] - Duplicate login support with Seam

2006-08-24 Thread c_eric_ray
I need some ideas on how I can use Seam to help me detect and then reject a duplicate login of an individual user. Nothing really jumps at me from the current documentation or examples. I welcome ideas from the developer community. My context: Using form authentication against an LDAP server.

[jboss-user] [JBoss Seam] - Cannot get FacesMessages to work

2006-08-23 Thread c_eric_ray
bean code... | | @In(create=true) | private transient FacesMessages facesMessages; | | ... | | if (!item.getCode().getCode().equals(SVD)) { | facesMessages.add(closeButton, FacesMessage.SEVERITY_ERROR, Remittance Item [#0] has not been saved., item.getId()); |

[jboss-user] [JBoss Seam] - Re: Cannot get FacesMessages to work

2006-08-23 Thread c_eric_ray
thanks for the pointer. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3967054#3967054 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3967054 ___ jboss-user mailing list

[jboss-user] [EJB 3.0] - Re: EntityManager not being injected

2006-08-23 Thread c_eric_ray
Yes, the persistence.xml is correct. I use the EM all throughout my code. I understand the problem is related to the Converter implementation class being instiated by JSF and not the EJB container or something like that. Therefore, injection cannot occur. Are you implying this will be fixed in

[jboss-user] [JBoss Seam] - EntityManager not being injected

2006-08-21 Thread c_eric_ray
I have a situation where I need an EM injected into a JSF Converter implementation class and I can't seem to make that happen. All I need to do is take the string value passed in to the getAsObject method and retrieve the appropriate database object. At first I thought I needed to make the

[jboss-user] [EJB 3.0] - EntityManager not being injected

2006-08-21 Thread c_eric_ray
I have a situation where I need an EM injected into a JSF Converter implementation class and I can't seem to make that happen. All I need to so is take the string value from the getAsObject method and retrieve the appropriate database object. At first I thought I needed to make the converter

[jboss-user] [EJB 3.0] - Re: EntityManager not being injected

2006-08-21 Thread c_eric_ray
Here's the code jsf code... | h:selectOneMenu value=#{elem.code} | f:selectItems value=#{element.codeMap} / | /h:selectOneMenu | Converter implementation | @PersistenceContext(unitName=DC) | EntityManager em; | | public Object

[jboss-user] [EJB 3.0] - Injection rules for EntityManager

2006-08-21 Thread c_eric_ray
Can the EntityManager be intected into a class that is not a bean? If not, how do I get the EntityManager when not inside a bean? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3966543#3966543 Reply to the post :

[jboss-user] [JBoss Seam] - Re: EntityManager not being injected

2006-08-21 Thread c_eric_ray
True, but @PersistenceContext is not a Seam annotation. It's an EJB3 annotation that should be injected by the EJB3 container. Or so I thought. I guess I still have a lot to learn about this stuff. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3966549#3966549

[jboss-user] [EJB 3.0] - Re: Injection rules for EntityManager

2006-08-21 Thread c_eric_ray
how do i know what the JNDI name of my specific EntityManager is within JBoss? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3966564#3966564 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3966564

[jboss-user] [EJB/JBoss] - cannot create an EntityManagerFactory

2006-08-21 Thread c_eric_ray
| Persistence.createEntityManagerFactory(unitName); | This code does not work an JBoss. This is logged | 19:00:56,046 INFO [NamingHelper] JNDI InitialContext properties:{} | 19:00:56,046 INFO [DatasourceConnectionProvider] Using datasource: java:/PostgresDCAP | 19:00:56,046 INFO

[jboss-user] [JBoss Seam] - Re: DataModelSelection is null

2006-08-17 Thread c_eric_ray
A couple of things 1. Make sure your web page references the correct Seam Named Component. 2. Make sure your Scope is appropriate. I've found that the exception you get always points back to one of these two things. There could be others, but this is what I've seen. Most likely bfo81 is

[jboss-user] [JBoss Seam] - Can I forace a method to be invoked everytime a page is load

2006-08-17 Thread c_eric_ray
Is there a way that I can force a method to be invoked when a particular page is loaded and with no user interaction. The @Create and @Factory annotations only work on the initial creation of the seam component. I can't find any annotations that force this. My hunch is that I need to insert an

[jboss-user] [JBoss Seam] - Re: Can I forace a method to be invoked everytime a page is

2006-08-17 Thread c_eric_ray
will check it out. thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3965799#3965799 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3965799 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: Can I forace a method to be invoked everytime a page is

2006-08-17 Thread c_eric_ray
Page Event appears to be what I need. However, I get the following exception. javax.faces.el.EvaluationException: Exception while invoking expression #{elements.init} | at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:165) | at

[jboss-user] [JBoss Seam] - Re: Question about Seam dvd example and persistence

2006-08-14 Thread c_eric_ray
I've read that post and while excellent in it's own right, it only explains the differences in the two. Being new to EJB and and CMP, it's still unclear as to why you would mix the two types of persistence management within one application. I don't understand the advantage of using EXTENDED in

[jboss-user] [JBoss Seam] - Question about Seam dvd example and persistence

2006-08-11 Thread c_eric_ray
Why are some EM annotated with EXTENDED and some are not. It seems to me that you would choose an aproach and then use it consistently throughout the application. So the real question is, what does it buy you to have some EJBs that uses EXTENDED transactions and some that don't? Thanks. Eric

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - HTTP 405 Error

2006-08-09 Thread c_eric_ray
How do I get rid of this error? My is rendered useless by the servlet returning a 405 every time I try to get the input stream on the response. I'm doing a POST to a servlet. Everything I've read on the net points to a configuration issues with the web server/servlet engine. However, there is

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Handling Multipart Request

2006-08-09 Thread c_eric_ray
You can use the javax.mail.internet.MimeMultipart class to parse the multipart mime body yourself or... you can cheat to some degree and use apache commons file-upload to parse the body. it will treat everything as a FileItem, but if the parameters are small enough (like simple string) it will

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Explicit document source root using context/docbase

2006-08-09 Thread c_eric_ray
This is the definitive guide to configure tomcat to serve static content. http://tomcat.apache.org/tomcat-5.5-doc/config/context.html View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964125#3964125 Reply to the post :

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: HTTP 405 Error

2006-08-09 Thread c_eric_ray
I love it when this happens. I spend several days googling this topic to no avial. So I decide to post here and then keep looking only to find the answer within minutes of this post. Oh well. Here's the solution: http://www.jguru.com/faq/view.jsp?EID=304472 View the original post :

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Explicit document source root using context/docbase

2006-08-04 Thread c_eric_ray
I have the same issue. I would really like to know how to do this. JBoss guys. How do we do this? Thanks. Eric Ray View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3963334#3963334 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Updating a Collection of entities

2006-08-03 Thread c_eric_ray
some code snippets would help in any case, when you outject a component that compent and it's data is always available in the seam context. hard to say what you need without the code but this is a little more typical... | @In(required=false) | @Out(require=false, scope=ScopeType.XXX)

[jboss-user] [EJB 3.0] - Can't get DELETE_ORPHAN to work with java.persistence.Cascad

2006-08-03 Thread c_eric_ray
I need to annotate a OneToMany relationship like so... | @OneToMany(mappedBy=remittancePackage, cascade= {CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN}) | However, this does not compile becuse the cascade parameter is of type java.persitence.CascadeType. How do I

[jboss-user] [EJB 3.0] - Re: Can't get DELETE_ORPHAN to work with java.persistence.Ca

2006-08-03 Thread c_eric_ray
the answer is... | @OneToMany(mappedBy=remittancePackage, cascade=CascadeType.ALL) | @Cascade(org.hibernate.annotations.CascadeType.DELETE_ORPHAN) | where @Cascade os a hibernate Cascade object. Would be nice if these hints were in the documention. It really helps those of use who are

[jboss-user] [JBoss Seam] - Re: Help injecting the SessionContext

2006-08-02 Thread c_eric_ray
Righto. Because SessionContext is probably package access only and I must use the Context Interface. I'll give it a shot. Thanks for the help. Eric View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3962502#3962502 Reply to the post :

  1   2   >