RE: deployment on tomcat
Hi Henrique, Thanks for answering me yesterday evening ! I put the WOJarBundle to true and now the application can't load my Properties file, it's located : C:\java\apache-tomcat-6.0.26\webapps\jcommops-ptf\WEB-INF\jcommops-ptf.woa\Contents\Resources\properties Here is the error : Caused by: java.lang.IllegalStateException: Main bundle 'Properties' file can't be read. Did you run as a Java Application instead of a WOApplication in WOLips ? Thanks, Laurent. -Message d'origine- De : webobjects-dev-bounces+lcros=cls...@lists.apple.com [mailto:webobjects-dev-bounces+lcros=cls...@lists.apple.com] De la part de Henrique Prange Envoyé : jeudi 17 juin 2010 22:26 À : webobjects-dev@lists.apple.com Objet : Re: deployment on tomcat Hi Julio, On 17/06/10 14:43, Julio Ortiz wrote: Hi, Since one year I only deploy my apps in Tomcat the easy way is as follows 1- Always deploy over JDK 1.6 Not a requirement. What kind of problems have you faced with JDK 1.5? 2- Just Compile with ANT and copy the WEB-INF generated directory in the Tomcat Context dir. Maven produces true WAR packages. The default Ant build provided by WOLips produces SSDD packages. Both have advantages and drawbacks. I prefer true WAR packages because they are less problematic and easier to understand. 3- Do not use the er.extensions.jspservlet.ERXServletAdaptor, instead use com.webobjects.jspservlet.WOServletAdaptor ERXServletAdaptor is a requirement if you have Wonder based applications. 4- Restart Tomcat and enjoy Good advice. Cheers, Henrique Best regards Julio On Jun 17, 2010, at 5:09 AM, Cros Laurent wrote: HI guys, I am trying to deploy my app on tomcat. With the basic url : http://localhost:8080/jcommops-ptf/WebObjects/jcommops-ptf.woa/ , I have no error by empty content, here is my log in tomcat : juin 17 11:55:12 JavaWebObjects[-1] DEBUG NSLog - com.webobjects.appserver._private.WOComponentDefinition No template found for component Main at null. juin 17 11:55:12 JavaWebObjects[-1] DEBUG er.extensions.appserver.ERXBrowserFactory - Factory null creating default browser factory. null juin 17 11:55:12 JavaWebObjects[-1] DEBUG er.extensions.appserver.ERXBrowserFactory - _incrementReferenceCounterForKey() - count = 1, key = Safari.533.4.5.0.Windows.{cpu = Unknown CPU; geckoRevision = No Gecko;} juin 17 11:55:12 JavaWebObjects[-1] DEBUG er.extensions.eof.ERXEC - setting useUnlocker to true juin 17 11:55:12 JavaWebObjects[-1] DEBUG er.extensions.ERXApplication.RequestHandling - Returning, encoding: UTF-8 response: er.extensions.appserver.ERXResponse (er.extensions.appserver.ERXResponsehttpVersion=HTTP/1.0 headers={cache-control=[private, no-cache, no-store, must-revalidate, max-age=0], content-type=[text/html], date=[Thu, 17-Jun-2010 09:55:12 GMT], expires=[Thu, 17-Jun-2010 09:55:12 GMT], pragma=[no-cache], set-cookie=[], x-webobjects-loadaverage=[1]} content-length=0 cookies=() userInfo={} storePageInBacktrackCache=true ) status=200 I don't know why my content response length is 0 Here is my web.xml : !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; !-- This web.xml file by itself will allow you to run the corresponding WebObjects application in a Servlet container. If you would like to merge the WebObjects application with your existing JSP/Servlet application, you have to merge this web.xml with your existing web.xml. NOTE: This file is normally included as the template file 'web.xml.template'. During the build process, the placeholders for WOROOT, LOCALROOT, WOAINSTALLROOT, WOAppMode, WOClassPath, WOApplicationClass and WOtaglib will be replaced with the appropriate values. Other parts of the template file may be customized as required. NOTE: WEBINFROOT is added to the WOClassPath at build time, but the replacement value is replaced at runtime to be the path to the WEB-INF directory. -- web-app display-namejcommops-ptf/display-name context-param param-nameWOJarBundle/param-name param-valuefalse/param-value description Whether this app is a true WAR, rather than a stub WAR or SSDD Note that WOROOT, LOCALROOT, WOAINSTALLROOT, WOClassPath are ignored if this is true However, if this is true, WOMainBundle must be set to the main bundle name /description /context-param context-param param-nameWOMainBundle/param-name param-valuejcommops-ptf/param-value description Sets the name of the main bundle. Only used if WOJarBundle is true /description /context-param context-param param-nameWOROOT/param-name param-valueC:/apple_5.4.3/param-value /context-param !-- Indicates the root where local frameworks are installed. In Mac OS X, for example, these frameworks are located in the /Library/Frameworks directory; keeping in tradition, LOCALROOT is set to /. On Windows, it could be c:\Apple\Local, on Solaris, it could be /opt/Apple/Local. If
Re: bug or feature in NSNumberFormatter
I get strange behaviour if and only if formatting the value of zero. Am I something missing? Or what is the point here? - NSNumberFormatter nf = new NSNumberFormatter(__0.00); nf.setLocalizesPattern(true); nf.format(new Integer(0)); // formatted number is '0' nf.setLocalizesPattern(false); nf.format(new Integer(0)); // formatted number is ' 0.00' - The correct behaviour should be ' 0.00', or shouldnt it? I think the correct answer is that depends. The JavaDocs say: Sets whether this NSNumberFormatter's pattern should be localized. When newDefault is true, NSNumberFormatter chooses the appropriate currency symbol, thousands separator, string for zero, and string for NaN based on locale By default, NSNumberFormatters are not localized. Ok, behaviour is within the spec ('string for zero'). But treating zero not like any other number makes no sense to me. I will implement a subclass of NSNumberFormatter that formats zero like any other number. Thanks Michael -- Michael Schmiedgen, BSc Takwa GmbH Friedrich-List-Str. 36 99096 Erfurt GERMANY Tel +49 361 6534096 Fax +49 361 6534097 Mail schmied...@takwa.de Web http://www.takwa.de/ Geschaeftsfuehrung: Ingo Buchholz HRB 112964, Amtsgericht Jena ___ 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: deployment on tomcat
Hi Laurent, On 18/06/10 05:07, Cros Laurent wrote: Hi Henrique, Thanks for answering me yesterday evening ! I put the WOJarBundle to true and now the application can't load my Properties file, it's located : C:\java\apache-tomcat-6.0.26\webapps\jcommops-ptf\WEB-INF\jcommops-ptf.woa\Contents\Resources\properties You have to choose one way to go: true WAR or SSDD. If you are using Maven and trying to produce a true WAR package, the [...]\WEB-INF\jcommops-ptf.woa is not necessary. The Properties file will be package inside your project JAR, i.e. [...]\webapps\jcommops-ptf\WEB-INF\lib\jcommops-ptf.jar. Here is the error : Caused by: java.lang.IllegalStateException: Main bundle 'Properties' file can't be read. Did you run as a Java Application instead of a WOApplication in WOLips ? Which WebObjects and Wonder version? BTW, were you able to run the sample-project in your environment successfully? Cheers, Henrique ___ 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
Migrations help
Greetings, I am now trying to learn and use migrations for the site I'm working on. The site is currently hosted on an Openbase db, and my dev machine has a MySQL db. I've managed to get it working on my MySQL db (and obviously it already works on the Operbase db). So on my dev machine, I have 2 configurations in the EOModel, one points to Openbase, and the other to MySQL. I want to use Migrations so that I can make changes to the datamodel on the production machine to add minor things like lookup tables instead of strings for states, countries, user types, etc. I added the new attributes and Entities to the model, and pointed them to column names that I intend the migrations to create for me (but which don't currently exist). What I have done so far is generate a base level model using the original EOModel from the version currently running on the production box. This is named Playhouse0.java (and the EOModel is Playhouse.eomodeled). I have created a Playhouse1.java which adds columns to the various tables needing foreign keys to the lookup tables. e.g. ERXMigrationTable userTable = database.existingTableNamed(USER); userTable.newIntegerColumn(user_type_id, true); I then create the new tables, e.g.: ERXMigrationTable UserTypeTable = database.newTableNamed(USER_TYPE); UserTypeTable.newIntegerColumn(_rowid, false); UserTypeTable.newLargeStringColumn(type_name, true); UserTypeTable.create(); UserTypeTable.setPrimaryKey(_rowid); Then set the foreign key: userTable.addForeignKey(user_type_id, USER_TYPE, _rowid); Then I run an SQL script to create and types and try and point the old User.userType column to the appropriate row: insert into user_type(_rowid,type_name) values(1,'Admin'),(2,'Patron'),(3,'Chef'); and UPDATE USER SET USER.USER_TYPE_ID = USER_TYPE._rowid FROM USER INNER JOIN USER_TYPE ON USER_TYPE.NAME = USER.USER_TYPE; etc. I then have another migration Playhouse2.java which was originally set to set the default values and set the columns to not allow null, and added the following lines to my properties file: # Migrations er.migration.migrateAtStartup=true er.migration.createTablesIfNecessary=true er.migration.modelNames=Playhouse Playhouse.MigrationClassPrefix=playhousecomedy.com.migrations.Playhouse Playhouse.InitialMigrationVersion=1 When I ran it, initially I got an exception: Your EOSynchronizationFactory does not support the required 'modify allows null' operation. So I commented those lines out (i.e. the ones setting to not allow null), which allowed the app to run. However, when I clicked the admin link to go to a D2W component, it crashed, because it could not find the new columns. Jun 18 09:02:28 PlayhouseComedy[9001] INFO er.transaction.adaptor.Exceptions - Database Exception occured: Unknown column 't0.user_type_Id' in 'field list'at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) I looked at the MySQL db and indeed, no additional columns or tables were created. This is my first attempt with Migrations, and I'm not an SQL guru, so I modeled that code on other code I saw, but it seems straight forward enough. I can only assume this means that I am missing a fundamental step. Thanks in advance Andrew ___ 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: Migrations Help
Apparently, my problem was simply that the property needs to be set at the last migration run, rather than the next migration you intend to run. In my case, it should have been 0 instead of 1. My inner join didn't do anything, but that's a separate problem. Andrew On Jun 18, 2010, at 9:33 AM, webobjects-dev-requ...@lists.apple.com wrote: Date: Fri, 18 Jun 2010 09:31:59 -0400 From: Andrew R. Kinnie akin...@mac.com Subject: Migrations help To: WebObjects-Dev List webobjects-dev@lists.apple.com Message-ID: 232c85f9-3a6f-40e1-9149-fddab132d...@mac.com Content-Type: text/plain; charset=us-ascii Greetings, I am now trying to learn and use migrations for the site I'm working on. The site is currently hosted on an Openbase db, and my dev machine has a MySQL db. I've managed to get it working on my MySQL db (and obviously it already works on the Operbase db). So on my dev machine, I have 2 configurations in the EOModel, one points to Openbase, and the other to MySQL. I want to use Migrations so that I can make changes to the datamodel on the production machine to add minor things like lookup tables instead of strings for states, countries, user types, etc. I added the new attributes and Entities to the model, and pointed them to column names that I intend the migrations to create for me (but which don't currently exist). What I have done so far is generate a base level model using the original EOModel from the version currently running on the production box. This is named Playhouse0.java (and the EOModel is Playhouse.eomodeled). I have created a Playhouse1.java which adds columns to the various tables needing foreign keys to the lookup tables. e.g. ERXMigrationTable userTable = database.existingTableNamed(USER); userTable.newIntegerColumn(user_type_id, true); I then create the new tables, e.g.: ERXMigrationTable UserTypeTable = database.newTableNamed(USER_TYPE); UserTypeTable.newIntegerColumn(_rowid, false); UserTypeTable.newLargeStringColumn(type_name, true); UserTypeTable.create(); UserTypeTable.setPrimaryKey(_rowid); Then set the foreign key: userTable.addForeignKey(user_type_id, USER_TYPE, _rowid); Then I run an SQL script to create and types and try and point the old User.userType column to the appropriate row: insert into user_type(_rowid,type_name) values(1,'Admin'),(2,'Patron'),(3,'Chef'); and UPDATE USER SET USER.USER_TYPE_ID = USER_TYPE._rowid FROM USER INNER JOIN USER_TYPE ON USER_TYPE.NAME = USER.USER_TYPE; etc. I then have another migration Playhouse2.java which was originally set to set the default values and set the columns to not allow null, and added the following lines to my properties file: # Migrations er.migration.migrateAtStartup=true er.migration.createTablesIfNecessary=true er.migration.modelNames=Playhouse Playhouse.MigrationClassPrefix=playhousecomedy.com.migrations.Playhouse Playhouse.InitialMigrationVersion=1 When I ran it, initially I got an exception: Your EOSynchronizationFactory does not support the required 'modify allows null' operation. So I commented those lines out (i.e. the ones setting to not allow null), which allowed the app to run. However, when I clicked the admin link to go to a D2W component, it crashed, because it could not find the new columns. Jun 18 09:02:28 PlayhouseComedy[9001] INFO er.transaction.adaptor.Exceptions - Database Exception occured: Unknown column 't0.user_type_Id' in 'field list'at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) I looked at the MySQL db and indeed, no additional columns or tables were created. This is my first attempt with Migrations, and I'm not an SQL guru, so I modeled that code on other code I saw, but it seems straight forward enough. I can only assume this means that I am missing a fundamental step. Thanks in advance Andrew ___ 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: deployment on tomcat
Henrique, Before receiving this email, I got the error where it dosen't know how to get the properties file So I modify the ERXApplication.java file to log the wouserDir and it's : C:\java\apache-tomcat-6.0.26\bin so I modify the java file to go in the right path like this woUserDir = woUserDir+ File.separator +..+File.separator+webapps+File.separator+jcommops-ptf+File.separator+WEB-INF+File.separator+jcommops-ptf.woa; and the found the properties file and start the application It's like an environment variable is missing ... So after receiving your email : Could you give me the structure of your eclipse project, with the war configuration in pom.xml when you are creating the war. When I created my war there is no jcommops-ptf.jar, it's exploded in my WEB-INF/classes directory. According to what you said : WAR : MANIFEST WEB-INF Web.xml Classes (empty) Lib (all my lib) including : Jcommops-ptf.jar containing : Org.jcommops (my classes) Contents Resources (my wocomponents, myeomodel, info.plist,Properties) WebServerResources (js ...) But it says INFO: validateJarFile(C:\java\apache-tomcat-6.0.26\webapps\jcommops-ptf\WEB-INF lib\JavaXML-5.4.3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. O fending class: javax/servlet/Servlet.class [2010-6-18 16:18:43 CEST] main Initialized : er.extensions.ERXExtensions Classes and frameworks will be loaded out of the WEB-INF/lib and WEB-INF/classe directories. MainBundle will be set to jcommops-ptf java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.webobjects.jspservlet.WOServletAdaptor._applicationInit(WOServle Adaptor.java:421) at com.webobjects.jspservlet.WOServletAdaptor.initStatics(WOServletAdap or.java:95) at com.webobjects.jspservlet.WOServletAdaptor.init(WOServletAdaptor.jav :652) at er.extensions.jspservlet.ERXServletAdaptor.init(ERXServletAdaptor.ja a:66) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper java:1173) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:9 3) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardConte t.java:4187) at org.apache.catalina.core.StandardContext.start(StandardContext.java: 496) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBas .java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:7 1) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546 at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.ja a:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig. ava:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:50 ) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.jav :321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecyc eSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053 at org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:44 ) at org.apache.catalina.core.StandardService.start(StandardService.java: 19) at org.apache.catalina.core.StandardServer.start(StandardServer.java:71 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: java.lang.ExceptionInInitializerError at com.webobjects.appserver.WOApplication.primeApplication(WOApplicatio .java:665) ... 35 more Caused by: java.lang.IllegalStateException: Main bundle 'Properties' file can't be read. Did you run as a Java Application instead of a WOApplication in WOLip ? Please post your deployment configuration in the Wonder mailing
RE: deployment on tomcat
Ooops I forgot to answer to this question : Which WebObjects and Wonder version ? Wonder 5.0.0 Webobjects 5.4.3 I put all on maven There was an error with installing wonder on maven so I put the wonder library frameworks jar on my maven repository. Cheers, Laurent. -Message d'origine- De : Cros Laurent Envoyé : vendredi 18 juin 2010 16:37 À : 'Henrique Prange'; WebObjects-Dev Apple Objet : RE: deployment on tomcat Henrique, Before receiving this email, I got the error where it dosen't know how to get the properties file So I modify the ERXApplication.java file to log the wouserDir and it's : C:\java\apache-tomcat-6.0.26\bin so I modify the java file to go in the right path like this woUserDir = woUserDir+ File.separator +..+File.separator+webapps+File.separator+jcommops-ptf+File.separator+WEB-INF+File.separator+jcommops-ptf.woa; and the found the properties file and start the application It's like an environment variable is missing ... So after receiving your email : Could you give me the structure of your eclipse project, with the war configuration in pom.xml when you are creating the war. When I created my war there is no jcommops-ptf.jar, it's exploded in my WEB-INF/classes directory. According to what you said : WAR : MANIFEST WEB-INF Web.xml Classes (empty) Lib (all my lib) including : Jcommops-ptf.jar containing : Org.jcommops (my classes) Contents Resources (my wocomponents, myeomodel, info.plist,Properties) WebServerResources (js ...) But it says INFO: validateJarFile(C:\java\apache-tomcat-6.0.26\webapps\jcommops-ptf\WEB-INF lib\JavaXML-5.4.3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. O fending class: javax/servlet/Servlet.class [2010-6-18 16:18:43 CEST] main Initialized : er.extensions.ERXExtensions Classes and frameworks will be loaded out of the WEB-INF/lib and WEB-INF/classe directories. MainBundle will be set to jcommops-ptf java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.webobjects.jspservlet.WOServletAdaptor._applicationInit(WOServle Adaptor.java:421) at com.webobjects.jspservlet.WOServletAdaptor.initStatics(WOServletAdap or.java:95) at com.webobjects.jspservlet.WOServletAdaptor.init(WOServletAdaptor.jav :652) at er.extensions.jspservlet.ERXServletAdaptor.init(ERXServletAdaptor.ja a:66) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper java:1173) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:9 3) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardConte t.java:4187) at org.apache.catalina.core.StandardContext.start(StandardContext.java: 496) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBas .java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:7 1) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546 at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.ja a:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig. ava:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:50 ) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.jav :321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecyc eSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053 at org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:44 ) at org.apache.catalina.core.StandardService.start(StandardService.java: 19) at org.apache.catalina.core.StandardServer.start(StandardServer.java:71 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
WOWODC: latest news
Hello everyone, Don't forget that early bird pricing ends on in two days! And the topics list was updated in the last couple of days, check it out : http://www.wocommunity.org/wowodc10/topics.html See you in August! -- Pascal Robert prob...@macti.ca WOWODC 2010 : August 27th-29th, Montreal. wowodc.com ___ 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
WO Installer
Hi, I have using successfully in different platforms the WO.jar WOlips+ Eclipse Installer, I have downloaded from http://web.me.com/pccdonl/wo.jar . It works great. But since a while it hangs Extracting WebObjects Runtime, It seems like is not able to download that package. Please help. That installer is amazing and is so useful in platforms like Windows and Linux, It´s a shame it stops working. Julio Ortiz ___ 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: deployment on tomcat
Ok I successed to create my jcommops-ptf.jar with all in it. And tomcat started it correctly the app. Still don't have answer on my page but it's a library problem which I have to figure out but I'll see that on Monday Thanks you all for the help and have a good week end. Laurent. -Message d'origine- De : webobjects-dev-bounces+lcros=cls...@lists.apple.com [mailto:webobjects-dev-bounces+lcros=cls...@lists.apple.com] De la part de Cros Laurent Envoyé : vendredi 18 juin 2010 16:37 À : Henrique Prange; WebObjects-Dev Apple Objet : RE: deployment on tomcat Henrique, Before receiving this email, I got the error where it dosen't know how to get the properties file So I modify the ERXApplication.java file to log the wouserDir and it's : C:\java\apache-tomcat-6.0.26\bin so I modify the java file to go in the right path like this woUserDir = woUserDir+ File.separator +..+File.separator+webapps+File.separator+jcommops-ptf+File.separator+WEB-INF+File.separator+jcommops-ptf.woa; and the found the properties file and start the application It's like an environment variable is missing ... So after receiving your email : Could you give me the structure of your eclipse project, with the war configuration in pom.xml when you are creating the war. When I created my war there is no jcommops-ptf.jar, it's exploded in my WEB-INF/classes directory. According to what you said : WAR : MANIFEST WEB-INF Web.xml Classes (empty) Lib (all my lib) including : Jcommops-ptf.jar containing : Org.jcommops (my classes) Contents Resources (my wocomponents, myeomodel, info.plist,Properties) WebServerResources (js ...) But it says INFO: validateJarFile(C:\java\apache-tomcat-6.0.26\webapps\jcommops-ptf\WEB-INF lib\JavaXML-5.4.3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. O fending class: javax/servlet/Servlet.class [2010-6-18 16:18:43 CEST] main Initialized : er.extensions.ERXExtensions Classes and frameworks will be loaded out of the WEB-INF/lib and WEB-INF/classe directories. MainBundle will be set to jcommops-ptf java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.webobjects.jspservlet.WOServletAdaptor._applicationInit(WOServle Adaptor.java:421) at com.webobjects.jspservlet.WOServletAdaptor.initStatics(WOServletAdap or.java:95) at com.webobjects.jspservlet.WOServletAdaptor.init(WOServletAdaptor.jav :652) at er.extensions.jspservlet.ERXServletAdaptor.init(ERXServletAdaptor.ja a:66) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper java:1173) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:9 3) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardConte t.java:4187) at org.apache.catalina.core.StandardContext.start(StandardContext.java: 496) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBas .java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:7 1) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546 at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.ja a:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig. ava:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:50 ) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.jav :321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecyc eSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053 at org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:44 ) at org.apache.catalina.core.StandardService.start(StandardService.java: 19) at org.apache.catalina.core.StandardServer.start(StandardServer.java:71 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce sorImpl.java:25) at
[OT] Service Mapping Description with REST?
I was wondering if REST had something similar to WSDL, eg a standard that let you find out available services. And look like it exist : http://groups.google.com/group/json-schema/web/service-mapping-description-proposal I played with this a bit by doing a static SMD file for a ERRest service and using Dojo RPC service stuff, and a GET request works fine. I will play with it even more, but I was wondering if any of you have worked with this? -- Pascal Robert prob...@macti.ca WOWODC 2010 : August 27th-29th, Montreal. wowodc.com ___ 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: Setting enctype = multipart/form-data via D2W Rule
Thanks Anjo, but I'm still not seeing it. I added a rule as: Priority = 100 Left-Hand Side = true Right-Hand Side Key = formEncoding Right-Hand Side Value = multipart/form-data Class = com.webobjects.directtoweb.Assignment Should it be a different class? On Jun 18, 2010, at 1:02 AM, Anjo Krank wrote: whatever = formEncoding = multipart/form-data [100] Am 18.06.2010 um 04:10 schrieb Bernard Bradley: Hi to all the D2W gurus, I'm struggling with getting the ERD2WEditAttachment component to work and I think it has to do with setting enctype = multipart/ form-data properly. The docs for ERD2WEditAttachment says this is a prerequisite rule. See http://webobjects.mdimension.com/hudson/job/Wonder54/javadoc/er/directtoweb/components/attachments/ERD2WEditAttachment.html I have an Entity of User and a relationship to ERAttachment named userImage. I can get the ERD2WEditAttachment component to display on the Edit User page for the User.userImage property. I can select my file, but then it just says Upload Starting ... and never returns. What should the rule look like to get the enctype set properly? What else might I be missing? Thanks, Berney ___ 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/anjo %40krank.net This email sent to a...@krank.net ___ 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/berneyb %40mac.com This email sent to bern...@mac.com ___ 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: Setting enctype = multipart/form-data via D2W Rule
Should it be a different class? Nope. Your look's inspect page must have this bound to its form, though. Like: EditingForm: ERXOptionalForm { enctype = d2wContext.formEncoding; hasForm = d2wContext.hasForm; multipleSubmit = true; name = EditForm; } Cheers, Anjo Am 18.06.2010 um 18:46 schrieb Bernard Bradley: Thanks Anjo, but I'm still not seeing it. I added a rule as: Priority = 100 Left-Hand Side = true Right-Hand Side Key = formEncoding Right-Hand Side Value = multipart/form-data Class = com.webobjects.directtoweb.Assignment Should it be a different class? On Jun 18, 2010, at 1:02 AM, Anjo Krank wrote: whatever = formEncoding = multipart/form-data [100] Am 18.06.2010 um 04:10 schrieb Bernard Bradley: Hi to all the D2W gurus, I'm struggling with getting the ERD2WEditAttachment component to work and I think it has to do with setting enctype = multipart/form-data properly. The docs for ERD2WEditAttachment says this is a prerequisite rule. See http://webobjects.mdimension.com/hudson/job/Wonder54/javadoc/er/directtoweb/components/attachments/ERD2WEditAttachment.html I have an Entity of User and a relationship to ERAttachment named userImage. I can get the ERD2WEditAttachment component to display on the Edit User page for the User.userImage property. I can select my file, but then it just says Upload Starting ... and never returns. What should the rule look like to get the enctype set properly? What else might I be missing? Thanks, Berney ___ 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/anjo%40krank.net This email sent to a...@krank.net ___ 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/berneyb%40mac.com This email sent to bern...@mac.com ___ 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: [OT] Service Mapping Description with REST?
I haven't worked with this but came across WADL generated by jersey (REST Library for java) https://wadl.dev.java.net/ Alex Le 18 juin 2010 à 18:26, Pascal Robert a écrit : I was wondering if REST had something similar to WSDL, eg a standard that let you find out available services. And look like it exist : http://groups.google.com/group/json-schema/web/service-mapping-description-proposal I played with this a bit by doing a static SMD file for a ERRest service and using Dojo RPC service stuff, and a GET request works fine. I will play with it even more, but I was wondering if any of you have worked with this? -- Pascal Robert prob...@macti.ca WOWODC 2010 : August 27th-29th, Montreal. wowodc.com ___ 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/alexis.tual%40gmail.com This email sent to alexis.t...@gmail.com ___ 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: Setting enctype = multipart/form-data via D2W Rule
Hi Berney, On 18-Jun-10, at 9:46 AM, Bernard Bradley wrote: Thanks Anjo, but I'm still not seeing it. I added a rule as: Priority = 100 Left-Hand Side = true Right-Hand Side Key = formEncoding -- From the doc you linked to, shouldn't this be enctype? Right-Hand Side Value = multipart/form-data Class = com.webobjects.directtoweb.Assignment Should it be a different class? Are you using ModernLook? I didn't need to do anything using the brand new ERMD2WEditAttachment. Maybe you could use that component instead? David On Jun 18, 2010, at 1:02 AM, Anjo Krank wrote: whatever = formEncoding = multipart/form-data [100] Am 18.06.2010 um 04:10 schrieb Bernard Bradley: Hi to all the D2W gurus, I'm struggling with getting the ERD2WEditAttachment component to work and I think it has to do with setting enctype = multipart/ form-data properly. The docs for ERD2WEditAttachment says this is a prerequisite rule. See http://webobjects.mdimension.com/ hudson/job/Wonder54/javadoc/er/directtoweb/components/attachments/ ERD2WEditAttachment.html I have an Entity of User and a relationship to ERAttachment named userImage. I can get the ERD2WEditAttachment component to display on the Edit User page for the User.userImage property. I can select my file, but then it just says Upload Starting ... and never returns. What should the rule look like to get the enctype set properly? What else might I be missing? Thanks, Berney ___ 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/anjo% 40krank.net This email sent to a...@krank.net ___ 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/berneyb% 40mac.com This email sent to bern...@mac.com ___ 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/programmingosx %40mac.com This email sent to programming...@mac.com ___ 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: [OT] Service Mapping Description with REST?
On Jun 18, 2010, at 12:26 PM, Pascal Robert wrote: I was wondering if REST had something similar to WSDL, eg a standard that let you find out available services. I've heard of WSDL 2.0 (^_~) http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/ To be fair, I haven't actually seen a service that used it though. And look like it exist : http://groups.google.com/group/json-schema/web/service-mapping-description-proposal I played with this a bit by doing a static SMD file for a ERRest service and using Dojo RPC service stuff, and a GET request works fine. I will play with it even more, but I was wondering if any of you have worked with this? -- Pascal Robert prob...@macti.ca WOWODC 2010 : August 27th-29th, Montreal. wowodc.com ___ 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/ramsey%40xeotech.com This email sent to ram...@xeotech.com ___ 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