Re: Multiple File upload read
Thank you very much. That worked perfectly :D -- Fabián Montealegre Carvajal ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Multiple File upload read
Thanks for the advice. I have a new problem. I am doing this: if (aContext.request().isMultipartFormData()){ WOMultipartIterator wmi = aContext.request().multipartIterator(); WOFormData data = wmi.nextFormData(); while (data != null) { if ( data.isStreamValid()) { System.out.println(data.toString()); try { NSData myFile = data.formData(); this.workWithTheFile(myFile); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } data = wmi.nextFormData(); } // The method "this.workWithTheFile(myFile)" used to work with WOFileUpload perfectly fine, but right now its throwing an error. System.out.println(data.toString()) prints: WOFormData 4 isStreamValid true headers: {content-disposition = ({form-data = ; filename = "myXMLFile.xml"; name = "File0"; }); content-type = ("text/xml"); } The main problem is that "NSData myFile = data.formData()" is returning null. How should I handle the WOFormData to convert it into a valid NSData? Thank you for your time. -- Fabián Montealegre Carvajal ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Installing WO on Centos 5.4
> > Now try going to your app once or twice to get the error message. Then > look in /Library/WebObjects/Logs/WebObjects.log > > The first thing to look for is if the host name it is using is the one you > have configured in JavaMonitor and the application. > That's weird... The file is empty. -- Fabián Montealegre Carvajal ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Installing WO on Centos 5.4
> If you reverse DNS lookup the IP address, does it give you that host name? > > What does http://HOST:1085 show? > DNS look up gives the correct hostname. Still no clue what to do This is what wotaskd shows: *Wotaskd for WebObjects 5.3: centos Site Config as written to disk MACOSX centos YES WODefaultAdaptor sistemas 16 NO /opt/Local/Library/WebObjects/Applications/TecSeguridad02.woa/TecSeguridad02 8 30 256 2001 -Djava.awt.headless=true () YES NO 128 0 3600 NO YES /opt/Local/Library/WebObjects/Logs 30 2001 YES 1 -Djava.awt.headless=true /opt/Local/Library/WebObjects/Applications/TecSeguridad02.woa/TecSeguridad02 /opt/Local/Library/WebObjects/Logs/sistemas-1 3 NO NO DAILY NO 12 YES 30 sistemas YES 3 1 centos 0 3 YES http://centos/apps/WebObjects 60 Adaptor Config as sent to Local WOAdaptors - All Running Applications and Instances * -- Fabián Montealegre Carvajal ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Installing WO on Centos 5.4
> The host name in JavaMonitor, wotaskd properties, and application properties > (or launch args) should all be the same. For a server, the cannonical host > name is best (centos.techinagro.com). Still not working :-( -- Fabián Montealegre Carvajal ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Installing WO on Centos 5.4
Thanks for replying, >Which installer did you use? WOInstaller.jar 5.3.3 (http://webobjects.mdimension.com/wolips/WOInstaller.jar) > What host name did you use in JavaMonitor? Type hostname at the command > line, what does it show? Are they the same? host name: centos.techinagro.com > Have you tried adding -DWOHost= to the application's launch > parameters? Localhost and ip. I'm going to try adding -DWOHost= to the application's launch parameters to see what happens -- Fabián Montealegre Carvajal -- Fabián Montealegre Carvajal ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Installing WO on Centos 5.4
Hello, I'm trying to install WO 5.3 on a Centos 5.4 using this guide: http://wiki.objectstyle.org/confluence/display/WO/Installing+WO+5.3+or+WO+5.4+on+Linux I have finished the complete guide and the wotaskd and womonitor are up and running. I've managed to setup an app through womonitor and it's starting up ok according to womonitor. In the womonitor's applications tab I can see the only app I have set up. The problem is that when I click on the application link I get the following error: *The requested application was not found on this server.* I've tried to run wotaskd with the properties file modified (WOHost = ip, localhost, etc) but with no success. Apache logs aren't showing any useful info. Any ideas why is this happening? Notes: Java version 1.5 -- Fabián Montealegre Carvajal ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Oracle connection
Thank you both. I'll try removing the toMany relationships and convincing my client to move away from Windows Server. -- Fabián Montealegre Carvajal ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Oracle connection
Sorry for not giving all the details. We have a WO 5.3 Wonder app. It's connected to a Oracle 10G db. It is allowing concurrent request handling (setAllowsConcurrentRequestHandling(true)). This is the DB connection: model.URL=jdbc:oracle:thin:@xxx.xxx.xxx.xxx:1521:bdtouse model.DBUser=user model.DBPassword=password model.DBDriver=oracle.jdbc.driver.OracleDriver (version: 9.0.2.0.0) model.DBPlugin=com.webobjects.jdbcadaptor.OraclePlugIn The production environment is tomcat 5.5, java jdk 1.5, Windows Server 2003 standard revision SP 2. The app is actually working properly. Nevertheless, we have detected that when a process from another app (oracle forms) is executed, said process hogs all the resources from the DB. It appears that the oracle service relegates the WO requests. After that, Tomcat starts eating memory until it dies with a out of memory error. We have to restart the service all over again. Any ideas how to solve this? Maybe a Tomcat tweak? Thank you very much for your time. -- Fabián Montealegre Carvajal ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Multiple File upload read
Hello, I'm using an applet called JUpload to upload multiple files to the server. I'm used to the WOFileUpload to handle uploads, but this time I need to read the files directly from the request because the applet just post to an URL. I remember that in PHP one just access the $_FILE global to achieve this. Is the there a similar way I could read the files in WO? Thank you. -- Fabián Montealegre Carvajal ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Oracle connection
Iin your experience, wich is the best way to connect to Oracle? Right now I'm using EROraclePlugin.framework, but it's giving me performance issues (eating up all the resources). Thank you. -- Fabián Montealegre Carvajal ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Postgres EOGenericRecord issues
Thank you very much. It worked fine :) -- Fabián Montealegre Carvajal ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Postgres EOGenericRecord issues
I have a Postgres (EOGenericRecord) based project. When I try to do a normal SELECT from the database it throws this exception: com.webobjects.jdbcadaptor.JDBCAdaptorException: Unable to find type information for external type 'INTEGER' in attribute 'attribute' of entity 'Entity'. Check spelling and capitalization. In my model, there is an "int4" prototype wich I believe works fine as an Integer. I've tried to use this software form http://hexdreams.com/ * PostgresqlPlugIn_1.2.gtar.gz * PostgresqlPlugInBundle_1.2.gtar.gz According to the documentation: " Obtain the following items from http://www.hexdreams.com/ placing their built products as suggested (but do check each item for bug fixes or notes)... * PostgresqlPlugIn.framework --> /Library/Frameworks * PostgresqlPlugInBundle.EOMPlugin --> /Developer/EOMBundles " When I download those files, they come as two .pbproj projects. I'm guessing I need to convert those to .framework and to a .EOMPlugin, but I don't know how :( Could you please help me with some advice on how should I solve this problem? Thank you. On a side note, I have another project that connects to Postgres with the only difference that it uses ERXGenericRecord. It works like a charm. -- Fabián Montealegre ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com