[JBoss-user] [JBoss Seam] - Re: Some classes/interfaces moved from javax.ejb to javax.in

2006-05-16 Thread Andy.2003
Where did you find this version of jboss? the newes version i found is 
jboss-4.0.4.CR3-installer.jar and from the jboss-webpage the 
jboss-4.0.4.CR2-installer.jar is linked.

- Andreas

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

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


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Some classes/interfaces moved from javax.ejb to javax.in

2006-05-16 Thread Andy.2003
ok, I found it
http://sourceforge.net/project/showfiles.php?group_id=22866package_id=16942

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

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


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - force new session ID, but don't invalidate session

2006-05-12 Thread Andy.2003
Hello,

is there a way to generate a new Session ID without invalidating the current 
session? I read some article about session hijacking, and the main conclusion 
was, to always generate a new session ID if the security level increase. So if 
a not logged in user already got a session and he's logging in, he should 
receive a new session Id.

cheers
- Andreas

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

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


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: best practice advice needed: checking for user session

2006-05-10 Thread Andy.2003
see http://www.jboss.org/index.html?module=bbop=viewtopict=81627

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

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


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: updating the view with em.refresh()

2006-05-02 Thread Andy.2003
Hi as far as I know the em.refresh(Entity) method is to refresh an existing 
Entity. I use it to load lazy data of entities stored in the session. I store 
the User-Entity in the session and to get the roles of the user i have to call:

em.refresh(lUser);
  | lUser.getRoles();

If you delete an Entity, you should call the em.find() method (I'm not quite 
shure, if it is the best way)

I'm also intrested in a best practice.

- Andreas

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

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


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Problems using jboss-seam-ui.jar from cvs

2006-05-02 Thread Andy.2003
I use facelets + myfaces

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

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


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Problems using jboss-seam-ui.jar from cvs

2006-05-02 Thread Andy.2003
[EMAIL PROTECTED] wrote : Are you using an old version of facelets?
  | 
  | Try using the one from Seam CVS.

This solved the problem!

Off topic: since this update normal xml comments are evaluated:

!--h:inputText id=AccountName value=#{account.selectedAccount} 
title=#{msg.Account_Name_Help}/--

throws an exception (if the property is not defined)
javax.el.PropertyNotFoundException: Bean: de.foo.Account, property: 
selectedAccount

Did I miss a special comment format for jsf? (It should ignore comments)

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

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


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Problems using jboss-seam-ui.jar from cvs

2006-05-02 Thread Andy.2003
Andy.2003 wrote : Off topic: since this update normal xml comments are 
evaluated:
  | 
  | !--h:inputText id=AccountName value=#{account.selectedAccount} 
title=#{msg.Account_Name_Help}/--
  | 
  | throws an exception (if the property is not defined)
  | javax.el.PropertyNotFoundException: Bean: de.foo.Account, property: 
selectedAccount
  | 
  | Did I miss a special comment format for jsf? (It should ignore comments)

Ok I found the sollution, in the current version of facelets SKIP_COMMENTS is 
disabled. To enable it again you have to write this in your web.xml:

context-param
  | param-namefacelets.SKIP_COMMENTS/param-name
  | param-valuetrue/param-value
  | /context-param

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

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


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - FacesMessages doesn't work with redirects from Get-Requests

2006-05-01 Thread Andy.2003
Hello,

I got an activation page (where a user can activate his account with a link 
from an email). this page is defined in pages.xml as followed:

pages
  | page view-id=/activate.xhtml action=#{activateCustomer.check}/
  | /pages

The check method contains following code:

Utils.addInfoMessage(Activation_AlreadyActivated);
  | return login;

and the navigation-case in faces-config.xml is this one:

navigation-case
  | from-outcomelogin/from-outcome
  | to-view-id/login.xhtml/to-view-id
  | redirect/
  | /navigation-case

The redirect works fine but the Stored Message is not diplayed!
If I don't configure the redirect in faces-config.xml I get the Message.
If I try the same thing with an action (invoked via post) the Message is 
displayed after the redirect.
I'm not quite shure but I think the Message stored in conversation scope is 
cleared to early.
Gavin can you have a look at this?

Thanks
- Andreas

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

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


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: FacesMessages doesn't work with redirects from Get-Reque

2006-05-01 Thread Andy.2003
[EMAIL PROTECTED] wrote : (1) What version of Seam is this?
I use cvs version of seam (checked out before 30 min)

[EMAIL PROTECTED] wrote : (2) Just to be sure, are you using the 
SeamRedirectFilter?
Yes I enabled the SeamRedirectFilter in web.xml:

filter
  | filter-nameSeam Redirect Filter/filter-name
  | 
filter-classorg.jboss.seam.servlet.SeamRedirectFilter/filter-class
  | /filter
  | 
  | filter-mapping
  | filter-nameSeam Redirect Filter/filter-name
  | url-pattern*.htm/url-pattern
  | /filter-mapping
  | servlet
  | servlet-nameFaces Servlet/servlet-name
  | servlet-classjavax.faces.webapp.FacesServlet/servlet-class
  | load-on-startup1/load-on-startup
  | /servlet
  | 
  | servlet-mapping
  | servlet-nameFaces Servlet/servlet-name
  | url-pattern*.htm/url-pattern
  | /servlet-mapping

- Andreas

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

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


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Problems using jboss-seam-ui.jar from cvs

2006-05-01 Thread Andy.2003
I checked out the cvs version of seam an put both builded files 
(jboss-seam.jar, jboss-seam-ui.jar) in my project.
After redeployment I got following exception:
04:02:55,128 ERROR [ClassUtils] Class : 
org.jboss.seam.ui.debug.SeamDebugPhaseListener not found.
  | java.lang.NoClassDefFoundError: com/sun/facelets/impl/ResourceResolver
  | at java.lang.Class.getDeclaredConstructors0(Native Method)
  | at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
  | at java.lang.Class.getConstructor0(Class.java:2640)
  | at java.lang.Class.newInstance0(Class.java:321)
  | at java.lang.Class.newInstance(Class.java:303)
  | at org.apache.myfaces.util.ClassUtils.newInstance(ClassUtils.java:274)
  | at org.apache.myfaces.util.ClassUtils.newInstance(ClassUtils.java:265)
  | at 
org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigurator.java:622)
  | at 
org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:133)
  | at 
org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:63)
  | at 
org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:46)
  | at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
  | at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4183)
  | at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
  | at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
  | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
  | at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.apache.catalina.core.StandardContext.init(StandardContext.java:5107)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
  | at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
  | at 
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
  | at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
  | at org.jboss.web.WebModule.startModule(WebModule.java:83)
  | at org.jboss.web.WebModule.startService(WebModule.java:61)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | at sun.reflect.GeneratedMethodAccessor127.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  | at $Proxy0.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:417)
  | at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

[JBoss-user] [JBoss Seam] - Simulate request-header with SeamTest (or workaround)

2006-05-01 Thread Andy.2003
Hello,

I set up a SeamTest which calls an action wherein the header of the request is 
analysed:

String lHost = (String) 
facesContext.getExternalContext().getRequestHeaderMap().get(host);

Is there a possibiltiy to set this header also in a SeamTest class? Currently I 
get a NullPointerException if I want to access the requestHeaderMap.

Thanks
- Andreas

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

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


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: deny access to secured pages via get-requests (discuss p

2006-04-25 Thread Andy.2003
I mentioned: if I use pages.xml as shown above (page view-id=/admin/* 
action=#{login.loggedIn}/), the loggedIn method is always invoked (not only 
for get requests).
So for a normal action event the login checking code is run twice: in the 
LoggedInInterceptor and in the loggedIn method specified in pages.xml.
Is there a way (- feature request) to say, that the entry in pages.xml is only 
used for get requests? like e.g.

page view-id=/admin/* action=#{login.loggedIn} scope=get/

- Andreas

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

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


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Redirect to HTTPS

2006-04-25 Thread Andy.2003
Why you want the site unsecure before login and secure after login? I think the 
easiest way is to make a page commonly secure or not (if private information is 
entered the page should be secure in general)

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

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


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Redirect to HTTPS

2006-04-24 Thread Andy.2003
try to put this in your wen.xml and set the url-pattern/*/url-pattern to 
your secured site
security-constraint
  | web-resource-collection
  | web-resource-nameSSL Pages/web-resource-name
  | url-pattern/*/url-pattern
  | http-methodGET/http-method
  | http-methodPUT/http-method
  | http-methodPOST/http-method
  | /web-resource-collection
  | user-data-constraint
  | transport-guaranteeCONFIDENTIAL/transport-guarantee
  | /user-data-constraint
  | /security-constraint

you have to enable the SSL in your tomcat as well.

- Andreas

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

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


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - deny access to secured pages via get-requests (discuss plz!)

2006-04-24 Thread Andy.2003
Hello,

I spend the whole day (and night) to find a sollution for a common problem:

If a client bookmarks a seam page and try to acces this page via get request, 
the page is rendered and no action/validation is invoked. There is no simple 
way to redirect the user to the Login page.

I don't want to use a @Factory annotation, because the user should first be 
authenticated.

Is there a simple possibilty to redirect a user to a welcome page, if he is not 
logged in? (...and entered a page via get request)

I tried to solve this problem with JAAS and security-constraint in web.xml but 
it doesn't fit.

Does anybody solved this problem?

- Andreas

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

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


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: deny access to secured pages via get-requests (discuss p

2006-04-24 Thread Andy.2003
so far I tried to setup the following in web.xml:

error-page
  | error-code403/error-code
  | location/login.htm/location
  | /error-page
  | security-constraint
  | web-resource-collection
  | web-resource-nameSSL Pages/web-resource-name
  | url-pattern/secure/*/url-pattern
  | http-methodGET/http-method
  | http-methodPUT/http-method
  | http-methodPOST/http-method
  | /web-resource-collection
  | auth-constraint
  | role-nameAUTH/role-name
  | /auth-constraint
  | user-data-constraint
  | transport-guaranteeCONFIDENTIAL/transport-guarantee
  | /user-data-constraint
  | /security-constraint

but there is no simple way to set the role (AUTH) for a logged in User (like 
in LoginAction), isn't it?

A seam component to add such a role to a logged in user would be perfect!

- Andreas

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

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


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: deny access to secured pages via get-requests (discuss p

2006-04-24 Thread Andy.2003
[EMAIL PROTECTED] wrote : This is basically a total mess and we are looking 
into what we can do to fix this in JBoss (and eventually fix the stupid servlet 
spec).

This is what I'd discovered I thought, that there must be a way to easily 
add a role to a user, but no way.

so now I added this to pages.xml:

pages 
  | page view-id=/admin/* action=#{login.loggedIn}/
  | /pages

and I got this action:

public String loggedIn() {
  | if (sessionContext.get(LOGGED_IN) != null){
  | return null;
  | }
  | return login;
  | }

this works well (but why there is a conversationId added to the parameters? I 
didn't start any conversation)

- Andreas

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

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


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: deny access to secured pages via get-requests (discuss p

2006-04-24 Thread Andy.2003
Andy.2003 wrote : ... but why there is a conversationId added to the 
parameters? I didn't start any conversation

It was because of the redirect Filter ;-)

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

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


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Bug in seam interceptors - method with variable parameters

2006-04-14 Thread Andy.2003
Hello,

I got an method like this:

public static void addInfoMessage(String pMsgId, Object... pParams) {
  | FacesContext.getCurrentInstance().addMessage(null, 
getMessage(pMsgId, FacesMessage.SEVERITY_INFO, pParams));
  | }

when I call the method without addidional parameters from the main method it's 
executed normally:

public static void main(String[] args) {
  | addInfoMessage(foo.bar);
  | }

but when I call this method from a Seam component I get the following exception:

Caused by: java.lang.NoSuchMethodError: 
de.foo.utils.Utils.addWarnMessage(Ljava/lang/String;)V
  | at 
de.foo.webfront.RegisterCustomerBean.create(RegisterCustomerBean.java:119)
  | at 
de.foo.webfront.RegisterCustomerBean$$EnhancerByCGLIB$$1ebf5fb7.CGLIB$create$0(generated)
  | at 
de.foo.webfront.RegisterCustomerBean$$EnhancerByCGLIB$$1ebf5fb7$$FastClassByCGLIB$$277e69fe.invoke(generated)
  | at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
  | at 
org.jboss.seam.interceptors.JavaBeanInterceptor$1.proceed(JavaBeanInterceptor.java:80)
  | at 
org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
  | at 
org.jboss.seam.interceptors.ValidationInterceptor.validateTargetComponent(ValidationInterceptor.java:65)
  | ... 103 more

Is it a bug or did I miss something?

- Andreas

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Exception while running WSTools

2006-03-20 Thread Andy.2003
I get the following exception while running wstools (from cvs)

Exception in thread main org.jboss.ws.WSException: java.io.IOException: Die 
Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist 
falsch
  | at 
org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:345)
  | at org.jboss.ws.tools.WSTools.process(WSTools.java:122)
  | at org.jboss.ws.tools.WSTools.generate(WSTools.java:109)
  | at org.jboss.ws.tools.WSTools.main(WSTools.java:61)
  | Caused by: java.io.IOException: Die Syntax für den Dateinamen, 
Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch
  | at java.io.WinNTFileSystem.createFileExclusively(Native Method)
  | at java.io.File.createNewFile(File.java:850)
  | at 
org.jboss.ws.metadata.wsdl.WSDLUtils.createPhysicalFile(WSDLUtils.java:349)
  | at 
org.jboss.ws.tools.client.ServiceCreator.generateServiceFile(ServiceCreator.java:229)
  | at 
org.jboss.ws.tools.client.ServiceCreator.createServiceDescriptor(ServiceCreator.java:172)
  | at 
org.jboss.ws.tools.helpers.ToolsHelper.generateServiceFile(ToolsHelper.java:371)
  | at 
org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:319)
  | ... 3 more

The reason is, that wstools tries to create a directory from the 
targetNamespace, but the namespace contains : (e.g. foo:bar:TestBla) (the 
wsdl I used is the one from eBay)

-Andreas

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Exception while running WSTools

2006-03-20 Thread Andy.2003
I checked out the newest version and saw that this issue is already fixed, but 
now I got this exception:

Exception in thread main java.lang.NullPointerException
  | at 
org.jboss.ws.metadata.wsdl.xsd.SchemaUtils.isWrapperArrayType(SchemaUtils.java:110)
  | at 
org.jboss.ws.tools.XSDTypeToJava.createVARforXSElementDeclaration(XSDTypeToJava.java:571)
  | at 
org.jboss.ws.tools.XSDTypeToJava.createVARsForElements(XSDTypeToJava.java:490)
  | at 
org.jboss.ws.tools.XSDTypeToJava.createVARsforXSParticle(XSDTypeToJava.java:421)
  | at org.jboss.ws.tools.XSDTypeToJava.getVARList(XSDTypeToJava.java:241)
  | at 
org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:147)
  | at 
org.jboss.ws.tools.XSDTypeToJava.createVARforXSElementDeclaration(XSDTypeToJava.java:600)
  | at 
org.jboss.ws.tools.XSDTypeToJava.createVARsforXSModelGroup(XSDTypeToJava.java:446)
  | at 
org.jboss.ws.tools.XSDTypeToJava.handleContentTypeElementsWithDerivationExtension(XSDTypeToJava.java:304)
  | at org.jboss.ws.tools.XSDTypeToJava.getVARList(XSDTypeToJava.java:231)
  | at 
org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:147)
  | at 
org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:109)
  | at org.jboss.ws.tools.WSDLToJava.generateJavaSource(WSDLToJava.java:493)
  | at org.jboss.ws.tools.WSDLToJava.getReturnType(WSDLToJava.java:373)
  | at org.jboss.ws.tools.WSDLToJava.appendMethods(WSDLToJava.java:221)
  | at org.jboss.ws.tools.WSDLToJava.createSEIFile(WSDLToJava.java:329)
  | at org.jboss.ws.tools.WSDLToJava.createSEI(WSDLToJava.java:351)
  | at org.jboss.ws.tools.WSDLToJava.generateSEI(WSDLToJava.java:175)
  | at 
org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:335)
  | at org.jboss.ws.tools.WSTools.process(WSTools.java:122)
  | at org.jboss.ws.tools.WSTools.generate(WSTools.java:109)
  | at org.jboss.ws.tools.WSTools.main(WSTools.java:61)

you can download the wsdl for testing here 
http://developer.ebay.com/webservices/latest/eBaySvc.wsdl

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Using OODBMS as persistece layer

2006-03-15 Thread Andy.2003
Hello,

I searched the whole JBoss forum, to find something about the use of object 
oriented databases but I didn't find any useful topics.

So I'm interested in using an OODBMS (like db4objects) for making my PoJOs 
persistent.
Until yesterday I thought that Hibernate would be the best solution to persist 
Objects. But then a friend of mine told me about db4objects and its ease of use.
Now I searched for some facts about it and read that it is up to 44 times 
faster than hibernate. Unfortunately I didn?t find any useful information about 
using OODBMS with an application server.

Is there someone who already used an OODBMS with JBoss and can tell me 
something about its performance (esp. for clustering and scalability)?

Thanks
Andreas

p.s.: I?m also interested in other facts or discussions about this Topic!


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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: RessourceBundle for all Locals in APP-Scope

2006-03-11 Thread Andy.2003
if de is your default language, your messages.properties have to be in german 
;-)

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: RessourceBundle for all Locals in APP-Scope

2006-03-11 Thread Andy.2003
so the default language is english as well...

that's the way it works!

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: RessourceBundle for all Locals in APP-Scope

2006-03-09 Thread Andy.2003
[EMAIL PROTECTED] wrote : ... I have reworked the resourceBundle component as 
a SESSION scoped component ...

but if you store the resourceBundle in session scope, does seam load the 
resourceBundle for each Session, isn't it? So this shouldn't be very good for 
the memory usage (if each session stores the bundle)

-Andreas

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: RessourceBundle for all Locals in APP-Scope

2006-03-09 Thread Andy.2003
You're right the JVM cache works very well! (Didn't know that Java caches the 
resources)

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: RessourceBundle for all Locals in APP-Scope

2006-03-09 Thread Andy.2003
yes the client should be able to set his language and it should be stored in 
the session scope (maybe you can create a nice component for this...) 

- Andreas

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Performance Tuning for rarely changed data

2006-03-08 Thread Andy.2003
Hello Jim,

thank you for your reply!

I got an userfront and an adminfront, the userfront should only read the 
categories and the admin should also be able to change the categories.

How can I setup a timeout for only one entity? And can I give an entity more 
than one cache startegies?

Anyway, I'm still intrested in if there is a possibility to invalidate the 
Application scope (maybe a seam core function)

- Andreas


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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: accessing session-beans in Seam

2006-03-07 Thread Andy.2003
I mentioned, that I miss all the nice features Seam offers, if I dont use the 
@Name annotation in my Entities. So I need to wrap each Entity to access it in 
a JSF like:

#{user.firstname}

My question is: when I use the Seam annotations in an Entity PoJO, is there an 
overhead (eg. in performance), if I dont use this Entities via Seam???

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - behavior of @IdClass with @AttributeOverride is not as I exp

2006-03-07 Thread Andy.2003
Hi, I tried following thing:

@MappedSuperclass
  | @IdClass(FootballerPk.class)
  | public class Footballer {
  | String firstname;
  | String lastname;
  | //part of the id key
  | @Id public String getFirstname() {
  | return firstname;
  | }
  | 
  | public void setFirstname(String firstname) {
  | this.firstname = firstname;
  | }
  | 
  | //part of the id key
  | @Id public String getLastname() {
  | return lastname;
  | }
  | 
  | public void setLastname(String lastname) {
  | this.lastname = lastname;
  | }
  | 
  | public String getClub() {
  | return club;
  | }
  | 
  | public void setClub(String club) {
  | this.club = club;
  | }
  | 
  | //appropriate equals() and hashCode() implementation
  | }
  | 
  | @Embeddable
  | public class FootballerPk implements Serializable {
  | String firstname;
  | String lastname;
  | //same name and type as in Footballer
  | public String getFirstname() {
  | return firstname;
  | }
  | 
  | public void setFirstname(String firstname) {
  | this.firstname = firstname;
  | }
  | 
  | //same name and type as in Footballer
  | public String getLastname() {
  | return lastname;
  | }
  | 
  | public void setLastname(String lastname) {
  | this.lastname = lastname;
  | }
  | 
  | //appropriate equals() and hashCode() implementation
  | }

@Entity
  | @AttributeOverride( name=firstname, column = 
@Column(name=new_firstname) )
  | public class ExtendedFootballer extends Footballer{
  | ...
  | }

But I dont get it to work, that the Attrribute is overwritten.
All works fine if I dont use @IdClass.

Is this a possible Bug?

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: MappedSuperclass problem with SequenceGenerator

2006-03-07 Thread Andy.2003
Does your Database support Sequence Tables? e.g. MySQL uses autogenerated 
keys...

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - RessourceBundle for all Locals in APP-Scope

2006-03-07 Thread Andy.2003
Is it possible to load all recource-bundles in Apllication scope?
So the translated bundles don't have to be reloaded every request and can be 
receive from Memory.

The concrete RessourceString have to be determined by the Local of the Clients 
Browser or optional by a Local stored in another scope (e.g. Session).

Especially the Skeleton Code from SeamApp (JbossIDE) doesn't offer the correct 
RessourceBundle in a Component:


  | ...
  | 
  | @In
  | private transient ResourceBundle resourceBundle;
  | 
  | ...
  | 
  | 

If I set my Browser to de and the Seam default to en, in the f:view scope 
I get german but in the component scope I get english...

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Performance Tuning for rarely changed data

2006-03-07 Thread Andy.2003
Hello,

I'm thinking about how to access rarely changed data the right way. 

An example: I store categories in the database; they may change once a week.

So normally I would store them in Application Scope, but as I triggered out, 
there is no easy way to invalidate the Application scope - in case of a change 
(only if I call a method to reinitialize (@create) the Component).

Now my second thought was about using Hibernate cache to store the categories 
in Memory. But I don?t really know how to handle the update.

Is there a design pattern for this problem and what is the better approach 
(Application Scope or cache)?

Important is, that the categories are not reloaded every request but that they 
are updated if they were changed.



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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: accessing session-beans in Seam

2006-03-06 Thread Andy.2003
[EMAIL PROTECTED] wrote : There is no public/official Seam CaveatEmptor 
example. If you got this from CVS, you got something that was under development 
and not working.
  | 

that's right, I got the current cvs version...

@CptnKirk: the reason I want to seperate the Seam from the DAO Layer is that I 
want to access the DAO also outside of Seam:


  | ||
  | |-| |-| |EJB3 /  |
  | |Seam1| |Seam2| |RMI etc.|
  | |-| |-| ||
  | 
  | ||
  | | DAO|
  | ||
  | 
  | ||
  | |  Entity PoJo?s |
  | ||
  | 

So I've got a entities.par and a dao.ejb3 and 1 ore more Seam 
webapplications accessing the same DAO (web1.war, web2.war) and maybe other 
Applications accessing the DAO vs. RMI.

I think for this architecture the DAO Layer should not depend on seam...

Or are there better sollutions?


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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Entity Manager null

2006-03-06 Thread Andy.2003
I'd got this porblems as well, while trying to inject the Entitymanager, my 
Problem was, that the bean accessing the EntityManager wasn't an ejb3 
sessionbean. So this solved my problem:

@Stateless
  | public class foo{
  | @PersistentContext EntityManager em
  | ...
  | }

after making the Bean a Sessionbean the EntityManager was injected correctly

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Entity Manager null

2006-03-06 Thread Andy.2003
did you set up the datasource the right way? (persistence.xml etc.)

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: accessing session-beans in Seam

2006-03-06 Thread Andy.2003
You're right, I'm trying alot to get the right structure for my project and I 
think DAO's meet my requirements best.

btw: I know that @EJB is no Seam annotation, but it's cool anyway ;-)

-Andreas

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - accessing session-beans in Seam

2006-03-05 Thread Andy.2003
Hello,

I searched the whole day for a sollution and hope you can help me. 

Like in Caveatemtor I got a Seam Component like this:

@Name(login)
  | public class LoginAction {
  | 
  | ...
  | 
  | @In(create = true)
  | private UserDAO userDAO;
  | ...
  | }

and the UserDAO looks like:

@Stateless
  | public class UserDAOBean extends GenericEJB3DAOUser, Long implements 
UserDAO {
  | 
  | ...
  | 
  | }

There is no Seam import in the UserDAO (as I whish)

but if I run the application, Seam tells me that he can't find the DAO component

Caused by: org.jboss.seam.RequiredException: In attribute requires value for 
component: login.userDAO
  | at org.jboss.seam.Component.getInstanceToInject(Component.java:1168)
  | at org.jboss.seam.Component.injectFields(Component.java:839)
  | at org.jboss.seam.Component.inject(Component.java:669)
  | 

If I set the Name in the UserDAO everything works fine

@Stateless
  | @Name(userDAO)
  | public class UserDAOBean extends GenericEJB3DAOUser, Long implements 
UserDAO {
  | 
  | ...
  | 
  | }

I also got this in my web.xml

context-param
  | param-nameorg.jboss.seam.core.init.jndiPattern/param-name
  | param-valueappname/#{ejbName}/local/param-value
  | /context-param

Is there any possibilty to use the DAO without making it depends on Seam?

Thank you!
Andreas

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: accessing session-beans in Seam

2006-03-05 Thread Andy.2003
Thank you for your fast reply!

so if I choose to use the (verry cool) @EJB annotation, I have to make my Seam 
component also an ejb:

@Name(login)
  | @Stateless
  | public class LoginAction imlements Login{
  | 
  | ...
  | 
  | //@In(create = true)
  | @EJB
  | private UserDAO userDAO;
  | ...
  | }

I only saw the Caveatemtor example and thought it works as shown there. So I 
have to think about my architecture again - if I need an addidional Layer or if 
I want to make my DAOs depends on Seam.

Thank you guys!
Andreas

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - mapping unidirectional relation with parameterised compound

2006-01-16 Thread Andy.2003
Hello,

I need some help for map the follwing relations with ejb3:


  | |---|  ||
  | |Product|  |Description | |---|
  | |---|  || |Languages  |
  | |product_id:int (PK)|-|product_id:int (PK) | |---|
  | |...|  |language_id:int (PK)||languga_id:int (PK)|
  | |---|  |... | |...|
  ||| |---|
  | 

I  need a method for getting the Productdescription for a specified language
like 

  | public Description getProductDescription(int pLangugeId)
  | 

For me the problem is to set up such a method. I get an error when I try to set 
up a relation with a parameter (the languges_id isn't stored in the Product 
Class and it's an unidirectional relation!). 

Can anybody give me a hint how to solve this problem?!

Thanks Andreas

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - mapping unidirectional relation with parameterised compound

2006-01-16 Thread Andy.2003
tile was cut:
mapping unidirectional relation with parameterised compound foreign keys

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: mapping unidirectional relation with parameterised compo

2006-01-16 Thread Andy.2003
Yes, I managed to set up a OneToMany relation like:
public SetDescription getDescriptions(); but this is not what I'm searching 
for. I dont want to fetch all description-entries for an product, I only need 
the entry for the specified language.

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: mapping unidirectional relation with parameterised compo

2006-01-16 Thread Andy.2003
I dont have a session bean at the moment (but should be no problem)

Is there no way to get a method in the Product Class to get the description for 
the specified language?

I don't understand how you want to initialize the Description ...
Do you mean that I should add a NamedQuery like this:


  | @Entity
  | @NamedQuery(name=getProductDescription, queryString=Select d from 
Description d where d.language_id = :language_id)
  | public class Description{
  | ...
  | }
  | 

But in this case I dont have the current Product...

If I choose this:


  | @Entity
  | @NamedQuery(name=getProductDescription, queryString=Select d from 
Description d where d.language_id = :language_id and d.product_id = 
:product_id)
  | public class Description{
  | ...
  | }
  | 

I need both Id's, hmmm, this should be possible.

But there is the next problem: If I set up the Entity like this:


  | ...
  | @Id private int product_id;
  | @Id private int language_id;
  | ...
  | 

the table is set up wiht only 1 PK (e.g. product_id). I thought I only need a 
PK-Class for complex PKs (two integer seems not to be complex)

So if I have to set up a PK-Class, can I use the NamedQuery as listed above? 
(and do I need a PK-Class for two int-values?)

Thank you so far!
Andreas

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: mapping unidirectional relation with parameterised compo

2006-01-16 Thread Andy.2003
I want a unidirectional access to the Description - Class, this means, in the 
Description - Class there is no variable storing the Product, so I cant create 
a ManyToOne mapping.
If I setup following mapping in the Product Class I get only one PK in the 
Description Table:


  | @OneToMany
  | public SetDescription getDescriptions(){
  | return ivDescription;
  | }
  | 

...

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user