[jboss-user] [JBoss Seam] - Re: Function 's:hasRole' not found

2007-06-22 Thread chrismalan
In addition to the above, the stack trace in the console window gives the 
following information not found in the Seam window:

  | 15:54:29,481 ERROR [STDERR] java.lang.ClassNotFoundException: No 
ClassLoaders found for: org.jboss.seam.security.SecurityFunctions
  | 15:54:29,481 ERROR [STDERR] at 
org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
  | 15:54:29,481 ERROR [STDERR] at 
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:514)
  | 15:54:29,481 ERROR [STDERR] at 
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
  | 15:54:29,481 ERROR [STDERR] at 
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
  | 15:54:29,481 ERROR [STDERR] at 
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
  | 15:54:29,481 ERROR [STDERR] at java.lang.Class.forName0(Native 
Method)
  | 15:54:29,481 ERROR [STDERR] at 
java.lang.Class.forName(Class.java:164)

jboss-app.xml is fine.  How can I get JBoss to supply the class-loader to load 
the class which is in jboss-seam.jar which is in the ear and duly noted in 
application.xml?

Thanks

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

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


[jboss-user] [Clustering/JBoss] - Re: farm deployment

2007-06-22 Thread checkmate
resolved


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

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


[jboss-user] [JBoss Seam] - Re: How to extract the page id

2007-06-22 Thread [EMAIL PROTECTED]
I strongly recommend that you install a debugger on your development machine. 
It will make your life *much* easier :-)

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

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


[jboss-user] [JBoss Seam] - Re: Function 's:hasRole' not found

2007-06-22 Thread [EMAIL PROTECTED]
Are you using JSP or facelets?

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

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


[jboss-user] [JBoss Seam] - Configure Exadel with Seam gen

2007-06-22 Thread kaviarasu
Hi 
i like to configure seam gen as shown in this link
http://michaelyuan.com/download/seam/rhds-20070306.html
can any one help how to do this .
Thank u 
regards 
kaviarasu

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

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


[jboss-user] [EJB 3.0] - Re: Why is injection not working in AS 4.0 and 4.2 (servlets

2007-06-22 Thread jobor
Hello,

I wanted to use EJB3 with JSF1.2 and injection. For this combination you have 
to do a little bit more work in JBoss-4.2.0.GA. This is how injection worked 
for me:

The ejb jar and war file are deployed separate from each other in the same 
deploy diectory. So not in an EAR file! There is also no ejb-jar.xml in the 
EJB3 app.

The EJB3 bean:

  | @Stateless
  | @Local(NewsAgentLocal.class)
  | public class NewsAgentBean implements NewsAgent {
  | ...
  | }
  | 

The EJB3 local interface:

  | @Local
  | public interface NewsAgentLocal extends NewsAgent {
  | }
  | 

The JSF1.2 backing bean:

  | public class WelcomeHandler {
  | 
  |   @EJB(name=java:comp/env/ejb/NewsAgent) private NewsAgentLocal agent;
  | 
  |   public DataModel getNewsModel() {
  | NewsFilter f = new NewsFilter();
  | Integer year = new Integer(Calendar.getInstance().get(Calendar.YEAR));
  | f.setYear(year.shortValue());
  | newsModel.setWrappedData(agent.getNewsItems(f));
  | return newsModel;
  |   }
  | ...
  | }
  | 

The web.xml:

  |   ejb-local-ref
  | ejb-ref-nameejb/NewsAgent/ejb-ref-name
  | ejb-ref-typeSession/ejb-ref-type
  | local-home/local-home
  | localnl.borsoft.hd.news.NewsAgentLocal/local
  |   /ejb-local-ref
  | 

The jboss-web.xml:

  |   ejb-local-ref
  | ejb-ref-nameejb/NewsAgent/ejb-ref-name
  | local-jndi-nameNewsAgentBean/local/local-jndi-name
  |   /ejb-local-ref
  | 

For all XML descriptors I do use the EE5 document type declarations.
You can find them in jboss-4.2.0.GA\docs\dtd and jboss-4.2.0.GA\docs\schema.

With regards,
Johan Borchers


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

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


[jboss-user] [JBoss jBPM] - Re: jbpm process undeploy constraint violation in jbpm 3.2.G

2007-06-22 Thread naseem.k
The exact exception which I get on the console is:

anonymous wrote : 
  |   [exec] 11:25:33,259 DEBUG [JobExecutorThread] querying for acquirable 
job...
  |  [exec] 11:25:33,415 ERROR [STDERR] org.hibernate.HibernateException: 
null index column for collection: org.jbpm.graph.def.ProcessDefinition.actions
  |  [exec] at 
org.hibernate.persister.collection.AbstractCollectionPersister.readIndex(AbstractCollectionPersister.java:687)
  |  [exec] at 
org.hibernate.collection.PersistentMap.readFrom(PersistentMap.java:222)
  |  [exec] at 
org.hibernate.loader.Loader.readCollectionElement(Loader.java:994)
  |  [exec] at 
org.hibernate.loader.Loader.readCollectionElements(Loader.java:635)
  |  [exec] at 
org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:580)
  |  [exec] at org.hibernate.loader.Loader.doQuery(Loader.java:689)
  |  [exec] at 
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
  |  [exec] at org.hibernate.loader.Loader.loadCollection(Loader.java:1919)
  |  [exec] at 
org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader.java:36)
  |  [exec] at 
org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:541)
  |  [exec] at 
org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:60)
  |  [exec] at 
org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1705)
  |  [exec] at 
org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:344)
  |  [exec] at 
org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86)
  |  [exec] at 
org.hibernate.collection.PersistentMap.values(PersistentMap.java:198)
  |  [exec] at 
org.hibernate.type.MapType.getElementsIterator(MapType.java:39)
  |  [exec] at 
org.hibernate.type.CollectionType.getElementsIterator(CollectionType.java:188)
  |  [exec] at 
org.hibernate.engine.CascadingAction.getAllElementsIterator(CascadingAction.java:266)
  |  [exec] at 
org.hibernate.engine.CascadingAction.access$100(CascadingAction.java:21)
  |  [exec] at 
org.hibernate.engine.CascadingAction$2.getCascadableChildrenIterator(CascadingAction.java:52)
  |  [exec] at 
org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:288)
  |  [exec] at 
org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:185)
  |  [exec] at 
org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:160)
  |  [exec] at 
org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:108)
  |  [exec] at org.hibernate.engine.Cascade.cascade(Cascade.java:248)
  |  [exec] at org.hibernate.engine.Cascade.cascade(Cascade.java:223)
  |  [exec] at 
org.hibernate.event.def.DefaultDeleteEventListener.cascadeBeforeDelete(DefaultDeleteEventListener.java:220)
  |  [exec] at 
org.hibernate.event.def.DefaultDeleteEventListener.deleteEntity(DefaultDeleteEventListener.java:169)
  |  [exec] at 
org.hibernate.event.def.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:110)
  |  [exec] at 
org.hibernate.impl.SessionImpl.fireDelete(SessionImpl.java:768)
  |  [exec] at org.hibernate.impl.SessionImpl.delete(SessionImpl.java:746)
  |  [exec] at 
org.jbpm.db.GraphSession.deleteProcessDefinition(GraphSession.java:249)
  |  [exec] at 
org.jbpm.db.GraphSession.deleteProcessDefinition(GraphSession.java:233)
  |  [exec] at com.traveldesk.bean.DeleteBean.undeployProcess(Unknown 
Source)
  |  [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |  [exec] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |  [exec] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |  [exec] at java.lang.reflect.Method.invoke(Method.java:585)
  |  [exec] at com.sun.el.parser.AstValue.invoke(AstValue.java:130)
  |  [exec] at 
com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:274)
  |  [exec] at 
com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
  |  [exec] at 
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
  |  [exec] at 
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:95)
  |  [exec] at javax.faces.component.UICommand.broadcast(UICommand.java:383)
  |  [exec] at javax.faces.component.UIData.broadcast(UIData.java:854)
  |  [exec] at 
javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:448)
  |  [exec] at 
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
  |  [exec] at 
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
  |  [exec] at 

[jboss-user] [JBoss Seam] - Re: Seam Eclipse project structure (newbie question)

2007-06-22 Thread tptackab
Thanks once again Alex. I was able to get my app deployed from WTP using a 
structure nearly identical to the one you described. I got the jars from a 
Netbeans Seam generated war. Now I just have to figure out which of the jars 
I'll really use...;-)

Here's the WTP project structure as it appears in Eclipse for anyone that might 
be interested:

my-application/
  | src/
  | com.myapp.foo.java
  | com.myapp.bar.java
  | ...
  | META-INF/
  | persistance.xml
  | seam.properties
  | security.drl
  | messages.properties
  | WebContent/
  | index.html
  | index.xhtml
  | foopage.xhtml
  | barpage.xhtml
  | META-INF/
  | MANIFEST.MF
  | WEB-INF/
  | faces-config.xml
  | web.xml
  | components.xml
  | seam.properties
  | LIB/
  | ajax4jsf-1.1.1-SNAPSHOT.jar
  | antlr-2.7.6.jar
  | antlr-3.0ea8.jar
  | commons-jci-core-1.0-406301.jar
  | commons-jci-janino-2.4.3.jar
  | drools-compiler-3.0.5.jar
  | drools-core-3.0.5.jar
  | el-api.jar
  | el-ri.jar
  | janino-2.4.3.jar
  | jboss-seam-debug.jar
  | jboss-seam-ioc.jar
  | jboss-seam-mail.jar
  | jboss-seam-pdf.jar
  | jboss-seam-remoting.jar
  | jboss-seam-ui.jar
  | jboss-seam.jar
  | jbpm-3.1.4.jar
  | jsf-facelets.jar
  | oscache-2.3.2.jar
  | richfaces-3.0.1-SNAPSHOT.jar
  | stringtemplate-2.3b6.jar

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

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


[jboss-user] [Installation, Configuration Deployment] - Re: Ear lib directory support

2007-06-22 Thread itsme
Yep!

As far as I understand the java ee 5 spec all you need is to put your 
additional jar files (i.e. helper jars) i the lib dir of your ear and they will 
be on your classpath.

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

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


[jboss-user] [JBoss Portal] - 2.4.1: how to dynamically select css file for a page

2007-06-22 Thread bvogt
Does anyone know, if it's pssobile to dynamically select a certain css file for 
a page?

Thanks in advance for any hints.

Burkhard

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

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


[jboss-user] [JBossWS] - SOAP Responce does not populate namespace prefix

2007-06-22 Thread last_deceneu
Hello!

I'm developing a RPC web service using annotations and a .net client.

The problem is that response attribute xsi:type=dtBaseCommand does not 
contain namespace ns prefix for used schema, it should be 
xsi:type=ns:dtBaseCommand (response is created correct for simple types). And 
on .net client xml soap processor crashes because does not now where is located 
that type and to instantiate it

I'm using jboss 4.2GA

Is any way to force soap response to use namespace prefix?

The soap response is:


  | env:Envelope xmlns:env=http://schemas.xmlsoap.org/soap/envelope/;
  |env:Header/
  |env:Body
  |   ns:getDtCommand3Response xmlns:ns=http://www.address/DTComponent;
  |  return xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:type=dtBaseCommand
  | commandIdCMD3_COMMAND/commandId
  |  /return
  |   /ns:getDtCommand3Response
  |/env:Body
  | /env:Envelope
  | 

And schema for objects is:


  | xs:schema targetNamespace=http://www.address/DTComponent; version=1.0
  |   xs:complexType name=dtBaseCommand
  | xs:complexContent
  | xs:extension base=tns:dtCommand
  |xs:sequence/
  | /xs:extension
  | /xs:complexContent
  |   /xs:complexType
  |   xs:complexType name=dtCommand
  | xs:sequence
  |   xs:element minOccurs=0 name=commandId type=xs:string/
  | /xs:sequence
  |   /xs:complexType
  | /xs:schema
  | 

Thanks!


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

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


[jboss-user] [JBoss Seam] - Re: pass seam component to external ejb call causes exceptio

2007-06-22 Thread leezard
Hey, people - nobody can't help?

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

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


[jboss-user] [JBoss Seam] - NotLoggedInException handling and redirect in pages.xml

2007-06-22 Thread dkane
Hello 

My pages.xml contains the following block : 

 exception class=org.jboss.seam.security.NotLoggedInException
  | redirect view-id=/home.xhtml
  | message severity=warnYou must register to use this 
function/message
  | /redirect
  | /exception

Sometimes it works fine, but when I redeploy the application and try to refresh 
the page that contains component with @Restrict(#{identity.loggedIn}) 
annotaotion, I am getting javax.faces.el.EvaluationException . The next 
exception in stack trace is NotLoggedInException, indeed, but pages.xml rule 
does not work because it is not on the top of the stack trace. 

I could of course add the same rule for EvaluationException , but this won't be 
good policy - EvaluationException may happen for many reasons besides expired 
login. 

What is the typical approach for this case ? 

Comment to the following Exception : partSearch component is annotated by 
@Restrict(#{identity.loggedIn}) : 


  | Error Rendering View[/parts.xhtml]
  | javax.faces.el.EvaluationException: /parts.xhtml @23,93 
value=#{partSearch.searchString}: Exception getting value of property 
searchString of base of type : 
org.javassist.tmp.java.lang.Object_$$_javassist_23
  | at 
com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:60)
  | at javax.faces.component.UIOutput.getValue(UIOutput.java:77)
  | at 
org.apache.myfaces.shared_impl.renderkit.RendererUtils.getStringValue(RendererUtils.java:217)
  | at 
org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase.renderInput(HtmlTextRendererBase.java:135)
  | at 
org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase.encodeEnd(HtmlTextRendererBase.java:53)
  | at 
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
  | at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:252)
  | at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
  | at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
  | at 
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573)
  | at 
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
  | at 
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
  | at 
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 

[jboss-user] [JBoss Seam] - Re: Start a nested conversation

2007-06-22 Thread g00se24
The long explanation is something like this:

Idea: Select and edit an entity bean, in a conversation

I have a h:dataTable with buttons which have a seam like action method (el 
enhancement). The backing bean is  annotated to start a conversation if the 
method is called. The first conversation is started and you get redirected to 
the an edit page.

Here you can edit the attributes of the object. So I was able to implement the 
direct attributes. Now I tried to start a nested conversation to select the 
Master-Detail related entities.

But this on an ajax (a4j + richfaces) enabled site.

Do you need some code?

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

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


[jboss-user] [JBossWS] - Re: Problem with inheritance and JBossWS

2007-06-22 Thread fambad
I have testet a little bit more and now I have a little example that I can 
deploy. I also startet with the wsdl file and used wsconsume to create the java 
classes and annotation. Then I copied these classes in my project and so the 
deployment was successful. But when I access the deployed webservice I am 
getting a ClassCastException during the request.

Below I list my classes:

ClassA

  | @XmlAccessorType(XmlAccessType.FIELD)
  | @XmlType(name = classA, propOrder = {
  | propA
  | })
  | public class ClassA {
  |   
  |   private String propA;
  |   
  |   public ClassA() {
  |   }
  | 
  |   public String getPropA() {
  | return propA;
  |   }
  | 
  |   public void setPropA(String propA) {
  | this.propA = propA;
  |   }
  |   
  | }
  | 

ClassB

  | @XmlAccessorType(XmlAccessType.FIELD)
  | @XmlType(name = classB, propOrder = {
  | propB
  | })
  | public class ClassB extends ClassA {
  |   private String propB;
  |   public ClassB() {
  |   }
  | 
  |   public String getPropB() {
  | return propB;
  |   }
  | 
  |   public void setPropB(String propB) {
  | this.propB = propB;
  |   }
  | }
  | 

ClassC

  | @XmlAccessorType(XmlAccessType.FIELD)
  | @XmlType(name = classC, propOrder = {
  | propC
  | })
  | public class ClassC extends ClassB {
  |   
  |   private String propC;
  |   public ClassC() {
  |   }
  | 
  |   public String getPropC() {
  | return propC;
  |   }
  | 
  |   public void setPropC(String propC) {
  | this.propC = propC;
  |   }
  | }
  | 
GetClassBResponse

  | @XmlAccessorType(XmlAccessType.FIELD)
  | @XmlType(name = getClassBResponse, propOrder = {
  | someElement,
  | data
  | })
  | public class GetClassBResponse {
  | 
  | @XmlElementRef(name = someElement, type = JAXBElement.class)
  | protected JAXBElementString someElement;
  | @XmlElement(required = true, nillable = true)
  | protected ClassB data;
  | 
  | public JAXBElementString getSomeElement() {
  | return someElement;
  | }
  | 
  | public void setSomeElement(JAXBElementString value) {
  | this.someElement = ((JAXBElementString ) value);
  | }
  | 
  | public ClassB getData() {
  | return data;
  | }
  | 
  | public void setData(ClassB value) {
  | this.data = value;
  | }
  | }
  | 
SampleWSWithDocument_Bare

  | @WebService()
  | @SOAPBinding( style = SOAPBinding.Style.DOCUMENT, use = 
SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.BARE )
  | public class SampleWSWithDocument_Bare {
  |  
  |   public SampleWSWithDocument_Bare() {
  |   }
  |   
  |   @WebMethod()
  |   public GetClassBResponse getClassCAsClassB() {
  | System.out.print(getClassCAsClassB);
  | ClassC classC= new ClassC();
  | classC.setPropA(propA);
  | classC.setPropB(propB);
  | classC.setPropC(propC);
  | 
  | GetClassBResponse resp = new GetClassBResponse();
  | resp.setData(classC);
  | 
  | ObjectFactory fact = new ObjectFactory();
  | resp.setSomeElement(fact.createGetClassBResponseSomeElement(Test));
  | return resp;
  |   }
  | }
  | 

ObjectFactory

  | @XmlRegistry
  | public class ObjectFactory {
  | 
  | private final static QName _GetClassCAsClassBResponse_QNAME = new 
QName(http://ws.examples.mstrauch/;, getClassCAsClassBResponse);
  | private final static QName _GetClassBResponseSomeElement_QNAME = new 
QName(http://ws.examples.mstrauch/;, someElement);
  | 
  | public ObjectFactory() {
  | }
  | 
  | public ClassA createClassA() {
  | return new ClassA();
  | }
  | 
  | public ClassC createClassC() {
  | return new ClassC();
  | }
  | 
  | public ClassB createClassB() {
  | return new ClassB();
  | }
  | 
  | public GetClassBResponse createGetClassBResponse() {
  | return new GetClassBResponse();
  | }
  | 
  | @XmlElementDecl(namespace = http://ws.examples.mstrauch/;, name = 
getClassCAsClassBResponse)
  | public JAXBElementGetClassBResponse 
createGetClassCAsClassBResponse(GetClassBResponse value) {
  | return new 
JAXBElementGetClassBResponse(_GetClassCAsClassBResponse_QNAME, 
GetClassBResponse.class, null, value);
  | }
  | 
  | @XmlElementDecl(namespace = http://ws.examples.mstrauch/;, name = 
someElement, scope = GetClassBResponse.class)
  | public JAXBElementString createGetClassBResponseSomeElement(String 
value) {
  | return new JAXBElementString(_GetClassBResponseSomeElement_QNAME, 
String.class, GetClassBResponse.class, value);
  | }
  | }
  | 

Now I get follow error message during request.


08:59:41,554 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
javax.xml.soap.SOAPException: java.lang.ClassCastException: 
com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl
at javax.xml.soap.SOAPFactory.newInstance(SOAPFactory.java:68)
at 

[jboss-user] [JBossWS] - MTOM + WS Security = problem

2007-06-22 Thread mr_d
Hello,

Has anyone tried to have a web service with mtom *and* ws security activated?

I did some tests with a web service as an ejb3 stateless bean and a Java 
standalone client (using the client parts of JbossWS): mtom only works, 
ws-security only works. But when I enable both, I get an exception:

javax.xml.ws.soap.SOAPFaultException: Endpoint {http://foo.org/mtom}ServiceImpl 
does not contain
operation meta data for: {http://www.w3.org/2001/04/xmlenc#}EncryptedData

If I inspect the network communication, the client seems to use ws-security and 
put all the data as an encrypted envelope. There is no binary attachment 
anymore. On the server side, it seems that ws-security cannot be enabled with 
mtom, as the exception suggests.

Maybe the two standards are not compatible to work together. I didn't found any 
information that says: no, no, no don't use mtom with ws-security.

Thanks in advance for any enlightenment,

Let me know if my description is not clear enough,

best regards,

:oD.


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

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


[jboss-user] [JBossWS] - Re: MTOM + WS Security = problem

2007-06-22 Thread davideling
Hello,
i did it,
and i got the attachment inlined in the soap body
encrypted (is it right?).

Be sure you annotated the service implementation class


  | @BindingType(javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_MTOM_BINDING)
  | @EndpointConfig(configName = Standard WSSecurity Endpoint)
  | public class ServiceCipheredSignedImpl implements
  |   
ServiceCipheredSigned {
  | 
  |   // Bla bla ...
  | 
  | }
  | 

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

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


[jboss-user] [JBoss Seam] - Re: replacement for ifNotBegunOutcome in @Conversational

2007-06-22 Thread urosmil
Hi azalea,

now I have to add page conversation-required=true 
no-conversation-view-id=/somewhere.xhtml
for all 10 pages in wizard.
Is there some way to make this shorter (like 
no-conversation-view-id=/offer*.xhtml )?

Thanks,
Uros!

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

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


[jboss-user] [JBossWS] - Re: charset encoding problem with the jsr181pojo sample : ec

2007-06-22 Thread floefliep
I've been debugging for hours on this one and eventually tracked the problem 
down, which I posted on the JIRA:

http://jira.jboss.org/jira/browse/JBWS-1716

A workaround UTF-8 fix can be downloaded there for version 1.2.1GA of JBossWS.

Setting the system property file.encoding may not work when you have an 
application which relies on platform-default file encoding.

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

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


[jboss-user] [JBoss Seam] - Re: Why is core:process-definitions considered a development

2007-06-22 Thread avbentem
I just noticed that Michael Yuan's book, JBoss Seam Simplicity and Power Beyond 
Java EE does not explain this issue either (page 265). So I feel it's really 
important to make this clear in the online documentation?

Can anyone think of a good text to add at Installing process definitions? Like 
maybe

We need to install jBPM:
  | 
  | core:jbpm /
  | 
  | [BEWARE: is it indeed enough to just include an empty core:jbpm node?]
  | 
  | We also need to tell jBPM where to find the business process definitions.
  | The following will reload them into the jBPM database tables each time
  | the application is started, and can be very helpful during development:
  | 
  | core:jbpm
  | core:process-definitions
  | valuetodo.jpdl.xml/value
  | /core:process-definitions
  | /core:jbpm
  | 
  | See the jBPM documentation for examples on loading the process definitions
  | into a production environment.
If you have any ideas then please comment on JBSEAM-1034. Maybe the 
components.xml XSD can be annotated to make smart IDEs show a tooltip that 
could alert people...

Thanks,
Arjan.

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

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


[jboss-user] [JBoss Seam] - Re: Start a nested conversation

2007-06-22 Thread g00se24
Here is the code:

First seam bean
These bean start the outer conversation, when a user gets selected (call 
select(object)).
Now the user gets redirected to a page where he can see and edit the user.
(The select method is called via an s:link)

  | @Name(searchuser)
  | @Conversational(ifNotBegunOutcome=start)
  | @Scope(ScopeType.CONVERSATION)
  | public class UserControl extends Selection implements Serializable {
  | 
  | @In
  | private PreLogin loginData;
  | 
  | private boolean edit = false;
  | 
  | public void edit(boolean edit) {
  | this.edit = edit;
  | }
  | 
  | public User getSelected() {
  | User selected = ((User)super.getSelected());
  | if (selected != null) {
  | selected.toString();
  | }
  | return selected;
  | }
  | 
  | @Begin
  | public void add() {
  | edit(true);
  | setSelected(new User());
  | }
  | 
  | @Begin
  | @End
  | public void delete(User user) {
  | if (user != null) {
  | user.setStatus(StateEnum.DELETED);
  | entityManager.merge(user);
  | }
  | }
  | 
  | @Begin
  | public void select(Object object) {
  | super.select(object);
  | }
  | 
  | @End
  | public void save() {
  | entityManager.merge(getSelected());
  | }
  | 
  | @End
  | public void cancel() {
  | setSelected(null);
  | }
  | 
  | public ListUser getResult() {
  | return super.getResult();
  | }
  | 
  | public String getQuery() {
  | return 
Finder.searchUser(loginData.getUser().getClient().toString(), surName, 
getSearch(), surName);
  | }
  | 
  | public boolean isEdit() {
  | return edit;
  | }
  | }
  | 
  | public abstract class Selection {
  | 
  | @In
  | protected EntityManager entityManager;
  | 
  | @Logger
  | protected Log log;
  | 
  | /**
  |  * The text of an input field filled by the user. This field is used to
  |  * filter the db query.
  |  */
  | private String search = ;
  | 
  | /**
  |  * The last selected object.
  |  */
  | private Object selected;
  | 
  | public String getSearch() {
  | return search;
  | }
  | 
  | public void setSearch(String search) {
  | this.search = search;
  | }
  | 
  | protected List getResult() {
  | List query = entityManager.createQuery(getQuery()).getResultList();
  | return query;
  | }
  | 
  | public Object getSelected() {
  | return selected;
  | }
  | 
  | public void setSelected(Object selected) {
  | this.selected = selected;
  | }
  | 
  | public void select(Object object) {
  | setSelected(object);
  | }
  | 
  | public abstract String getQuery();
  | }
  | 

If the user clicks now on an link like:

  | a4j:commandLink value=Edit 
action=#{subchannels.select(item)} 
oncomplete=javascript:Richfaces.showModalPanel('subchannel',{width:450, 
top:200}) reRender=subchannelsSelectable, subchannelsEdit
  | s:conversationId /
  | s:conversationPropagation type=Begin/
  | /a4j:commandLink
  | 
or

  | a4j:commandLink value=Edit 
action=#{subchannels.select(item)} 
oncomplete=javascript:Richfaces.showModalPanel('subchannel',{width:450, 
top:200}) reRender=subchannelsSelectable, subchannelsEdit
  | s:conversationId /
  | s:conversationPropagation type=nested/
  | /a4j:commandLink
  | 

The nested conversation should start, the @Begin method is called, but I can't 
see the conversation anywhere
The second end up with a null pointer exception at 
java.lang.NullPointerException

at org.jboss.seam.core.Manager.handleConversationPropagation(Manager.jav

a:534)

If I use the s:link I would really start to miss my ajax The problem is 
which one is the correct link solution (I believe)?

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Security Exception: Denied: EJBMethodPermission

2007-06-22 Thread NigelWhite
You want to know what it was?

I changed from using EntityManagerFactory.createEntityManager() which is 
deprecated to using EntityManagerFactory.buildEntityManager.

That bust the whole thing!

I'm sticking with the deprecated method.

What's going on? They've basically broken Hibernate, by adding a new method 
which doesn't work, and deprecated the working method!

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

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


[jboss-user] [JBoss Seam] - Adding Taglibrary = uncached exception

2007-06-22 Thread dreuzel
am using  seam 1.2.1G   and  adding a taglibrary   for faces
(included  web.xml at the end)

any idea  patch ?



10:03:02,656 INFO  [ServletCacheAdministrator] Created new application-scoped 
cache at key: __oscache_cache
  | 10:03:03,484 INFO  [Lifecycle] starting up: org.jboss.seam.security.identity
  | 10:03:13,437 ERROR [ExceptionFilter] uncaught exception
  | javax.servlet.ServletException: com/sun/facelets/tag/AbstractTagLibrary
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
  | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at 
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
  | at 
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Thread.java:619)
  | 10:03:13,468 ERROR [ExceptionFilter] exception root cause
  | java.lang.NoClassDefFoundError: com/sun/facelets/tag/AbstractTagLibrary
  | at java.lang.ClassLoader.defineClass1(Native Method)
  | at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
  | at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
  | at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
  | at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
  | at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  | at 
org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:672)
  | at 
org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:652)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  | at 
org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:190)
  | at 

[jboss-user] [JBoss Portal] - What is the standard way to include Javascript resources acc

2007-06-22 Thread snicoll
Hello,

We use a JS library in multiple portlets and we need to have it loaded at all 
times. Since we don't know which portlets will be deployed in which pages, we 
can't rely on the views content to define the Javascript.

Currently we have hardcoded our script in:
$JBOSS_PORTAL/server/default/deploy/jboss-portal.sar/portal-core.war/WEB-INF/jsp/header.jsp

Is there a more portable way to do this? 

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

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


[jboss-user] [JBoss Seam] - Re: replacement for ifNotBegunOutcome in @Conversational

2007-06-22 Thread urosmil
Hi azalea,

CORRECTION:

Instead of no-conversation-view-id=/offer*.xhtml there should be 
view-id=/offer*.xhtml? 

page view-id=/offer*.xhtml 
  |   conversation-required=true 
  |   no-conversation-view-id=/somepage.xhtml
  | /page


Thanks,
Uros!

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

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


[jboss-user] [JBoss jBPM] - How to download souce code in jbpm-console.war web part?

2007-06-22 Thread cnmqw
http://jbpm.cvs.sourceforge.net/jbpm/;  has no lastest web source code.

Can I download it like  jbpm\WEB-INF\classes\org\jbpm\webapp\... part source 
code?

thanks.


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

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


[jboss-user] [Installation, Configuration Deployment] - an error about jboss rules

2007-06-22 Thread kongwang
the content im my error log  like the below:

2007-06-22 16:11:09,769 [] ERROR droolsrule - RuleBaseContainer
java.lang.ArrayIndexOutOfBoundsException: 17
at 
org.drools.util.AbstractHashTable$HashTableIterator.next(AbstractHashTable.java:225)
at org.drools.reteoo.Rete.getMatchingNodes(Rete.java:181)
at org.drools.reteoo.Rete.assertObject(Rete.java:114)
at 
org.drools.reteoo.ReteooRuleBase.assertObject(ReteooRuleBase.java:196)
at 
org.drools.reteoo.ReteooWorkingMemory.doAssertObject(ReteooWorkingMemory.java:68)
at 
org.drools.common.AbstractWorkingMemory.assertObject(AbstractWorkingMemory.java:724)
at 
org.drools.common.AbstractWorkingMemory.assertObject(AbstractWorkingMemory.java:543)
at 
com.tbctu.biz.core.dynamicrule.RuleBaseContainer.update(RuleBaseContainer.java:101)
.

I don't know why?
who can help me?

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

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


[jboss-user] [JBoss Seam] - Re: replacement for ifNotBegunOutcome in @Conversational

2007-06-22 Thread azalea
Hi,


  | page view-id=/offer*.xhtml
  |   conversation-required=true
  |   no-conversation-view-id=/somepage.xhtml
  | /page
  | 
If /offer*.html matches just pages which need the conversation and you access 
that any page without conversation, I think Seam will redirect to 
/somepage.xhtml.

Please try and tell me that result :)


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

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


[jboss-user] [JBoss Seam] - Re: How to extract the page id

2007-06-22 Thread trekker880
Hi this is my simple code -
package example;


import java.io.FileInputStream;

import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Begin;
import org.jboss.seam.annotations.Create;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.core.Jbpm;
import org.jboss.seam.core.Pageflow;

import org.jbpm.graph.def.ProcessDefinition;


//@Name(submit2)
//@Scope(ScopeType.PAGE)
public class UserTest {

@Create
@Begin(pageflow=submit2)

public void test() throws Exception{

//Jbpm jbpm = new Jbpm();
boolean b;
System.out.println(--Before the instance---);
ProcessDefinition pageflowDefinition 
=Jbpm.instance().getPageflowProcessDefinition(submit2);

if(pageflowDefinition == null){
System.out.println(--pageflowDefinition is 
null---);
}else{
System.out.println(--pageflowDefinition is not 
null entry---);
}
}
public static void main(String[] args) throws Exception{
UserTest test1 = new UserTest();
test1.test();

}

}

Here i am getting the IlligalStateException at the 
getpageflowProcessDefinition() method. Is there any sample code so that i can 
have a look and find out the procedure . Its urgent
**
Exception in thread main java.lang.IllegalStateException: No application 
context active
at org.jboss.seam.core.Jbpm.instance(Jbpm.java:248)
at example.UserTest.test(UserTest.java:29)
at example.UserTest.main(UserTest.java:39)


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

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


[jboss-user] [JBoss Seam] - Re: where to find errata for Seam book

2007-06-22 Thread baz
Now i have found the reference. Look 
here:http://www.jboss.com/index.html?module=bbop=viewtopicp=4044391

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

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


[jboss-user] [JBoss Seam] - Re: How to extract the page id

2007-06-22 Thread [EMAIL PROTECTED]
Please use [ code ] tags when you post.  The code you posted above won't work 
as the call to test1.test() isn't intercepted by the container - hence the 
IllegalStateException.  Try just calling the method from a JSF page.

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

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


[jboss-user] [JBoss Seam] - Re: Adding Taglibrary = uncached exception

2007-06-22 Thread [EMAIL PROTECTED]
The server is having problems loading Facelets.  You have it in your 
WEB-INF/lib?

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

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


[jboss-user] [JBossWS] - Re: Problem with inheritance and JBossWS

2007-06-22 Thread hannes.koller
Ok I have managed to create a simple example of the behavior. Please note that 
I am pretty new to webservices and JBossWS (started using it a few days ago) so 
sorry if something is overly complicated. Feedback is highly appreciated. 

I am using JBoss 4.2.0.GA and java version 1.5.0_08

I started with the following WSDL (I have modified an echo tutorial I found on 
the web so please dont be confused by the namespace and other irregularities): 


  | ?xml version=1.0 encoding=UTF-8?
  | definitions name='EchoService' targetNamespace='http://echo/'
  | xmlns='http://schemas.xmlsoap.org/wsdl/'
  | xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
  | xmlns:tns='http://echo/'
  | xmlns:xsd='http://www.w3.org/2001/XMLSchema'
  | types
  | xs:schema targetNamespace='http://echo/' version='1.0'
  | xmlns:tns='http://echo/'
  | xmlns:xs='http://www.w3.org/2001/XMLSchema'
  | 
  | xs:complexType name='Something'
  | xs:sequence
  | xs:element minOccurs='0' name='arg0' 
type='xs:string' /
  | /xs:sequence
  | /xs:complexType
  | 
  | xs:complexType name='A'
  | xs:sequence
  | xs:element minOccurs='0' name='arg0' 
type='xs:string' /
  | /xs:sequence
  | /xs:complexType
  | 
  | xs:complexType name='B'
  | xs:complexContent
  | xs:extension base=tns:A
  | xs:sequence
  | xs:element 
minOccurs='0' name='arg1' type='xs:string' /
  | /xs:sequence
  | /xs:extension
  | /xs:complexContent
  | /xs:complexType   
  | xs:complexType name='C'
  | xs:complexContent
  | xs:extension base=tns:B
  | xs:sequence
  | xs:element 
minOccurs='0' name='arg2' type='xs:string' /
  | /xs:sequence
  | /xs:extension
  | /xs:complexContent

  | /xs:complexType
  | 
  | xs:complexType name=BResponse
  | xs:sequence
  | xs:element name=something 
type=tns:Something minOccurs=1 maxOccurs=1 nillable=true/
  | xs:element name=b type=tns:B 
minOccurs=1 maxOccurs=1 nillable=true/
  | /xs:sequence
  | /xs:complexType
  | 
  | xs:element name=bResponse type=tns:BResponse/
  | xs:element name=something type=tns:Something/
  | /xs:schema
  | /types
  | 
  | message name='GetB_Request' /
  | 
  | message name='GetB_GetBResponse'
  | part name='para' element=tns:bResponse/
  | /message
  | 
  | portType name='GetB'
  | operation name='getB' 
  | input message='tns:GetB_Request'/
  | output message='tns:GetB_GetBResponse' /
  | /operation
  | /portType
  | binding name='GetBBinding' type='tns:GetB'
  | soap:binding style='document' 
transport='http://schemas.xmlsoap.org/soap/http' /
  | operation name='getB'
  | soap:operation soapAction='' /
  | input
  | soap:body use='literal' /
  | /input
  | output
  | soap:body use='literal' /
  | /output
  | /operation
  | /binding
  | service name='GetBService'
  | port binding='tns:GetBBinding' name='GetBPort'
  | soap:address location='REPLACE_WITH_ACTUAL_URL' /
  | /port
  | /service
  | /definitions
  | 

We have an  A-B-C  Class Hierarchy here, and a BResponse Complex Type which 
consists of a B and a Something. Note the minOccurs=1 maxOccurs=1 
nillable=true  . If I throw the file at wsconsume  it creates a number of 
classes. The BResponse Class looks like this: 


  | @XmlAccessorType(XmlAccessType.FIELD)
  | @XmlType(name = BResponse, propOrder = {
  | something,
  | b
  | })
  | public class BResponse {
  | 
  | @XmlElement(required = true, nillable = true)

[jboss-user] [JBoss Seam] - Re: selectOneMenu binding to session object

2007-06-22 Thread [EMAIL PROTECTED]
You need a JSF converter - JSF can't handle object in select boxes.  Take a 
look at Rick Hightowers tutorials on Developer Works for a good intro to this.

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

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


[jboss-user] [JBoss Seam] - DataModelSelection always returns first row from h:dataTable

2007-06-22 Thread dkane
When I click Remove in any row of the table, removeSelectedPosition() is 
always being called for first row(entity). What is wrong ? 


XHTML : 

h:dataTable value=#{cart.cartList} var=item
  |h:column
  |   f:facet name=headerQuantity/f:facet
  |   h:inputText value=#{item.quantity} style=width: 30px;/
  |/h:column
  |h:column
  |   f:facet name=headerItem/f:facet
  | #{item.part.description}
  |/h:column
  |h:column  
  | s:link id=cancel value=Remove 
action=#{cart.removeSelectedPosition}/
  |/h:column
  |/h:dataTable 


cart component : 

@Stateful
  | @Name(cart)
  | @Scope(ScopeType.SESSION)
  | @Restrict(#{identity.loggedIn})
  | 
  | public class ShoppingCartBean implements ShoppingCart, Serializable 
  | {  
  |private OrderCMP cartOrder = new OrderCMP();
  | 
  |@DataModelSelection
  |private OrderPositionCMP selectedPosition;
  |
  |public void addPart(PartCMP part, int quantity)
  |{
  | cartOrder.addPosition(part, quantity);
  |}
  |
  |public void addPart(PartCMP part)
  |{
  | this.addPart(part,1);
  |}
  |   
  |public void removeSelectedPosition()
  |{
  |if (selectedPosition!=null) removePart(selectedPosition);
  |}
  |
  | public void removePart(OrderPositionCMP orderPos)
  | {   
  | cartOrder.removePosition(orderPos.getPart()); 
  | }
  | 
  | @DataModel
  | public ListOrderPositionCMP getCartList()
  | {   
  | return(cartOrder.getOrderPositions());
  | }
  | 
  | public boolean getIsEmpty()
  | {   
  | return(cartOrder.getOrderPositions().size()==0);
  |  }
  |  
  |  public int getTotalPositions()
  |  {  
  | return(cartOrder.getOrderPositions().size());
  |  }
  |  
  |  public void resetCart()
  |  {
  | cartOrder = new OrderCMP();
  |  }
  |  
  |  public OrderCMP getOrder()
  |  {
  | return(cartOrder);
  |  }
  | 
  |  @Destroy @Remove
  |  public void destroy()
  |  {  
  |  }
  | 
  | }
  | 


Thank you 

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

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


[jboss-user] [JBoss Seam] - Re: pageflow, validation and redisplay

2007-06-22 Thread [EMAIL PROTECTED]
If you mean a Java 5 enum, then your JSF isn't going to work.

h:selectOneMenu value=#{person.salutation} required=true
  |s:enumItem label=#{messages.salutationMr} enumValue=MR /
  |s:enumItem label=#{messages.salutationMrs} enumValue=MRS /
  |s:convertEnum /
  | /h:selectOneMenu

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

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


[jboss-user] [JBoss Seam] - Re: Exception in email render

2007-06-22 Thread [EMAIL PROTECTED]
This has very little to do with email rendering ;)

Post your JSF and backing bean.

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

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


[jboss-user] [JBoss Seam] - Re: Configuration of just using seam taglib

2007-06-22 Thread [EMAIL PROTECTED]
You can't.  Seam ui is heavily dependent on seam core.  You could of course 
take a look at how the model validation is implemented (start with 
ModelValidator in seam-ui).

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

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


[jboss-user] [JBoss Seam] - seam email unwanted text in email

2007-06-22 Thread susnet
I wonder why my emails look like this:

--=_Part_8_21777063.1180128429593 Content-Type: multipart/alternative; 
boundary==_Part_9_28910288.1180128429609 
--=_Part_9_28910288.1180128429609 Content-Type: text/plain; 
charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 
Content-Disposition: inline --=_Part_9_28910288.1180128429609 Content-Type: 
text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 
Content-Disposition: inline 

Name:sus

Email:[EMAIL PROTECTED]

Message:test

--=_Part_9_28910288.1180128429609-- --=_Part_8_21777063.1180128429593-- 


-
Why does this Part_X get printed out in the email? Is there some configuration 
that i have missed?

This is what my code looks like:


  | ?xml version=1.0 encoding=ISO-8859-1 ?
  | 
  | m:message xmlns=http://www.w3.org/1999/xhtml;
  | xmlns:m=http://jboss.com/products/seam/mail;
  | xmlns:h=http://java.sun.com/jsf/html;
  | xmlns:f=http://java.sun.com/jsf/core;
  |
  | m:header name=Content-Transfer-Encoding value=8bit/
  | m:header name=Content-Type value=text/html; charset=iso-8859-1; / 
  | m:header name=Content-Disposition value=inline /
  |  
  | m:from name=Webmaster X.se address=[EMAIL PROTECTED] /
  | m:to name=X address=[EMAIL PROTECTED] /
  | m:subjectContakt: h:outputText value=#{contact.subject}/ 
/m:subject
  | 
  | m:body type=html
  |   
  |   html
  | pbName:/b h:outputText value=#{contact.visitorName}//p
  | pbEmail:/b h:outputText value=#{contact.email}//p
  | pbMessage:/b h:outputText value=#{contact.message}//p
  |   /html
  |   f:facet name=alternativeSorry your emailprogram does not support 
HTML./f:facet 
  | /m:body
  | 
  | /m:message
  | 

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

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


[jboss-user] [Installation, Configuration Deployment] - Re: an error about jboss rules

2007-06-22 Thread kongwang
my jboss rule version is 3.1

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

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


[jboss-user] [JBoss Seam] - Re: Newbie Question on JSF/Seam

2007-06-22 Thread [EMAIL PROTECTED]
Page parameters are the best way to do this:

s:link action=#{bean.select} value=Select/
  |f:param name=clientId value=#{foo.clientId} /
  |f:param name=programId value=#{foo.programId} /
  | /s:link

Where foo is the var in the datatable.

page view-id=/list.xhtml
  |param name=clientId value=#{client.id} /
  |param name=clientId value=#{program.id} /

@In Client client;
  | @In Program program;
  | 
  | public void select() {
  | }

You have injected the selected client and program (you need to make client and 
program available as contextual variables) - you can then put them in the 
session or whatever - watch out for LazyInitializationExceptions though.  Read 
the SeamApplicationFramework chapter for more on this approach

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

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


[jboss-user] [JBoss Seam] - Re: Complex Search Results - return object identifiers inste

2007-06-22 Thread [EMAIL PROTECTED]
Not really.  We have this wonderful thing called lazy fetching which makes the 
kind of pre-optimization you are planning largely useless.  If you want to do 
things this way, why not just write your own ORM rather than use an existing 
one?

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

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


[jboss-user] [JBoss Seam] - Re: pass seam component to external ejb call causes exceptio

2007-06-22 Thread [EMAIL PROTECTED]
You expect an answer in two hours from a community support forum?

Where are you packaging the jar?

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

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


[jboss-user] [JBoss Seam] - Re: pass seam component to external ejb call causes exceptio

2007-06-22 Thread [EMAIL PROTECTED]
Seam doesn't support remote EJBs as components at the moment IIRC.  Sorry, I 
didn't read your posts carefully, I got distracted by all your posts about not 
getting replies.

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

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


[jboss-user] [JBoss Messaging] - Re: Selector Help needed - Possible alternative suggestions

2007-06-22 Thread timfox
I am trying to understand the consumers you are using, you have multiple 
consumers with the *same* selector?

Do you also have other consumers with different selectors?

Please explain in more detail.

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

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


[jboss-user] [JBoss Messaging] - Re: Scheduled messages not delayed

2007-06-22 Thread fbastos1
Hi,
I have the same problem, I wonder if it's a bug ?
Fab


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

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


[jboss-user] [JBoss Seam] - Re: DataModelSelection always returns first row from h:dataT

2007-06-22 Thread ivan.tufegdzic
mistake
name of dataModel. 
You may put name @DataModel(cartList).
But it works and with methods name without get.

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

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


[jboss-user] [JBoss Messaging] - Re: Scheduled messages not delayed

2007-06-22 Thread timfox
Looking at the code I can see an issue.

To verify, can you try sending your scheduled message *outside* a transaction.

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

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


[jboss-user] [JBoss Seam] - facelet defintion Xhtml ignores Comment

2007-06-22 Thread dreuzel
just  for simple debugging, avoiding the whole of JBoss to carsh and restart 
(3 miniutes per error turn arround)   I tried to comment out parts of  the 
xhtml IT IGNORES  THE COMMENT  !!! an other  way to waste time 

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

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


[jboss-user] [JBoss Seam] - Re: DataModelSelection always returns first row from h:dataT

2007-06-22 Thread ivan.tufegdzic
Put in data value name of dataTable without handler's name.

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

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


[jboss-user] [EJB 3.0] - Re: Why is injection not working in AS 4.0 and 4.2 (servlets

2007-06-22 Thread jobor
There is little trick using the injection and JSF1.2 backing beans.
If you plan to use the bean during the constructor of the backing bean, that 
won't work.
In my backing beans I do call e.g. a find() method in the backing bean from 
within the constructor.
But in the old situation the first thing I did was looking up the 2.1 EJB so it 
was there when I needed it.
So the injection comes in later than during the execution of the constructor of 
the backing bean.

Old situation that does not work:
 
  | public class CatalogHandler {
  | 
  |   @EJB(name=java:comp/env/ejb/CatalogAgent) private CatalogAgentLocal 
agent;
  | 
  |   public CatalogHandler() {
  | ...
  | find();
  |   }
  | 
  |   public DataModel getCatalogModel() {
  | return catalogModel;
  |   }
  | 
  |   public String find() {
  | catalogModel.setWrappedData(agent.getCatalogItems(filter));
  | ...
  |   }
  | 
  | }
  | 

The new sitiuation with a little (not very nice) trick that does work:

  | public class CatalogHandler {
  | 
  |   @EJB(name=java:comp/env/ejb/CatalogAgent) private CatalogAgentLocal 
agent;
  | 
  |   private boolean doInitLater = false;
  | 
  |   public CatalogHandler() {
  | ...
  | doInitLater = true;
  |   }
  | 
  |   public DataModel getCatalogModel() {
  | if (doInitLater) {
  |   doInitLater = false;
  |   find();
  | }
  | return catalogModel;
  |   }
  | 
  |   public String find() {
  | catalogModel.setWrappedData(agent.getCatalogItems(filter));
  | ...
  |   }
  | 
  | }
  | 

Johan Borchers

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

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


[jboss-user] [JBoss Seam] - Re: pass seam component to external ejb call causes exceptio

2007-06-22 Thread [EMAIL PROTECTED]
Ok.  Can you start again, this time explain your problem and setup clearly, and 
post code for all relevant parts.

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

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


[jboss-user] [JBoss Seam] - problems with parameter

2007-06-22 Thread ivan.tufegdzic
Hi.
I have one problem. I know that is not possible to send an object from xhtml 
page to Java bean. 
How to send parameter  (from xhtml page) with object's ID , and how to catch 
that param from Java bean( and from objects ID works with them).

Thanks
it

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

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


[jboss-user] [JBossWS] - Re: Problem with inheritance and JBossWS

2007-06-22 Thread hannes.koller
Here are the generated XML fragments (read from the JBoss log):

Incorrect Behavior (B Transmitted)

  | ns1:bResponse xmlns:ns1=http://echo/;
  | something xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:nil=true/
  | b
  | arg01/arg0
  | arg12/arg1
  | /b
  | /ns1:bResponse
  | 

Correct Behavior(C Transmitted)

  | ns2:bResponse xmlns:ns2=http://echo/;
  | b xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:type=ns2:C
  | arg01/arg0
  | arg12/arg1
  | arg23/arg2
  | /b
  | /ns2:bResponse
  | 

Perhaps that helps :-)

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

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


[jboss-user] [JBoss Seam] - Re: How to extract the page id

2007-06-22 Thread trekker880
From this code i want to pass the current page,Next page as parameters in a 
method. So i want this functionality in java class.

You are right as this is not interpreted by the container.
But cannot we do something to read the xml first and after that we can use the 
methods to get the Current page-id etc.

This is the whole purpose i m doing for.

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

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


[jboss-user] [JBoss Seam] - Re: seam email unwanted text in email

2007-06-22 Thread [EMAIL PROTECTED]
Looks like a compatibility problem with JavaMail and your client.  What client?

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

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


[jboss-user] [JBoss Seam] - Re: pass seam component to external ejb call causes exceptio

2007-06-22 Thread leezard
[EMAIL PROTECTED] wrote : You expect an answer in two hours from a community 
support forum?

Sorry, I was slumped. I'm still getting into new problems and it's annoying.

Do you mean client jar? It's in ear's root dir. 

One more thing I noticed is that when I redeploy both my seam app and ear with 
EJB I call in the same time, everyting works OK. 
One more thing is that before redeployment of my app there is proxy ojbect 
passed to EJB (xxx_javaassist_4)  and after redeployment this object is 
xxx_javaassist_6, but on the other side (in external EJB) there is still 
javaassist_4 reference (altough it has correct values inside) and I think 
that's the root of the problem - something with cache. So I'm afraid the 
solution for now is to either redeploy both ears, or restart jboss every time.

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

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


[jboss-user] [JBoss Seam] - Re: pass seam component to external ejb call causes exceptio

2007-06-22 Thread leezard
But I don't use remote EJB as component, I use it like that:

@EJB
MyRemoteService service;

The only external class I use in seam is TestTransactionRequest, but it's 
mentioned in components.xml to be seam component.

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

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


[jboss-user] [JBoss jBPM] - jbpm 3.2.GA and mysql

2007-06-22 Thread sparklehorse
Hello,

I've downloaded the starter kit 3.2.GA

I was able to run it on my localhost but i need to make it run on
a jboss 4.0.5GA with mysql which will be my production
environment.

I read this thread 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4031188#4031188
but i can't understand how to migrate the hypersonic db to mysql

I get the jbpm-jpdl-3.2.GA\db\jbpm.jpdl.mysql.sql
and run it on the mysql (btw it need at list ; on all lines)
but some tables are missing (at least the JBPM_ID_USER )
and throws some errors

Furthermore the scripts assumes that the db is already there and
that it just need to be patched

I can't believe that the distribution doesn't have a mysql scripts
to create from scratch a correct db

I've already jump around docs,wiki and forum without
any success.

Thanks in advance

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

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


[jboss-user] [JBoss Seam] - Re: replacement for ifNotBegunOutcome in @Conversational

2007-06-22 Thread urosmil
Hi azalea,

it doesn't work. There are to problems:
1) redirection doesn't happen
2) Exception occurs:
WARNING: Exception Processing ErrorPage[errorCode=404, location=/startpage.jsf]
  | ClientAbortException:  java.net.SocketException: Software caused connection 
abort: socket write error
  | at 
org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:327)
  | at 
org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293)
  | at org.apache.catalina.connector.Response.flushBuffer(Response.java:537)
  | at 
org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:286)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
  | at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
  | at java.lang.Thread.run(Unknown Source)
  | Caused by: java.net.SocketException: Software caused connection abort: 
socket write error
  | at java.net.SocketOutputStream.socketWrite0(Native Method)
  | at java.net.SocketOutputStream.socketWrite(Unknown Source)
  | at java.net.SocketOutputStream.write(Unknown Source)
  | at 
org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:746)
  | at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:433)
  | at 
org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:304)
  | at 
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:991)
  | at org.apache.coyote.Response.action(Response.java:182)
  | at 
org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:322)
  | ... 13 more 

If I remove 
error-page
  | error-code404/error-code
  | location/startpage.jsf/location
  | /error-page
from web.xml error disappears but redirection steel doesn't happen.

If someone knows how to accomplish this help is appreciated!

Thanks,
Uros!

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

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


[jboss-user] [JBoss Seam] - Re: DataModelSelection always returns first row from h:dataT

2007-06-22 Thread dkane
ivan.tufegdzic,
thank you very much , it solved the problem. 

But now I am getting row is unavailable exception . 
Notable thing is that exception arises after second of third remove 
operation. First remove works well and removes exactly the clicked row. 

javax.faces.el.EvaluationException: /parts.xhtml @74,59 
rendered=#{!cart.isEmpty}: Exception getting value of property isEmpty of 
base of type : org.javassist.tmp.java.lang.Object_$$_javassist_166
  | at 
com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:60)
  | at 
javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:1075)
  | at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:241)
  | at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
  | at 
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573)
  | at 
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
  | at 
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
  | at 
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Thread.java:799)
  | Caused by: javax.faces.el.EvaluationException: Bean: 
org.javassist.tmp.java.lang.Object_$$_javassist_166, property: isEmpty
  | at 
org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:442)
  | at 
org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:82)
  | at 
com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:141)
  | at com.sun.el.parser.AstValue.getValue(AstValue.java:125)
  | at com.sun.el.parser.AstNot.getValue(AstNot.java:46)
  | at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:195)
  | at 
com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
  | at 
com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
  | ... 39 more
  | Caused by: 

[jboss-user] [JBoss Seam] - Re: DataModelSelection always returns first row from h:dataT

2007-06-22 Thread ivan.tufegdzic
Change method in cart in isEmpty without get and in page 
rendered=#{cart.empty}
But I think that you should delete that and put rendered={not empty cartList}

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

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


[jboss-user] [JBoss Seam] - Seam Conversations - Best practices?

2007-06-22 Thread rapowder
Hello,

I am developing a webclient application using Seam 1.2.1, Hibernate and a 
Postgres DB on a Jboss 4.0.5.GA server.
There is a tab menu that allows to select the category and list all items of 
this category. Each item can be clicked to edit its properties.

So far, to handle the navigation between one page and the other I used 
conversations (a root conversation for the categories and a nested 
conversation to edit an item) because I need to keep in memory in which 
category I find myself, and which item I am editing.

So far so good, but now I added some super-categories, clicking on which the 
corresponding sub-categories are shown. The links are implemented as s:link 
value=CategoryName action=cat_action propagation=join/

Sometimes I get errors (item lists not correctly updated, wrong item is still 
in the context) caused by random clicking on the various links. 
So I am not sure that conversations are the best solution to handle this kind 
of navigation.

Can anyone suggest a best practice in such a case? Thank you!

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

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


[jboss-user] [JBoss Portal] - JBoss Portal 2.6.0 CR3 Release

2007-06-22 Thread [EMAIL PROTECTED]
We have released the 2.6 Candidate Release 3:

What's new since the 2.4 release ?

- Partial page refresh for portlet - hot
- Google gadget integration - hot
- Management portlet completely redone!
- WSRP 1.0 Compliance
- Improvements of the dashboards with capability to edit private pages and copy 
a shared page to the dahsboard space
- Usability improvements : User / Role / CMS portlets redone
- flexible LDAP integration
- JMX invocation statistics of portlets
- CMS security improvements
- CMS Workflow
- CMS integration improved
- Full implementation of JSR 168 portlet caching

Downloads from the download page 
http://labs.jboss.com/portal/jbossportal/download/index.html

It will be the last candidate release before final which is expected very 
soon...



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

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


[jboss-user] [JBoss Seam] - General development question under Eclipse

2007-06-22 Thread Mork0075
Hello,

i'am very new to Seam and got some basic question.

(1)
How is the development cycle? This means, my Jboss is running and i created a 
project with seam-gen. I develop some things and then? Which is the right: 
first undeploy ant target, the deploy. Or first unexplode? This is not that 
clear for me. Which target have to be run, when also databases tables should be 
updated automatically (if i changed some entity beans perhaps)

(2)
My eclipse is doing something in the console, which is related to seam, but not 
initiated by me. Looks like a auto re-deployment. But i dont understand how it 
works, sometimes i changed something in my project and eventhing is fine, and 
sometimes a get an error pointing to the edited page in the webbrowser.

So i would like to disable the auto deployment feature and do it on my own. How 
can i do that?

Thanks for you help :)

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

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


[jboss-user] [JBoss Portal] - Re: What is the standard way to include Javascript resources

2007-06-22 Thread [EMAIL PROTECTED]
Look at the documentation the jboss-portlet.xml declarative way to add your 
library to a portal page. The element name is header-content.

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

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


[jboss-user] [JNDI/Naming/Network] - ClassCastException with proxy

2007-06-22 Thread srinivasan544
Hi 

Im using EJB3 with Jboss-4.0.4.GA app server. I have deployed an ear file 
containing -jar file - a stateless session bean, 
  and war file - servlet. 

In the servlet class when I look up the bean. The look up is successful, but 
when I cast it to bean interface the following exception is thrown. 

03:39:34,999 ERROR [STDERR] java.lang.ClassCastException: $Proxy380
  | 03:39:35,000 ERROR [STDERR] at 
com.test.util.MyServiceLocator.locateMyService(MyServiceLocator.java:44)
  | 03:39:35,000 ERROR [STDERR] at 
com.test.web.command.impl.MyCommandProcessor.execute(MyCommandProcessor.java:56)
  | 03:39:35,000 ERROR [STDERR] at 
com.test.web.controller.MyController.processExecute(MyController.java:109)
  | 03:39:35,000 ERROR [STDERR] at 
com.test.web.controller.MyController.doGet(MyController.java:75)
  | 03:39:35,000 ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
  | 03:39:35,000 ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 03:39:35,000 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | 03:39:35,000 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 03:39:35,000 ERROR [STDERR] at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 03:39:35,001 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 03:39:35,001 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 03:39:35,001 ERROR [STDERR] at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | 03:39:35,001 ERROR [STDERR] at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | 03:39:35,001 ERROR [STDERR] at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | 03:39:35,001 ERROR [STDERR] at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | 03:39:35,001 ERROR [STDERR] at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | 03:39:35,001 ERROR [STDERR] at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | 03:39:35,001 ERROR [STDERR] at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | 03:39:35,001 ERROR [STDERR] at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | 03:39:35,001 ERROR [STDERR] at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | 03:39:35,001 ERROR [STDERR] at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | 03:39:35,002 ERROR [STDERR] at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | 03:39:35,002 ERROR [STDERR] at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | 03:39:35,002 ERROR [STDERR] at java.lang.Thread.run(Thread.java:613)

Please help me to resolve the problem.


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

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


[jboss-user] [JBoss Seam] - Re: DataModelSelection always returns first row from h:dataT

2007-06-22 Thread dkane
ivan.tufegdzic wrote : Change method in cart in isEmpty without get and in 
page rendered=#{cart.empty}
  | But I think that you should delete that and put rendered={not empty 
cartList}

{not empty cartList} works with no exception , thanks again. 

However, when I add some items and then remove them all, the table header is 
still being displayed. It is not being displayed before that, though, so 
rendered is working. But does not recognize empty list after some operations. 

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

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


[jboss-user] [JBoss Seam] - Re: replacement for ifNotBegunOutcome in @Conversational

2007-06-22 Thread azalea
Hi,

Yeah, that didn't work.

But the following seems to work.

  | page view-id=/offer*
  |   conversation-required=true
  |   no-conversation-view-id=/somepage.xhtml
  | /page
  | 


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

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


[jboss-user] [Installation, Configuration Deployment] - Using xalan.jar 2.5.0 for deployed applications

2007-06-22 Thread jaysperk
I am trying to use xalan.jar version 2.5.0 in our deployed applications because 
we need that particular version to integrate with a third party library.  
Unfortunately, this version of xalan.jar includes bcel code that is 
incompatible with the version jboss uses.  It seems that the bcel code is being 
load from the xalan.jar in .../server/myserver/lib/endorsed instead of the 
bcel.jar that resides in .../server/myserver/lib.  The bcel.jar in 
.../server/myserver/lib contains the code required by jboss.  Is there any way 
around this?  Here is the error I receive:

java.lang.NoSuchMethodError: 
org.apache.bcel.generic.InstructionFactory.createNewArray(Lorg/apache/bcel/generic/Type;S)Lorg/apache/bcel/generic/Instruction;
at 
org.jboss.proxy.compiler.ProxyImplementationFactory.createProxyMethod(ProxyImplementationFactory.java:333)
at 
org.jboss.proxy.compiler.ProxyCompiler.getCode(ProxyCompiler.java:181)
at org.jboss.proxy.compiler.Runtime.makeProxyType(Runtime.java:83)
at org.jboss.proxy.compiler.ProxyCompiler.(ProxyCompiler.java:90)
at org.jboss.proxy.compiler.Proxies$Impl.newTarget(Proxies.java:618)
at org.jboss.proxy.compiler.Proxies.newTarget(Proxies.java:92)
at org.jboss.proxy.compiler.Proxy.newProxyInstance(Proxy.java:63)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateBeanClassInstanceCommand.(JDBCCreateBeanClassInstanceCommand.java:70)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createCreateBeanClassInstanceCommand(JDBCCommandFactory.java:139)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:478)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:396)
at 
org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:172)
at 
org.jboss.ejb.EntityContainer.startPmAndInterceptors(EntityContainer.java:1063)
at org.jboss.ejb.EjbModule.startService(EjbModule.java:422)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)

I tried to add the following entry in jboss-service.xml but that did not seem 
to help:
   
   

I also tried this:
   
   
   

I know the offending bcel code is coming from xalan.jar but I don't know how to 
get it to load from bcel.jar instead.  Any help is greatly appreciated.


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

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


[jboss-user] [JBoss Seam] - Re: where to find errata for Seam book

2007-06-22 Thread avbentem
[EMAIL PROTECTED] wrote : I will try to put together a list of known issues 
on the book web site
Please consider adding a warning about using core:process-definitions in a 
production environment. 

See JBSEAM-1034 and the topic Why is core:process-definitions considered a 
development tool?.

Thanks for a great book,
Arjan.

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

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


[jboss-user] [JBoss Seam] - UnitTesting Components

2007-06-22 Thread KnisterPeter
Hi,

I've implemented my ejbs and pojos using the Controller base classes of the 
seam framework package.
This compontens are not unit testable anymore, because when adding a message to 
FacesMessages an exception is thrown that no Conversion is available.

How to specify a mock for a temporary context?

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

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


[jboss-user] [JBoss Messaging] - Re: Scheduled messages not delayed

2007-06-22 Thread timfox
http://jira.jboss.com/jira/browse/JBMESSAGING-1001

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

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


[jboss-user] [Security JAAS/JBoss] - Getting started with LDAP

2007-06-22 Thread mata98
Hi all,

I'm an newby in AS development, so excuse my ignorance (and my joggled english).

Actually I'm challenged with the implementation of the security layer of my 
application (called tms).
My configuration:
I put the client-application as jar-file with all further needed libraries into 
one war-file, next with the server ejb and further service archives into one 
(huge) ear-file. Deployment without any security works fine.

I have to meet the requirement to verify the login against LDAP,
so I set up my application policy in server/tms/conf/login.config.xml:

  | application-policy name = tms
  |   authentication
  | login-module code=org.jboss.security.auth.spi.LdapLoginModule
  |   flag=required
  | module-option name=java.naming.factory.initial 
  | com.sun.jndi.ldap.LdapCtxFactory
  | /module-option
  | module-option name=java.naming.provider.url
  | ldap://ldapserver:389/
  | /module-option
  | module-option name=java.naming.security.authentication
  | simple
  | /module-option
  | 
  | module-option 
name=password-stackinguseFirstPass/module-option
  | 
  | 
  | 
  | /login-module
  | login-module code=org.jboss.security.ClientLoginModule 
  | flag=required
  | module-option 
name=password-stackinguseFirstPass/module-option
  | /login-module
  | /authentication
  | /application-policy
  | 

I configured my web-application in war/web-inf/web.xml:

  | security-constraint 
  |   web-resource-collection 
  | web-resource-namerestricted/web-resource-name 
  | url-pattern/*/url-pattern 
  |   /web-resource-collection 
  |   auth-constraint 
  | role-nametms.user/role-name 
  |   /auth-constraint 
  |   transport-guaranteeNONE/transport-guarantee
  | /security-constraint 
  |
  | login-config
  |   auth-methodBASIC/auth-method
  |   realm-nameTMS/realm-name
  | /login-config
  | 
  | security-role 
  |   role-nametms.user/role-name 
  | /security-role 
  | 

As result, when requesting my application from within a webbrowser 
(localhost:8080/tms) I see a standard web-login dialog, the login works fine, 
it even refuses wrong user/passwords ;).
But the first try to request an EJB fails with
anonymous wrote : [LdapLoginModule] Bad password for username=null

So what's missing, how do I propagate the principal/credential from the initial 
login to the EJB-request ?

One further challenge: I have to modify the Login dialog to insert a further 
'mandatory' field, where can I configure and introduce my own dialog ?

Thanks in advance, 
Matz

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

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


[jboss-user] [JBoss Seam] - Re: DataModelSelection always returns first row from h:dataT

2007-06-22 Thread dkane
azalea wrote : my mistake for EL expression :)
  | 
  | 
  |   | rendered=#{cartList.rowCount  0}
  |   | 

Excellent, 
thanks !

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

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


[jboss-user] [JBoss Seam] - DataModel from EntityQuery problem?

2007-06-22 Thread Phantom
Good day, 
I have the following code:

template.xhtml:


  | h:panelGrid xmlns=http://www.w3.org/1999/xhtml;
  |xmlns:ui=http://java.sun.com/jsf/facelets;
  |xmlns:f=http://java.sun.com/jsf/core;
  |xmlns:h=http://java.sun.com/jsf/html;
  |xmlns:t=http://myfaces.apache.org/tomahawk;
  |xmlns:s=http://jboss.com/products/seam/taglib;
  |xmlns:rich=http://richfaces.ajax4jsf.org/rich;
  |xmlns:c=http://java.sun.com/jstl/core;
  |
  | BEFORE: #{queryname.ejbql} br/
  | ui:insert name=query
  | c:set var=queryname value=#{driversall}/
  | /ui:insertbr/
  | AFTER: #{queryname.ejbql}BR/
  | COUNT: #{queryname.resultCount}
  | br/   
  | h:dataTable var=row value=#{queryname.resultList} 
  |  h:column
  | #{row.username}
  | /h:column
  | h:column
  | #{row.fio}
  | /h:column
  | h:column
  | #{row.createdDate}
  | /h:column
  | h:column
  | h:selectBooleanCheckbox value=#{row.active} disabled=true/
  | /h:column
  | h:column
  | h:selectBooleanCheckbox value=#{row.onlineStatus} 
disabled=true/
  | /h:column
  | h:column
  | #{row.driverStatus}
  | /h:column
  | h:column
  | #{queryname.ejbql}
  | /h:column
  | /h:dataTable
  | /h:panelGrid
  | 

driversall.xhtml

  | ui:composition xmlns=http://www.w3.org/1999/xhtml;
  |xmlns:ui=http://java.sun.com/jsf/facelets;
  |xmlns:f=http://java.sun.com/jsf/core;
  |xmlns:h=http://java.sun.com/jsf/html;
  |xmlns:t=http://myfaces.apache.org/tomahawk;
  |xmlns:s=http://jboss.com/products/seam/taglib;
  |xmlns:rich=http://richfaces.ajax4jsf.org/rich;
  |xmlns:c=http://java.sun.com/jstl/core;
  |template=template.xhtml
  | ui:define name=query
  | ALL!
  | c:set var=queryname value=#{driversall}/
  | #{queryname.ejbql}
  | /ui:define
  | /ui:composition
  | 


and driversonline.xhtml

  | ui:composition xmlns=http://www.w3.org/1999/xhtml;
  |xmlns:ui=http://java.sun.com/jsf/facelets;
  |xmlns:f=http://java.sun.com/jsf/core;
  |xmlns:h=http://java.sun.com/jsf/html;
  |xmlns:t=http://myfaces.apache.org/tomahawk;
  |xmlns:s=http://jboss.com/products/seam/taglib;
  |xmlns:rich=http://richfaces.ajax4jsf.org/rich;
  |xmlns:c=http://java.sun.com/jstl/core;
  |template=template.xhtml
  | ui:define name=query
  | ONLINE!!!
  | c:set var=queryname value=#{driversonline}/
  | #{queryname.ejbql}
  | /ui:define
  | /ui:composition
  | 

In components.xml:

  | framework:entity-query name=driversall ejbql=select object(d) from 
Driver d order by d.fio/
  | framework:entity-query name=driversonline ejbql=select object(d) 
from Driver d where d.onlineStatus = true order by d.fio/
  | 

What the problem is?

In my example: 
driversall query returns 3 rows and driversonline query returns just 1 query.
Also I have a switcher:

  | a4j:include viewId=#{mtmusermenu.viewId}/
  | 
Switcher can switch included pages driversall.xhtml and driversonline.xhtml.
Count field in template for first page shows 3 rows and for second 1. This is 
correct! 

But(!) h:dataTable shows 3 rows in both cases!!! Where is the problem?

(Also, as you can see, the latest column shows the EQL of the request within 
dataTable. And in both cases the displayed EQL is correct.)

Jboss Seam: 1.2.1
myfaces-api-1.1.5
myfaces-impl-1.1.5
tomahawk-1.1.6
jsf-facelets-1.1.6

I think that the problem in el-ri, but I can find the latest version. Can 
anyone help me?

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

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


[jboss-user] [JBoss Seam] - Re: Seam Conversations - Best practices?

2007-06-22 Thread [EMAIL PROTECTED]
I would seam-gen up an application, add a couple of CRUD entities and take a 
look at the approach used there - it's what we would recommend.  You nest as 
many CRUDs as you like using this pattern - it's simple to extend.

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

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


[jboss-user] [JBoss Seam] - Re: General development question under Eclipse

2007-06-22 Thread [EMAIL PROTECTED]
(1) Ant explode copies all the files across (and changed files if they are 
already there), ant unexplode deletes all files, ant restart restarts the 
deployed application.  The deploy/undeploy targets create non exploded archives 
(which means you can't alter the view pages without restarting the applcaiton)

(2) Yes, auto-redeploy.  Turn it off by right clicking on the project, choosing 
properties, going to Builders, and unticking the .explode builder.

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

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


[jboss-user] [Security JAAS/JBoss] - Re: Getting started with LDAP

2007-06-22 Thread mata98
Sorry, I'm using 
Jboss 4.0.5 GA,
Java 1.5.0_09

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

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


[jboss-user] [JBoss Seam] - Re: DataModelSelection always returns first row from h:dataT

2007-06-22 Thread azalea
Hi,

#{cartList} is not List but DataModel.
Try the following:

  | rendered={cartList.rowCount == 0}
  | rendered={cartList.rowCount  0}
  | 

If you see dvd store example in JBoss Seam package more carefully, you may be 
more happy :)


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

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


[jboss-user] [JBoss Seam] - Re: pageflow, validation and redisplay

2007-06-22 Thread KnisterPeter
Thanks. That does work now. As well as the redisplay of the field values. :)

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

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


[jboss-user] [JBoss Seam] - Re: problems with parameter

2007-06-22 Thread [EMAIL PROTECTED]
The Seam Application Framework does this very neatly - 
http://docs.jboss.com/seam/1.3.0.ALPHA/reference/en/html/framework.html#d0e6108

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

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


[jboss-user] [JBoss Seam] - Re: DataModelSelection always returns first row from h:dataT

2007-06-22 Thread azalea
my mistake for EL expression :)


  | rendered=#{cartList.rowCount == 0}
  | rendered=#{cartList.rowCount  0}
  | 

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

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


[jboss-user] [JBoss Seam] - Re: Strange things happen with seam security

2007-06-22 Thread amitev
someone's there?

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

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


[jboss-user] [JBoss Seam] - Re: facelet defintion Xhtml ignores Comment

2007-06-22 Thread [EMAIL PROTECTED]
And another way to waste time - not reading about common problems encountered ;)

http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamProblemsFAQ

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - bidirectional OneToMany throws LazyInitializationException

2007-06-22 Thread beligum
Hi all, 

I've a specific problem with my EJB3 Hibernate code (using Seam, but I don't 
think this has anything to do with it).

This is my case:

I have a superclass entity bean: DefaultAccessControlList


  | @Entity
  | @Table(name=access_control_list)
  | @Inheritance(strategy=InheritanceType.SINGLE_TABLE)
  | @DiscriminatorColumn(
  | name=type,
  | discriminatorType=DiscriminatorType.STRING
  | )
  | @DiscriminatorValue(default)
  | public class DefaultAccessControlList implements Serializable
  | {
  | //-CONSTANTS-
  | private static final long serialVersionUID = -1406511547129599450L;
  | 
  | //-VARIABLES-
  | protected int id;
  | 
  | //-CONSTRUCTORS-
  | public DefaultAccessControlList()
  | {
  | }
  | 
  | //-GETTERS/SETTERS--
  | @Id
  | @GeneratedValue(strategy = GenerationType.AUTO)
  | public int getId()
  | {
  | return id;
  | }
  | protected void setId(int id)
  | {
  | this.id = id;
  | }
  | 

with two subclasses:

  | @Entity
  | @Name(principalAccessControlList)
  | @DiscriminatorValue(principal)
  | public class PrincipalAccessControlList extends DefaultAccessControlList 
implements Serializable
  | {
  | //-CONSTANTS-
  | private static final long serialVersionUID = -6044077966387630697L;
  | 
  | //-VARIABLES-
  | private Inode inode;
  | 
  | //-CONSTRUCTORS-
  | public PrincipalAccessControlList()
  | {
  | }
  | 
  | //-GETTERS/SETTERS--
  | @ManyToOne(targetEntity=AbstractInodeImpl.class)
  | @JoinColumn(name=inode)
  | public Inode getInode()
  | {
  | return inode;
  | }
  | public void setInode(Inode inode)
  | {
  | this.inode = inode;
  | }
  | }
  | 

and


  | @Entity
  | @Name(groupAccessControlList)
  | @DiscriminatorValue(group)
  | public class GroupAccessControlList extends DefaultAccessControlList 
implements Serializable
  | {
  | //-CONSTANTS-
  | private static final long serialVersionUID = -2681771597593712778L;
  | 
  | //-VARIABLES-
  | private Inode inode;
  | 
  | //-CONSTRUCTORS-
  | public GroupAccessControlList()
  | {
  | }
  | 
  | //-GETTERS/SETTERS--
  | /**
  |  * Note: this side is the owner side of this relationship
  |  */
  | @ManyToOne(targetEntity=AbstractInodeImpl.class)
  | @JoinColumn(name=inode)
  | public Inode getInode()
  | {
  | return inode;
  | }
  | public void setInode(Inode inode)
  | {
  | this.inode = inode;
  | }
  | }
  | 

These beans are the owning side of the Inode-ACL relationship, and the Inode 
(abstract) class is like this:


  | @Entity
  | @Table(name=inode)
  | @Inheritance(strategy=InheritanceType.SINGLE_TABLE)
  | @DiscriminatorColumn(
  | name=type,
  | discriminatorType=DiscriminatorType.STRING
  | )
  | public abstract class AbstractInodeImpl implements Inode
  | {
  | ...
  | 
  | @OneToMany(mappedBy=inode)
  | public ListPrincipalAccessControlList getPrincipalAccessControlLists()
  | {
  | return principalAccessControlLists;
  | }
  | public void 
setPrincipalAccessControlLists(ListPrincipalAccessControlList 
principalAccessControlLists)
  | {
  | this.principalAccessControlLists = principalAccessControlLists;
  | }
  | @OneToMany(mappedBy=inode)
  | public ListGroupAccessControlList getGroupAccessControlLists()
  | {
  | return groupAccessControlLists;
  | }
  | public void setGroupAccessControlLists(ListGroupAccessControlList 
groupAccessControlLists)
  | {
  | this.groupAccessControlLists = groupAccessControlLists;
  | }
  | 
  | ...
  | }
  | 

The problem is that, when I fetch an Inode-object, the reverse-relationship 
methods getGroupAccessControlLists() and getPrincipalAccessControlLists() are 
mixed up, and one of them throws an org.hibernate.LazyInitializationException: 
illegal access to loading collection exception when accessed.

Any ideas?

bram

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

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


[jboss-user] [JBoss Seam] - Re: facelets 1.1.12 vs packaged with seam 1.3.0.A

2007-06-22 Thread mailmustu
what about facelets 1.1.13 with Seam 1.2.1 GA ?

Thanks,
Mustafa

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

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


[jboss-user] [JBoss Seam] - Re: General development question under Eclipse

2007-06-22 Thread Mork0075
Thanks for your reply. This means if i uncheck the .explode builder and made 
some changes, i first 'ant explode', the 'ant restart' and thats it?

Can you give me a hint when schema creation takes place? I'am very new to Seam, 
so theres still a lot of mystery in the whole process. My intuitive 
understanding would be, that the hibernate schema creation takes place, 
everytime i 'ant restart' my application. (until hibernate's 
hibernate.hbm2ddl.auto is set to 'drop'). Is it right?

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

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


[jboss-user] [JBoss Seam] - [TestNG] IncompatibleClassChangeError

2007-06-22 Thread enzhao
I set up the project using seam-gen (1.3.0 Alpha), wrote a very simple test 
class which extends SeamTest. When I typed ant test in a shell, seams that my 
test class was found. But I got the error output like below and all the tests 
in the test class were skipped:

java.lang.IncompatibleClassChangeError: Implementing class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at 
org.jboss.seam.deployment.ComponentScanner.handleItem(ComponentScanner.java:59)
at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:161)
at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:157)
at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:157)
at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:157)
at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:157)
at org.jboss.seam.deployment.Scanner.scan(Scanner.java:114)
at 
org.jboss.seam.deployment.ComponentScanner.getClasses(ComponentScanner.java:39)
at 
org.jboss.seam.init.Initialization.scanForComponents(Initialization.java:616)
at org.jboss.seam.init.Initialization.init(Initialization.java:486)
at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:843)
at org.jboss.seam.mock.SeamTest.init(SeamTest.java:39)
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.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:529)
at 
org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:311)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:149)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:77)
at org.testng.TestRunner.privateRun(TestRunner.java:614)
at org.testng.TestRunner.run(TestRunner.java:505)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
at org.testng.SuiteRunner.run(SuiteRunner.java:147)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:576)
at org.testng.TestNG.runSuitesLocally(TestNG.java:539)
at org.testng.TestNG.run(TestNG.java:316)
at org.testng.TestNG.privateMain(TestNG.java:666)
at org.testng.TestNG.main(TestNG.java:608)


Thanks in advance for any help!


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

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


[jboss-user] [JBoss Seam] - Re: Strange things happen with seam security

2007-06-22 Thread azalea
Hi,

Maybe due to RememberMe ?

If so, delete the cookie which name is org.jboss.seam.security.username in 
your browser.
If you don't need RememberMe, remove the checkbox in login page.


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

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


[jboss-user] [JBoss Seam] - Conversation scoped component automatically outjected

2007-06-22 Thread andreigh.ts
Hi, 
I am injecting a component with @In, from Conversation scope(the componenet was 
previously created). After modifying it in the action method (triggered from 
xhtml), the modification is visible in view (i.e. component is outjected).


  | @Stateless
  | @Name(requestWizard_information)
  | public class InformationAction implements Information {
  | 
  | @In(required=false, scope=ScopeType.CONVERSATION)
  | private RfqRequest rfqRequest; 
  | 
  | // this is an action called from an s:button
  | public void testAction() {
  | // this modification will be seen in the view
  | rfqRequest.setName(new name);
  | }
  | }
  | 

I understood that modifications on rfqRequest should be visible in view only if 
@Out is used. But it seems that it is automatically oputjected.

Is this a bug? 

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

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


[jboss-user] [JBoss Seam] - Re: General development question under Eclipse

2007-06-22 Thread Mork0075
Thanks a lot, this was really helpful :)

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

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


[jboss-user] [JBoss Portal] - Re: What is the standard way to include Javascript resources

2007-06-22 Thread snicoll
[EMAIL PROTECTED] wrote : Look at the documentation the jboss-portlet.xml 
declarative way to add your library to a portal page. The element name is 
header-content.

I know that!

But If I have 4 portlets, I need this in all portlets and portlets can be set 
independently on the page. So what? I guess if I define this in the 4 portlets 
it will be loaded 4 times. The problem I have is that I should have only one 
declaration in the pagE.

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

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


[jboss-user] [Clustering/JBoss] - quick question on farm..

2007-06-22 Thread ddai
Hi, 

I encountered a strange problem using farm deployment. I have two JBoss app 
servers on two machines. After I started both of them, I put one WAR file (not 
exploded folder) into one of the all/farm. It the console command did tell me 
the file has been successfully pushed in the cluster. But it just does not 
work!!

Well, it works on the machine whose all/farm contains that WAR file, but the 
other machine cannot detect it. What might be the problem?

Thanks!

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

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


[jboss-user] [JBoss Seam] - Re: General development question under Eclipse

2007-06-22 Thread [EMAIL PROTECTED]
Depends on the changes - if it's just JSF/facelets (.xhtml files) then you just 
need an explode.  If you change Java code or configuration then you need a 
restart.

It takes place when hibernate starts (at application (re)start) - when 
hibernate is on create-drop, it will always drop tables, create new ones, and 
run import.sql. If its on update then it tries to update them.  Check the 
hibernate manual for more.

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

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


[jboss-user] [Clustering/JBoss] - Re: quick question on farm..

2007-06-22 Thread ddai
I am useing JBoss 4.0.5 by the way

Thanks again

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

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


[jboss-user] [JBoss Portal] - Re: What is the standard way to include Javascript resources

2007-06-22 Thread [EMAIL PROTECTED]
So I think JBoss Portal at aggregation time should smartly aggregate the 
different headers in order to avoid to load the same resource several times.



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

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


[jboss-user] [JBoss Seam] - Re: Conversation scoped component automatically outjected

2007-06-22 Thread azalea
Hi,

Yeah, that doesn't outject the rfqRequest.
But the state of the rfqRequest instance is changed via rfqRequest#setName 
method.

For example, the following facesMessages is not outjected.
But we will see the error message in redirected view page when the error occurs.

  | ..
  | @In
  | private FacesMessages facesMessage;
  | 
  | public void update() {
  | ..
  | 
  | if (error) {
  | facesMessages.add(error occured!!!);
  | }
  | ..
  | }
  | ..
  | 

I think that is a same thing as this.


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

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


[jboss-user] [JBoss Seam] - Re: Conversation scoped component automatically outjected

2007-06-22 Thread [EMAIL PROTECTED]
You are doing an operation on the instance of rfqRequest injected from the 
relevent scope - changes are made to the instance.  If you did something like 
rfqRequest = new RfqRequest, you would need to outject that.

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

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


[jboss-user] [JBoss jBPM] - Re: jbpm 3.2.GA and mysql

2007-06-22 Thread sparklehorse
I was able to make it run
using this approach:

- execute in mysql the incomplete jbpm.jpdl.mysql.sql provided in the starter 
kit
- manually create the missing tables

 create table JBPM_ID_GROUP (
  | ID_ bigint not null auto_increment,
  | CLASS_ char( 1) not null, 
  | NAME_ varchar(255), 
  | TYPE_ varchar(255), 
  | PARENT_ bigint, 
  | primary key (ID_));
  | create table JBPM_ID_MEMBERSHIP (
  | ID_ bigint not null auto_increment,
  | CLASS_  char(1) not null, 
  | NAME_ varchar(255), 
  | ROLE_ varchar(255), 
  | USER_ bigint, 
  | GROUP_ bigint, 
  | primary key ( ID_));
  | create table JBPM_ID_PERMISSIONS (
  | ENTITY_ bigint not null, 
  | CLASS_ varchar(255), 
  | NAME_ varchar(255), 
  | ACTION_ varchar(255));
  | create table JBPM_ID_USER (
  | ID_ bigint not null auto_increment,
  | CLASS_ char(1 ) not null, 
  | NAME_ varchar(255), 
  | EMAIL_ varchar(255), 
  | PASSWORD_ varchar(255), 
  | primary key (ID_));
  | alter table JBPM_ID_GROUP add constraint FK_ID_GRP_PARENT foreign key 
(PARENT_) references JBPM_ID_GROUP;
  | alter table JBPM_ID_MEMBERSHIP add constraint FK_ID_MEMSHIP_GRP foreign key 
(GROUP_) references JBPM_ID_GROUP;
  | alter table JBPM_ID_MEMBERSHIP add constraint FK_ID_MEMSHIP_USR foreign key 
(USER_) references JBPM_ID_USER;

- manually insert the missing data


  | INSERT INTO JBPM_ID_GROUP VALUES(1,'G','participant','security-role',NULL);
  |   INSERT INTO JBPM_ID_GROUP 
VALUES(2,'G','administrator','security-role',NULL);
  |   INSERT INTO JBPM_ID_GROUP VALUES(3,'G','hr','organisation',NULL);
  |   INSERT INTO JBPM_ID_GROUP VALUES(4,'G','sales','organisation',NULL);
  |   INSERT INTO JBPM_ID_GROUP VALUES(5,'G','manager','security-role',NULL);
  |   INSERT INTO JBPM_ID_MEMBERSHIP VALUES(1,'M',NULL,NULL,2,2);
  |   INSERT INTO JBPM_ID_MEMBERSHIP VALUES(2,'M',NULL,NULL,3,1);
  |   INSERT INTO JBPM_ID_MEMBERSHIP VALUES(3,'M',NULL,NULL,3,3);
  |   INSERT INTO JBPM_ID_MEMBERSHIP VALUES(4,'M',NULL,NULL,2,3);
  |   INSERT INTO JBPM_ID_MEMBERSHIP VALUES(5,'M',NULL,NULL,1,4);
  |   INSERT INTO JBPM_ID_MEMBERSHIP VALUES(6,'M',NULL,'boss',2,4);
  |   INSERT INTO JBPM_ID_MEMBERSHIP VALUES(7,'M',NULL,NULL,2,5);
  |   INSERT INTO JBPM_ID_MEMBERSHIP VALUES(8,'M',NULL,NULL,2,1);
  |   INSERT INTO JBPM_ID_MEMBERSHIP VALUES(9,'M',NULL,NULL,1,1);
  |   INSERT INTO JBPM_ID_USER VALUES(1,'U','cookie monster','[EMAIL 
PROTECTED]','cookie monster');
  |   INSERT INTO JBPM_ID_USER VALUES(2,'U','ernie','[EMAIL 
PROTECTED]','ernie');
  |   INSERT INTO JBPM_ID_USER VALUES(3,'U','bert','[EMAIL PROTECTED]','bert');
  |   INSERT INTO JBPM_ID_USER VALUES(4,'U','grover','[EMAIL 
PROTECTED]','grover');

- open the jbpm-enterprise.ear
open the jbpm-configs.tar in it and change the hibernate-cfg.xml
for customizing the dialect mysql

- change in jboss the login-config.xml module 
to include the authentication versus the jbpm db

  |   application-policy name = jbpm
  |authentication
  |  login-module 
code=org.jboss.security.auth.spi.DatabaseServerLoginModule
  |flag=required
  |module-option name=dsJndiNamejava:/JbpmDS/module-option
  |module-option name=principalsQuery
  |  SELECT PASSWORD_ FROM JBPM_ID_USER WHERE NAME_=?
  |/module-option
  |module-option name=rolesQuery
  |  SELECT g.NAME_ ,'Roles'
  |  FROM JBPM_ID_USER u,
  |   JBPM_ID_MEMBERSHIP m,
  |   JBPM_ID_GROUP g
  |  WHERE g.TYPE_='security-role'
  |AND m.GROUP_ = g.ID_
  |AND m.USER_ = u.ID_
  |AND u.NAME_=?
  |/module-option
  |  /login-module
  |/authentication
  | /application-policy
  | 

security domain should be jbpm as verified in jboss-web.xml of the 
jbpm-console.war


now its running...

hope this helps some other unlucky guy who is working with the 
unsable documentation of jbpm!

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

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


  1   2   3   >