Re: troubles using java 5
Mouna, This seems like an ANT compile problem. If I were you, I would subscribe to and post this to the Apache ANT user list at ( http://ant.apache.org/mail.html) and include your ANT build script (usually build.xml), and let the friendly folks know which ANT target is giving you all that trouble. By the way, whomever used .classpath as a reference in your build must have had the file originate in some derivation of Eclipse because of the eclipse reference in the JRE_CONTAINER classpath con entry. HTH, John Walker On 4/25/06, mouna SAHIB [EMAIL PROTECTED] wrote: Thank you for your answers all! To answer most of your questions: - I use neither Eclipse/ RAD nor WSAD/Eclipse! As I said other persons developped the GUI module and it doesn't seem they have used these tools! -I think that I've included all required files inthe classpath unless there is some specific files to include when using jdk 1.5 !! What suprised me is that my application run normally whith jdk 1.4.2, and even the jars included in the .classpath was read without any problems! Here is my .classpath: ?xml version=1.0 encoding=UTF-8? classpath classpathentry kind=src path=/ classpathentry exported=true kind=lib path=ant-contrib-0.6.jar / classpathentry exported=true kind=lib path= castor-0.9.5.3-xml.jar / classpathentry exported=true kind=lib path=commons-beanutils.jar / classpathentry exported=true kind=lib path=commons-codec-1.2.jar / classpathentry exported=true kind=lib path= commons-collections-2.1.1.jar/ classpathentry exported=true kind=lib path=commons-digester.jar / classpathentry exported=true kind=lib path=commons-el.jar/ classpathentry exported=true kind=lib path= commons-fileupload-1.0.jar/ classpathentry exported=true kind=lib path= commons-httpclient-2.0.jar/ classpathentry exported=true kind=lib path= commons-logging-1.0.4.jar/ classpathentry exported=true kind=lib path=commons-validator.jar / classpathentry exported=true kind=lib path=j2ee.jar/ classpathentry exported=true kind=lib path=JCup.jar/ classpathentry exported=true kind=lib path=jdbc-se2.0.jar/ classpathentry exported=true kind=lib path=jdom.jar/ classpathentry exported=true kind=lib path=jndi.jar/ classpathentry exported=true kind=lib path=joram-client.jar/ classpathentry exported=true kind=lib path=joram-connector.jar / classpathentry exported=true kind=lib path=joram-mom.jar/ classpathentry exported=true kind=lib path=joram-shared.jar/ classpathentry exported=true kind=lib path=jta1.0.1.jar/ classpathentry exported=true kind=lib path=log4j-1.2.8.jar/ classpathentry exported=true kind=lib path=Odis2Component.jar/ classpathentry exported=true kind=lib path=ojdbc14_g.jar/ classpathentry exported=true kind=lib path=ow_jonas_ant.jar/ classpathentry exported=true kind=lib path=ow_monolog.jar/ classpathentry exported=true kind=lib path=xerces.jar/ classpathentry exported=true kind=lib path=xercesImpl.jar/ classpathentry kind=con path= org.eclipse.jdt.launching.JRE_CONTAINER / classpathentry kind=output path=/ /classpath Does the last lineclasspathentry kind=con path= org.eclipse.jdt.launching.JRE_CONTAINER/ affect the use of the jre chosen? All in all, I'm almost blocked in this step of building my project!! And I remind that when I remove the GUI module from the build, the application run fine!!! I'll be gratefull for any help ! Thanks Mouna 2006/4/25, John Walker [EMAIL PROTECTED]: You are using WSAD/Eclipse, correct? In which case your .classpath file points to all of those nifty things in your project that should be used to compile your application, including the classes and libraries that are referenced by the compiler and run-time code. To me, it sounds like you have a ZIP or a JAR file on your CLASSPATH (referenced in the .classpath file) that cannot be read using the ZIP libraries in WSAD/Eclipse. In other words... one of the files in your classpath is supposed to be either a ZIP or a JAR but is not. Do you have a DLL, readme.TXT or some other non-zip file referenced by your project's classpath? Regards, John Walker On 4/25/06, mouna SAHIB [EMAIL PROTECTED] wrote: Hello everybody, I'm not a specialist using struts, but I did some work with it in last months. Now, I'm working on project using the jdk1.4.2 and I'v moved to jdk 1.5to have plenty use of aspectj 5 (an AOP tool). I don't know if there is a compatiblity problem using struts 1.2.8with java 5: I converted a module of my application into an apsectj tool and use jdk 1.5. The module that causes problem is my GUI module which uses struts. When I build (using ant) I have the following error: [javac] error: error reading C:\projets\M_LIB\.classpath; error in opening zip file I see that there isa new
Re: .NET/WebServices/Java
Thanks Ted! I will dust off my old sourceforge.net account and take this conversation off the user group with you personally. I appreciate the help. It's people like you that make it easy for developers to come into the Open Dev community. Thanks again, John On 4/23/06, Ted Husted [EMAIL PROTECTED] wrote: On 4/23/06, John B. Walker [EMAIL PROTECTED] wrote: My next question for you Ted (or others), is: How would I contribute this source back to Struts, and do you think that the committee would be interested in adopting this framework into the Struts project? The first step would be to get the code out there where people can try it. This can simply be a matter of setting up a home page that describes the product with a link to download the package. A very good way to get started is to setup a Java.net or Sourceforge.net project. If you don't want to start your own project, there is a Struts SourceForge project (struts.sf.net) where you could upload the code. Just take out a SourceForge account and let me know what your user id, and a working name for the product, and I'll setup a module for you, In general, the ASF isn't interested in donations of code that do not include a community of developers who are ready, willing, and able to maintain the code. The ASF has no paid staff, so we have to be sure that there are volunteers to do the work. The first step is finding volunteers to help with an open source project is to publish the source :) HTH, Ted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: .NET/WebServices/Java
Ted wrote: If the situation is that you have business logic trapped in Struts Actions that you want to access from an ASPX application, then you might be able to create web service to front the Action, and have the ASPX application access the web service. (The inverse of what I mentioned before.) Thanks Ted, that does help. I have taken this one step further than your description. I am a Sr Dev/Architect at my present company, and we've been using a tiered architecture that flows like so: .NET (either ASP.NET or Windows Forms .NET) | (SOAP through .NET Web service proxy) V Apache AXIS web services (Residing in Apache Tomcat) | (AXIS uses Java reflection here) V Business Delegate pattern Java classes | (Didn't really delegate too much :) ) V Custom DAL layer | (JDBC) V Database Seeing the power of Struts, I wanted to move more toward an MVC architecture, esp. since we have two view apps for this application. Instead of utilizing Struts, because of its Java-centric view pieces, I have developed an architecture based on the open source STRUTS framework. Right now this has three man-weeks worth of work into it. I have checked with the Director of Technology at my company, and the company wants to contribute to Open Source, since Struts and other Apache Group projects have made my life ever so much easier. I thought that since my custom framework was based on STRUTS, that this was the right project to try to contribute back to the community. My simple code may not be up to snuff, but it's my meagre attempt at a contribution. I must admit, I would LOVE to begin to contribute back to the community because of all that I have learned and benefited. My next question for you Ted (or others), is: How would I contribute this source back to Struts, and do you think that the committee would be interested in adopting this framework into the Struts project? Thanks and Regards, John Walker On 4/23/06, Ted Husted [EMAIL PROTECTED] wrote: Is there a way that I can have a Struts application that services a .NET view, Struts controller, and Struts model objects? If you need to render an ASPX page, then either ASP.NET or MONO needs to be in the picture. Right now, I don't know of a way to run both ASP.NET and J2SE in the same application space. They could both use a common set of web services. I do know people who use ASP.NET to create web services, and then use a Java web framework on the front end. If the situation is that you have business logic trapped in Struts Actions that you want to access from an ASPX application, then you might be able to create web service to front the Action, and have the ASPX application access the web service. (The inverse of what I mentioned before.) One effort in that regard is * http://sourceforge.net/projects/strutsws If you are developing an ASPX application, I've found the Spring.NET framework very userful in my own work. * http://springframework.net/ HTH, Ted. On 4/23/06, John B. Walker [EMAIL PROTECTED] wrote: yes, an ASPX file On 4/21/06, Ted Husted [EMAIL PROTECTED] wrote: What do mean by a .NET view? Are you talking about a .ASPX file with a code-behind? -Ted. On 4/21/06, John Walker [EMAIL PROTECTED] wrote: Is there a way that I can have a Struts application that services a .NET view, Struts controller, and Struts model objects? I've recently been writing my own framework to do such a thing, and I'm wondering if I should have deferred to the wisdom of Struts users :) before delving into my own development. Regards, John Walker [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: .NET/WebServices/Java
yes, an ASPX file On 4/21/06, Ted Husted [EMAIL PROTECTED] wrote: What do mean by a .NET view? Are you talking about a .ASPX file with a code-behind? -Ted. On 4/21/06, John Walker [EMAIL PROTECTED] wrote: Is there a way that I can have a Struts application that services a .NET view, Struts controller, and Struts model objects? I've recently been writing my own framework to do such a thing, and I'm wondering if I should have deferred to the wisdom of Struts users :) before delving into my own development. Regards, John Walker [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]