convention plugin 2.1.8.1 and JBoss 5.1

2010-07-09 Thread Scott Miller
I have been unable to get the struts convention plugin to work on  
JBoss 5.1.


If I set

value="true" />


as per the convention plugin documentation, and debug through the  
setup code, I notice that the WEB-INF/classes directory in my war  
(which is deployed in an ear) gets removed from the set of URL's to  
search for action classes.


Switching that constant to 'false' allows the WEB-INF/classes  
directory to remain in the set of URL's, but then I get this error  
when it attempts to load the war:


2010-07-09 22:14:03,102 ERROR [CommonsLogger.java:27] : Unable to read  
URL [vfszip://server/default/deploy/myapp.ear/myapp- 
web.war/WEB-INF/classes/]
java.io.FileNotFoundException: /< JBOSS_HOME_DIR>/server/default/ 
deploy/myapp.ear/myapp-web.war/WEB-INF/classes
	at  
org 
.jboss 
.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:105)
	at  
org 
.jboss 
.net 
.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java: 
112)

at java.net.URL.openStream(URL.java:1007)
	at  
com.opensymphony.xwork2.util.finder.ClassFinder.jar(ClassFinder.java: 
464)
	at  
com 
.opensymphony.xwork2.util.finder.ClassFinder.(ClassFinder.java: 
129)
	at  
org 
.apache 
.struts2 
.convention 
.PackageBasedActionConfigBuilder 
.findActions(PackageBasedActionConfigBuilder.java:352)
	at  
org 
.apache 
.struts2 
.convention 
.PackageBasedActionConfigBuilder 
.buildActionConfigs(PackageBasedActionConfigBuilder.java:317)
	at  
org 
.apache 
.struts2 
.convention 
.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53)



Is there some magical configuration setting I am missing? or does this  
just not work on JBoss 5.1 when deploying inside of an ear?


Thanks,

Scott



hi please help me struts2 with hibernate

2010-07-09 Thread Salish S
hi hello
i had done the project as described in this site example
http://www.vaannila.com/struts-2/struts-2-example/struts-2-crud-example-1.html

its working fine just the change is that the Db i used is mysql thatall

But how can i do the clientside validtion by xml file and how can i do the
same with hibernate config file not with a cfg file


Please check and tell me

Thanks in advance


There is no Action mapped for namespace / and action name SERVICOS/.

2010-07-09 Thread Gustavo Felisberto
Hello List,

 

I have a somewhat strange setup where my Struts 2 application is a proxy for
some other system.

In struts.xml I have:

 

 







 

This action does not have any result because it implements
ServletResponseAware and ServletRequestAware. In my code I will analyze the
requested url and redirect to the proper location.

 

My problem is that if I access the system with a url like
http://server/context/SERVICOS/index.html or
http://server/context/SOME_RANDOM_URL/index.html my code gets called and
everything works ok. But if I use http://server/context/SERVICOS/ I get an
error that: There is no Action mapped for namespace / and action name
SERVICOS/.

 

How can I make it so that the requests with no file will get delivered to my
code?

 

Gustavo

 

-- 

Gustavo Felisberto.

WIT-Software S.A. 

Coimbra, Leiria, Lisboa, Porto (Portugal)

San Jose (California)

Phone: +351239801033

Web:   http://www.wit-software.com 

 



Re: Struts2 or Struts1?

2010-07-09 Thread Salish S
struts2

On Fri, Jul 9, 2010 at 6:28 PM, Dale Newfield  wrote:

> On 7/9/10 6:42 AM, Alvarito wrote:
>
>> Does anyone knows what is the support and existing online documentation
>> to work with Struts2 and Hibernate together?
>>
>
> Matt Raible has put together quite useful documentation that goes along
> with his "AppFuse" tool that basically helps you kick start an application
> like the one you're considering, saving you lots of time by getting you off
> the ground with all these tools already configured.
>
> -Dale
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: Struts2 or Struts1?

2010-07-09 Thread Dale Newfield

On 7/9/10 6:42 AM, Alvarito wrote:

Does anyone knows what is the support and existing online documentation
to work with Struts2 and Hibernate together?


Matt Raible has put together quite useful documentation that goes along 
with his "AppFuse" tool that basically helps you kick start an 
application like the one you're considering, saving you lots of time by 
getting you off the ground with all these tools already configured.


-Dale

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: hi please help me struts2

2010-07-09 Thread Brian Thompson
For client-side validation:  Just write a javascript function and have
it run for either the onclick event of the form submit button or the
onsubmit event for the form itself.

For "Hibernate by property file", I'm not sure what you mean.  I've
always used either hibernate.cfg.xml files or annotations in the model
classes.  Could you post an example of what you're trying to do?

-Brian



On Fri, Jul 9, 2010 at 7:39 AM, Salish S  wrote:
> -- Forwarded message --
> From: Salish S 
> Date: Fri, Jul 9, 2010 at 6:07 PM
> Subject: hi please help me struts2
> To: "es...@vaannila.com" 
>
>
> Hi
> i had gone through the struts2 crud in the
> http://www.vaannila.com/struts-2/struts-2-example/struts-2-crud-example-1.html
>
> its fine and goog pgm for me
> but the problem came when i want to add client side validation how i add
> clientside validation
> i had gone though the hibernate validation also its also fine
> http://www.vaannila.com/struts-2/struts-2-tutorial/struts-2-hibernate-validation-tutorial-1.html
>
> is that clientside validation is doing therer
> and very important is that
> How can i use hibernate by property file not that by the hibernate.cfg.xml
> file to connectt to db in the same example
>
> please help me
> thenkuse
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: OutOfMemoryError: PermGen space!!!! Dont know why?

2010-07-09 Thread Brian Thompson
Oh, I misunderstood.  I thought you were seeing this during
development, not when running the app on a remote server.

In this case, you will need to update the Catalina startup script.
These pages have more info:

http://www.gria.org/documentation/5.2/faq/tomcat-outofmemory-error-permgen-space
http://stackoverflow.com/questions/473011/recurring-permgen-in-tomcat-6

-Brian

On Fri, Jul 9, 2010 at 3:01 AM, abhishek jain
 wrote:
> On Fri, Jul 9, 2010 at 1:13 PM, Brian Thompson wrote:
>
>> You could also adjust your eclipse.ini to give more memory to the JVM:
>>
>> -XX:PermSize=64M  -XX:MaxPermSize=128M
>>
>> Add it to the --vmargs section of the file.
>>
>> -Brian
>>
>>
>
> thanks Brian,
> Where will i find eclipse.ini file, i want to tweak the setting in the
> tomcat on server and not on my local system.
>
> thanks
> abhi
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Fwd: hi please help me struts2

2010-07-09 Thread Salish S
-- Forwarded message --
From: Salish S 
Date: Fri, Jul 9, 2010 at 6:07 PM
Subject: hi please help me struts2
To: "es...@vaannila.com" 


Hi
i had gone through the struts2 crud in the
http://www.vaannila.com/struts-2/struts-2-example/struts-2-crud-example-1.html

its fine and goog pgm for me
but the problem came when i want to add client side validation how i add
clientside validation
i had gone though the hibernate validation also its also fine
http://www.vaannila.com/struts-2/struts-2-tutorial/struts-2-hibernate-validation-tutorial-1.html

is that clientside validation is doing therer
and very important is that
How can i use hibernate by property file not that by the hibernate.cfg.xml
file to connectt to db in the same example

please help me
thenkuse


Re: Struts2 or Struts1?

2010-07-09 Thread Alvarito

Thanks Am Am, I have found the eBook on the web with that title. Looks good.
Cheers

Anyone else?

am am wrote:
In struts 2 you can use any POJO as action class. But normally one extends 
ActionSupport for convenience

Check Manning struts 2 in action






From: Alvarito 
To: user@struts.apache.org
Sent: Fri, July 9, 2010 1:42:34 PM
Subject: Struts2 or Struts1?

Hi there,

I would like to use Struts2 for a personal project in J2EE I have in mind.

Does anyone knows what is the support and existing online documentation to work 
with Struts2 and Hibernate together?


I have been following a tutorial online here, and I can see Struts2 does not 
make use any more of POJOs. I would like to give it a try as it seems simpler to 
me than previous versions.

http://viralpatel.net/blogs/2010/01/tutorial-struts2-hibernate-example-eclipse.html


Also, I am wondering if there any really good books out there someone knows or 
online resources about how to use these two technologies above together.


Thanks in advance for your help and direction.
-Alvaro G
This message has been scanned for content and viruses by the DIT Information 
Services E-Mail Scanning Service, and is believed to be clean. http://www.dit.ie


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


  

This message has been scanned for content and viruses by the DIT Information 
Services E-Mail Scanning Service, and is believed to be clean. http://www.dit.ie

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts2 or Struts1?

2010-07-09 Thread am am
In struts 2 you can use any POJO as action class. But normally one extends 
ActionSupport for convenience
Check Manning struts 2 in action






From: Alvarito 
To: user@struts.apache.org
Sent: Fri, July 9, 2010 1:42:34 PM
Subject: Struts2 or Struts1?

Hi there,

I would like to use Struts2 for a personal project in J2EE I have in mind.

Does anyone knows what is the support and existing online documentation to work 
with Struts2 and Hibernate together?

I have been following a tutorial online here, and I can see Struts2 does not 
make use any more of POJOs. I would like to give it a try as it seems simpler 
to 
me than previous versions.
http://viralpatel.net/blogs/2010/01/tutorial-struts2-hibernate-example-eclipse.html


Also, I am wondering if there any really good books out there someone knows or 
online resources about how to use these two technologies above together.

Thanks in advance for your help and direction.
-Alvaro G
This message has been scanned for content and viruses by the DIT Information 
Services E-Mail Scanning Service, and is believed to be clean. http://www.dit.ie

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


  

Struts2 or Struts1?

2010-07-09 Thread Alvarito

Hi there,

I would like to use Struts2 for a personal project in J2EE I have in mind.

Does anyone knows what is the support and existing online documentation 
to work with Struts2 and Hibernate together?


I have been following a tutorial online here, and I can see Struts2 does 
not make use any more of POJOs. I would like to give it a try as it 
seems simpler to me than previous versions.

http://viralpatel.net/blogs/2010/01/tutorial-struts2-hibernate-example-eclipse.html

Also, I am wondering if there any really good books out there someone 
knows or online resources about how to use these two technologies above 
together.


Thanks in advance for your help and direction.
-Alvaro G
This message has been scanned for content and viruses by the DIT Information 
Services E-Mail Scanning Service, and is believed to be clean. http://www.dit.ie

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: OutOfMemoryError: PermGen space!!!! Dont know why?

2010-07-09 Thread vikram.g.byali
-XX:PermSize=64M  -XX:MaxPermSize=128M, these parameters define
"PermGenSpace", this is where all class files are loaded. 

Check out your Heap memory size.  The PermGenSpace should be 1/4th of your
allocated Heap memory. 
 
 
 
Best Regards,
 
 Vikram
-Original Message-
From: Brian Thompson [mailto:elephant...@gmail.com] 
Sent: Friday, July 09, 2010 1:14 PM
To: Struts Users Mailing List
Subject: Re: OutOfMemoryError: PermGen space Dont know why?

You could also adjust your eclipse.ini to give more memory to the JVM:

-XX:PermSize=64M  -XX:MaxPermSize=128M

Add it to the --vmargs section of the file.

-Brian

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org




smime.p7s
Description: S/MIME cryptographic signature


Re: OutOfMemoryError: PermGen space!!!! Dont know why?

2010-07-09 Thread abhishek jain
On Fri, Jul 9, 2010 at 1:13 PM, Brian Thompson wrote:

> You could also adjust your eclipse.ini to give more memory to the JVM:
>
> -XX:PermSize=64M  -XX:MaxPermSize=128M
>
> Add it to the --vmargs section of the file.
>
> -Brian
>
>

thanks Brian,
Where will i find eclipse.ini file, i want to tweak the setting in the
tomcat on server and not on my local system.

thanks
abhi


Re: OutOfMemoryError: PermGen space!!!! Dont know why?

2010-07-09 Thread Brian Thompson
You could also adjust your eclipse.ini to give more memory to the JVM:

-XX:PermSize=64M  -XX:MaxPermSize=128M

Add it to the --vmargs section of the file.

-Brian

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: OutOfMemoryError: PermGen space!!!! Dont know why?

2010-07-09 Thread Lukasz Lenart
Try to build just a war file and deploy it without MyEclipse help.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia 2010 http://javarsovia.pl

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



OutOfMemoryError: PermGen space!!!! Dont know why?

2010-07-09 Thread abhishek jain
Hi friends,
I need urgent help, i have developed an application but when i run that on
server i get the following error,
I am using Tomcat 5.5 and Struts 1.1 , i develpoed application using
Myeclipse, do i need to optimize application by removing some libraries
before deploying or so.
Pl. help



Begin event threw errorjava.lang.
OutOfMemoryError: PermGen space
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
   at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
   at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1880)
   at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:889)
   at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1353)
   at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
   at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)
   at
org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:217)
   at org.apache.commons.digester.Rule.begin(Rule.java:152)
   at
org.apache.commons.digester.Digester.startElement(Digester.java:1286)
   at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
   at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1284)
   at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806)
   at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)
   at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
   at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
   at org.apache.commons.digester.Digester.parse(Digester.java:1572)
   at
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:738)
   at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:687)
   at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:333)
   at javax.servlet.GenericServlet.init(GenericServlet.java:212)
   at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
   at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
   at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
   at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
   at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:3056)
   at
org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:432)
   at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1278)
   at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
   at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)


-- 
Thanks and kind Regards,
Abhishek jain