[JBoss-user] [JBoss Seam] - Re: Fileupload

2006-05-19 Thread muckwarrior
Hi guys,

I'm having some problems with file upload. I'm not using facelets but I 
followed the wiki example as closeley as possible and I'm gettting a deployment 
error.


  | 2006-05-19 11:32:01,703 ERROR 
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/gaaresults]] 
Exception sending context initialized event to listener instance of class 
org.jboss.seam.servlet.SeamListener
  | java.lang.NoClassDefFoundError: 
org/apache/myfaces/custom/fileupload/UploadedFile
  | at java.lang.Class.getDeclaredMethods0(Native Method)
  | at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
  | at java.lang.Class.getDeclaredMethods(Unknown Source)
  | at org.jboss.seam.Component.initMembers(Component.java:275)
  | at org.jboss.seam.Component.(Component.java:181)
  | at org.jboss.seam.Component.(Component.java:147)
  | at org.jboss.seam.Component.(Component.java:142)
  | at org.jboss.seam.Component.(Component.java:137)
  | at 
org.jboss.seam.init.Initialization.addComponent(Initialization.java:284)
  | at 
org.jboss.seam.init.Initialization.addComponents(Initialization.java:246)
  | at org.jboss.seam.init.Initialization.init(Initialization.java:108)
  | at 
org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:32)
  | at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3692)
  | at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4127)
  | 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(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | 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:5031)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | 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.GeneratedMethodAccessor152.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | 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:974)
  | 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(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | 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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:1

[JBoss-user] [JBoss Seam] - Re: Fileupload

2006-05-19 Thread muckwarrior
Hmm, well I had the commons-fileupload alright and I've just added commons-lang 
but to no avail.

The relevant jars in my ear lib are:

coomons-fileupload
commons-io
commons-lang
myfaces-api
tomahawk

Is this all that I need or am I still missing something?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944910#3944910

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944910


---
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=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Fileupload

2006-05-31 Thread muckwarrior
"elfuhrer" wrote : I have followed the same approach and I cannot get it 
working. There's a conversion error in the file upload. Any hints?
  | 
  | 
I have run into the exact same problem, did you find a solution?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948126#3948126

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3948126


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: How to access Seam components in a Filter class?

2006-05-31 Thread muckwarrior
"[EMAIL PROTECTED]" wrote : The Seam contexts are not available in a servlet 
filter.
Is there a work around to this? I would like to use a servlet filter for 
security but I need to access seam components to get loggedInUser data.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948138#3948138

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3948138


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: How to access Seam components in a Filter class?

2006-05-31 Thread muckwarrior
That issue seems to deal with data being passed from the servlet to seam, it's 
the opposite that I need. Here's an example of what I'm trying to do:

  | SecurityManager secMan = (SecurityManager) 
ctx.lookup("seamapp/SecurityManagerBean/local");
  | user =  secMan.getLoggedInUser();
  | 
I then want to evaluate whether user is null or not to decide whether to let 
them view certain pages.

The problem is I keep getting null pointer exceptions when I try to use the 
SecurityManager methods. At first I thought It wasn't retreiving the 
SecurityManager object, but it actually is. I just cant call the methods. The 
above code has worked fine for me in straight JSPs but not in the servlet.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948148#3948148

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3948148


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - @Datamodel in Seam RC3

2006-06-09 Thread muckwarrior
I am in the process of upgrading my project from jboss 4.0.4.RC1 Seam Beta 2 to 
4.0.4GA Seam RC3. 

At this stage I seem to have overcome everything except one problem, @Datamodel 
doesn't seem to be working. All my datatables are displaying empty. I know that 
the lists are successfully being populated from the database, but for some 
reason aren't being outjected to the page. There are no errors, the datatable 
simply just doesn't show any data. If I change my code to not use @Datamodel, 
i.e. http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3950085#3950085

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3950085


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: @DataModel problem with JB 4.0.4GA & SEAM 1.0.0.CR3

2006-06-12 Thread muckwarrior
I am also having @DataModel problems since upgrading
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=84713

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3950464#3950464

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3950464


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Fileupload

2006-06-14 Thread muckwarrior
Finally got to the bottom of this. 

The type mismatch error was being caused by having a copy of the tomahawk.jar 
in the WEB-INF/lib. This can be removed if you're using faceletes and the 
problem is solved, but what if you don't want to use facelets? I'm facing the 
prospect of converting my whole project to use facelets just so that I can use 
Tomahawk file upload.

Has anybody managed to implement file upload without using facelets?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3950804#3950804

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3950804


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: HttpSession, Seam SessionContext and bijection

2006-06-19 Thread muckwarrior
I see from JIRA that this issue has been resolved.

Can somone tell me the correct way to make an object directly available to the 
Http Session so that it can be accessed by a Servlet filter?

Ive tried:

  | @Out(value="loggedInUser", scope=ScopeType.SESSION)
  | private User loggedInUser;
  | 

And in my servlet:

  | user = (User)req.getSession().getAttribute("loggedInUser");
  | 
...which returns null. Should this work?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951730#3951730

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951730


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user