[jboss-user] [EJB 3.0] - Re: javax.ejb.EJBNoSuchObjectException: Could not find State

2007-02-19 Thread wolfc
Note that EJBTHREE-769 only propagates a proper exception from an interceptor 
method.

You still have a system exception popping up somewhere which causes the removal.

We're close to finishing RC10, it'll be easier to debug your problem in that 
release. (I'll not give release dates. It's done, when it's done.)

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - How to work with two deiiferent databases in a single applic

2007-02-19 Thread varshita
Can any one please tell me how to work with two databases with in a single 
application?
I wanna update the tables of oracle and hypersonic.

thanks in advance...

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

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


[jboss-user] [JBoss Seam] - Re: duplicate id error using ICE data paginator - need help

2007-02-19 Thread sherkan777
Hi Henry!
I got  same error using facelets, seam and PaneltabSet...
When i start app, everythink works fine and after couple of minutes using app i 
got info about duplicate id's and my tabs fall down!

Seam links works still fine but all icefaces components not.
Previously had modal info with User session is expired but now instead of 
that i have this.

those f iceFaces is getting me more frustrate than Tomahawk:P




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

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


[jboss-user] [JBoss Seam] - Re: Seam, Trinidad, Ajax4Jsf and Facelets

2007-02-19 Thread lowecg2004
Sergey,

I'm still having problems with getting ajax4jsf to render in my environment, 
are there any pointers you could give me on where I might look in the code?

Cheers,

Chris.

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

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


[jboss-user] [JNDI/Naming/Network] - Re: Proxy ClassCastException after successful EJB lookup

2007-02-19 Thread skymic
Hi Peter,

thanks for replying anyway ...

Yes I am using EJB3.0.

The EJB I am trying to lookup is registered in JNDI as:

  +- SDOCIBusinessApp (class: org.jnp.interfaces.NamingContext)
  |   +- ExcelConverterImpl (class: org.jnp.interfaces.NamingContext)
  |   |   +- local (proxy: $Proxy94 implements No ClassLoaders found for: 
ch.skyguide.aim.interfaces.businesslogic.converter.ExcelConverter (no security 
manager: RMI class loader disabled))
  |   +- IBriefingExportInvokerImpl (class: org.jnp.interfaces.NamingContext)
  |   |   +- local (proxy: $Proxy97 implements No ClassLoaders found for: 
ch.skyguide.aim.interfaces.businesslogic.exportinvoker.IBriefingExportInvoker 
(no security manager: RMI class loader disabled))
  +- SDOCI (class: org.jnp.interfaces.NamingContext)
  |   +- remote (class: org.jnp.interfaces.NamingContext)
  |   |   +- SDOCIBusinessService (class: java.lang.Object)
  |   |   +- SDOCIBusinessServiceStatefulProxyFactory (proxy: $Proxy87 
implements interface org.jboss.ejb3.ProxyFactory)

I have used a RemoteBinding annotation to set the JNDIO name.

The head of my EJB class look like this:

@Stateful
@RemoteBinding(jndiBinding = SDOCI/remote/SDOCIBusinessService)
public class SDOCIBusinessServiceImpl implements SDOCIBusinessService {

The head of the interface looks like this:


@Remote
public interface SDOCIBusinessService {

The lookup call actually works fine:

Object ref = ic.lookup(SDOCI/remote/SDOCIBusinessService);

Its the narrow call where I get the ClassCastException:

SDOCIBusinessService narrowed = 
(SDOCIBusinessService)PortableRemoteObject.narrow(ref, 
SDOCIBusinessService.class);

Thanks for helping.



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

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


[jboss-user] [Beginners Corner] - Server started but not working

2007-02-19 Thread thirumalmarugan
 hellow everybody,
   i have installed the jboss in Linux.the server is also started 
but while typing http:\\localhost:8080 in browser .it showing the following 
errors.i am using the fedro 6 and jboss latest version.

Error
Server Error
The following error occurred:

[code=CANT_CONNECT_LOOPBACK] Cannot connect due to potential loopback problems
Please contact the administrator. 

what can i do for that...

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

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


[jboss-user] [EJB/JBoss] - Re: Probleme java/Jboss ?

2007-02-19 Thread tinico
Ok,

Thank you very much !
This EJB work on WebLogic, but, I want use JBoss now !! I'll test with 2 
separate String fields !

So, thank you jwenting.

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

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


[jboss-user] [JBoss Seam] - Re: seam-space and NotLoggedInException, exceptions.xml

2007-02-19 Thread Smurfs
Thanks for quick response.

Presumably the page attribute login-required, as in
anonymous wrote : 
  | page view-id=/main.xhtml login-required=true  
  | 
performs the same function as the empty page element restrict/ so only one 
needs to be specified?

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

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


[jboss-user] [JBoss Seam] - Re: Seam Authenticator and GlassFish

2007-02-19 Thread klaro78
I also had problems with Authenticator on Glassfish v1_ur1_p01.
I solved this making the Authenticator a SLSB.
Maybe this will work for v2 too...

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

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


[jboss-user] [JBoss Seam] - Re: Fill selectOneMenu on page load.

2007-02-19 Thread petemuir
try

h:selectOneMenu value=#{foo.bar}
  |s:selectItems value=#{billAdmin.languages} var=language 
label=#{language.name} /
  |ec:convertEntity
  | /h:selectOneMenu

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

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


[jboss-user] [JBoss Seam] - Problem debugging Seam apps in Eclipse/JBossIDE

2007-02-19 Thread lawrieg
I'm having a problem trying to debug Seam apps in Eclipse (I'm using Eclipse 
3.2.1, JBossIDE 2.0.0 Beta2, and JBoss AS 4.0.5 with EJB3 profile). When I set 
a breakpoint inside any class which uses annotations, and try to debug code, I 
get the following dialog: 

Unable to install breakpoint in 
  | com.mydomain.myproject.Converters$$EnhancerByCGLIB$$2b84c6ef 
  | due to missing line number attributes. Modify compiler options to generate 
line number attributes.
  | 
  | Reason:
  | Absent Line Number Information

My build.xml has debug on for javac tasks, and I have line numbers turned on in 
both my global preferences and project specific settings, and my JBoss server 
is started in debug mode. I can use breakpoints in classes that don't have 
annotations (i.e. that aren't enhanced by CGLib) - I just can't make it work 
for classes which are annotated.

Googling hasn't turned up any possible solutions, so I'd be really grateful for 
some help here... Any ideas???

Thanks,

Lawrie


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

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


[jboss-user] [JBoss jBPM] - Re: jpdl-3.2.Beta2: how to access variable from task form in

2007-02-19 Thread kukeltje
avbentem wrote : 
  | Documentation: 
http://docs.jboss.org/jbpm/v3/userguide/jpdl.html#condition.element states
  | anonymous wrote : The contents of the condition element is a jPDL 
expression that should evaluate to a boolean. A decision takes the first 
transition (as ordered in the processdefinition.xml) for which the expression 
resolves to true. If none of the conditions resolve to true, the default 
leaving transition (== the first one) will be taken.
  | Another section of the same page at 
http://docs.jboss.org/jbpm/v3/userguide/jpdl.html#decision.element claims
  | anonymous wrote : The leaving transitions of a decision can be extended 
with a condition. The decision will look for the first transition for which the 
condition evaluates to true. A transition without a condition is considered to 
evaluate to true (to model the 'otherwise' branch).
  | Arjan.

For 3.2 you should use the docs from cvs. Especially the part for conditions in 
decisions has been clarified.

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

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


[jboss-user] [JBoss jBPM] - Re: jpdl-3.2.Beta2: how to access variable from task form in

2007-02-19 Thread kukeltje
avbentem wrote : avbentem wrote : If I understand correctly then
  |   | decision name=Fits in mailbox
  |   |   |   transition name=Yes to=ship item
  |   |   | condition expression=#{false}/
  |   |   |   /transition
  |   |   |   transition name=No to=Inform customer/
  |   |   | /decision
  |   | should execute the second transition, which has no condition and thus 
is the 'otherwise' branch. However, again I get 
  |   | [Decision] decision didn't select transition, taking default 
Transition(Yes)
  | Just for the archives: after deploying, the database table jbpm_transitions 
showed a zero-length value in column decision_ for the 'otherwise' branch. 
Changing it to a NULL value did not change the behavior, not even when I 
restarted JBoss.
  | 

Again, read the 3.2 cvs docs... there has been clarification on the expected 
behavior.

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

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


[jboss-user] [JBoss Seam] - Re: Fill selectOneMenu on page load.

2007-02-19 Thread grdzeli_kaci
hi petemuir.
i tryed this:

1.my session bean :

  | @Local(BillAdminManagement.class)
  | @Stateless
  | @Name(billAdmin)
  | @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
  | public class BillAdminManagementBean implements BillAdminManagement{
  | 
  | @PersistenceContext
  | private EntityManager entManager;
  | 
  | @Logger
  | private Log log;
  | 
  | private ListSelectItem langItems;
  | 
  | Converter converter;
  | 
  | public ListLanguage getlangItems() throws Exception {
  | try {
  | ListLanguage list = 
entManager.createNamedQuery(Language.getAllLanguages).getResultList();
  | langItems = new ArrayListSelectItem(list.size());
  | for (int i = 0; i  list.size(); i++) {
  | SelectItem item = new SelectItem();
  | item.setValue(list.get(i));
  | item.setLabel(list.get(i).getName());
  | item.setDescription(Blaaa);
  | langItems.add(item);
  | }
  | log.info(List Size = +list.size());
  | return list;
  | } catch (Exception e) {
  | e.printStackTrace();
  | log.error(Error While Getting Languages,e);
  | throw e;
  | }
  | }
  | public Converter getConverter() {
  | converter = new ReferenceConverter(langItems);
  | return converter;
  | }
  | }
  | 
  | 
2. and also i have ReferenceConverter class from here
http://wiki.jboss.org/wiki/Wiki.jsp?page=SelectItems

3. and here is fragment from my page :

  | h:selectOneMenu styleClass=font_style required=true value= 
converter=#{billAdmin.converter}
  | s:selectItems 
value=#{billAdmin.langItems} var=langItems label=#{language.name} /
  | /h:selectOneMenu
  | 

but i got an error :

  | Value is no String (class=com.magti.seam.beans.billAdmin.Language, 
value=English) and component loginForm:_id24with path: {Component-Path : 
[Class: javax.faces.component.UIViewRoot,ViewId: /login.xhtml][Class: 
javax.faces.component.html.HtmlForm,Id: loginForm][Class: 
javax.faces.component.html.HtmlSelectOneMenu,Id: _id24]} does not have a 
Converter
  | 

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

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


[jboss-user] [JBoss Seam] - Booking example question

2007-02-19 Thread lawrieg
Hi,

I've just been re-reading the Seam tutorial and I just wanted to check if my 
understanding is correct regarding the Booking example code...

In the HotelBookingAction class the selectHotel method reads as follows:

@Begin
  | public String selectHotel(Hotel selectedHotel) {
  | hotel = em.merge(selectedHotel);
  | return hotel;
  | }

Am I correct that the reason the line hotel = em.merge(selectedHotel) is 
necessary is because the selectedHotel object was obtained by a different 
entity manager?

And, if so, does this mean that you always need to use em.merge when an object 
that was loaded in one class is passed as a parameter to a method in another 
class? 

Thanks,

Lawrie

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

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


[jboss-user] [JBoss Seam] - will MyFaces 1.1.5 be in Seam 1.1.7 ?

2007-02-19 Thread codelion
MyFaces 1.1.5 has a release date of Feb 16th 2007, Seam 1.1.7 appears to be 
scheduled for Feb 20th 2007.

I'm asking because MyFaces 1.1.5 supposedly does a few things better in regards 
to portlets.

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

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


[jboss-user] [JBoss Seam] - Re: Fill selectOneMenu on page load.

2007-02-19 Thread petemuir
That (obviously) is a problem with your converter.  Either try the 
entityConverter as I suggested or take a look at the Seam ui-example for how to 
write a suitable converter.

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

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


[jboss-user] [JBoss Seam] - A question about facelets

2007-02-19 Thread xinhua
Hi all,
When my application starts on my JBoss 4.0.5 server I get the  
following ERRORS:


  | 11:17:48,545 ERROR [STDERR] 19.02.2007 11:17:48 
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/D:/JBoss/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp65104StratoIV.ear-contents/StratoIV-exp.war/WEB-INF/lib/jsf-facelets.
  | jar!/META-INF/jsf-ui.taglib.xml
  | 11:17:48,608 ERROR [STDERR] 19.02.2007 11:17:48 
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/D:/JBoss/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp65104StratoIV.ear-contents/StratoIV-exp.war/WEB-INF/lib/jsf-facelets.
  | jar!/META-INF/jsf-core.taglib.xml
  | 11:17:48,623 ERROR [STDERR] 19.02.2007 11:17:48 
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/D:/JBoss/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp65104StratoIV.ear-contents/StratoIV-exp.war/WEB-INF/lib/jsf-facelets.
  | jar!/META-INF/jstl-fn.taglib.xml
  | 11:17:48,623 ERROR [STDERR] 19.02.2007 11:17:48 
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/D:/JBoss/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp65104StratoIV.ear-contents/StratoIV-exp.war/WEB-INF/lib/jboss-seam-ui
  | .jar!/META-INF/seam-ui.taglib.xml
  | 11:17:48,655 ERROR [STDERR] 19.02.2007 11:17:48 
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/D:/JBoss/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp65104StratoIV.ear-contents/StratoIV-exp.war/WEB-INF/lib/jsf-facelets.
  | jar!/META-INF/jsf-html.taglib.xml
  | 11:17:48,701 ERROR [STDERR] 19.02.2007 11:17:48 
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/D:/JBoss/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp65104StratoIV.ear-contents/StratoIV-exp.war/WEB-INF/lib/jsf-facelets.
  | jar!/META-INF/jstl-core.taglib.xml
  | 


Whats that mean? How can i solve this problem? 
I am not be familiar with facelets, so plz help:)

thanks!



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

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


[jboss-user] [JBoss Seam] - Re: When is @Out necessary?

2007-02-19 Thread quilleashm
Pretty much spot on, as you say, @Out is only required if the object reference 
may change and you want it updated in the relevant context after the action 
method has completed.

If you just mutate (e.g. use a setter) an injected component you don't need to 
outject it.


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

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


[jboss-user] [JBoss Seam] - Re: When is @Out necessary?

2007-02-19 Thread lawrieg
Many thanks for that - I couldn't seem to find a clear answer for that in the 
docs.

Thanks,

Lawrie

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

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


[jboss-user] [Beginners Corner] - Unable to load to deserialize result

2007-02-19 Thread morenito9000
Hi all,
I store attachments file (like jpg, bmp, doc, pdf) inside a db table 
(postgresql db, column type is BYTEA).

Insert is performed via a Stateful SessionBean that uses an Entity Bean.
(at Entity Level the db column is mapped using the generic Object class).

Insert is ok.

When I try to read the attachments I use a Stateless SessioBean
that calls a DAO Class (inside DAO Class, JDBC code:
select column from table  then I apply resulSet.getObject()
method).

Reading is ok.

But when I try to remove the attachment (EntityBean remove() method)
I get a strange exception.
 

  | ERROR [org.jboss.ejb.plugins.LogInterceptor] 
TransactionRolledbackLocalException in method: public abstract void 
javax.ejb.EJBLocalObject.remove() throws 
javax.ejb.RemoveException,javax.ejb.EJBException, causedBy:
  | java.sql.SQLException: Unable to load to deserialize result: 
java.io.StreamCorruptedException: invalid stream header
  | 

I think it's something related to serialization.
Object class is not the proper class I must use to map a BYTEA DB column ?

I use JBOSS 3.2.3 and Postgesql 7.4.5.

Any help is very very appreciated.
Thank you for your help.

Ciao
Moreno

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

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


[jboss-user] [JBoss Seam] - Re: Fill selectOneMenu on page load.

2007-02-19 Thread grdzeli_kaci
petemuir wrote : That (obviously) is a problem with your converter.  Either 
try the entityConverter as I suggested or take a look at the Seam ui-example 
for how to write a suitable converter.

ok i tryed to write own converter, i got it from wiki :
1.Converter

  | import java.io.Serializable;
  | import java.util.List;
  | 
  | import javax.faces.component.UIComponent;
  | import javax.faces.context.FacesContext;
  | import javax.faces.convert.Converter;
  | import javax.faces.convert.ConverterException;
  | 
  | public class ReferenceConverter  implements Converter, Serializable{
  | private static final long serialVersionUID = -6268456071880135380L;
  | private static final String EMPTY = __EMPTY__;
  | private ListObject values;
  | public ReferenceConverter(List vals) {
  | this.values = vals;
  | }
  | public String getAsString(FacesContext facesContext,
  | UIComponent  component,
  | Object   obj) {
  | if (obj == null) return EMPTY;
  | if (-1.equals(obj)) return EMPTY;
  | 
  | String val = String.valueOf( obj.hashCode() );
  | return val;
  | }
  | public Object getAsObject(FacesContext facesContext,
  | UIComponent  component,
  | String   str)
  | throws ConverterException {
  | if (str == null || str.length()==0 || EMPTY.equals(str)) {
  | return null;
  | }
  | int hash = Integer.valueOf(str).intValue();
  | for (Object val : values) {
  | if ( val!=null  val.hashCode()==hash ) {
  | return val;
  | }
  | }
  | return null;
  | }
  | }
  | 

2. i posted session bean above;
3 and jps :


  | h:selectOneMenu styleClass=font_style required=true value= 
converter=#{billAdmin.converter}
  | s:selectItems value=#{billAdmin.langItems} var=langItems 
label=#{langItems.name} /
  | /h:selectOneMenu
  | 

what i did wrong ?

i could not find about converter into seam-ui examples.


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

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


[jboss-user] [JBoss Messaging] - Re: Receiving IllegalStateExceptions in client

2007-02-19 Thread timfox
Strange. The settings should certainly be picked up.

Are you using ServiceBindingManager? (I.e. are you mapping ports, ports01, 
ports02 etc?)

If so you need to make sure the SBM is using the exact same config as 
remoting-service.xml.

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

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


[jboss-user] [JBoss Seam] - Re: Fill selectOneMenu on page load.

2007-02-19 Thread petemuir
grdzeli_kaci wrote : i could not find about converter into seam-ui examples.
  | 

examples/ui/src/org/jboss/seam/example/ui/Converters

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

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


[jboss-user] [EJB 3.0] - Re: Predestroy!

2007-02-19 Thread wolfc
The spec actually contains more info on PreDestroy calls, see 4.4.3.

There is currently no timeout thread on passivated beans, please create a Jira 
issue for it.

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

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


[jboss-user] [JBoss Seam] - Re: When is @Out necessary?

2007-02-19 Thread quilleashm
Raise a feature request against the documentation in JIRA if you think it could 
be enhanced.  Chances are if you weren't sure about it then a bunch of other 
people aren't/weren't either!


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

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


[jboss-user] [EJB 3.0] - Re: ConsumerContainer

2007-02-19 Thread wolfc
Using JMX you can get to the container and instruct it to stop and start.

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

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


[jboss-user] [JBoss Seam] - Re: Security Remember Me Functionality

2007-02-19 Thread przemjaskier
Ok, but in case when only user name is used for creation of the  remember me 
cookie, someone can simply create such cookie without performing any 
sophisticated attacks like XSS or cookie-hijacking.

Amazon's approach mentioned by Christian and hashing cookie value can be the 
recommended approach. Anyway, I added comment to 
http://jira.jboss.com/jira/browse/JBSEAM-735
sugesting the cookie creation procedure. Maybe someone can figure out some kind 
of anti-cookie-hijacking procedure here. Using remoteAddress or host name in 
cookie creation is a little bit to strict because of plenty of dynamic IPs.

Anyway, I think that this problem should be treated seriously, because some 
people can get into real trouble when using this out-of-the-box.

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

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


[jboss-user] [Management, JMX/JBoss] - Management interface to webapps

2007-02-19 Thread nappinc
We have an existing J2EE 1.4 (servlets/JSP only) web application we'd like to 
add a management interface to, so application server administrators can manage 
our application via the JBoss JMX/Web Console (get status, alter configuration, 
get monitoring stats).

I've been advised to create a new .sar file containing our JMX MBeans, but my 
question is how do we integrate this with our web application? How do I 
configure the classloading?

Our new ear file is as follows:

 - main application (.war)
 - separate configuration application (.war)
 - new JMX MBeans (.sar)

The two .war files need to run under isolated classloaders, to prevent clashes 
of code and libraries. How can I configure the .sar to have access to the main 
application's classes? The wiki seemed to suggest that classloading can only be 
specified at one level - in an ear file that would be in the jboss-app.xml - 
and lower levels - the .war's and .sar would have settings ignored.

I don't really want to use Unified classloading - that seems to be all or 
nothing - because that also breaks certain parts of our application and 
prevents us from being able to deploy more than one copy of our applciation on 
a single app server instance.

Am I right in thinking this is even possible in JMX? Is this a sledgehammer to 
crack a coconut?

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

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


[jboss-user] [JBossWS] - Re: Help: how to consume webservice in ejb3 ?

2007-02-19 Thread michea
Solved, thanks to rlamie : The port=null problem  came from the configuration 
of jboss server in netbeans.
I just had to uncheck Use IDE Proxy Settings



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

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


[jboss-user] [Security JAAS/JBoss] - Use JBoss behind a DMZ

2007-02-19 Thread jrapillard
Can somebody explain me how to use JBoss behind a DMZ?

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

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


[jboss-user] [JBoss Seam] - Re: Seam Authenticator and GlassFish

2007-02-19 Thread [EMAIL PROTECTED]
Does the glassfish version of the booking demo work?  It uses a SLSB for 
authentication.

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

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


[jboss-user] [Beginners Corner] - JBOSS SEAM and JavaScript

2007-02-19 Thread andipesel88
Hello to everyone!

I'm a bloody Jboss novice - the only thing already now are Java itself and 
JSP's.
Right now I need to learn JBOSS Seam in connection with hibernate for a school 
project.

The installation and development of my project is fine, everything works.
But my problem is the following:

I need a javascript on my site. I know that there is the possibility of using 
AJAX and JSF components, but I've found nothing that matches my need.

I need a counter which counts from e.g. 160 down to 0 in an inputText depending 
on how many characters the users has written in the textarea.

So I thought that it might work if I put the javascript itself hardcoded onto 
my site - but it doesn't. There is no error message or anything else that is 
shown. The JavaSCript itself works fine in a normal HTML site.

So here is my code:

I've a template.xhtml where i puttet the javascript between the header tags:

...
  | script type=text/javascript
  | 
  | ![CDATA[
  | function pruef (chars) {
  | var anz=0, len=0,s;
  | var msg = document.predefines.predefines:nachr.value;
  | 
  | if (!chars) {
  | chars = 151;
  | }
  | for (var i=0; i  msg.length; i++) {
  | s = msg.charAt(i);
  | if (s=='?' || s=='~' || s=='^' || s=='\\' || s=='{' || s=='}' 
|| s=='[' || s==']' || s=='|') {
  | if (anz(chars-2)) { 
  | break
  | };
  | anz+=2;
  | } else if (s==\r) {
  | } else {
  | if (anz(chars-1)) { 
  | break 
  | };
  | anz++;
  | }
  | len = i+1;
  | }
  | if (msg.length len) {
  | document.predefines.predefines:nachr.value = 
msg.substring(0,len);
  | }
  | document.predefines.predefines:num.value = chars-anz;
  | if (navigator.appName ==Netscape  parseInt(navigator.appVersion) = 
4){
  | document.captureEvents(Event.KEYPRESS);
  | document.predefines.predefines:nachr.onkeypress = pruef;
  | }
  | }
  |  ]]
  | /script
  | ...
  | 

and then i just called the function on the site i need:


  | ...
  | h:form id=predefines
  | ...
  | h:panelGroup
  | h:inputTextarea id=nachr onkeyup=pruef(160); cols=50 
rows=5/
  | h:inputText value=160 id=num onfocus=this.blur();/
  | /h:panelGroup
  | ...
  | /h:form
  | ...
  | 

I hope you can help me!

andy

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

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


[jboss-user] [JBoss Seam] - Re: Booking example question

2007-02-19 Thread lawrieg
Also, is there any reason why you couldn't / wouldn't code the method as 
follows instead???

@Begin
  | public String selectHotel(Hotel selectedHotel) {
  | hotel = em.find(Hotel.class, selectedHotel.getId());
  | return hotel;
  | }


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

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


[jboss-user] [Installation, Configuration Deployment] - Is JBOSS AS 4.03SP1 compatible with jdk 1.6?

2007-02-19 Thread seanduddy
Does anyone know if JBOSS AS 4.03SP1 is compatible with jdk 1.6? i.e. I want to 
run the AS with 1.6 and deploy code compiled with 1.6 onto it...

I looked at the following matrix but it does not have any entry for jdk 1.6...
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossVsJavaJDKVersionMatrix

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

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


[jboss-user] [JBoss Seam] - Re: A question about facelets

2007-02-19 Thread baz
Hello,
The messages are expected and normal. facelets initialize.
But when i start my app (using the facelets version form seam1.1.6) i my output 
looks like:
19.02.2007 13:57:38 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
So i thing there could be an erroneus debug level in facelets,
I suppose your app is running fine? So ignore this errors and try to update the 
facelets jars to the one contained in seam.1.1.6GA
Ciao,
Carsten
BTW: This is a seam forum not a facelets one.

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

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


[jboss-user] [JBoss Seam] - this forum / max topics per page

2007-02-19 Thread baz
Hello,
The count of newly posted topics per day increases.
For me, it would be nice if the topic count per page would be increased, too. 
Perhaps up to 25. Possibly configurable in my profile.

Other opinions?
Ciao,
Carsten


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

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


[jboss-user] [JBoss Seam] - Re: Fill selectOneMenu on page load.

2007-02-19 Thread grdzeli_kaci
Great Thanks petemuir,

i got seam from CVS and i found your examples and all works fine.

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

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


[jboss-user] [JBoss Seam] - Another Seam, Myfaces, Facelets, Ajax4JSF and Trinidad probl

2007-02-19 Thread ehstowa
Hi,
I m using Seam 1.1.6
, Myfaces 1.1.4
, Facelets 1.1.12
, Ajax4JSF 1.0.6
, Trinidad incubator-m1-SNAPSHOT

, but cant get it to run with the trinidad part.

I have tried to follow all the example apps the a4j, seam and trinidad sites 
have posted, but still get the error below.

My web.xml:
anonymous wrote : ?xml version=1.0 encoding=UTF-8?
  | web-app xmlns=http://java.sun.com/xml/ns/j2ee;
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=2.4
  | xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
  | 
  | display-nameMoox Web Application/display-name
  | Moox Web Application.
  | 
  | context-param 
  | !--  Use: Specifies paths to JSF application configuration resource 
files.
  | Value: A comma-separated list of application-context-relative 
paths. --
  | param-namejavax.faces.CONFIG_FILES/param-name  
  | param-value/WEB-INF/navigation.xml/param-value   
  | /context-param
  |  
  | !-- Ajax4jsf (must come first!) --
  | 
  | display-nameAjax4jsf Filter/display-name
  | filter-nameajax4jsf/filter-name
  | filter-classorg.ajax4jsf.Filter/filter-class
  | init-param
  | param-nameforceparser/param-name
  | param-valuefalse/param-value
  | /init-param
  | 
  | filter-mapping
  | filter-nameajax4jsf/filter-name
  | url-pattern*.jspx/url-pattern
  | REQUEST
  | FORWARD
  | INCLUDE
  | /filter-mapping
  | 
  | !-- Trinidad --
  | context-param
  | 
param-nameorg.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER/param-name
  | param-valuecom.sun.facelets.FaceletViewHandler/param-value
  | /context-param
  | context-param
  | param-namefacelets.VIEW_MAPPINGS/param-name
  | param-value*.jspx/param-value
  | /context-param
  | context-param
  | param-name
  | org.apache.myfaces.trinidad.CACHE_VIEW_ROOT
  | /param-name
  | param-valuefalse/param-value
  | /context-param
  | context-param
  | param-namecom.sun.faces.validateXml/param-name
  | param-valuetrue/param-value
  | /context-param
  | 
  | !-- Seam --
  | context-param
  | param-nameorg.jboss.seam.core.init.debug/param-name
  | param-valuetrue/param-value
  | /context-param
  | 
  | 
  | listener-class
  | org.jboss.seam.servlet.SeamListener
  | /listener-class
  | 
  | 
  | !-- Enable Seam to propagate the conversation context across the 
browser redirects (JSF post-then-redirect) --
  | 
  | filter-nameSeam Redirect Filter/filter-name
  | filter-class
  | org.jboss.seam.servlet.SeamRedirectFilter
  | /filter-class
  | 
  | filter-mapping
  | filter-nameSeam Redirect Filter/filter-name
  | url-pattern*.jspx/url-pattern
  | /filter-mapping
  | 
  | 
  | !-- Servlet config --
  | 
  | servlet-nameFaces Servlet/servlet-name
  | servlet-classjavax.faces.webapp.FacesServlet/servlet-class
  | load-on-startup1/load-on-startup
  | 
  | 
  | !-- Faces Servlet Mapping --
  | servlet-mapping
  | servlet-nameFaces Servlet/servlet-name
  | url-pattern*.jspx/url-pattern
  | /servlet-mapping
  | 
  | 
  | !-- JSF --
  | context-param
  | !--  Use: Specifies a file extension (suffix) for JSP pages that 
contain JSF components. The default is .jsp.
  | Value: A file extension. --
  | param-namejavax.faces.DEFAULT_SUFFIX/param-name
  | param-value.jspx/param-value
  | /context-param
  | context-param
  | !--  Use: Selects a state saving method.
  | Value: Either server or client. 
  | The default is server, which stores the 
application's view state on the server. 
  | If you select client, JSF stores the view state 
on the browser client. --
  | param-namejavax.faces.STATE_SAVING_METHOD/param-name
  | param-valueclient/param-value
  | /context-param
  | 
  | context-param
  | param-namefacelets.DEVELOPMENT/param-name
  | param-valuetrue/param-value
  | /context-param
  | context-param
  | param-namefacelets.REFRESH_PERIOD/param-name
  | param-value2/param-value
  | /context-param
  | 
  | 
  | !-- MyFaces --
  | context-param
  | param-nameorg.apache.myfaces.PRETTY_HTML/param-name
  | param-valuetrue/param-value
  | /context-param
  | 

[jboss-user] [JBoss Seam] - Re: Seam, Trinidad, Ajax4Jsf and Facelets

2007-02-19 Thread dajevtic
Use the SeamFaceletViewHandler instead of sun's as the alternate view handler. 
Parameters for method bindings are seam specific. the sun facelet view handler 
does not know how to handle those.

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

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


[jboss-user] [JBoss Seam] - Re: Running the booking example on JBoss with the JSF 1.2 RI

2007-02-19 Thread h0ppy
I don't use eclipse so I can't comment on that, but I think the tutorial asks 
you to use the el jars from the faclet project 
(https://facelets.dev.java.net/servlets/ProjectDocumentList?folderID=3635expandFolder=3635folderID=0)
 althogh wsollers suggested the juel el implementation packaged as a java 
module in your EAR and that did get rid of my initial class not found error. 

I also don't use seam, so I can't comment on that either!  Let me know if you 
have any luck...

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

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


[jboss-user] [JBoss Seam] - Re: Another Seam, Myfaces, Facelets, Ajax4JSF and Trinidad p

2007-02-19 Thread dajevtic
see your original post in another thread

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

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


[jboss-user] [JBoss Seam] - Re: Seam, Trinidad, Ajax4Jsf and Facelets

2007-02-19 Thread lawrieg
@ehstowa

I believe that in order to pass parameters to your EL action listener method 
you need to be using Seam's enhanced expression language (and from your stack 
trace it doesn't look like you've got this configured).

From the Seam reference manual (Chapter 23):

anonymous wrote : To use this feature in Facelets, you will need to declare a 
special view handler, SeamFaceletViewHandler in
  | faces-config.xml.
  | 
  | faces-config
  |   | application
  |   | 
view-handlerorg.jboss.seam.ui.facelet.SeamFaceletViewHandler/view-handler
  |   | /application
  |   | /faces-config

Hope this helps,

Lawrie

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

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


[jboss-user] [JBoss jBPM] - Creating a custom controller

2007-02-19 Thread Froschfinger
Hi,
i implemented my own webapplication using JBPM-3.1.2. Now i want to create some 
own controllers for the tasks. Has somebody an example custom controller, where 
i could see how you could do it?

Thanks for any help. 

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

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


[jboss-user] [Beginners Corner] - Re: Deploying TrailBlazer

2007-02-19 Thread eiben
OK, I figured something ... if I change the annotation of the @Remove to 
@Remove(retainIfException=false) at least my solution can be deployed ... but 
why do I have to add this attribute?

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

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


[jboss-user] [JCA/JBoss] - Howto retrieve DataSource inside of WrapperDataSource

2007-02-19 Thread aschulz
Hi,

I have configured a datasource for oracle connections. The datasource object 
that i retrieve from the JNDI-Context is of typ WrapperDataSource.

I need the datasource as parameter for Oracle AQ 
AQjmsFactory.getTopicConnectionFactory(someds).

Now I get JMS-112: Connection is invalid from Oracle AQ. I think the problem 
is that getConnection() on a WrapperDataSource doesn't result in an 
OracleConnection but in some JBoss connection wrapper which does not implement 
Oracle specific extensions. 

I found a way to retrieve the underlying connection from a WrapperDataSource 
myself but I can't pass it as parameter for Oracle AQ.

So I would like to retrieve the Oracle datasource from the WrapperDataSource 
but I can't figure out how to do that.

Please can somebody help me.

Thanks in advance
Alex

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

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


[jboss-user] [JBoss Seam] - Re: Seam, Trinidad, Ajax4Jsf and Facelets

2007-02-19 Thread lowecg2004
ehstowa,

From your stack trace I agree with lawieg so give his suggestion a go, however 
please be aware that the Trinidad Wiki specifies that *no* view handlers 
should be defined in faces-config.xml

http://wiki.apache.org/myfaces/TrinidadSeamAjax4Jsf

If you do get past your current issue, could you comment on this topic as to 
whether your Ajax4Jsf components are actually being rendered or not?

Regards,

Chris

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

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


[jboss-user] [JBoss Seam] - Re: Seam, Trinidad, Ajax4Jsf and Facelets

2007-02-19 Thread lowecg2004
Pete,

Nope - I have had no success, but would very much like to have this 
functionality.

Cheers,

Chris.

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

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


[jboss-user] [Installation, Configuration Deployment] - How do I configure a MDB so that multiple instance of it are

2007-02-19 Thread kspreddy
Hello All,

I have configured and deployed a jms queue and a MDB that is listening to the 
queue. I am observing that at any point of time, there is ONLY one 
receiver/consumer for this queue. The MDB is configured to have a minimum of 10 
instances in the pool.  ThreadPool is also setup to have at least 100 threads.  

Are there any other parameters I need to configure so that this queue can have 
multiple concurrent receivers (instances of the same mdb)? 

I am using Jboss 4.0.5GA and jbossmq.

Here is the configuration:
conf/jboss-service.xml
--
 !-- A Thread pool service --
   
  JBoss System Threads
  System Threads
  !-- How long a thread will live without any tasks in MS --
  6
  !-- The max number of threads in the pool --
  100
  !-- The max number of tasks before the queue is full --
  1000
  !-- The behavior of the pool when a task is added and the queue is full.
  abort - a RuntimeException is thrown
  run - the calling thread executes the task
  wait - the calling thread blocks until the queue has room
  discard - the task is silently discarded without being run
  discardOldest - check to see if a task is about to complete and enque
 the new task if possible, else run the task in the calling thread
  --
  run
   


conf/standardjboss.xml
-
container-configuration

  container-nameStandard Message Driven Bean/container-name

  call-loggingfalse/call-logging

  
invoker-proxy-binding-namemessage-driven-bean/invoker-proxy-binding-name

  container-interceptors

org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor

org.jboss.ejb.plugins.LogInterceptor

org.jboss.ejb.plugins.RunAsSecurityInterceptor

!-- CMT --

org.jboss.ejb.plugins.TxInterceptorCMT

org.jboss.ejb.plugins.CallValidationInterceptor

org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor

!-- BMT --

org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor

org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT

org.jboss.ejb.plugins.CallValidationInterceptor

org.jboss.resource.connectionmanager.CachedConnectionInterceptor

  /container-interceptors

  
instance-poolorg.jboss.ejb.plugins.MessageDrivenInstancePool/instance-pool

  instance-cache/instance-cache

  persistence-manager/persistence-manager

  container-invoker-conf

   DefaultJMSProvider

   StdJMSPool

   10

   10

   10

   True

  /container-invoker-conf

  container-pool-conf

100

  /container-pool-conf

/container-configuration



MDB is configured to use Standard Message Driven Bean container...

Any help on this topic is greatly appreciated.

Thanks,
Kolagatla Reddy
[EMAIL PROTECTED] 

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

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


[jboss-user] [Messaging, JMS JBossMQ] - JMS Exception - session closed

2007-02-19 Thread rnavanee
Hi,

I tried to process a huge volume (50 to 100 messages per sec) of messages. I am 
using jBoss as JMS provider. I am using 3 separate queues to process incoming 
data and to send response back.

I have the following code in constructor of message producer qProducer.q = 
QueueUtil.getQueue(QueueUtil.ENGINE_JNDI_NAME, env);
  | qProducer.qConn = QueueUtil.getQueueConnection(env);
  | qProducer.qSesn = qProducer.qConn.createQueueSession(false, 
Session.AUTO_ACKNOWLEDGE);  



I try to use this queueSession (qSesn) for every message. But I get the 
following error:
anonymous wrote : The session is closed


I am sure I haven't used session.close() code anywhere in my program. Will the 
connection get closed automatically?

Has anyone faced similar issue? Am i doing anything wrong? Please clarify.

Thanks  Regards,
Navanee

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

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


[jboss-user] [JBoss Seam] - Re: extended EL rendered=

2007-02-19 Thread petemuir
No, it's for method bindings only.

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

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


[jboss-user] [JBoss Seam] - Re: Another Seam, Myfaces, Facelets, Ajax4JSF and Trinidad p

2007-02-19 Thread ehstowa
Hi again,
thanks but as I am using the correct view_handler 
context-param
  | 
param-nameorg.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER/param-name
  | 
param-valueorg.jboss.seam.ui.facelet.SeamFaceletViewHandler/param-value
  | !-- 
param-valuecom.sun.facelets.FaceletViewHandler/param-value --
  | /context-param
  | 

as I am using Trinidad.

The problem is solved however, it was that I needed to replace my HTML tags 
to tr:document on the JSP page, according to 
http://incubator.apache.org/adffaces/spec-diff.html

Thanks,
Tomas

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

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


[jboss-user] [Beginners Corner] - Re: Unable to load to deserialize result

2007-02-19 Thread morenito9000
I changed java type from Object to byte[] 
and everything (insert, select, remove) seems to be ok
(I hope ;-)).

Moreno
 

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

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


[jboss-user] [JBoss Seam] - Re: Another Seam, Myfaces, Facelets, Ajax4JSF and Trinidad p

2007-02-19 Thread lowecg2004
Thomas,

Are your Ajax4Jsf components rendering correctly?

Regards,

Chris.

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

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


[jboss-user] [JBoss Seam] - Re: Seam Authenticator and GlassFish

2007-02-19 Thread umrzyk
[EMAIL PROTECTED] wrote : Does the glassfish version of the booking demo 
work?  It uses a SLSB for authentication.

yes, it works perfectly but it doesn't use JAAS SeamLoginModule what I would 
like to achieve. The only example that uses JAAS is propably seamspace but i 
cannot get it working on GF. Instead I wrote a simple code to authenticate user 
by SeamLoginModule as it was described in seam documentation (chapter 12 - 
security). Unfortunately i can't pass the login page and still get the 'Login 
failed' message. 

After a while I realized that Authenticator class I have created (12.2.2. 
Writing an authentication method) is not used at all. Authenticator is 
annotated as @Name(authenticator) and there is following entry:

 security:identity authenticate-method=#{authenticator.authenticate}/

inside components.xml. Is there something more I should do to get it running on 
GF ?

regards,
michal


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

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


[jboss-user] [JBoss Seam] - Re: Running the booking example on JBoss with the JSF 1.2 RI

2007-02-19 Thread [EMAIL PROTECTED]
ekusnitz wrote : I'm also trying to get this running on jboss 4.0.5 and I 
observe the following:
  | 1. In jbossweb-tomcat55.sar, the web.xml in the conf folder does not have 
any reference to myfaces-api.jar, but it does refer to myfaces-impl.jar
  | 

There is a mistake in Gavin's original instructions.  In conf/web.xml, you need 
to replace the reference to myfaces-impl.jar with jsf-impl.jar.  Here is what 
it should look like when you are done:

init-param
  |  descriptionJSF standard tlds/description
  |  param-nametagLibJar0/param-name
  |  param-valuejsf-libs/jsf-impl.jar/param-value
  | /init-param


ekusnitz wrote : 
  | 2. When I try adding el-resolver to the application element, Eclispe IDE 
tells me it's invalid
  | 

I also don't use Eclipse, so I'm not sure what's going on here.  I suspect that 
Eclipse is looking at the JSF 1.1 DTD.  el-resolver is new to JSF 1.2.  
Perhaps if you post the error I can help.

ekusnitz wrote : 
  | Finally, which el-*.jar files are we supposed to be using? The ones in Seam?

Yes, the ones in Seam should work fine.

Note that all of this configuration is already done for you if you use JBoss 
4.2 or JBoss 5.0.  JBoss 5.0 has a beta that you can download now.  JBoss 4.2 
should have a beta available soon.  Here are the instructions for using JSF in 
those releases:
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossWithJSFCDDL

The goal for these releases is to make the usability of JSF much like that of 
JSP.  In other words, you don't have to think about installation.  You just use 
it if you want it.  I'd love to get some feedback.

Stan Silvert
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossFaces

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

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


[jboss-user] [JBoss Seam] - DataModelSelection with two beans without using session scop

2007-02-19 Thread hamtho2
Hi,

is there a possibility to use the @DataModelSelection over two different beans 
without using the session-scope for injection?
Right now it works if I use the bean with the @DataModel and the 
@DataModelSelection with session-scope and use this value through an @In 
annotation in my other bean. But what I don´t like is that I set the value in 
session-scope then, so that a create=true with the @In-Value might not work 
because of old values. But everytime I change the scope of the @Out-value to 
anything other than session, I don´t have any value in my other bean anymore.

Some code for further details:


  | @Stateful
  | @Name(ActionBeanA)
  | @Scope(ScopeType.SESSION)
  | public class ActionBeanA implements IActionBeanA{
  | 
  | @DataModel
  | private ListItem itemList;
  | @DataModelSelection
  | @Out(required=false, scope=ScopeType.SESSION)
  | private Item item;
  | 
  | 


  | @Stateful
  | @Name(ActionBeanB )
  | @Scope(ScopeType.CONVERSATION)
  | public class ActionBeanB implements IActionBeanB {
  | 
  | @In(required=true, create=true)
  | private Item item;
  | 
  | 

Thanks for your help

Thomas

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018845

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Help, who uses EntityHome with SFSB? I don't know how to

2007-02-19 Thread Seto
No one knows it? help me please. Waiting urgently.

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

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


[jboss-user] [JBoss jBPM] - Runa

2007-02-19 Thread petitit
Hi everybody,

I would like to know if you ever use Runa 
(http://wf.runa.ru/English/About/About.html) to design your processes.

Is it stable? Is it powerful? 
I'm searching a good way to design processes graphically for JBPM...

thanks,

François Petitit

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018847

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Help, who uses EntityHome with SFSB? I don't know how to

2007-02-19 Thread petemuir
[url]http://jira.jboss.org/jira/browse/JBSEAM-474[/ur]

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

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


[jboss-user] [JNDI/Naming/Network] - ClassCastException in remote EJB3.0 lookup from tomcat webap

2007-02-19 Thread skymic
Hi everyone,

I am trying to connect to an EJB3.0 remote session bean (deployed in an ear on 
JBoss V4.0.5) from a tomcat V5.5 webapp. The tomcat and the JBoss installation 
are deployed on different machines.

I get the following ClassCastException in a call to PortableRemoteObject.narrow:

java.lang.ClassCastException
at 
com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229)

Caused by: java.lang.ClassCastException: javax.naming.Reference
at 
com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:212)

Here is my client code:

String urlName = jnp://156.135.155.156:1099;
Properties p = new Properties();

p.put(Context.INITIAL_CONTEXT_FACTORY,org.jnp.interfaces.NamingContextFactory);
p.put(Context.PROVIDER_URL, urlName);
p.put(Context.URL_PKG_PREFIXES, 
org.jboss.naming:org.jnp.interfaces);

InitialContext ic = new InitialContext(p);

Object ref = 
ic.lookup(SDOCIBusinessApp/SDOCIBusinessServiceImpl/remote);

SDOCIBusinessService narrowed = (SDOCIBusinessService 
)PortableRemoteObject.narrow(ref, SDOCIBusinessService.class);

Here is the list output of jmx-console:

Global JNDI Namespace
  +- HASessionState (class: org.jnp.interfaces.NamingContext)
  |   +- Default (class: org.jboss.ha.hasessionstate.server.HASessionStateImpl)
  +- TopicConnectionFactory (class: org.jboss.naming.LinkRefPair)
  +- jmx (class: org.jnp.interfaces.NamingContext)
  |   +- invoker (class: org.jnp.interfaces.NamingContext)
  |   |   +- RMIAdaptor (proxy: $Proxy52 implements interface 
org.jboss.jmx.adaptor.rmi.RMIAdaptor,interface 
org.jboss.jmx.adaptor.rmi.RMIAdaptorExt)
  |   +- rmi (class: org.jnp.interfaces.NamingContext)
  |   |   +- RMIAdaptor[link - jmx/invoker/RMIAdaptor] (class: 
javax.naming.LinkRef)
  +- SDOCIBusinessApp (class: org.jnp.interfaces.NamingContext)
  |   +- SDOCIBusinessServiceImpl (class: org.jnp.interfaces.NamingContext)
  |   |   +- remote (class: java.lang.Object)
  |   |   +- remoteStatefulProxyFactory (proxy: $Proxy87 implements interface 
org.jboss.ejb3.ProxyFactory)
  |   +- ExcelConverterImpl (class: org.jnp.interfaces.NamingContext)
  |   |   +- local (proxy: $Proxy79 implements No ClassLoaders found for: 
ch.skyguide.aim.interfaces.businesslogic.converter.ExcelConverter (no security 
manager: RMI class loader disabled))
  |   +- IBriefingExportInvokerImpl (class: org.jnp.interfaces.NamingContext)
  |   |   +- local (proxy: $Proxy82 implements No ClassLoaders found for: 
ch.skyguide.aim.interfaces.businesslogic.exportinvoker.IBriefingExportInvoker 
(no security manager: RMI class loader disabled))

I have packaged the EJB plus interfaces in an SDOCIBusinessApp.ear to be 
deployed on jboss and also as a jar in the WEB-INF/lib directory in the war 
file of my webapp since the webapp needs to reference the interface 
SDOCIBusinessService.

I have read all sorts of posted topics which seem to deal with this 
ClassCastException but I haven't found the solution to my problem yet.

Can anybody help?



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

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


[jboss-user] [JBoss Seam] - Re: Help, who uses EntityHome with SFSB? I don't know how to

2007-02-19 Thread Seto
Thanks, that's the problem of remove(). It cause the exception that void and 
String method return. I will wait for it.

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

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


[jboss-user] [Management, JMX/JBoss] - Re: Management interface to webapps

2007-02-19 Thread nappinc
Problem solved!

By ignoring the advice to use a .sar file, I've added code to my main 
application that programmatically registers the MBean. And if using Spring this 
code can be replaced by some very simple configuration instead.


  | // get the JBoss JMX MBean Server
  | MBeanServer server = (MBeanServer) 
MBeanServerFactory.findMBeanServer(null).get(0);
  | 
  | // register custom MBean
  | MonitoringMBean bean = new Monitoring();
  | server.registerMBean(bean, new ObjectName(test:name=Monitoring));
  | 

This is a much simpler solution, and needs no classloading configuration at 
all...  

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

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


[jboss-user] [JBoss Seam] - parameterised method receives null object

2007-02-19 Thread damatrix
I'm using Seam 1.1.6.GA. My problem is with the following bit of code on my 
facelet:

  | h:form
  | h:outputLabel for=name value=Customer's name: /
  | h:outputText id=name 
value=#{registration.customer.fullname}/
  | br/br/   
  | h:outputLabel for=fair value=Fair: /
  | h:commandLink id=fair value=#{registration.fair.title} 
action=#{advertManager.beginApplication(regisration)/

  | br/br/   
  | h:outputLabel for=category value=Product category: /
  | h:outputText id=category 
value=#{registration.category.title}/
  | br/br/   
  | /h:form
  | 

The whole page renders with all the outputText values as well as the 
h:commandLink. However clicking the h:commandLink calls the method expression 
with the parameter being null.

I don't understand why the method is called with a null parameter, when that 
same registration object being passed is obviously not null from the page 
preceding the method call. If it is any help the registration object is 
outjected from a SESSION scoped seam component before being displayed on this 
page.

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

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


[jboss-user] [JBoss Seam] - Re: parameterised method receives null object

2007-02-19 Thread petemuir
You've misspelt the parameter.

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

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


[jboss-user] [JBoss jBPM] - Re: How to tell how far the process has moved along in the w

2007-02-19 Thread kpalania
Anyone else with some useful answers, please respond (and kukeltje, please 
ignore this thread).

Are there some samples out there that could help someone get a quick start on 
this? I've worked on several different technologies over the years, and I don't 
believe the jBPM documentation is upto the mark (atleast, nowhere compared to 
the Oracle documentation of related technologies, like Oracle BPEL, etc, that 
I'm familiar with).

I looked at the jbpm.token table, and it seems to only list the forks. My 
workflow has a number of nodes and states, following these forks, but I don't 
see that in that table. And, I haven't been able to find the documentation for 
these jBPM tables to get a sense for the schema. It has mainly been through a 
bunch of different queries that I've written, that I've gotten any feel for the 
data in these tables.



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

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


[jboss-user] [JBoss Seam] - Re: Problem debugging Seam apps in Eclipse/JBossIDE

2007-02-19 Thread lawrieg
Is it only me having this problem? (Or perhaps I'm the only person on this 
forum who uses Eclipse ;) )

Are you able to successfully debug your Seam apps in Eclipse? (And, if so, what 
versions are you using, and did you have to set up any special config options?)

Any help would be much appreciated...

Thanks,

Lawrie

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

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


[jboss-user] [JBoss Seam] - Re: Problem debugging Seam apps in Eclipse/JBossIDE

2007-02-19 Thread petemuir
http://www.jboss.com/index.html?module=bbop=viewtopict=98294

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

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


[jboss-user] [JCA/JBoss] - Re: idle time out question

2007-02-19 Thread arparikh
Here is the code snippets.


Below is the getConnection which returns Connection object

public void init(String resourceId, String resourceName, boolean 
defaultResource) throws DBException {
try {
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env);
this.m_sources.put(resourceId, envCtx.lookup(resourceName));
if (defaultResource) {
this.m_defaultResourceId = resourceId;
}
}
catch (NamingException ne) {
throw new DBException(ne);
}
}

public Connection getConn(String resourceId) throws DBException {
if (resourceId == null) {
resourceId = this.m_defaultResourceId;
}

try {
DataSource dataSource = (DataSource) this.m_sources.get  (resourceId);
if (dataSource == null) {
m_logger.error(## FATAL ERROR -- DATA SOURCE NULL 
###);
}
Connection conn = dataSource.getConnection();
if (conn == null) {
// try again
conn = dataSource.getConnection();
if (conn == null) {
m_logger.error(## FATAL ERROR -- CONNECTION NULL 
###);
}
}
conn.setAutoCommit(true);
return conn;
}
catch (SQLException se) {
throw new DBException(se);
}
}

Below is the code where we call getConnection to the connection object. We are 
getting NullPointer where we do conn.close(). The thing that I am wondering is 
if we are getting null conn, we should get null pointer at conn.setAutoCommit 
in getConnection or conn.createStatement. But instead we are getting on 
conn.close



public void doSelect(String p_sql, int[] p_dataTypes) throws DBException
{
Connection conn = null;
Statement sqlStmt = null;
ResultSet resultSet = null;
RecSet recset = new RecSet(this.m_resourceId);

try
{
conn = DBConnMgr.getInstance().getConn(this.m_resourceId);
   // The above code getConn which is pasted above
if (conn != null) {
m_logger.info( We got the connection object);
} else {
m_logger.info( DBSelect.doSelect CONNECTION IS NULL!!! 
);
}
sqlStmt = conn.createStatement();

/*
if (p_dataTypes != null)
{
for (int i = 0; i  p_dataTypes.length; i++)
{
//sqlStmt.defineColumnType(i+1, p_dataTypes);
}
}
*/

resultSet = sqlStmt.executeQuery(p_sql);

//operate on resultSet here
}
catch (SQLException se)
{
if (DBConnMgr.getInstance().isFatalError(se))
{
throw new DBException(Exception:  + se + :  + 
se.getErrorCode() +
\n + Database is down  + \n, se.getErrorCode());
}
else
{
throw new DBException(Exception:  + se + :  + 
se.getErrorCode() +
\n + Could not perform  + p_sql + \n);
}
}
finally
{
try
{
if (resultSet != null)
{
resultSet.close();
}
if (sqlStmt != null)
{
sqlStmt.close();
}
}
catch (SQLException se)
{
throw new DBException(Exception:  + se + \n +
Could not close sql statement + \n);
}
finally
{
try
{
   conn.close();   
}
catch (SQLException se)
{
m_logger.info(Failed to close DB connection);
} 
}
}

m_logger.debug(Successful  + p_sql + \n);


}

Thanks for the assistance

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

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


[jboss-user] [JBossCache] - One node in two clusters?

2007-02-19 Thread chrismeadows
Is it possible for one cache node to be in two clusters? I've read in a couple 
of places around the JBoss website that it is possible, but haven't seen how to 
configure the cache in that way.

What config sections do I duplicate? 

The reason I want to do this as follows; I have a cluster in Europe and a 
cluster in USA. The nodes in each cluster replicate synchronously over LAN via 
UDP. Then I want one node of each cluster to also replicate asynchronously over 
WAN via TCP to the other cluster.

What config setup do I need for the nodes that are replicating both within the 
LAN and the WAN?  Do I duplicate the JGroup config, but then how do I relate 
the UDP config to sync LAN replication and TCP config to async WAN replication?

Or do I have to use a shared cache loader? I've thought about it, but that 
seems a tricky implementation and so doesn't feel like the right solution.

Can anyone provide any insight? Or better still, an example config file?

Thanks for any help,

Chris

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

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


[jboss-user] [JBossWS] - 1.2.0CR3: Default for @WebService(targetNamespace=

2007-02-19 Thread Juergen.Zimmermann
I just tried 1.2.0CR3 from the repository location and was using JEMS 1.2 / 
JBoss 4.0.5

If I ommit the attribute targetNamespace within the annotation @WebService 
then the resulting target namespace is http://my.package;. IMHO according to 
the spec it should be http://my.package/jaws;

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

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


[jboss-user] [JBoss Seam] - Re: parameterised method receives null object

2007-02-19 Thread damatrix
that error is a typo when i was posting. parameter is still received as null.

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

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


[jboss-user] [JBoss Portal] - Re: JBoss Portal LDAP Setup

2007-02-19 Thread dhartford
Usecase:  

*Use LDAP for username/passwords (authenticate).
*Use DB for roles/ACL/everything else related to Portal (authorization/etc).

I've been poking at this for a while on the 2.6 alpha1, and alpha2.  There are 
some comments in the configs, but no success yet.

Is there a reason not to re-use existing projects like the Jboss SSO or the 
login-modules related to the way Portals work?  I understand the portal schema 
for roles/ACL/customization/personalization does need to be different, but just 
trying to re-use username passwords and pushing everything else to its own DB 
seems too complicated.






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

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


[jboss-user] [JBoss Eclipse IDE (users)] - JBoss-IDE preferences and Launch Configuration not working i

2007-02-19 Thread RuiRosado
Hi all,

I am working in the JBossIDE-2.0.0 Beta 2 on Eclipse 3.2. Using JBoss server 
v4.0.5GA.

Things are working fine. One thing I cannot do is changing the server 
configuration:
1. First of all, in the Windowpreferences ...JBoss-IDE page I get an error: 
The currently displayed page contains invalid values. There are no values on 
that page apart from the JBoss logo. Also the other options under JBoss-IDE in 
the tree, show up (sometimes) but you cannot edit them.
2. When I create a new server in the Servers perspective, I can only choose the 
default,all and minimal Server Configuration, although we had made a few 
more (copies from default) configurations.
3. OK, we used the default configuration, but now we cannot change values in 
the Server Overview Open launch configuration (i.e. after double-clicking the 
JBoss server in the Servers perspective).
We don't see the twiddle or stop tabs, and values that we change are not 
stored. They always revert to default values. There are no error messages here.

Can someone tell us how to get the Launch Configuration working?

A work-around is using the default configuration and do your adjustments there 
(that's what we are doing at the moment), but JBoss states in the documentation 
that it should be possible to work with your own server configured in JBoss-AS, 
at least in development.

Thanx for any suggestion.
Rui Rosado


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

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


[jboss-user] [JBossWS] - 1.2.0CR3 returns

2007-02-19 Thread Juergen.Zimmermann
I tested the new JBossWS 1.2.0CR3 with
a) Eclipse/WTP and the generic Web Services Explorer
b) The reference implementation for JAX-WS on the client side.

There is no problem if the web service doesn't need any input parameter and 
just returns a result, e.g. a string.

However, if the web service's operation needs an input parameter (e.g. a long 
value) then I get this error message: Cannot find child element: arg0.

Eclipse's Web Services Explorer shows the following as the submitted SOAP 
message:?xml version=1.0 encoding=UTF-8 ? 
  | soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  |   soapenv:Body
  | ns0:findNachname xmlns:ns0=http://ws.hska.de;
  |   long_11/long_1 
  | /ns0:findNachname
  |   /soapenv:Body
  | /soapenv:Envelope

And the following code as the returned SOAP message:env:Envelope 
xmlns:env=http://schemas.xmlsoap.org/soap/envelope/;
  |   env:Header / 
  |   env:Body
  | env:Fault
  |   faultcodeenv:Server/faultcode 
  |   faultstringCannot find child element: arg0/faultstring 
  | /env:Fault
  |   /env:Body
  | /env:Envelope

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

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


[jboss-user] [Beginners Corner] - Re: Server not Starting

2007-02-19 Thread luke802

Okay.. I fixed the Sym link of the java file and I was able to get the system 
up... many thanks.

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

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


[jboss-user] [Management, JMX/JBoss] - how can i check if some ear file is deployed?

2007-02-19 Thread gmeroz
I want to check if an ear file was deployed. what is the best way to do it?

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

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


[jboss-user] [Security JAAS/JBoss] - Re: https

2007-02-19 Thread smeaggie
you can use a security-constraint tag in your web.xml to enforce https 
connections:

  | -- snip --
  | security-constraint
  | display-namemanager_access/display-name
  | web-resource-collection
  | web-resource-namemanager_pages/web-resource-name
  | description/
  | url-pattern/secure/*/url-pattern
  | http-methodGET/http-method
  | http-methodPOST/http-method
  | http-methodHEAD/http-method
  | http-methodPUT/http-method
  | http-methodOPTIONS/http-method
  | http-methodTRACE/http-method
  | http-methodDELETE/http-method
  | /web-resource-collection
  | auth-constraint
  | description/
  | role-namemanager/role-name
  | /auth-constraint
  | user-data-constraint
  | description/
  | transport-guaranteeCONFIDENTIAL/transport-guarantee
  | /user-data-constraint
  | /security-constraint
  | -- snip --
  | 
the user-data-constraint here does the trick with transport-guarantee set 
to CONFIDENTIAL. It'll try to switch to https automaticly now when accessing 
anything behind /secure on the server. Note this example required the user to 
have the manager role and this requires some more configuration (login config 
etc).

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

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


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-02-19 Thread piotr.walczyszyn
I guess I wasn't clear in my previous posts. This is exactly what I'm doing, I 
tried to stick it in to all possible contexts that are available throug 
Contexts class. Everytime I get NPE when running Renderer.render() method and I 
understand that this is because my objects are not found in those contexts.

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

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


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-02-19 Thread petemuir
Post the stack trace.

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

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


[jboss-user] [JBoss jBPM] - Re: How to tell how far the process has moved along in the w

2007-02-19 Thread kukeltje
no problem just don't expect any further help in the future... oh and just 
for the sake of ignoring this thread... sometimes sticky posts at the top of 
the forum are interesting...at least others have told us that it was real 
helpful... but I will not tell you this.

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

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


[jboss-user] [JBoss Seam] - Re: outject problem

2007-02-19 Thread petemuir
You probably need to be in a conversation

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

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


[jboss-user] [JBoss Seam] - Re: outject problem

2007-02-19 Thread laxu
How do I do that? go is annotated with @Begin.

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

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


[jboss-user] [Security JAAS/JBoss] - Re: Latest JAAS Tutorial for Database communication

2007-02-19 Thread smeaggie
don't know about jGuard, but this is JAAS with database login (a real quicky 
tho, feel free to ask more).

1) setup the connection to the database. put a database-ds.xml file in the 
deploy directory wich contains something like:

  | datasources
  | local-tx-datasource
  | jndi-nameexampleDS/jndi-name
  | 
connection-urljdbc:postgresql://127.0.0.1:5432/example/connection-url
  | driver-classorg.postgresql.Driver/driver-class
  | user-nameex/user-name
  | password___/password
  | min-pool-size5/min-pool-size
  | max-pool-size20/max-pool-size
  | metadata
  | type-mappingPostgreSQL 7.2/type-mapping
  | /metadata  
  | /local-tx-datasource
  | /datasources
  | 
make sure you enter the correct driver, connection string etc. Now open 
login-config.xml in the server's conf/ directory. you need to define a security 
domain here. add this to the file:

  | application-policy name = exampleDomain
  | authentication
  | login-module code = 
org.jboss.security.auth.spi.DatabaseServerLoginModule flag = required
  | module-option name = 
unauthenticatedIdentityguest/module-option
  | module-option name = 
dsJndiNamejava:/exampleDS/module-option
  | module-option name = principalsQuerySELECT PASSWD 
FROM USERS WHERE USERID=?/module-option
  | module-option name = rolesQuerySELECT ROLEID, 
'Roles' FROM ROLES WHERE USERID=?/module-option
  | /login-module
  | /authentication
  | /application-policy
  | 
note the definition exampleDomain and how the dsJndiName is set to 
java:/exampleDS. exampleDS comes from the database connection definition above! 
the two queries in this file mean the following: the principalsQuery should 
return the password of the user where userid is the name the user entered in 
the login form. The rolesQuery must return all roles associated with the 
username. So it's time to create two tables in your database, with at least 
this info:

  | table USERS
  | +-+
  | | userid   |  passwd |
  | +-+
  | | test|  secret   |
  | +-+
  | 
  | table ROLES
  | +-+
  | |  userid| roleid   |
  | +-+
  | |  test |  admin|
  | |  test |  manager|
  | +-+
  | 
(don't mind the ascii art)

we've created a user test with the password secret and the roles admin 
and manager.

time to secure the web application, open up jboss-web.xml (from the WEB-INF 
directory) and put this in it:

  | ?xml version=1.0 encoding=UTF-8?
  | jboss-web
  |   security-domainjava:/jaas/exampleDomain/security-domain
  |   context-root/example/context-root
  | /jboss-web
  | 
this sets the security domain for the web application to exampleDomain wich 
is declared in the login-config.xml above! jboss now knows wich login module 
configuration applies to this application.
now edit web.xml (also in the WEB-INF directory) and add this:

  | security-constraint
  | display-namemanager/display-name
  | web-resource-collection
  | web-resource-namemanager_pages/web-resource-name
  | description/
  | url-pattern/manager/*/url-pattern
  | http-methodGET/http-method
  | http-methodPOST/http-method
  | http-methodHEAD/http-method
  | http-methodPUT/http-method
  | http-methodOPTIONS/http-method
  | http-methodTRACE/http-method
  | http-methodDELETE/http-method
  | /web-resource-collection
  | auth-constraint
  | description/
  | role-namemanager/role-name
  | /auth-constraint
  | user-data-constraint
  | description/
  | transport-guaranteeNONE/transport-guarantee
  | /user-data-constraint
  | /security-constraint
  | 
  | security-constraint
  | display-nameadmin/display-name
  | web-resource-collection
  | web-resource-nameadmin_pages/web-resource-name
  | description/
  | url-pattern/admin/*/url-pattern
  | http-methodGET/http-method
  | http-methodPOST/http-method
  | http-methodHEAD/http-method
  | http-methodPUT/http-method
  | http-methodOPTIONS/http-method
  | http-methodTRACE/http-method
  | http-methodDELETE/http-method
  | 

[jboss-user] [JBoss Seam] - outject problem

2007-02-19 Thread laxu
I already (http://www.jboss.com/index.html?module=bbop=viewtopict=101517) had 
asked this in this forum and I could not solve the problem yet. Here I have 
downsized my dummy app to even simpler and it still cannot outject. I must be 
missing or misunderstanding something fundamental.

I have the entity bean Organization:
@Entity
  | @Name(organization)
  | public class Organization implements Serializable {
  | 
  | @TableGenerator(name=organizationGenerator)
  | @Id
  | 
@GeneratedValue(strategy=GenerationType.TABLE,generator=organizationGenerator)
  | private Long id;
  | 
  | private String name;
  | private String description,address;
  | private boolean deleted=false;
  | 
  | @Temporal(TemporalType.DATE)
  | private Date startUpDate;
  | public Organization() {
  | name=unnamed;
  | }
  | 
  | public Long getId() {
  | return this.id;
  | }
  | 
  | public void setId(Long id) {
  | this.id = id;
  | }
  | 
  | @Override
  | public int hashCode() {
  | int hash = 0;
  | hash += (this.id != null ? this.id.hashCode() : 0);
  | return hash;
  | }
  | 
  | @Override
  | public boolean equals(Object object) {
  | // TODO: Warning - this method won't work in the case the id fields 
are not set
  | if (!(object instanceof Organization)) {
  | return false;
  | }
  | Organization other = (Organization)object;
  | if (this.id != other.id  (this.id == null || 
!this.id.equals(other.id))) return false;
  | return true;
  | }
  | 
  | @Override
  | public String toString() {
  | return [id= + id + :+ name +];
  | }
  | 
  | ... standart getters and setters follow ...
  | 

A stateful session bean


  | @Stateful
  | @Name(testAction)
  | public class TestActionBean implements TestActionLocal {
  | 
  | @Out
  | Organization organization;
  | 
  | public TestActionBean() {}
  | 
  | @Begin
  | public String go(){
  | organization=new Organization();
  | organization.setName(Tester);
  | return org;
  | }
  | 
  | @End
  | public String stop(){
  |  return test;
  | }
  | 
  | @Remove @Destroy
  | void destroy(){}
  | }

one initial page, only for calling the action bean:

test.xhtml
  | ?xml version='1.0' encoding='UTF-8' ?
  | !DOCTYPE composition PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
  | ui:composition xmlns=http://www.w3.org/1999/xhtml;
  | xmlns:ui=http://java.sun.com/jsf/facelets;
  | xmlns:h=http://java.sun.com/jsf/html;
  | template=listTemplate.xhtml
  | 
  | ui:define name=content
  | h:form
  | h:commandButton value=Go action=#{testAction.go} /
  | /h:form
  | /ui:define
  | 
  | /ui:composition
  | 

and another one that is navigated when org is returned:

org.xhtml
  | !DOCTYPE composition PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
  | ui:composition xmlns=http://www.w3.org/1999/xhtml;
  | xmlns:ui=http://java.sun.com/jsf/facelets;
  | xmlns:h=http://java.sun.com/jsf/html;
  | xmlns:f=http://java.sun.com/jsf/core;
  | template=listTemplate.xhtml 
  | 
  | ui:define name=content
  | h:form
  | h:outputLabel value=Name: / h:inputText 
value=#{organization.name}/
  | /h:form
  | /ui:define
  | 
  | 
  | /ui:composition
I construct a new Organization at the method go and set its name property 
to tester. I expect it to show up in the org.xhtml, but instead unnamed 
shows up, which is assigned in the default constructor of Organization. The 
instance I assigned at the go method is ignored and another instance is 
outjected. 
Where am I wrong?
Regards,
Levent

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

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


[jboss-user] [JBossWS] - Re: 1.2.0CR3 returns

2007-02-19 Thread Juergen.Zimmermann
Instead of the WSDL file generated by wstools I used the WSDL file in 
server\default\tmp\jbossws: Eclipse' Web Services Explorer works fine.

Thus there seems to be any difference between the output of wstools and the 
WSDL file generated at runtime...

However, using JAX-WS RI for the client still fails.

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

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


[jboss-user] [JBossCache] - Re: Performance expectations

2007-02-19 Thread mvlior
anonymous wrote : I'd recommend to try it with pessimistic locking. Not sure 
how much of the performance impact it will have but I think it does without 
further tuning.

After changing to pessimistic locking, our test results have dramatically 
improved. It turns out to be a known issue in 1.2.4 SP1.

In case anyone stumbles upon this issue, below is a very useful link referring 
to the phenomenon.

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

Also referred to from:
http://wiki.jboss.org/wiki/Wiki.jsp?page=OptimisticNodeLocking

It would be nice to be able to reach (one of) the above pages from a page 
titled Performance we should expect from PojoCache
(http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossCacheOptimisticLockingPerformance),
but that's my opinion.
Maybe the results would have been expected - 170 (!) times faster.


Thanks for all the help,

Lior Neuman 
RD Team 
MailVision LTD 

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

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


[jboss-user] [JBoss Seam] - Re: outject problem

2007-02-19 Thread petemuir
Sorry, I'm blind :(

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

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


[jboss-user] [JBoss Seam] - Help: sessionContext

2007-02-19 Thread xinhua
Hallo all,
i have a problem when i want to inject sessionContext in code:


  | @In Context sessionContext;
  | 

The bean is SLSB and sessionContext is always null!!!

Need help! :((

Thanks in advance!

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

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


[jboss-user] [Beginners Corner] - Re: Server started but not working

2007-02-19 Thread PeterJ
Please post the contents of your /etc/hosts file. Most likely localhost is not 
properly registered.

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

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


[jboss-user] [JBoss Seam] - Re: parameterised method receives null object

2007-02-19 Thread damatrix
To correct the first post it should have appeared as follows

  | h:form
  | h:outputLabel for=name value=Customer's name: /
  | h:outputText id=name 
value=#{registration.customer.fullname}/
  | br/br/   
  | h:outputLabel for=fair value=Fair: /
  | h:commandLink id=fair value=#{registration.fair.title} 
action=#{advertManager.beginApplication(registration)}/  
  
  | br/br/   
  | h:outputLabel for=category value=Product category: /
  | h:outputText id=category 
value=#{registration.category.title}/
  | br/br/   
  | /h:form
  | 

Changing to s:link does not help either

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

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


[jboss-user] [Security JAAS/JBoss] - Re: Latest JAAS Tutorial for Database communication

2007-02-19 Thread aleksab
What about when you want to secure a client?

I've added a policy to the conf/login-config.xml, which seems to work. It 
connects to the database, but the username is always null (found out by 
examining the mysql log)

In the client i'm using a LoginContext, and i've included 

  | login-module code=org.jboss.security.ClientLoginModule flag=required /
  | module-option 
name=restore-login-identitytrue/module-option   
  | /login-module
  | 
in the conf/login-config.xml like the FAQ says I must do in order for the 
authentication info propagating to the called component.

But the principal (and password I assume) is never propagating.

My client looks like this:

  | LoginContext loginContext = new LoginContext(pn-login, new 
CallbackHandler());
  | loginContext.login();
  | 
  | HashtableString, String env = new HashtableString, 
String();
  | env.put(InitialContext.INITIAL_CONTEXT_FACTORY, 
org.jboss.naming.NamingContextFactory);
  | env.put(InitialContext.URL_PKG_PREFIXES, 
org.jboss.naming:org.jnp.interfaces);
  | env.put(InitialContext.PROVIDER_URL, 
jnp://localhost:1099);
  | 
  | Context ctx = new InitialContext(env);
  | SecurityBean bean = (SecurityBean) 
ctx.lookup(SecurityBeanImpl/remote);
  | 

When i call 

  | System.out.println(Unsecure string:  + bean.getSimpleString());
  | 

i get this exception:

  |  javax.security.auth.login.FailedLoginException: No matching username found 
in Principals
  | 

What am i doing wrong? Been struggling with this for some time now...

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

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


[jboss-user] [JBoss Portal] - Re: JBoss Portal LDAP Setup

2007-02-19 Thread bdaw
I recently added SynchronizingLdapLoginModule that extends LdapLoginModule  
from JBossSX and SynchronizingLdapExtLoginModule that does the same for 
LdapExtLoginModule You can use them to 
- just authenticate against LDAP + inject additional role principal which is 
used to secure portal application
- authenticate against LDAP + synchronize ldap user into portal DB
- authenticate against LDAP + synchronize ldap user into portal DB + assign 
such user to specified portal role
- authenticate against LDAP + synchronize ldap user into portal DB + assign 
such user to specified portal role + try to synchronize all the roles obtained 
for such user from LDAP into portal DB

as you see it can be quite flexible. It's in svn trunk and will be in beta but 
there is no documentation. Just look at commented block of code in 
login-config.xml - minimal documentation is in comment block

You need to remember that it's hard to decouple users and roles because of 
relationship. So you can't just keep users in LDAP and roles in DB. 

With current identity modules implementation you can keep most imformation 
about users directly in LDAP anyway. This is documented for beta.


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

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


[jboss-user] [JBoss jBPM] - Re: Creating a custom controller

2007-02-19 Thread Johan.Parent
Maybe you'll find what you need in :

jbpm-3.1.2\src\java.jbpm\org\jbpm\taskmgmt\def\

There are a few controllors in that example.


Best regards,

Johan

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

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


[jboss-user] [JBoss Seam] - Re: Problem debugging Seam apps in Eclipse/JBossIDE

2007-02-19 Thread lawrieg
Currently I'm freally just using Eclipse as a glorified editor, and using Ant 
to compile/build/deploy, but I am using JBossIDE JBoss Server View to start 
JBoss AS in debug mode.

I take it I would have to set up my Seam project completely as an Eclipse 
project (with compile/build/deploy being performed by Eclipse rather than Ant) 
in order to set up debugging as detailed in the other post?

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

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


[jboss-user] [JBoss Seam] - Re: Problem debugging Seam apps in Eclipse/JBossIDE

2007-02-19 Thread petemuir
Nope.  I use an seam-gen based ant script, I just add -Xdebug 
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n as 'VM 
arguements' to the server launch config, start it in normal mode, then attach a 
debugger as described.  I've never got it to launch using the debug start.

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

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


[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: CAnnot deploy exploded war

2007-02-19 Thread mailinator
I have a same problem. My exploded war resides outside jboss's deploy directory 
and is linked to be deployed in jboss-service.xml

  mbean code=org.jboss.deployment.scanner.URLDeploymentScanner
  |   name=jboss.deployment:type=DeploymentScanner,flavor=URL
  | 
  | ...
  |   attribute name=URLs
  |deploy/,file:/ws/default/SCB_US/Engineering/selenium-test.war
  |   /attribute

I have tried also to put / character at the end (.../selenium-test.war/). 
Exception disappeared, but war was not deployed.

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

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


[jboss-user] [JBoss Portal] - Re: JBoss Portal LDAP Setup

2007-02-19 Thread dhartford
That's great bdaw!!

I would like to carry over roles from the LDAP, but since the Portal may have 
new roles I was going with the use-case of moving all the roles to the 
portal-oriented-DB.

With that last option for the SynchronizingLdapLoginModule:
- authenticate against LDAP + synchronize ldap user into portal DB + assign 
such user to specified portal role + try to synchronize all the roles obtained 
for such user from LDAP into portal DB 

That is perfect for my use case, and probably other people with similar 
scenarios.  I look forward to checking out the Beta release (pending the date), 
or may grab from SVN if I have an opportunity.

Do you have a direct-sample related to the last option for the login-config.xml 
and related portal identity-* configs (tieing the two-to-three configs together 
is part of the challenge)?

p.s. I really like the idea of re-using my existing login modules instead of 
re-setting it up in the portal identity files, thank you :-)

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

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


[jboss-user] [JBoss Seam] - Re: Problem debugging Seam apps in Eclipse/JBossIDE

2007-02-19 Thread fhh
anonymous wrote : 
  | I take it I would have to set up my Seam project completely as an Eclipse 
project (with compile/build/deploy being performed by Eclipse rather than Ant) 
in order to set up debugging as detailed in the other post?
  | 

Just start the JBoss server in debug mode from the server view and debugging 
will just work(tm). You can compile and deploy with ant.

Regards

felix


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

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


[jboss-user] [JBoss Portal] - Re: JBoss Portal LDAP Setup

2007-02-19 Thread bdaw
Happy to hear that :)

Look here. It's the second login module (commented). 

It's just a quick prototype so it's not much tested but should work. The code 
is also quite simple  (ext one here: here)

We may think about providing something more general to use with any login 
module if there will be enough time, but you can easily extend any login module 
in similar way by just reusing this code.

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

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


  1   2   3   >