Re: Struts2-plugin install error

2010-12-08 Thread Balwinder Kumar

Thanks Burton. Your suggestion got this problem resolved.

On 08-12-2010 06:43, Burton Rhodes wrote:

You may have a corrupt file in your local repository.  Try deleting
the C:\Users\Balwinder\.m2\repository\org\apache\struts directory and
try again



On Tue, Dec 7, 2010 at 10:26 AM, Balwinder Kumar
balwinder@gmail.com  wrote:

I am getting below error while executing maven install. Any pointer how to
fix?

[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Struts Plugins
[INFO]   Struts 2 Spring Plugin
[INFO]   Struts 2 JUnit Plugin
[INFO]   Struts 2 Codebehind Plugin
[INFO]   Struts 2 Convention Plugin
[INFO]   Struts 2 Configuration Browser Plugin
[INFO]   Struts 2 Java Templates Plugin
[INFO]   Struts 2 Jasper Reports Plugin
[INFO]   Struts 2 JFreeChart Plugin
[INFO]   Struts 2 JSF Plugin
[INFO]   Struts 2 Pell Multipart Plugin
[INFO]   Struts 2 Plexus Plugin
[INFO]   Struts 2 Sitegraph Plugin
[INFO]   Struts 2 Sitemesh Plugin
[INFO]   Struts 2 Struts 1 Plugin
[INFO]   Struts 2 Tiles Plugin
[INFO]   Struts 2 Dojo Plugin
[INFO]   Struts 2 REST Plugin
[INFO]   Struts 2 Portlet Plugin
[INFO]   Struts 2 TestNG Plugin
[INFO]   Struts 2 DWR Plugin
[INFO]   Struts 2 OVal Plugin
[INFO]   Struts 2 OSGi Plugin
[INFO]   Struts 2 JSON Plugin
[INFO]   Struts 2 Embedded JSP Plugin
[INFO]   Struts 2 GXP Plugin
[INFO]

[INFO] Building Struts Plugins
[INFO]task-segment: [install]
[INFO]

[INFO] Setting property: classpath.resource.loader.class =
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on =  'false'.
[INFO] Setting property: resource.loader =  'classpath'.
[INFO] Setting property: resource.manager.logwhenfound =  'false'.
[INFO] [remote-resources:process {execution: default}]
[INFO] [bundle:manifest {execution: bundle-manifest}]
[WARNING] Ignoring project type pom - supportedProjectTypes = [jar, bundle]
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive
invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: attach-source}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing C:\Struts\struts2\plugins\pom.xml to
C:\Users\Balwinder\.m2\repository\org\apache\struts\struts2-plugins\2.2.2-SNAPSHOT\struts2-plugins-2.2.2-SNAPSHOT.pom
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error installing artifact's metadata: Error installing metadata:
Error updating group repository metadata

only whitespace content allowed before start tag and not \u0 (position:
START_DOCUMENT seen \u0... @1:1)
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 10 seconds
[INFO] Finished at: Tue Dec 07 21:47:10 IST 2010
[INFO] Final Memory: 24M/58M
[INFO]


Thanks in advance.

Regards,
Balwinder Kumar

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



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




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



Struts2-plugin install error

2010-12-07 Thread Balwinder Kumar
I am getting below error while executing maven install. Any pointer how 
to fix?


[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Struts Plugins
[INFO]   Struts 2 Spring Plugin
[INFO]   Struts 2 JUnit Plugin
[INFO]   Struts 2 Codebehind Plugin
[INFO]   Struts 2 Convention Plugin
[INFO]   Struts 2 Configuration Browser Plugin
[INFO]   Struts 2 Java Templates Plugin
[INFO]   Struts 2 Jasper Reports Plugin
[INFO]   Struts 2 JFreeChart Plugin
[INFO]   Struts 2 JSF Plugin
[INFO]   Struts 2 Pell Multipart Plugin
[INFO]   Struts 2 Plexus Plugin
[INFO]   Struts 2 Sitegraph Plugin
[INFO]   Struts 2 Sitemesh Plugin
[INFO]   Struts 2 Struts 1 Plugin
[INFO]   Struts 2 Tiles Plugin
[INFO]   Struts 2 Dojo Plugin
[INFO]   Struts 2 REST Plugin
[INFO]   Struts 2 Portlet Plugin
[INFO]   Struts 2 TestNG Plugin
[INFO]   Struts 2 DWR Plugin
[INFO]   Struts 2 OVal Plugin
[INFO]   Struts 2 OSGi Plugin
[INFO]   Struts 2 JSON Plugin
[INFO]   Struts 2 Embedded JSP Plugin
[INFO]   Struts 2 GXP Plugin
[INFO] 


[INFO] Building Struts Plugins
[INFO]task-segment: [install]
[INFO] 

[INFO] Setting property: classpath.resource.loader.class = 
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.

[INFO] Setting property: velocimacro.messages.on = 'false'.
[INFO] Setting property: resource.loader = 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound = 'false'.
[INFO] [remote-resources:process {execution: default}]
[INFO] [bundle:manifest {execution: bundle-manifest}]
[WARNING] Ignoring project type pom - supportedProjectTypes = [jar, bundle]
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive 
invocation.

[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: attach-source}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing C:\Struts\struts2\plugins\pom.xml to 
C:\Users\Balwinder\.m2\repository\org\apache\struts\struts2-plugins\2.2.2-SNAPSHOT\struts2-plugins-2.2.2-SNAPSHOT.pom
[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] Error installing artifact's metadata: Error installing metadata: 
Error updating group repository metadata


only whitespace content allowed before start tag and not \u0 (position: 
START_DOCUMENT seen \u0... @1:1)
[INFO] 


[INFO] For more information, run Maven with the -e switch
[INFO] 


[INFO] Total time: 10 seconds
[INFO] Finished at: Tue Dec 07 21:47:10 IST 2010
[INFO] Final Memory: 24M/58M
[INFO] 



Thanks in advance.

Regards,
Balwinder Kumar

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



Re: i18n database backed

2010-02-12 Thread Balwinder Kumar

Chris, What sort of benefit database will offer over properties files?

Regards,
Balwinder Kumar
CRANFORD, CHRIS wrote:

Anyone have any suggested ways to support i18n internationalization
backed by a database table rather than property files?



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


  



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



Re: javax.el.ELException Select Tag

2009-10-30 Thread Balwinder Kumar

org.apache.commons.collections.map.ListOrderedMap will preserve the order.

Regards,
Balwinder Kumar
Bhaarat Sharma wrote:

however, this does not gurantee the order (because of the HashMap)...

something else can be used to preserve the order

On Thu, Oct 29, 2009 at 12:31 PM, Bhaarat Sharma bhaara...@gmail.comwrote:

  

got it.

it should be list=#...@java.util.hashmap@{'1':'January',
'2':'February','3':'March'}

source:
http://www.nabble.com/JasperException-and-javax.el.ELException-when-running-under-Jetty-td13734373.html


http://www.nabble.com/JasperException-and-javax.el.ELException-when-running-under-Jetty-td13734373.htmlmailing
list archives FTW


On Thu, Oct 29, 2009 at 12:12 PM, Bhaarat Sharma bhaara...@gmail.comwrote:



how can I keep it from interpreting it as EL expression its OGNL..

I am using Sun App Server 9.1

could there be a setting on the server?


On Thu, Oct 29, 2009 at 12:10 PM, Bhaarat Sharma bhaara...@gmail.comwrote:

  

:(

still it gives this error:

javax.el.ELException: Error Parsing: %{#{'ALL':'All  Programs', 'BU':'all
BU programs'}}


On Thu, Oct 29, 2009 at 12:02 PM, James Cook james.c...@wecomm.comwrote:



Hi,

I checked the javadoc for select and this is what is listed.

s:select label=Months
   name=months
   headerKey=-1 headerValue=Select Month
   list=#{'01':'Jan', '02':'Feb', [...]}
   value=selectedMonth
   required=true
 /

This is what I used last night. So #{} worked for me.

-Original Message-
From: Dale Newfield [mailto:d...@newfield.org]
Sent: 29 October 2009 15:54
To: Struts Users Mailing List
Subject: Re: javax.el.ELException Select Tag

Bhaarat Sharma wrote:
  

so it should be:

s:select label=programType id=programType name=programType
 list=%{'ALL':'All Programs', 'BU':'BY Problems',


'TS':'TS
  

Programs'}
 value=selectedProgram required=true/


No: list='%{#{All:All Programs, BU:BY Problems...}}'

-Dale


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


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


  


  



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



Initializing Application

2009-07-15 Thread Balwinder Kumar

Hi All,

I am trying to develop a framework based on Struts 2, I am finding it 
very difficult to  decide  where to put the code that is  generally 
called in  ActionServlet  init method. Any pointer towards this.

Thanks in advance.

Regards,
Balwinder Kumar

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



Re: Initializing Application

2009-07-15 Thread Balwinder Kumar
Thanks Pawel and David for your response. I would like to evaluate both 
option before proceeding.


Regards,
Balwinder Kumar

Paweł Wielgus wrote:

Hi,
i'm initing my apps by implementing ServletContextListener and
registering it in web.xml like that:
web-app
listener

listener-classcom.my.ServletContextListenerImplementation/listener-class
/listener
/web-app

It has nothing to do with struts but i hope that's what You are looking for.

Best greetings,
Paweł Wielgus.


2009/7/15 David Canos davidca...@gmail.com:
  

I think Struts 2 uses a Struts2Filter to do the init issues of the each
request

2009/7/15 Balwinder Kumar balwinder@gmail.com



Hi All,

I am trying to develop a framework based on Struts 2, I am finding it very
difficult to  decide  where to put the code that is  generally called in
 ActionServlet  init method. Any pointer towards this.
Thanks in advance.

Regards,
Balwinder Kumar

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


  


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


  




Re: deploying struts2 at godaddy dedicated server - general question

2009-06-21 Thread Balwinder Kumar
This is probably due to the fact that the version of Java useed in 
deployment environment is lower than the version of Java used for 
compiling Hibernate classes.



Dimitrios Christodoulakis wrote:

It seems that indeed the filters are not starting properly: The catalina.out
log indicates the following:

00:45:40,018 ERROR [/myapp]:3639 - Exception starting filter struts2
java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
...
...

00:45:40,044 ERROR [/myapp]:3639 - Exception starting filter HibernateFilter
java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
...
...

is it right to assume that bad verison number in .class file means Tomcat
5.5 is unable to run this struts2-hibernate combination? -- Any advice on
deciphering the above errors?

--I tried to run it locally on tomcat 5.5 using eclipse, but turns out I
cannot even assign this project to 5.5 because - according to eclipse: The
server does not support version 2.5 of the J2EE Web module specification.

 So, as a next step would you recommend I upgrade to Tomcat 6.0 on godaddy,
or try to integrate Apache with the existing tomcat 5.5 first to see what
happens?

Wes, you mentioned below your favorite way of integrating http + tomcat,
would you be able to provide a few general steps how to go about doing this?

Many thanks for any help



On Sun, Jun 21, 2009 at 12:09 PM, Dimitrios Christodoulakis 
dimi@gmail.com wrote:
  

Thanks for the input. I'll test it locally under 5.5. and  will dig deeper


in the logs and see what I can find. I will let you know.
  

Appreciate the insight.

On Sun, Jun 21, 2009 at 11:00 AM, Wes Wannemacher w...@wantii.com wrote:


I'm with dave. Check the logs, in particular, look for messages about
whether or not the filter started properly. Also check the httpd
configuration. There are a few ways to integrate httpd and tomcat.
Many people will use mod_jk but lately I am in favor of having tomcat
listen on localhost and have httpd reverse proxy all requests. There
was a belief for a while that httpd should serve static content and
tomcat serve jsps only. But any more I find tomcat's performance to be
good enough to serve the static content as well.

On 6/21/09, Dave Newton newton.d...@yahoo.com wrote:
  

Dimitrios Christodoulakis wrote:


I am having some issues deploying a struts2 application at godaddy and
  

was
  

wondering if anyone has dealt with something similar in the past. The
application runs fine on my local machine with tomcat 6.0. My next
  

step
  

was
to upload and deploy at godaddy dedicated server which is running
  

tomcat
  

5.5
  

Does it run locally under 5.5?



The upload of the war file and expansion works fine, and the static
  

html
  

display fine too. But as soon as a struts2 action is called, I always
  

get
  

the 404 not found error: The requested URL /Menu.action was not found
  

on
  

this server.
  

What's in the logs?

Dave

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




--
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

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

  


  




Re: Jasper Plugin cannot find file

2009-04-21 Thread Balwinder Kumar
I would suggest that first give the complete absolute path and check if 
the program is working fine, just to ensure, there is a problem with 
path only.


Once established problem is with path only, I may help you further.

Regards,
Balwinder Kumar

Security Management wrote:

I'm using the tutorial here:
http://struts.apache.org/2.0.14/docs/jasperreports-tutorial.html

I have put a file here:

/jasper/report.jrxml

I can look in my war file and verify it.

I'm trying to compile and render with it.  Here is my action code:

action name=saveReport class=com.secmgmt.struts2.actions.SaveReport
result name=success type=jasper
param name=location/jasper/scrounger_report.jasper/param
param name=dataSourcepersonList/param
param name=formatPDF/param
/result
/action

I've also tried:
param name=locationmy-webapp/jasper/scrounger_report.jasper/param

Which is what the tutorial has.

In my action, I have:
try
{
JasperCompileManager.compileReportToFile(
my-webapp/jasper/scrounger_report.jrxml,
my-webapp/jasper/scrounger_report.jasper);
}
catch (Exception e)
{
e.printStackTrace();
return ERROR;
}

But I always get a file not found error, I've tried just the
/jasper/...jrxml too, without the appname (which I think is the correct way)
but no luck.

What path should I be using if the file is in /jasper/scrounger_report.jrxml
in my war file?

Thanks
-Original Message-
From: stanl...@gmail.com [mailto:stanl...@gmail.com] 
Sent: Tuesday, April 21, 2009 2:29 PM

To: Struts Users Mailing List
Subject: Re: How to do matematical operation in jsp.

Nice reference Wes!  BTW, I noticed you are not using the new cover letter
for the TPS reports, so I'm going to have to go ahead and ask you to read
that memo one more time.

Peace,
the Bob's

On Tue, Apr 21, 2009 at 11:11 AM, Wes Wannemacher w...@wantii.com wrote:

  

[snip]


OTOH, siphoning the $.0039079850466805510222911834716796875
  

into


offshore accounts will eventually make you rich.

Dave Expecting his 10% cut Newton

  

[/snip]

But, you have to be careful when moving the money into your own account...

[quote]
We're not just talking about while-collar, resort prison, we're
talking Federal Pound Me In the *** Prison!
[/quote]

You have to be especially careful of mundane details like decimal places.

-Wes

--
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

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






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


  




RE: how can i use two properties files?

2006-09-19 Thread Balwinder Kumar
Hi

Configure struts config like this
message-resources parameter=com.resources.MessageResources
null=false/

message-resources parameter=comresources.ImageResources
null=false key=image/

in jsp

you can use image message resources as
bean:message bundle='image' key='image.myImageKey'/
and default message resources can be used as
bean:message  key='application.somekey'/

I hope this would solve your problem.

Bals


-Original Message-
From: SrinivasaReddy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 19, 2006 5:51 PM
To: Struts Users Mailing List
Subject: Re: how can i use two properties files?


Ex code here
message-resources parameter=com.resources.MessageResources
null=false/

!-- Image Resorces --

message-resources parameter=comresources.ImageResources
null=false key=esell.image/

!-- Error Message Resources --

message-resources
parameter=comresources.ErrorMessageResources null=false
key=esell.error /

!-- Button Message Resources --

message-resources
parameter=comresources.ButtonMessageResources null=false
key=esell.button /

!-- Registration Questions --

message-resources
parameter=com...resources.Questions.properties null=false
key=esell.questions/





In jsp:

If it is from Image resources: html:img srcKey=image.title_bg01
bundle=esell.image/

If It is from Message resources bean:message key=selectdist_message/
no need or bundle bcoz there is no bundle name in messge-resources ie it is
default message resources


Regards
Srinivasa Reddy



- Original Message -
From: Mallik [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Tuesday, September 19, 2006 5:42 PM
Subject: how can i use two properties files?



 Hi Friends
 my application in big and it moduled into 4
 i wnat to use one properties file for each module
 let me know how to configure in struts-config.xml
 and how can i specify which file to use
 thanks inadvance
 ur's
 Mallik


 --
 View this message in context:

http://www.nabble.com/how-can-i-use-two-properties-files--tf2298661.html#a63
86912
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]