Re: java.lang.NoClassDefFoundError for beanutils converter

2008-02-08 Thread Arpan Debroy
Can you share what are the jar files you have in your lib folder.

On Feb 9, 2008 11:06 AM, hardc0d3r <[EMAIL PROTECTED]> wrote:

>
> i get an error every time i acces a page that basically, registers a user
> (insert to the database) but it still inserts the data in the database..
> here is the error:
>
> java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter
>at java.lang.Class.getDeclaredConstructors0(Native Method)
>at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
>at java.lang.Class.getConstructor0(Class.java:2671)
>at java.lang.Class.newInstance0(Class.java:321)
>at java.lang.Class.newInstance(Class.java:303)
>at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java
> :1055)
>at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
>at
> org.apache.catalina.core.StandardContext.loadOnStartup(
> StandardContext.java:3917)
>at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)
>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
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java
> :608)
>at
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
> :535)
>at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
>at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
>at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
>at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
> LifecycleSupport.java:119)
>at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
>at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
>at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>at
> org.apache.catalina.core.StandardService.start(StandardService.java:450)
>at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
>at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
>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.catalina.startup.Bootstrap.start(Bootstrap.java:294)
>at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
>
> i have read that this occurs when commons-beanutils.jar is not included in
> the lib folder. I am using netbeans 5.5.1 as my ide and there is a wizard
> that configures struts automatically. i checked the lib folder in WEB-INF
> and all the jar files required are in the lib folder. what can be the
> problem in my project?
> --
> View this message in context:
> http://www.nabble.com/java.lang.NoClassDefFoundError-for-beanutils-converter-tp15368831p15368831.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: using disabled attributes in tag

2008-02-08 Thread Arpan Debroy
I have a problem in Internet Explorer. The disabled elements are not grayed
up.
Have anybody faced the similar situation.

On Feb 8, 2008 7:46 PM, Okan Özeren <[EMAIL PROTECTED]> wrote:

> Hi,
>
> This is a bug for old version of strust 2, but fixed on 2.0.8 version.
>
> You should create a solution with javascript. Presumably your js function
> is
> wrong.
> Probably your tag name is wrong. You should look its source code on
> browser
> for tags real name.
>
> Okan.
>
> On Feb 8, 2008 3:32 PM, Johnson nickel <[EMAIL PROTECTED]> wrote:
>
> >
> > Hi all,
> >
> >   How to use enable and disable attributes in  > value="save" method="save" name="savebutton" disabled="true"> but it's
> not
> > working.
> >
> >   what wrong with this, i tried onclick event using html  drop down
> >  > onclick="javascript:enable();"> .
> >
> >  // Javascript function
> >
> >  function enable()
> > {
> >  formname.savebutton.disabled="true"
> > }
> >
> >Give me a suggestion for this problem.
> >
> > Regards,
> > Johnson
> > --
> > View this message in context:
> >
> http://www.nabble.com/using-disabled-attributes-in-%3Cs%3Asubmit%3E-tag-tp15355261p15355261.html
> > Sent from the Struts - User mailing list archive at Nabble.com.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


java.lang.NoClassDefFoundError for beanutils converter

2008-02-08 Thread hardc0d3r

i get an error every time i acces a page that basically, registers a user
(insert to the database) but it still inserts the data in the database..
here is the error:

java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
at java.lang.Class.getConstructor0(Class.java:2671)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1055)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)
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
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
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.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

i have read that this occurs when commons-beanutils.jar is not included in
the lib folder. I am using netbeans 5.5.1 as my ide and there is a wizard
that configures struts automatically. i checked the lib folder in WEB-INF
and all the jar files required are in the lib folder. what can be the
problem in my project?
-- 
View this message in context: 
http://www.nabble.com/java.lang.NoClassDefFoundError-for-beanutils-converter-tp15368831p15368831.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: OOT: Too Many Connection

2008-02-08 Thread Jeromy Evans

Hi Frans,

You need to isolate what there's too many connections to.  Is it the 
database, the http server or some other resource?


My wild "stab in the dark" is that you're using the Session In View 
pattern with hibernate and a connection pool setup through spring. The 
pool is probably exhausted and you need to increase a setting in the 
pool's config (and perhaps match it in the database).  It may also be 
worthwhile to design out unintended/unused connections. eg. don't use 
session-in-view on pages that don't need a hibernate session.


Struts 2 is probably not a contributing factor and when you've isolated 
the problem you'll find better help in hibernate/spring's/others FAQ.


Apache JMeter may help too:
http://jakarta.apache.org/jmeter/

regards,
Jeromy

Frans Thamura wrote:

hi there,

i am developing system using struts2, hibernate, and spring

and show off the error too many connection ,

and the error show off after there is 300 user log to the systme

can help anyone

F

-
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]



OOT: Too Many Connection

2008-02-08 Thread Frans Thamura
hi there,

i am developing system using struts2, hibernate, and spring

and show off the error too many connection ,

and the error show off after there is 300 user log to the systme

can help anyone

F

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



Re: [Struts2.011] Best approach for limited view

2008-02-08 Thread Jeromy Evans

lbastil wrote:
Please give me advices what would be the best approach in the struts 2 world 
to realize a limited view (authorization).


In struts 1 I would have created a simple tag which is able to render it
childs dependent on 
authorization of user, something like:


... some content ...


Is there a better / more elegant / more flexible alternative in struts2?

Thank you very much in advance
Basti
  
There's nothing better /  more elegant / more flexible bundled with 
struts 2.  Your approach looks good.


I mainly use Tiles 2 for components within a page and many of these tags 
include a role attribute equivalent to your permission attribute.


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



j4 and retrotranslator

2008-02-08 Thread Brian Relph
Has anyone built a java 1.4 compatible struts2 application with maven2 using
the translated jars?  I installed the j4 struts2-core and xwork jars in my
repository.  But, I am still this error when installing my project using
maven:

...
INFO] war:war
[INFO] Packaging webapp
[INFO] Assembling webapp[healthe-user-claim-portlet] in
[C:\workspaces\hin-portal-test\healthe-user-claim-portlet\target\healthe-
user-claim-portlet-1.1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Webapp assembled in[266 msecs]
[INFO] Building war:
C:\workspaces\hin-portal-test\healthe-user-claim-portlet\target\healthe-
user-claim-portlet-1.1.0-SNAPSHOT.war
[INFO] source:jar
[INFO] Building jar:
C:\workspaces\hin-portal-test\healthe-user-claim-portlet\target\healthe-
user-claim-portlet-1.1.0-SNAPSHOT-sources.jar
[INFO] retrotranslator:translate-war
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] java.lang.String incompatible with java.lang.Boolean
...

Here are the relevant parts of my pom.xml:

...


  org.apache.struts
  struts2-core-j4
  2.0.11



  com.opensymphony
  xwork-j4
  2.0.4



  org.apache.struts
  struts2-spring-plugin
  2.0.11
  

  javax.servlet
  servlet-api


  org.apache.struts
  struts2-core

  

...
...

  org.codehaus.mojo
  retrotranslator-maven-plugin
  

  
translate-war
  
  
jdk1.4
true
  

  

...

Any suggestions?
-- 
Brian


Struts 2 Validation issue

2008-02-08 Thread dfaulcon

I have an interesting problem that I'm dealing with in regards to struts 2
validation.  I have XML validation setup throughout my application that
appear to work fine.  The validation returns the appropriate error messages
when needed.  However I have a user object that is created when a person
logs into this application.  This object contains their login, business,
etc.  When any page loads the business name and login are displayed at the
top of the page.  The code snippet below shows how I'm displaying the user
information using the property tag:

User:  

However when a user is returned to that page due to an error caught by the
validation logic the "user" information is never displayed.  In my action
form the "user" object has getter and setter methods defined.  If I validate
any data in the action class and set the actionError the error message is
displayed along with the user object information.  Is there anything I
missed why the "user" object information will now show up when   XML
validation is used?  Thanks.

-- 
View this message in context: 
http://www.nabble.com/Struts-2-Validation-issue-tp15365657p15365657.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: File upload issues when maxFileSize is exceeded.

2008-02-08 Thread James Sanders
Thanks Laurie! That's a pretty good idea, and quite possibly what we'll do.
The problem with it is that the file is sent along with other form
parameters, and if I remember correctly, the Content-Length header is the
full length of the body of the post, which would include all the text for
those parameters as well, making it difficult to tell which portion of that
length is the file and which is the other parameters. Hmmm, anybody see a
solution to that issue?

On Feb 8, 2008 12:20 PM, Laurie Harper <[EMAIL PROTECTED]> wrote:

> Adam Gordon wrote:
> > We're using Struts 1.2.9 and the problem we're seeing is that if a user
> > tries to upload a file that does not exist or upload a file that exceeds
> > the maxFileSize attribute the FormFile object on the ActionForm is null
> > and so we cannot distinguish between the two.
> >
> > We thought about removing the maxFileSize parameter and doing the check
> > ourselves in the ActionForm, but it appears that the file upload has
> > already begun at that point and while we can look at the Content-Length
> > header from the HttpServletRequest object in the Struts Action, it's a
> > moot step because the file has already begun to upload.
>
> Couldn't you keep the maxFileSize parameter then use the Content-Length
> header to distinguish the two cases? Short of writing your own
> implementation of MultipartRequestHandler, I don't think there's anyway
> to hook into the file upload handling.
>
> L.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Struts 2 Spring sitemesh hangs on tomcat 6 and jboss

2008-02-08 Thread Emil.I

Hello guys,
it turned out that app is whats hanging the server responded to other
request not related
to this webapp. i had : list.addAll(JobService.retrieveRecent());
after a couple of request it hanged,
then i assigned it
list = JobService.retrieveRecent();
no its fine
list.clear(); also did the trick before the call.:-)


Emil.I wrote:
> 
> Hello,
> You guys had this, happen when i deploy my war file to tomcat, the
> application hangs seems waiting for 
> reply forever. I deployed it on jboss ok for a while, then again after a
> while just hangs. Increasing memory
> in tomcat to 512 did not help. 
> I got some params interceptor errors (setting action properties) and 
> 
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error
> creating bean with name
> 'org.apache.struts2.dispatcher.ServletDispatcherResult': Unsatisfied
> dependency expressed through constructor argument with index 0 of type
> [java.lang.String]: No unique bean of type [java.lang.String] is defined:
> Unsatisfied dependency of type [class java.lang.String]: expected at least
> 1 matching bean
> 
> could those errors hang the web app?
> In my jboss console i see the following
> 
> http-127.0.0.1-8080
> 
> Max threads: 250 Current thread count: 9 Current thread busy: 7
> Max processing time: 5598 ms Processing time: 40.755 s Request count: 191
> Error count: 74 Bytes received: 0.00 MB Bytes sent: 7.90 MB
> Stage TimeB Sent  B Recv  Client  VHost   Request
> S 976784 ms   0 KB0 KB127.0.0.1   localhost   GET 
> /web-console/ServerInfo.jsp
> HTTP/1.1
> S 1059384 ms  0 KB0 KB127.0.0.1   localhost   GET
> /JobSearch-1.0/job/home.action HTTP/1.1
> S 1115877 ms  0 KB0 KB127.0.0.1   localhost   GET
> /JobSearch-1.0/job/showCustomerRegistration.action HTTP/1.1
> S 708182 ms   0 KB0 KB127.0.0.1   localhost   GET
> /JobSearch-1.0/job/home.action HTTP/1.1
> S 773187 ms   0 KB0 KB127.0.0.1   localhost   GET
> /JobSearch-1.0/job/search.action HTTP/1.1
> S 701843 ms   0 KB0 KB127.0.0.1   localhost   GET
> /JobSearch-1.0/job/home.action HTTP/1.1
> S 0 ms0 KB0 KB127.0.0.1   localhost   GET
> /web-console/status?full=true&jsessionid=69486E0BE0C24698F891065A3DC42CC3
> HTTP/1.1
> R ?   ?   ?   ?   ?   ?
> R ?   ?   ?   ?   ?   ?
> 
> 
> any suggestions?
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts-2-Spring-sitemesh-hangs-on-tomcat-6-and-jboss-tp15279283p15362797.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: html:hidden as a collection not String

2008-02-08 Thread Laurie Harper

Shanna7463 wrote:

Is it possible to assign a collection to a html:hidden component, rather than
a string?  
Basically my webapp allows the user to select different options for access

control.  I would like to add these selections to a collection and pass that
to my Action class. 


A hidden input will submit a single string value. To submit a set of 
values you either need to use multiple hidden inputs (i.e. one per 
collection entry) or manually marshal the collection into a single 
string (e.g. a comma separated list of values) the unmarshal it again 
when it's submitted. Multiple hidden inputs is probably the 
easier/cleaner approach.


L.


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



What cd be wrong?

2008-02-08 Thread Sam Karl
Hi,

I'm new to struts and portlets. I tried out the this tutorial as a
start.

 http://struts.apache.org/2.x/docs/struts-2-portlet-tutorial.html

After implementing all functionalities described in that tutorial, the
"editBookMark" option doesn't work.  I get the following exception when I
try to edit the newly added link

javax.portlet.PortletException: Error executing action editBookmark

Caused by: java.lang.IllegalArgumentException: Null object: Preference key



My EditBookmarkAction class does implement PortletPreferencesAware and has a
setter for the preference and everything. So I'm guessing the reason is the
edit action class gets called before it loads the jsp if that makes sense.
But I'm not sure how to fix it :) Or is it a different issue? Could any one
shed some light on that?


Thanks,
Sam


Re: File upload issues when maxFileSize is exceeded.

2008-02-08 Thread Laurie Harper

Adam Gordon wrote:
We're using Struts 1.2.9 and the problem we're seeing is that if a user 
tries to upload a file that does not exist or upload a file that exceeds 
the maxFileSize attribute the FormFile object on the ActionForm is null 
and so we cannot distinguish between the two.


We thought about removing the maxFileSize parameter and doing the check 
ourselves in the ActionForm, but it appears that the file upload has 
already begun at that point and while we can look at the Content-Length 
header from the HttpServletRequest object in the Struts Action, it's a 
moot step because the file has already begun to upload.


Couldn't you keep the maxFileSize parameter then use the Content-Length 
header to distinguish the two cases? Short of writing your own 
implementation of MultipartRequestHandler, I don't think there's anyway 
to hook into the file upload handling.


L.


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



setTableList(List tableList) not working?

2008-02-08 Thread swaddee

I have the following code in 3 files + struts.xml and the .ftl page displays
[errors, mobile, non-parsed] as text unless I remove the comments in file 1. 
I am expecting an actual 3 element list to display on the second action.
(see the partial struts.xml file below)  Do I have the wrong code, idea, or
what?

Thank you for any suggestions!

==  file 1  .java  =
public class UserAgentViewsForm {   


private Date startDate; 


private Date endDate;   


private List tableList; 


private String table;   







public UserAgentViewsForm() {   


}   





public UserAgentViewsForm(Date startDate, Date endDate, List
tableList, String table) {  

this.startDate = startDate; 


this.endDate = endDate; 


this.tableList = tableList; 


this.table = table; 


}   



 



public Date getStartDate() {


return startDate;   


}   





public Date getEndDate() {  


return endDate; 


}   



   

Re: File upload issues when maxFileSize is exceeded.

2008-02-08 Thread James Sanders
Thanks for your response Martin, but as Dave pointed out, we do not have
that interface available as we are using 1.2.9. Does anybody know at what
point the framework begins to actually save a FormFile and if there is any
way to hook into that and check the length before that happens?

On Feb 7, 2008 5:44 PM, Dave Newton <[EMAIL PROTECTED]> wrote:

> --- Martin Gainty <[EMAIL PROTECTED]> wrote:
> > take a look at implementing FileUploadAction
> >
>
> http://jsourcery.com/api/apache/struts/2.0.6/org/apache/struts2/showcase/fil
> > eupload/FileUploadAction.html
>
> "Adam Gordon" <[EMAIL PROTECTED]> wrote:
> > > We're using Struts 1.2.9
>
> Dave
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Struts 2 and Weblogic 9.2 - java.net.ConnectException

2008-02-08 Thread Randy Burgess
>From the Struts 1 plugin page:

The Struts 1 plugin is currently only intended to allow you to run Strust 1
actions inside a Struts 2 application. It DOES NOT allow you to continue to
use the Struts 1 tag libraries in your JSPs. Your JSPs must be converted to
use the Struts 2 tag library.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Dave Newton <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List 
> Date: Fri, 8 Feb 2008 06:17:42 -0800 (PST)
> To: Struts Users Mailing List 
> Subject: Re: Struts 2 and Weblogic 9.2 - java.net.ConnectException
> 
> --- Vigneswar <[EMAIL PROTECTED]> wrote:
>> I have struts-config.xml as well as struts.xml under the WEB-INF folder.
> 
> The S2 configuration files need to be on the classpath, normally
> /WEB-INF/classes.
> 
>> In old JSP, I'm providing action="/HelloWorld" in the html:link tag but
>> when I click the link it shows "404" page.
> 
> A link to an S2 action? I don't really know how the Struts 1 plugin works (or
> if you're using it) but I'm not sure that the S1 tags would know how to build
> a URL for an S2 action. It (the tag) would need to know the configured S2
> extension and IIRC the S1 tags would look up the action to make sure it was
> configured.
> 
> You may need to create the URLs to S2 actions manually in your S1 pages.
> 
> Dave
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

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



Re: Struts 2 and Weblogic 9.2 - java.net.ConnectException

2008-02-08 Thread Dave Newton
--- Vigneswar <[EMAIL PROTECTED]> wrote:
> I have struts-config.xml as well as struts.xml under the WEB-INF folder.

The S2 configuration files need to be on the classpath, normally
/WEB-INF/classes.

> In old JSP, I'm providing action="/HelloWorld" in the html:link tag but
> when I click the link it shows "404" page.

A link to an S2 action? I don't really know how the Struts 1 plugin works (or
if you're using it) but I'm not sure that the S1 tags would know how to build
a URL for an S2 action. It (the tag) would need to know the configured S2
extension and IIRC the S1 tags would look up the action to make sure it was
configured.

You may need to create the URLs to S2 actions manually in your S1 pages.

Dave



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



Re: using disabled attributes in tag

2008-02-08 Thread Okan Özeren
Hi,

This is a bug for old version of strust 2, but fixed on 2.0.8 version.

You should create a solution with javascript. Presumably your js function is
wrong.
Probably your tag name is wrong. You should look its source code on browser
for tags real name.

Okan.

On Feb 8, 2008 3:32 PM, Johnson nickel <[EMAIL PROTECTED]> wrote:

>
> Hi all,
>
>   How to use enable and disable attributes in  value="save" method="save" name="savebutton" disabled="true"> but it's not
> working.
>
>   what wrong with this, i tried onclick event using html  drop down
>  onclick="javascript:enable();"> .
>
>  // Javascript function
>
>  function enable()
> {
>  formname.savebutton.disabled="true"
> }
>
>Give me a suggestion for this problem.
>
> Regards,
> Johnson
> --
> View this message in context:
> http://www.nabble.com/using-disabled-attributes-in-%3Cs%3Asubmit%3E-tag-tp15355261p15355261.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Struts 2 and Weblogic 9.2 - java.net.ConnectException

2008-02-08 Thread Vigneswar

Hey Randy,
 It is not a problem with the web-app. There is a firewall block
in my proxy server. So, I couldn't connect outside my network.
At the same time, it looks crazy as it works for Struts 1.1 DTD.
 As a temporary fix, I have provided my local machine path for
the DTD. I'm not facing the ConnectException now.
My whole idea is migration from Struts 1.1 to Struts 2.0.11. The
configuration setup is over.
When the application is loaded, it shows the old( struts 1.1) flows properly
but the new Struts2.0.11 flows take me to "404" page. 
 To add some more valuye to my question : 
I have struts-config.xml as well as struts.xml under the WEB-INF folder.
Also, the web.xml is holding the normal configuration details for both.
In old JSP, I'm providing action="/HelloWorld" in the html:link tag but when
I click the link it shows "404" page.
 Kindly, let me know if there is a problem in any of my
configuration/setup

Regards,
Vigneswar Nagarathinam   

Randy Burgess-3 wrote:
> 
> I just noticed another thing, you are using the 2.3 DTD, I'm using the 2.4
> XSD.
> 
> http://java.sun.com/xml/ns/j2ee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="2.4"
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
> 
> I would use the 2.4 XSD.
> 
> Regards,
> Randy Burgess
> Sr. Web Applications Developer
> Nuvox Communications
> 
> 
> 
>> From: Vigneswar <[EMAIL PROTECTED]>
>> Reply-To: Struts Users Mailing List 
>> Date: Tue, 5 Feb 2008 21:15:38 -0800 (PST)
>> To: 
>> Subject: Re: Struts 2 and Weblogic 9.2 - java.net.ConnectException
>> 
>> 
>> Randy,
>> here is my web.xml
>> 
>> > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>> "http://java.sun.com/dtd/web-app_2_3.dtd";>
>> 
>> 
>>   Sample Project
>>   Sample Project to Work with Struts2.
>>   
>> webmaster
>> [EMAIL PROTECTED]
>> 
>>   The EMAIL address of the administrator to whom questions
>>   and comments about this application should be addressed.
>> 
>>   
>>   
>>   
>> 
>> action2
>> 
>> org.apache.struts2.dispatcher.FilterDispatcher
>> 
>> 
>> 
>> action2
>> /*
>> 
>> 
>>  
>> 
>> org.springframework.web.context.ContextLoaderListener
>> 
>>  
>>  
>> contextConfigLocation
>> /WEB-INF/applicationContext.xml
>> 
>> 
>> 
>> Thanks & Regards.
>> Vigneswar Nagarathinam
>> 
>> 
>> Randy Burgess-3 wrote:
>>> 
>>> We need to see your web.xml. I'm running Struts 2 projects on WebLogic
>>> 9.2
>>> without any problems.
>>> 
>>> Regards,
>>> Randy Burgess
>>> Sr. Web Applications Developer
>>> Nuvox Communications
>>> 
>>> 
>>> 
 From: Vigneswar Nagarathinam <[EMAIL PROTECTED]>
 Reply-To: Struts Users Mailing List 
 Date: Tue, 5 Feb 2008 17:09:23 +0530
 To: 
 Subject: Struts 2 and Weblogic 9.2 - java.net.ConnectException
 
 Hi All,
 I'm trying to implement Struts2 with Weblogic 9.2. I'm getting
 the
 following error while running the Weblogic server. Can you please help
 me
 by
 providing a solution:
 
 stack trace:
 ---
 >>> not
 load user defined filter in web.xml:
 org.apache.struts2.dispatcher.FilterDispatcher.
 Class: weblogic.net.http.HttpClient
 File: HttpClient.java
 Method: openServer
 Line: 320 - weblogic/net/http/HttpClient.java:320:-1
 at
 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfig
 ur
 ationFiles
 (XmlConfigurationProvider.java:835)
 at
 
>>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocumen
>>> t>
>>> s
 (XmlConfigurationProvider.java:131)
 at
 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(
 XmlConfigurationProvider.java:100)
 at
 com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(
 DefaultConfiguration.java:130)
 at
 com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
 ConfigurationManager.java:52)
 Truncated. see log file for complete stacktrace
 Tried all: '1' addresses, but could not connect over HTTP to server: '
 struts.apache.org', port: '80' - Class: weblogic.net.http.HttpClient
 File: HttpClient.java
 Method: openServer
 Line: 320 - weblogic/net/http/HttpClient.java:320:-1
 at
 com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:123)
 at
 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfig
 ur
 ationFiles
 (XmlConfigurationProvider.java:830)
 at
 
>>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocumen
>>> t>
>>> s
 (XmlConfigurationProvider.java:131)
 at
 com.opensymphony.xwork2.config.providers

Re: Struts 2 and Weblogic 9.2 - java.net.ConnectException

2008-02-08 Thread Vigneswar

Hey Randy,
 It is not a problem with the web-app. There is a firewall block
in my proxy server. So, I couldn't connect outside my network.
At the same time, it looks crazy as it works for Struts 1.1 DTD.
 As a temporary fix, I have provided my local machine path for
the DTD. I'm not facing the ConnectException now.
My whole idea is migration from Struts 1.1 to Struts 2.0.11. The
configuration setup is over.
When the application is loaded, it shows the old( struts 1.1) flows properly
but the new Struts2.0.11 flows take me to "404" page. 
 To add some more valuye to my question : 
I have struts-config.xml as well as struts.xml under the WEB-INF folder.
Also, the web.xml is holding the normal configuration details for both.
In old JSP, I'm providing action="/HelloWorld" in the html:link tag but when
I click the link it shows "404" page.
 Kindly, let me know if there is a problem in any of my
configuration/setup
Thanks
Vigneswar Nagarathinam


Randy Burgess-3 wrote:
> 
> I just noticed another thing, you are using the 2.3 DTD, I'm using the 2.4
> XSD.
> 
> http://java.sun.com/xml/ns/j2ee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="2.4"
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
> 
> I would use the 2.4 XSD.
> 
> Regards,
> Randy Burgess
> Sr. Web Applications Developer
> Nuvox Communications
> 
> 
> 
>> From: Vigneswar <[EMAIL PROTECTED]>
>> Reply-To: Struts Users Mailing List 
>> Date: Tue, 5 Feb 2008 21:15:38 -0800 (PST)
>> To: 
>> Subject: Re: Struts 2 and Weblogic 9.2 - java.net.ConnectException
>> 
>> 
>> Randy,
>> here is my web.xml
>> 
>> > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>> "http://java.sun.com/dtd/web-app_2_3.dtd";>
>> 
>> 
>>   Sample Project
>>   Sample Project to Work with Struts2.
>>   
>> webmaster
>> [EMAIL PROTECTED]
>> 
>>   The EMAIL address of the administrator to whom questions
>>   and comments about this application should be addressed.
>> 
>>   
>>   
>>   
>> 
>> action2
>> 
>> org.apache.struts2.dispatcher.FilterDispatcher
>> 
>> 
>> 
>> action2
>> /*
>> 
>> 
>>  
>> 
>> org.springframework.web.context.ContextLoaderListener
>> 
>>  
>>  
>> contextConfigLocation
>> /WEB-INF/applicationContext.xml
>> 
>> 
>> 
>> Thanks & Regards.
>> Vigneswar Nagarathinam
>> 
>> 
>> Randy Burgess-3 wrote:
>>> 
>>> We need to see your web.xml. I'm running Struts 2 projects on WebLogic
>>> 9.2
>>> without any problems.
>>> 
>>> Regards,
>>> Randy Burgess
>>> Sr. Web Applications Developer
>>> Nuvox Communications
>>> 
>>> 
>>> 
 From: Vigneswar Nagarathinam <[EMAIL PROTECTED]>
 Reply-To: Struts Users Mailing List 
 Date: Tue, 5 Feb 2008 17:09:23 +0530
 To: 
 Subject: Struts 2 and Weblogic 9.2 - java.net.ConnectException
 
 Hi All,
 I'm trying to implement Struts2 with Weblogic 9.2. I'm getting
 the
 following error while running the Weblogic server. Can you please help
 me
 by
 providing a solution:
 
 stack trace:
 ---
 >>> not
 load user defined filter in web.xml:
 org.apache.struts2.dispatcher.FilterDispatcher.
 Class: weblogic.net.http.HttpClient
 File: HttpClient.java
 Method: openServer
 Line: 320 - weblogic/net/http/HttpClient.java:320:-1
 at
 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfig
 ur
 ationFiles
 (XmlConfigurationProvider.java:835)
 at
 
>>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocumen
>>> t>
>>> s
 (XmlConfigurationProvider.java:131)
 at
 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(
 XmlConfigurationProvider.java:100)
 at
 com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(
 DefaultConfiguration.java:130)
 at
 com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
 ConfigurationManager.java:52)
 Truncated. see log file for complete stacktrace
 Tried all: '1' addresses, but could not connect over HTTP to server: '
 struts.apache.org', port: '80' - Class: weblogic.net.http.HttpClient
 File: HttpClient.java
 Method: openServer
 Line: 320 - weblogic/net/http/HttpClient.java:320:-1
 at
 com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:123)
 at
 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfig
 ur
 ationFiles
 (XmlConfigurationProvider.java:830)
 at
 
>>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocumen
>>> t>
>>> s
 (XmlConfigurationProvider.java:131)
 at
 com.opensymphony.xwork2.config.providers.

using disabled attributes in tag

2008-02-08 Thread Johnson nickel

Hi all,

   How to use enable and disable attributes in  but it's not
working. 

   what wrong with this, i tried onclick event using html  drop down 
 .

  // Javascript function

 function enable()
{
  formname.savebutton.disabled="true"
}

Give me a suggestion for this problem.

Regards,
Johnson
-- 
View this message in context: 
http://www.nabble.com/using-disabled-attributes-in-%3Cs%3Asubmit%3E-tag-tp15355261p15355261.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Trouble configuring spring plugin

2008-02-08 Thread Toni Lyytikäinen
Hi,
I recently started converting an older project to Struts 2.0.11 and maven.
The project uses spring plugin for injecting certain dependencies into the
actions. The problem is, that I would like to use the constructor
autowiring, as described in the configuration file (struts.properties):

### specifies the autoWiring logic when using the SpringObjectFactory.
### valid values are: name, type, auto, and constructor (name is the default)
struts.objectFactory.spring.autoWire = constructor

However, this results in an exception when instantiating the Struts actions:

javax.servlet.ServletException: Unable to instantiate Action,
net.x.y.web.Login,  defined for 'Login' in namespace '/'Just constants
AUTOWIRE_BY_NAME and AUTOWIRE_BY_TYPE allowed - action -
file:/**/WEB-INF/classes/struts-base.xml:20:68


If I change the autoWire setting to type, I get an

javax.servlet.ServletException: Unable to intantiate Action!

type exception, because the action has constructor arguments that really
need to be injected there somehow.

Am I missing some dependency, or have the spring folks dropped support for
the auto and constructor settings while I was away?