[jboss-user] [JBoss Seam] - Ending nested conversations

2007-05-02 Thread nstoddar
I'm confused about how to end a nested conversation.  (Technically, I have no 
problem ending the nested conversation -- it just doesn't want to resume the 
parent conversation where it left off.)

I have my pageflow definition set up with transitions to a page that has the 
end-conversation tag in it.  Unfortunately, according to the schema, page 
requires the view-id attribute, which is where the client always gets 
redirected.

How am I supposed to end the conversation and let the parent take over where it 
left.

Part 2 of my question  how the heck can I confirm that my conversations are 
correctly nested?  On the debugger page, the only conversations that have the 
conversation data in the conversation context is the non-nested 
conversations.  The nested ones don't have it, so I can't click to see what the 
parent conversation ID is.

I'm pretty sure that they're properly nested since I have nested=true in 
pages.xml, and it would give me an error if it tried to create a nested 
conversation without an active long-running conversation.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4042517#4042517

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4042517
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problem with FacesMessages

2007-05-01 Thread nstoddar
petemuir wrote : Seam does some magic to propagate your FacesMessage across 
redirects - the messages aren't actually added to the FacesContext until just 
before they are rendered.  The getCurrentXXX() methods are just convenience 
methods to get the current messages from the FacesContext and don't get the 
messages enqueued by FacesMessages. 

Is there a way to determine if there are messages in FacesMessages (before they 
are propagated across the redirect)?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4042068#4042068

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4042068
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Problem injecting EJBs

2007-04-30 Thread nstoddar
I'm a bit confused on how to inject a simple EJB into a Seam-enabled POJO.  I 
have the field marked with @In(), and configured the  tag in components.xml, 
but nothing happens and Seam complains that a value is required by the 
injection tag and fails.

component name=addressService jndi-name=java:comp/env/ejb/AddressService 
auto-create=true /
  | 
  | ...
  | 
  | @In()
  | private AddressService addressService;

Pretty straight-forward, right?  I though it would work, but no.  These EJBs 
are deployed separately, so I can't have them enabled through @Name, ergo the 
component tag that defines it in components.xml.  Am I missing something?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4041829#4041829

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4041829
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problem injecting EJBs

2007-04-30 Thread nstoddar
petemuir wrote : Use the standard @EJB

I actually started by using the @EJB annotation, but it didn't work.  What Seam 
code processes the annotation to inject the lookup value?

@EJB(name = ejb/AddressService)
  | private AddressService addressService;

I have tried just about every combination of name, mappedName, etc with no 
positive result.  Seam doesn't ever complain about a NameNotFoundException -- 
the first sign of a problem is the NullPointerException when the code executes. 
 From the looks of it, I'm doing everything I should be doing to configure the 
ejb-ref on my glassfish.

Just for the heck of it, I just changed the name to something that clearly 
doesn't exist -- Seam didn't log any sort of exception to that effect.  Maybe 
Seam isn't processing the annotation at all

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4041868#4041868

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4041868
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Problem with FacesMessages

2007-04-30 Thread nstoddar
I'm having a problem with FacesMessages.  I have a pageflow where on a 
transition I execute a validation method that adds a message to the 
FacesMessages object.  The to for the transition is a decision node that 
calls a method that is trying to determine if there are FacesMessages present 
and transition based on that logic ... (sorry -- wordy explanation).

My problem is that the FacesMessage object is returning an empty list for 
getCurrentMessages() and getCurrentGlobalMessages() -- I can set a breadpoint 
and see my message sitting there in its member variable list, but I always get 
an empty list from FacesMessages when I invoke either of those two methods.

When I add the message directly to the FacesContext, FacesMessages correctly 
returns me a non-empty list, but the messages aren't visible after the redirect 
to the next page in my pageflow.

Am I doing something incorrect here?  I was expecting FacesMessages to show me 
the message I just added to it

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4041990#4041990

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4041990
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problem with FacesMessages

2007-04-30 Thread nstoddar
saeediqbal1 wrote : what is the scope? what are you using? the rendered tag?

I'm just doing this in some plain Java code -- all within the same request 
cycle.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4042023#4042023

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4042023
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Creating a seam-managed bean without it being injected....

2007-04-26 Thread nstoddar
Is there a way to have a seam managed bean (regular POJO in my case) get 
created without it being immediately used (injected, or referenced in a value 
expression)?

My problem is that I am initializing the bean using a request parameter.  The 
request parameter disappears once the user gets redirected to the first page of 
my pageflow.  The only thing I can think of is to have a separate bean handle 
the action method with it being injected.  That seems a bit silly though -- 
creating a bean simply to cause the creation of another.

Hopefully that makes sense...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4041088#4041088

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4041088
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Destroying a managed component ... (short question)

2007-04-26 Thread nstoddar
Can I destroy one of my beans so the next time it is referenced it will get 
re-created?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4041173#4041173

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4041173
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Pageflow actions never getting fired

2007-04-26 Thread nstoddar
Is there something special about the page actions in a pageflow.  They never 
fire for me.  The actions on transitions work just fine, but sometimes it makes 
more sense to define the action on the page instead of a dozen transitions to 
it.

Here's a snippet from one of my pageflows that won't quite cooperate.

start-page name=start view-id=/panel/users/view.jspx
  | redirect /
  | action expression=#{userViewEditBean.refresh} /
  | transition name=edit to=contact /
  | transition name=finish to=finish /
  | /start-page


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4041175#4041175

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4041175
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Strange Seam/Hibernate MissingResourceException Problem

2007-04-18 Thread nstoddar
Has anybody seen this error popup in their logs?  According to the Hibernate, I 
have compatible JARs, and the properties file is in hibernate-validator like it 
should 

hibernate-3.2.2.ga
hibernate-annotations-3.2.1.ga
hibernate-entitymanager-3.2.1.ga
hibernate-validator-3.0.0.GA

[#|2007-04-18T14:22:30.103-0400|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.container.web|_ThreadID=19;_ThreadName=Thread-44;_RequestID=19bd62fe-51c3-465b-aae9-a8355835fad8;|WebModule[]Exception
 sending context initialized event to listener instance of class 
org.jboss.seam.servlet.SeamListener
  | javax.persistence.PersistenceException: java.util.MissingResourceException: 
Can't find bundle for base name 
org.hibernate.validator.resources.DefaultValidatorMessages, locale en_US
  | at 
org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:252)
  | at 
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:120)
  | at 
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
  | at 
org.jboss.seam.core.EntityManagerFactory.startup(EntityManagerFactory.java:74)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102)
  | at org.jboss.seam.Component.callComponentMethod(Component.java:1799)
  | at org.jboss.seam.Component.callCreateMethod(Component.java:1739)
  | at org.jboss.seam.Component.newInstance(Component.java:1728)
  | at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:152)
  | at 
org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:126)
  | at org.jboss.seam.init.Initialization.init(Initialization.java:430)
  | at 
org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
  | at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4236)
  | at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4760)
  | at com.sun.enterprise.web.WebModule.start(WebModule.java:292)
  | at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:833)
  | at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:817)
  | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662)
  | at 
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1479)
  | at 
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1143)
  | at 
com.sun.enterprise.web.WebContainer.loadJ2EEApplicationWebModules(WebContainer.java:1068)
  | at 
com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationLoader.java:128)
  | at 
com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:322)
  | at 
com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:196)
  | at 
com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:633)
  | at 
com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:908)
  | at 
com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:892)
  | at 
com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:445)
  | at 
com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
  | at 
com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:296)
  | at 
com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:203)
  | at 
com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:285)
  | at 
com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:119)
  | at 
com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
  | at 
com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)
  | at 
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:541)
  | at 
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:585)
  | at 
com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:719)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 

[jboss-user] [JBoss Seam] - Re: What happens for exceptions in JPM transition actions?

2007-04-17 Thread nstoddar
You can ignore this.  I hit the submit button too soon, and just afterwords saw 
the exception-handler element.  Can somebody shed any light on what the 
script element is used for?  I'm assuming that the action expression gets 
evaluated and a transition takes place based on the return value.  
exception-class is obvious, but the script one is puzzling.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4037935#4037935

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4037935
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - What happens for exceptions in JPM transition actions?

2007-04-17 Thread nstoddar
The title pretty much says it all --- what happens when an action triggered by 
a page transition throws an exception?  Will it simply bubble-up to get handled 
somewhere, or can that be configured as part of the pageflow, or will the 
current page be displayed again?

I'm thinking about the example in the documentation:
page name=displayGuess view-id=/numberGuess.jsp
  | redirect/
  | transition name=guess to=evaluateGuess
  | action expression=#{numberGuess.guess} /
  | /transition
  | /page

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4037930#4037930

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4037930
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - ClassNotFoundException while invoking EL function during ren

2007-04-16 Thread nstoddar
I wrote a simple EL function to retrieve the clientId of a UIComponentBase 
object -- I'm generating some javascript. The first time I load the page 
(without a submit), the page generates just fine, including the javascript 
output that successfully invoked my EL function from a h:outputText element.

However, when I submit the form it throws a ClassNotFoundException (for my EL 
function class) and generally freaks out after that. Now, obviously it should 
be able to find the class since it managed to find it on the initial rendering 
of the page.

Am I missing something about using EL functions in a JSF tag?
[#|2007-04-16T08:48:20.964-0400|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=13;_ThreadName=httpWorkerThread-8080-0;_RequestID=4b5ea96a-bb72-4f91-b3d8-b6e133212a32;|
  | java.lang.ClassNotFoundException: 
biz.apexsurvey.tags.jsf.functions.ClientIdFunctions
  | at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  | at 
com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader.java:100)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
  | at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
  | at java.lang.Class.forName0(Native Method)
  | at java.lang.Class.forName(Class.java:169)
  | at 
com.sun.el.lang.FunctionMapperImpl$Function.getMethod(FunctionMapperImpl.java:167)
  | at 
com.sun.el.lang.FunctionMapperImpl.resolveFunction(FunctionMapperImpl.java:59)
  | at com.sun.el.parser.AstFunction.getValue(AstFunction.java:91)
  | at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
  | at javax.faces.component.UIOutput.getValue(UIOutput.java:173)
  | at 
com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:189)
  | at 
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:320)
  | at 
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:200)
  | at 
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:833)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:896)
  | at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
  | at 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
  | at 
com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:244)
  | at 
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:175)
  | at 
org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:59)
  | at 
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
  | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  | at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
  | at 
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
  | at 
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
  | at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
  | at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
  | at 
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
  | at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
  | at 
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
  | at 
com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
  | at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
  | at 
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
  | at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
  | at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
  | at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
  | at 
com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
  | at 

[jboss-user] [JBoss Seam] - Re: jbpm configuration problem

2007-04-16 Thread nstoddar
I can't seem to delete my own posts here, so I guess I'll comment on it in case 
somebody else runs into the same problem.  It turns out the Seam documentation 
is out of synch with what actually happens at runtime.  The pageflow file 
should be placed in the classpath (/WEB-INF/classes) -- it worked for me at 
least.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4037524#4037524

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4037524
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: jbpm configuration problem

2007-04-16 Thread nstoddar
petemuir wrote : Your pageflow can be in the classpath of the ear or the war 
(the root of the ear is in it's classpath)

I duplicated everything the todo example was doing, but couldn't find any 
reason why my pageflow couldn't be found.  Could there be an issue running it 
on Glassfish?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4037534#4037534

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4037534
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Validation messages

2007-04-13 Thread nstoddar
How much customization is possible in Seam for annotated Hibernate validations? 
 I read the documentation, so I know that I can change the resource key to have 
a separate message rendered on the screen.

My problem is this:  in some cases I want a message Contact first name is 
required., but in other cases I might want to provide another context to the 
same validation, e.g. Billing first name is required..

Is this even possible using the Hibernate Validation/Seam?  To the best of my 
knowledge, it looks like I would have to have a 1-to-1 mapping between HTML 
form and Seam components for this to happen (in other words, no reuse of Seam 
components since there's no way to customize validation messages to this 
extent).  ... Also a bummer since this precludes my ability to use my JPA model 
classes.

Any ideas, or comments on this?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4037059#4037059

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4037059
___
jboss-user mailing list
[EMAIL PROTECTED]
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Validation messages

2007-04-13 Thread nstoddar
CptnKirk wrote : Take a look at the message attribute of the Hibernate 
Validator annotations, they allow per field overrides of the default message.  
NotNull is still handled by JSF's required=true mechanism, but you have greater 
flexibility for other field constraints.

I don't want per-field messages.  I want to provide some context to the message 
itself.  For example, I would put

@NotNull(message={value.required})
  | value.required={0} is required.

... and magically be able to inject some value into {0} from somewhere else 
with Contact name or Billing name, etc instead of just Value is required. 
 Does that make sense?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4037113#4037113

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4037113
___
jboss-user mailing list
[EMAIL PROTECTED]
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Validation messages

2007-04-13 Thread nstoddar
petemuir wrote : Apparently you can do 
  | 
  | @Length(min=10,max=20,message=#{messages.lengthValidatorMessage})
  | 
  | Then you can take advantage of Seam's per view message bundle feature.

Do you have a link to some documentation on the per view message bundle 
feature?  It sounds useful.  In this situation, it wouldn't quite work.  My 
problem is the reuse of fine-grained domain objects, for example an Address.  I 
may have five addresses on a single form, so even if I could customize that 
message for that view, it would still render the same message for each address 
instead of Home address ... and Work address ..., etc.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4037131#4037131

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4037131
___
jboss-user mailing list
[EMAIL PROTECTED]
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - jbpm configuration problem

2007-04-13 Thread nstoddar
I'm attempting to get Jbpm configured (this is my first time), but I keep 
getting an error that say it can't find my pageflow file.
java.lang.IllegalArgumentException: pageflow resource not found: 
clientregistration.jpdl.xml
  | at 
org.jboss.seam.core.Jbpm.getPageflowDefinitionFromResource(Jbpm.java:132)
  | at org.jboss.seam.core.Jbpm.installPageflowDefinitions(Jbpm.java:210)
  | at org.jboss.seam.core.Jbpm.startup(Jbpm.java:67)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)

My components.xml file is setup just like the documentation says it should be:
core:jbpm
  | core:pageflow-definitions
  | valueclientregistration.jpdl.xml/value
  | /core:pageflow-definitions
  | /core:jbpm
In addition, my pageflow definition file is in the root of the EAR just like 
the documentation says it should be.  (I've double-checked and triple-checked 
the name of the file -- they're the same.)  I can't seem to find any reason why 
it's not working (or at least giving me some other error besides this one).  
Can anybody shed some light on my configuration problem?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4037222#4037222

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4037222
___
jboss-user mailing list
[EMAIL PROTECTED]
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - 2.0.0.ALPHA Configuration

2007-03-14 Thread nstoddar
I'm having problems configuring JBC on JBoss 5.0.0.Beta1.  I was thinking I 
could just drop the sample tree-service.xml into the all deploy directory, 
and see something work so I could customize from there.

However, I'm getting an error indicating that my MBean isn't really an MBean 
(my interpretation).  Any help would be great.  The other caches get created 
just fine (EJB, etc).

Here's my stacktrace and configuration file.

2007-03-14 10:53:40,609 DEBUG [org.jboss.system.ServiceCreator] About to create 
bean: jboss.cache:service=testTreeCache with code: org.jboss.cache.TreeCache
  | 2007-03-14 10:53:40,609 ERROR 
[org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing 
to Instantiated: name=jboss.cache:service=testTreeCache state=Described 
mode=Manual requiredState=Configured
  | org.jboss.deployment.DeploymentException: Unable to createMBean for 
jboss.cache:service=testTreeCache
  | at 
org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:52)
  | at org.jboss.system.ServiceCreator.install(ServiceCreator.java:141)
  | at 
org.jboss.system.microcontainer.InstantiateAction.installAction(InstantiateAction.java:45)
  | at 
org.jboss.system.microcontainer.ServiceControllerContextAction.install(ServiceControllerContextAction.java:46)
  | at 
org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
  | at 
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
  | at 
org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:198)
  | at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:709)
  | at 
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:429)
  | at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:538)
  | at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:472)
  | at 
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:320)
  | at 
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:190)
  | at 
org.jboss.system.ServiceController.doChange(ServiceController.java:656)
  | at 
org.jboss.system.ServiceController.install(ServiceController.java:272)
  | at 
org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:76)
  | at 
org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:44)
  | at 
org.jboss.deployers.plugins.deployers.helpers.AbstractSimpleRealDeployer.deploy(AbstractSimpleRealDeployer.java:53)
  | at 
org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer.commitDeploy(AbstractSimpleDeployer.java:52)
  | at 
org.jboss.deployers.plugins.deployer.DeployerWrapper.commitDeploy(DeployerWrapper.java:145)
  | at 
org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:440)
  | at 
org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:451)
  | at 
org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:381)
  | at 
org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:366)
  | at 
org.jboss.system.server.profileservice.ProfileServiceBootstrap.bootstrap(ProfileServiceBootstrap.java:246)
  | at 
org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:89)
  | at 
org.jboss.system.server.profileservice.ServerImpl.doStart(ServerImpl.java:401)
  | at 
org.jboss.system.server.profileservice.ServerImpl.start(ServerImpl.java:340)
  | at org.jboss.Main.boot(Main.java:210)
  | at org.jboss.Main$1.run(Main.java:508)
  | at java.lang.Thread.run(Thread.java:619)
  | Caused by: javax.management.NotCompliantMBeanException: Class does not 
expose a management interface: java.lang.Object
  | at org.jboss.mx.metadata.MBeanCapability.of(MBeanCapability.java:102)
  | at org.jboss.mx.metadata.MBeanCapability.of(MBeanCapability.java:100)
  | at 
org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:191)
  | at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
  | at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
  | at 

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - JSF Deployment Problem

2007-01-10 Thread nstoddar
I'm trying to get a simple JSF application working (new app), but can't seem to 
get started.  I keep getting some ClassNotFoundExceptions.  I've followed the 
directions in the wiki for declaring the servlet and servlet-mapping elements 
in web.xml (and the wiki says that's all I need to do.

Any help would be great.

2007-01-10 12:58:06,956 DEBUG [org.jboss.system.ServiceCreator] About to create 
bean: jboss.web.deployment:war=/admin with code: 
org.jboss.web.deployers.WebModule
  | 2007-01-10 12:58:06,956 DEBUG [org.jboss.system.ServiceCreator] Created 
mbean: jboss.web.deployment:war=/admin
  | 2007-01-10 12:58:06,956 DEBUG [org.jboss.system.ServiceController] Creating 
service jboss.web.deployment:war=/admin
  | 2007-01-10 12:58:06,956 DEBUG [org.jboss.system.ServiceController] starting 
service jboss.web.deployment:war=/admin
  | 2007-01-10 12:58:06,956 DEBUG 
[org.jboss.web.tomcat.tc6.deployers.TomcatDeployment] webContext: /admin
  | 2007-01-10 12:58:06,956 DEBUG 
[org.jboss.web.tomcat.tc6.deployers.TomcatDeployment] warURL: 
file:/C:/dev/servers/jboss-5.0.0.Beta1/server/default/tmp/deploy/admin-webapp45256-exp.war/
  | 2007-01-10 12:58:07,016 DEBUG [org.jboss.web.WebPermissionMapping] 
Qualified url patterns: 
{/=PatternInfo[pattern=/,type=3,isOverriden=false,qualifiers=[]]}
  | 2007-01-10 12:58:07,036 INFO  
[org.jboss.web.tomcat.tc6.deployers.TomcatDeployment] deploy, ctxPath=/admin, 
warUrl=.../tmp/deploy/admin-webapp45256-exp.war/
  | 2007-01-10 12:58:07,227 DEBUG 
[org.jboss.web.tomcat.tc6.deployers.TomcatDeployment] Using session cookies 
default setting
  | 2007-01-10 12:58:07,627 INFO  [org.apache.catalina.loader.WebappLoader] 
Dual registration of jndi stream handler: factory already defined
  | 2007-01-10 12:58:07,647 DEBUG [org.jboss.web.tomcat.tc6.WebAppLoader] 
injectionContainer enabled and processing beginning with Tomcat WebAppLoader
  | 2007-01-10 12:58:08,519 ERROR 
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/admin]] Error 
configuring application listener of class 
com.sun.faces.config.GlassFishConfigureListener
  | java.lang.ClassNotFoundException: 
com.sun.faces.config.GlassFishConfigureListener
  | at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1355)
  | at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
  | at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3770)
  | at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)
  | at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
  | at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
  | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
  | at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
  | at 
org.apache.catalina.core.StandardContext.init(StandardContext.java:5285)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
  | at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
  | at 
org.jboss.web.tomcat.tc6.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:302)
  | at 
org.jboss.web.tomcat.tc6.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:129)
  | at 
org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:355)
  | at org.jboss.web.deployers.WebModule.startModule(WebModule.java:88)
  | at org.jboss.web.deployers.WebModule.start(WebModule.java:66)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
  |