Re: wget error on Linux Deployment Distro

2018-06-22 Thread Jeff Schmitz
Sorry, the error was actually on this command:

$ echo "deb [allow-insecure=yes] http://packages.wocommunity.org/$DIST 
<http://packages.wocommunity.org/$DIST> $SUITE main" | sudo tee 
/etc/apt/sources.list.d/wocommunity.list

I did set the SUITE and DIST environment variables to armhf and Wheezy 
respectively

Thanks!
Jeff

> On Jun 22, 2018, at 2:52 PM, Jeff Schmitz  wrote:
> 
> Hello List,
>   I'm installing the deployment environment on Raspbian per 
> 
> https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+Debian+or+Ubuntu
>  
> <https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+Debian+or+Ubuntu>
> 
> And when I do:
> 
> wget -qO- http://packages.wocommunity.org/ubuntu/signature.gpg | sudo apt-key 
> add -
> 
> I get the below errors.  Are the packages still out there?
> 
> Ign:8 https://packages.wocommunity.org/Wheezy armhf/main Translation-en_US 
> Ign:5 http://packages.wocommunity.org/Wheezy armhf/main all Packages 
> Ign:5 https://packages.wocommunity.org/Wheezy armhf/main all Packages
> Err:6 http://packages.wocommunity.org/Wheezy armhf/main armhf Packages 
> 404 Not Found
> Ign:6 https://packages.wocommunity.org/Wheezy armhf/main armhf Packages 
> Fetched 15.0 kB in 9s (1,640 B/s) 
> Reading package lists... Done
> W: The repository 'http://packages.wocommunity.org/Wheezy armhf Release' does 
> not have a Release file.
> N: Data from such a repository can't be authenticated and is therefore 
> potentially dangerous to use.
> N: See apt-secure(8) manpage for repository creation and user configuration 
> details.
> E: Failed to fetch 
> http://packages.wocommunity.org/Wheezy/dists/armhf/main/binary-armhf/Packages 
> 404 Not Found
> E: Failed to fetch 
> https://packages.wocommunity.org/Wheezy/dists/armhf/main/i18n/Translation-en 
> 404 Not Found
> E: Failed to fetch 
> https://packages.wocommunity.org/Wheezy/dists/armhf/main/i18n/Translation-en_US
>  404 Not Found
> E: Some index files failed to download. They have been ignored, or old ones 
> used instead.
> Err:6 http://packages.wocommunity.org/Wheezy armhf/main armhf Packages
>  
>   404  Not Found
> Ign:6 https://packages.wocommunity.org/Wheezy armhf/main armhf Packages   
>  
> Fetched 15.0 kB in 9s (1,640 B/s) 
>  
> Reading package lists... Done
> W: The repository 'http://packages.wocommunity.org/Wheezy armhf Release' does 
> not have a Release file.
> N: Data from such a repository can't be authenticated and is therefore 
> potentially dangerous to use.
> N: See apt-secure(8) manpage for repository creation and user configuration 
> details.
> E: Failed to fetch 
> http://packages.wocommunity.org/Wheezy/dists/armhf/main/binary-armhf/Packages 
>  404  Not Found
> E: Failed to fetch 
> https://packages.wocommunity.org/Wheezy/dists/armhf/main/i18n/Translation-en  
> 404  Not Found
> E: Failed to fetch 
> https://packages.wocommunity.org/Wheezy/dists/armhf/main/i18n/Translation-en_US
>   404  Not Found
> E: Some index files failed to download. They have been ignored, or old ones 
> used instead.
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/jeffschmitz%40icloud.com
> 
> This email sent to jeffschm...@icloud.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


wget error on Linux Deployment Distro

2018-06-22 Thread Jeff Schmitz

Hello List,
  I'm installing the deployment environment on Raspbian per 

https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+Debian+or+Ubuntu

And when I do:

wget -qO- http://packages.wocommunity.org/ubuntu/signature.gpg | sudo apt-key 
add -

I get the below errors.  Are the packages still out there?

Ign:8 https://packages.wocommunity.org/Wheezy armhf/main Translation-en_US 
Ign:5 http://packages.wocommunity.org/Wheezy armhf/main all Packages 
Ign:5 https://packages.wocommunity.org/Wheezy armhf/main all Packages
Err:6 http://packages.wocommunity.org/Wheezy armhf/main armhf Packages 
404 Not Found
Ign:6 https://packages.wocommunity.org/Wheezy armhf/main armhf Packages 
Fetched 15.0 kB in 9s (1,640 B/s) 
Reading package lists... Done

W: The repository 'http://packages.wocommunity.org/Wheezy armhf Release' does 
not have a Release file.
N: Data from such a repository can't be authenticated and is therefore 
potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration 
details.
E: Failed to fetch 
http://packages.wocommunity.org/Wheezy/dists/armhf/main/binary-armhf/Packages 
404 Not Found
E: Failed to fetch 
https://packages.wocommunity.org/Wheezy/dists/armhf/main/i18n/Translation-en 
404 Not Found
E: Failed to fetch 
https://packages.wocommunity.org/Wheezy/dists/armhf/main/i18n/Translation-en_US 
404 Not Found
E: Some index files failed to download. They have been ignored, or old ones 
used instead.
Err:6 http://packages.wocommunity.org/Wheezy armhf/main armhf Packages         
  404  Not Found
Ign:6 https://packages.wocommunity.org/Wheezy armhf/main armhf Packages        
Fetched 15.0 kB in 9s (1,640 B/s)                                              
Reading package lists... Done
W: The repository 'http://packages.wocommunity.org/Wheezy armhf Release' does 
not have a Release file.
N: Data from such a repository can't be authenticated and is therefore 
potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration 
details.
E: Failed to fetch 
http://packages.wocommunity.org/Wheezy/dists/armhf/main/binary-armhf/Packages  
404  Not Found
E: Failed to fetch 
https://packages.wocommunity.org/Wheezy/dists/armhf/main/i18n/Translation-en  
404  Not Found
E: Failed to fetch 
https://packages.wocommunity.org/Wheezy/dists/armhf/main/i18n/Translation-en_US 
 404  Not Found
E: Some index files failed to download. They have been ignored, or old ones 
used instead.

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Application no longer responding after OSX and Server update

2018-03-07 Thread Jeff Schmitz
Figured it out.  I had the write apache config files, but the wrong apache.  I 
was running the MacOS built in one instead of the one I installed from MacPorts.



> On Mar 7, 2018, at 6:18 AM, Jeff Schmitz <jeffschm...@icloud.com> wrote:
> 
> I’m having the same "The requested URL /cgi-bin/WebObjects/… was not found on 
> this server"  error on a new server I’m setting up.  I brought the config 
> files over from a working machine, changed all the “host” parameters to the 
> new machine name, and brought over the same apache4.2 mod_WebObjects.so from 
> the working machine. 
> 
> I’m running:
> Server version: Apache/2.4.28 (Unix)
> Server built:   Oct 29 2017 19:28:54
> 
>  womonitor starts the app fine, no errors.
> 
> Anything else to check?
> 
>> On Jun 26, 2017, at 2:20 PM, Louis Demers <louisdem...@mac.com 
>> <mailto:louisdem...@mac.com>> wrote:
>> 
>> Yes, it actually mucked with 
>> /Library/Server/Web/Config/apache2/httpd_server_app.conf and removed
>> 
>> the two lines i had added ...
>> 
>> # Including WebObjects Configs
>> Include 
>> /Library/WebObjects/Versions/WebObjects543/System/Library/WebObjects/Adaptors/Apache2.4/apache.conf
>> 
>> 
>> I'm back up...
>> 
>> Thanks...
>> 
>> Louis Demers Eng.
>> louisdem...@mac.com <mailto:louisdem...@mac.com>
>> 
>> 
>> 
>>> On Jun 26, 2017, at 14:22, Chuck Hill <ch...@gevityinc.com 
>>> <mailto:ch...@gevityinc.com>> wrote:
>>> 
>>> Hi Louis,
>>>  
>>> You should always make a back up of httpd.conf when doing this.  Apple 
>>> loves to fiddle.
>>>  
>>> Not Found
>>> The requested URL /cgi-bin/WebObjects/Alexandria was not found on this 
>>> server.
>>>  
>>> Means that it is not seeing cgi-bin as a script directory.  Check these 
>>> sections of the Apache config:
>>>  
>>> #   
>>> 
>>>
>>> # ScriptAlias: This controls which directories contain server scripts.  
>>> 
>>>
>>> # ScriptAliases are essentially the same as Aliases, except that
>>> 
>>>
>>> # documents in the target directory are treated as applications and 
>>> 
>>>
>>> # run by the server when requested rather than as documents sent to the 
>>> 
>>>
>>> # client.  The same rules about trailing "/" apply to ScriptAlias   
>>> 
>>>
>>> # directives as to Alias.   
>>> 
>>>
>>> #   
>>> 
>>>
>>> ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) 
>>> "/Library/WebServer/CGI-Executables/$1"
>>>  
>>> #   
>>> 
>>>
>>> # "/Library/WebServer/CGI-Executables" should be changed to whatever your 
>>> ScriptAliased   
>>> 
>>> # CGI directory exists, if you have that configured.
>>> 
>>>
>>> #   
>>> 
>>>
>>> 
>>> AllowOverride None
>>> Options None
>>> Require all granted
>>> 
>>>  
>>>  
>>> Chuck
>>>  
>>> From: Webobjects-dev 
>>> <webobjects-dev-bounces+chill=gevityinc@lists

Re: Application no longer responding after OSX and Server update

2018-03-07 Thread Jeff Schmitz
I’m having the same "The requested URL /cgi-bin/WebObjects/… was not found on 
this server"  error on a new server I’m setting up.  I brought the config files 
over from a working machine, changed all the “host” parameters to the new 
machine name, and brought over the same apache4.2 mod_WebObjects.so from the 
working machine. 

I’m running:
Server version: Apache/2.4.28 (Unix)
Server built:   Oct 29 2017 19:28:54

 womonitor starts the app fine, no errors.

Anything else to check?

> On Jun 26, 2017, at 2:20 PM, Louis Demers  wrote:
> 
> Yes, it actually mucked with 
> /Library/Server/Web/Config/apache2/httpd_server_app.conf and removed
> 
> the two lines i had added ...
> 
> # Including WebObjects Configs
> Include 
> /Library/WebObjects/Versions/WebObjects543/System/Library/WebObjects/Adaptors/Apache2.4/apache.conf
> 
> 
> I'm back up...
> 
> Thanks...
> 
> Louis Demers Eng.
> louisdem...@mac.com 
> 
> 
> 
>> On Jun 26, 2017, at 14:22, Chuck Hill > > wrote:
>> 
>> Hi Louis,
>>  
>> You should always make a back up of httpd.conf when doing this.  Apple loves 
>> to fiddle.
>>  
>> Not Found
>> The requested URL /cgi-bin/WebObjects/Alexandria was not found on this 
>> server.
>>  
>> Means that it is not seeing cgi-bin as a script directory.  Check these 
>> sections of the Apache config:
>>  
>> #
>>  
>>  
>> # ScriptAlias: This controls which directories contain server scripts.   
>>  
>>  
>> # ScriptAliases are essentially the same as Aliases, except that 
>>  
>>  
>> # documents in the target directory are treated as applications and  
>>  
>>  
>> # run by the server when requested rather than as documents sent to the  
>>  
>>  
>> # client.  The same rules about trailing "/" apply to ScriptAlias
>>  
>>  
>> # directives as to Alias.
>>  
>>  
>> #
>>  
>>  
>> ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) 
>> "/Library/WebServer/CGI-Executables/$1"
>>  
>> #
>>  
>>  
>> # "/Library/WebServer/CGI-Executables" should be changed to whatever your 
>> ScriptAliased
>> 
>> # CGI directory exists, if you have that configured. 
>>  
>>  
>> #
>>  
>>  
>> 
>> AllowOverride None
>> Options None
>> Require all granted
>> 
>>  
>>  
>> Chuck
>>  
>> From: Webobjects-dev 
>> > > on 
>> behalf of Louis Demers >
>> Date: Monday, June 26, 2017 at 11:15 AM
>> To: "webobjects-dev@lists.apple.com " 
>> >
>> Subject: Application no longer responding after OSX and Server update
>>  
>> Hi,
>> 
>> applied to our OSX server this morning the latest os and server versions. 
>> Now ou app is no longer responding 
>> 
>> wotasd is running without error
>> 
>> Javamonitor is running without error
>> 
>> application is running whether started from Javamonitor or manually
>> 
>> accessing the application  with 
>> http://alexandria.obzerv.com/cgi-bin/WebObjects/Alexandria 
>>  yields 
>> 
>> Not Found
>> The requested URL /cgi-bin/WebObjects/Alexandria was not found on this 
>> server.
>> 
>> 
>> accessing the application  with http://alexandria.obzerv.com:2001/ 
>>  yields
>> 
>> Safari can't open page
>> Safari can't open page ... because the server unexpectedly dropped the 

EOGenerator problem

2018-01-29 Thread Jeff Schmitz
Hello List,
   I recently updated to Eclipse Oxygen and somewhere in the process my 
EOGenerator behavior has been changed.  Specifically, where it used to generate 
“set” functions like this:

public void setMiscState1(Boolean value) {
if (_Entry.LOG.isDebugEnabled()) {
_Entry.LOG.debug( "updating miscState1 from " + miscState1() + " to " + 
value);
}
takeStoredValueForKey(value, _Entry.MISC_STATE1_KEY);
  }

It’s now generating them like below, which causes a null pointer exception when 
miscState1() happens to return null.

  public void setMiscState1(Boolean value) {
log.debug( "updating miscState1 from {} to {}", miscState1(), value);
takeStoredValueForKey(value, _Entry.MISC_STATE1_KEY);
  }

Any idea how I can get back my old EOGenerator functionality?  I have tried 
following the instructions here:  
https://wiki.wocommunity.org/display/WOL/EOGenerator 
 and I specified the 
wondierEntity files in my EOGenerator preferences as suggested.

Thanks!
Jeff ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: File update issues with Eclipse

2017-12-22 Thread Jeff Schmitz
I created a new workspace (the old one had been updated from Eclipse Indigo), 
re-imported my projects and all is well now.



> On Dec 22, 2017, at 5:18 PM, Jeff Schmitz <jeffschm...@icloud.com> wrote:
> 
> A little more info, when I run ‘ant install’ from the command line I get:
> 
> /Users/netBrackets/git/netBracketsFW/netBracketsFW/build.xml:89: taskdef 
> class org.objectstyle.woproject.ant.WOCompile cannot be found
> 
> I’ll keep digging.
> 
>> On Dec 22, 2017, at 4:55 PM, Jeff Schmitz <jeffschm...@icloud.com 
>> <mailto:jeffschm...@icloud.com>> wrote:
>> 
>> I’m seeing a problem with one of my Ant build scripts after moving to 
>> Oxygen. Specifically my old Ant script to build and install a framework (see 
>> screenshot) dies almost immediately with no messages.  The same script works 
>> fine if I use it within Indigo Eclipse.  I’ve copied my full script below.  
>> Has anyone else seen this problem?  Is there a plugin besides 
>> WOLips/WOGoodies that I forgot to install maybe?  I’m using High Sierra.
>> 
>> 
>> <BuildCommand.jpg>
>> 
>> 
>> 
>> 
>>  > depends="init.build,build.woframework,javaclient,package" />
>> 
>>  > depends="init.install,build.woframework,javaclient" />
>> 
>>  
>>  
>>  
>>  
>> 
>>  
>>  
>>  
>> 
>>  > value="${user.home}${file.separator}Library${file.separator}Application 
>> Support${file.separator}WOLips${file.separator}wolips.properties" />
>>  
>>  
>>  
>>  
>>  > />
>>  
>>  
>>  
>>  
>>  
>> 
>>  > />
>>  
>>  > value="${project.name.lowercase}" />
>>  
>> 
>>  
>>
>> 
>>  
>>  
>>  
>>  
>> 
>>  
>>  
>>  
>>  
>> 
>>   
>> > compression="gzip"
>> longfile="gnu">
>>   
>> 
>>   
>> 
>>  
>> 
>>  
>>  
>>  > classname="org.objectstyle.woproject.ant.WOFramework"/>
>> 
>>  > destDir="${dest.dir}" customInfoPListContent="${customInfoPListContent}" 
>> principalClass="${principalClass}" 
>> eoAdaptorClassName="${eoAdaptorClassName}" javaVersion="${javaVersion}" 
>> cfbundleversion="${cfBundleVersion}" 
>> cfbundleshortversion="${cfBundleShortVersion}" cfbundleID="${cfBundleID}">
>>  
>>  > name="woproject/classes.include.patternset" />
>>  > name="woproject/classes.exclude.patternset" />
>>  > name="**/client/**/*.*"/>
>>  
>> 
>>  
>>  > name="woproject/wsresources.include.patternset" />
>>  > name="woproject/wsresources.exclude.patternset" />
>>  
>> 
>>  
>>  > name="woproject/resources.include.patternset" />
>>  > name="woproject/resources.exclude.patternset" />
>>  > name="**/client/**/*.*"/>
>>  
>> 
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  > dir="${dest.dir}/${build.framework.name}.framework/WebServerResources/Java" 
>> />
>>  > jarfile="${dest.dir}/${build.framework.name}.framework/WebServerResources/Java/${build.framework.name}.jar"/>
>>  
>> 
>>  
>>  > classname="org.objectstyle.woproject.ant.WOCompile" />
>> 
>>  
>> 
>>  
>>  > eclipse="true" />
>&

Re: File update issues with Eclipse

2017-12-22 Thread Jeff Schmitz
A little more info, when I run ‘ant install’ from the command line I get:

/Users/netBrackets/git/netBracketsFW/netBracketsFW/build.xml:89: taskdef class 
org.objectstyle.woproject.ant.WOCompile cannot be found

I’ll keep digging.

> On Dec 22, 2017, at 4:55 PM, Jeff Schmitz <jeffschm...@icloud.com> wrote:
> 
> I’m seeing a problem with one of my Ant build scripts after moving to Oxygen. 
> Specifically my old Ant script to build and install a framework (see 
> screenshot) dies almost immediately with no messages.  The same script works 
> fine if I use it within Indigo Eclipse.  I’ve copied my full script below.  
> Has anyone else seen this problem?  Is there a plugin besides 
> WOLips/WOGoodies that I forgot to install maybe?  I’m using High Sierra.
> 
> 
> <BuildCommand.jpg>
> 
> 
> 
> 
>depends="init.build,build.woframework,javaclient,package" />
> 
>depends="init.install,build.woframework,javaclient" />
> 
>   
>   
>   
>   
> 
>   
>   
>   
> 
>value="${user.home}${file.separator}Library${file.separator}Application 
> Support${file.separator}WOLips${file.separator}wolips.properties" />
>   
>   
>   
>   
>/>
>   
>   
>   
>   
>   
> 
>/>
>   
>value="${project.name.lowercase}" />
>   
> 
>   
>
> 
>   
>   
>   
>   
> 
>   
>   
>   
>   
> 
>   
>  compression="gzip"
> longfile="gnu">
>   
> 
>   
> 
>   
> 
>   
>   
>classname="org.objectstyle.woproject.ant.WOFramework"/>
> 
>destDir="${dest.dir}" customInfoPListContent="${customInfoPListContent}" 
> principalClass="${principalClass}" eoAdaptorClassName="${eoAdaptorClassName}" 
> javaVersion="${javaVersion}" cfbundleversion="${cfBundleVersion}" 
> cfbundleshortversion="${cfBundleShortVersion}" cfbundleID="${cfBundleID}">
>   
>name="woproject/classes.include.patternset" />
>name="woproject/classes.exclude.patternset" />
>name="**/client/**/*.*"/>
>   
> 
>   
>name="woproject/wsresources.include.patternset" />
>name="woproject/wsresources.exclude.patternset" />
>   
> 
>   
>name="woproject/resources.include.patternset" />
>name="woproject/resources.exclude.patternset" />
>name="**/client/**/*.*"/>
>   
> 
>   
>   
>   
>   
>   
>   
>   
>dir="${dest.dir}/${build.framework.name}.framework/WebServerResources/Java" />
>jarfile="${dest.dir}/${build.framework.name}.framework/WebServerResources/Java/${build.framework.name}.jar"/>
>   
> 
>   
>classname="org.objectstyle.woproject.ant.WOCompile" />
> 
>   
> 
>   
>eclipse="true" />
>eclipse="true" />
>   
>   
>/>
>/>
>   
>   
>   
>   
>   
>   
>   
>   
>   
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
>> 
>> 
>>> On Dec 13, 2017, at 2:55 AM, Markus Ruggiero <mailingli...@kataputt.com 
>>> <mailto:mailingli...@kataputt.com>> wrote:
>>> 
>>> 
>>>> On 9 Dec 

Re: Set case insensitive unique index with ERXMigrations

2017-04-17 Thread Jeff Schmitz
Just to finish this out, I ended up having to use the collation option as I 
couldn’t figure out how to implement Maik’s option in Frontbase SQL.  In the 
end, my table creation where the name field is created to be case insensitive 
looks like this in my migration function.  Note that the first sql statement 
below is unique to Frontbase.


  String sql = "CREATE COLLATION CASE_INSENSITIVE FOR 
INFORMATION_SCHEMA.SQL_TEXT FROM EXTERNAL('CaseInsensitive.coll1');";
  this.execSql(database, sql);


  sql = "CREATE TABLE \"t_user\" ( " +
  " \"c_credential\" VARCHAR(50) NOT NULL, " +
  " \"c_email\" VARCHAR(255) NOT NULL, " +
  " \"c_first\" VARCHAR(50) NOT NULL, " +
  " \"id\" INTEGER NOT NULL, " +
  " \"c_last\" VARCHAR(50) NOT NULL, " +
  " \"c_name\" VARCHAR(50) NOT NULL COLLATE CASE_INSENSITIVE, " +
  " );";
  this.execSql(database, sql);

  sql = "SET UNIQUE = 100 FOR \"t_user\";";
  this.execSql(database, sql);
  
  sql = "ALTER TABLE \"T_USER\" ADD PRIMARY KEY (\"ID\") NOT DEFERRABLE 
INITIALLY IMMEDIATE;";
  this.execSql(database, sql);

ERXMigrationTable userTable = database.existingTableNamed("t_user");
userTable.addUniqueIndex("uniqueUser", 
userTable.existingColumnNamed("c_name"));

One other note is that if you have an existing table that you don’t want to 
have to drop and recreate I’m not sure how you would add the collate command to 
an existing column.

Jeff


> On Apr 14, 2017, at 10:18 AM, Musall, Maik <m...@selbstdenker.ag 
> <mailto:m...@selbstdenker.ag>> wrote:
> 
> I doubt you can create a function based index through the ERXMigration API.
> Use plain SQL for this one.
> 
> Maik
> 
>> Am 14.04.2017 um 15:12 schrieb Jeff Schmitz <jeffschm...@icloud.com 
>> <mailto:jeffschm...@icloud.com>>:
>> 
>> Just getting around to adding this, but can’t figure out how to do this as 
>> part of my migration code:
>> 
>> Currently I have:
>> userTable.addUniqueIndex("uniqueUser", 
>> userTable.existingColumnNamed("c_name"));
>> 
>> Is there something along the lines of:
>> 
>> userTable.addCaseInsensitiveUniqueIndex("uniqueUser", 
>> userTable.existingColumnNamed("c_name"));
>> 
>> Or is there some way of adding such a constraint using EOModeler?
>> 
>> thanks,
>> 
>> Jeff
>> 
>> 
>>> On Mar 27, 2017, at 3:52 AM, Musall, Maik <m...@selbstdenker.ag 
>>> <mailto:m...@selbstdenker.ag>> wrote:
>>> 
>>> Hi,
>>> 
>>> I would just create a unique function based index, like this:
>>> 
>>> CREATE UNIQUE INDEX indexname ON MyTable( UPPER(columnName) );
>>> 
>>> No extensions required. Works with every RDBMS that supports function based 
>>> indexes.
>>> 
>>> Maik
>>> 
>>>> Am 27.03.2017 um 02:29 schrieb Paul Hoadley <pa...@logicsquad.net 
>>>> <mailto:pa...@logicsquad.net>>:
>>>> 
>>>> Hi Jeff,
>>>> 
>>>> On 25 Mar 2017, at 04:16, Jeff Schmitz <jeffschm...@icloud.com 
>>>> <mailto:jeffschm...@icloud.com>> wrote:
>>>> 
>>>>> Just a quick question on how to create a case insensitive unique index in 
>>>>> an ERXMigration?
>>>> 
>>>> As Samuel mentioned, this is going to be database-dependent. We’ve been 
>>>> using PostgreSQL’s CITEXT type for a year or so now, and it works as 
>>>> designed. Because it’s an extension type, you need to run:
>>>> 
>>>> CREATE EXTENSION IF NOT EXISTS citext;
>>>> 
>>>> at some point—we do this in a migration upgrade(). You can then add and 
>>>> alter columns and add indexes in the usual way. There’s a brief discussion 
>>>> on performance here:
>>>> 
>>>> http://stackoverflow.com/questions/31133603/in-postgresql-weird-issue-about-citext-performance
>>>>  
>>>> <http://stackoverflow.com/questions/31133603/in-postgresql-weird-issue-about-citext-performance>
>>>> 
>>>> though that’s not specific to indexing that column type.
>>>> 
>>>> (Finally, if you are using PostgreSQL, and you do need to add this 
>>>> extension to an existing database during a migration, there is a small 
>>>> issue with t

Re: Set case insensitive unique index with ERXMigrations

2017-04-14 Thread Jeff Schmitz
Just getting around to adding this, but can’t figure out how to do this as part 
of my migration code:

Currently I have:
userTable.addUniqueIndex("uniqueUser", 
userTable.existingColumnNamed("c_name"));

Is there something along the lines of:

userTable.addCaseInsensitiveUniqueIndex("uniqueUser", 
userTable.existingColumnNamed("c_name"));

Or is there some way of adding such a constraint using EOModeler?

thanks,

Jeff


> On Mar 27, 2017, at 3:52 AM, Musall, Maik <m...@selbstdenker.ag 
> <mailto:m...@selbstdenker.ag>> wrote:
> 
> Hi,
> 
> I would just create a unique function based index, like this:
> 
> CREATE UNIQUE INDEX indexname ON MyTable( UPPER(columnName) );
> 
> No extensions required. Works with every RDBMS that supports function based 
> indexes.
> 
> Maik
> 
>> Am 27.03.2017 um 02:29 schrieb Paul Hoadley <pa...@logicsquad.net 
>> <mailto:pa...@logicsquad.net>>:
>> 
>> Hi Jeff,
>> 
>> On 25 Mar 2017, at 04:16, Jeff Schmitz <jeffschm...@icloud.com 
>> <mailto:jeffschm...@icloud.com>> wrote:
>> 
>>> Just a quick question on how to create a case insensitive unique index in 
>>> an ERXMigration?
>> 
>> As Samuel mentioned, this is going to be database-dependent. We’ve been 
>> using PostgreSQL’s CITEXT type for a year or so now, and it works as 
>> designed. Because it’s an extension type, you need to run:
>> 
>> CREATE EXTENSION IF NOT EXISTS citext;
>> 
>> at some point—we do this in a migration upgrade(). You can then add and 
>> alter columns and add indexes in the usual way. There’s a brief discussion 
>> on performance here:
>> 
>> http://stackoverflow.com/questions/31133603/in-postgresql-weird-issue-about-citext-performance
>>  
>> <http://stackoverflow.com/questions/31133603/in-postgresql-weird-issue-about-citext-performance>
>> 
>> though that’s not specific to indexing that column type.
>> 
>> (Finally, if you are using PostgreSQL, and you do need to add this extension 
>> to an existing database during a migration, there is a small issue with the 
>> JDBC info not being available to EOF quite early enough, which is easily 
>> fixed. I can dig up the thread if you need it.)
>> 
>> 
>> -- 
>> Paul Hoadley
>> http://logicsquad.net/ <http://logicsquad.net/>
>> 
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/maik%40selbstdenker.ag
>>  
>> <https://lists.apple.com/mailman/options/webobjects-dev/maik%40selbstdenker.ag>
>> 
>> This email sent to m...@selbstdenker.ag <mailto:m...@selbstdenker.ag>
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
> <mailto:Webobjects-dev@lists.apple.com>)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/jeffschmitz%40icloud.com
>  
> <https://lists.apple.com/mailman/options/webobjects-dev/jeffschmitz%40icloud.com>
> 
> This email sent to jeffschm...@icloud.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Set case insensitive unique index with ERXMigrations

2017-03-24 Thread Jeff Schmitz
Just a quick question on how to create a case insensitive unique index in an 
ERXMigration?  e.g. I’d like to apply it to the below index.

ERXMigrationColumn[] entryColumns = { 
entryTable.existingColumnNamed("poolID"), 
entryTable.existingColumnNamed("c_name") };
entryTable.addUniqueIndex("poolUniqueEntry", entryColumns);

Also, how much is using a case insensitive unique index likely to affect 
performance on inserts?

Thanks!
Jeff ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO Consulting?

2017-03-24 Thread Jeff Schmitz
I have the same question for any deployment gurus.  


> On Mar 23, 2017, at 11:39 AM, Scott Winn  wrote:
> 
> Hello, 
> 
> Does anyone do freelance work with WebObjects?  I have a fairly simple (i.e. 
> no custom frameworks, just straight java and WO components) project that 
> needs a little more help than I know how to give it.  I have been looking 
> around, but WebObjects development isn’t something that gets advertised much. 
>  
> 
> If you’d like an easy side project or know anyone that would, any response or 
> referral is appreciated.  
> 
> Thanks, 
> 
> Scott
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/jeffschmitz%40icloud.com
> 
> This email sent to jeffschm...@icloud.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Instance not found on dev machine

2016-12-24 Thread Jeff Schmitz
Hi Tim,

Yeah, that’s what I’m doing now.  However I need to work on adding 
SSL/certificates etc. to my deployment environment so would like to be able to 
try it out in my dev environment first, among other reasons to use apache for 
development as pointed out on the webobjects wiki pages.  

Thanks,

Jeff

> On Dec 19, 2016, at 5:47 PM, Tim Worman <li...@thetimmy.com> wrote:
> 
> Hi Jeff,
> 
> I know this doesn’t answer your question or get you closer to solving the 
> "dev environment voodoo," but, have you considered just running with 
> DirectConnect? I’ve been doing this for quite a while now on my dev machine, 
> and at least in my use cases, it works well.
> 
> Tim
> UCLA GSE
> 
>> On Dec 18, 2016, at 12:09 PM, Jeff Schmitz <jeffschm...@icloud.com 
>> <mailto:jeffschm...@icloud.com>> wrote:
>> 
>> I figured out the site config computer name issue, somehow my computer name 
>> and network name were out of sync.  I updated my network name on the sharing 
>> page to match my computer name so now they match.  However I restarted 
>> everything but still get the no instance error.  
>> 
>> 
>>> On Dec 18, 2016, at 10:57 AM, Jeff Schmitz <jeffschm...@icloud.com> wrote:
>>> 
>>> I’m trying to get this running again and I was wondering if I needed to 
>>> setup an entry in the Wotaskd config for my app like you do for deployment 
>>> machines?  I went to http://localhost:1085 and noticed that there was no 
>>> entry listed for my app.  I tried adding one in, pointing to the 
>>> application in my dist folder in my development environment but that didn’t 
>>> help.  But the other thing I noticed though was the header for the Site 
>>> Config listed the incorrect machine name:
>>> 
>>> Wotaskd for WebObjects 5: mbp17.local
>>> 
>>> My development machine name should be mbp15.local so I’m wondering where 
>>> that header comes from?
>>> 
>>> Jeff
>>> 
>>> 
>>> 
>>>> On Sep 2, 2016, at 10:11 PM, Jeff Schmitz <jeffschm...@icloud.com> wrote:
>>>> 
>>>> One other note, I’m running ElCapitan with Apache 2.4.  I am using the 
>>>> Apache 2.4 compatible mod_webobjects adaptor that works on a deployment 
>>>> machine that’s also running El Capitan.
>>>> 
>>>> After triple checking, all from that page seems to check out:
>>>> 
>>>> Edit /etc/apache2/httpd.conf
>>>> ServerName localhost jdj
>>>> CHECK
>>>> 
>>>> You will also need to find this block
>>>> # First, we configure the "default" to be a very restrictive set of
>>>> # features.
>>>> #
>>>> 
>>>>Options FollowSymLinks
>>>>AllowOverride None
>>>>Order deny,allow
>>>>Deny from all
>>>> 
>>>> 
>>>> And modify like so:
>>>> # First, we configure the "default" to be a very restrictive set of
>>>> # features.
>>>> #
>>>> 
>>>>Options FollowSymLinks
>>>>AllowOverride None
>>>> #Order deny,allow
>>>> #Deny from all
>>>> 
>>>> 
>>>> 
>>>>Options FollowSymLinks
>>>>AllowOverride None
>>>> #Require all denied
>>>> 
>>>> 
>>>> CHECK
>>>> 
>>>> 
>>>> Got to the very end of /etc/apache2/httpd.conf and add :
>>>> Include /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf
>>>> 
>>>> Include 
>>>> /Developer/WebObjects/Versions/WebObjects543/System/Library/WebObjects/Adaptors/Apache2.2/apache.conf
>>>> 
>>>> CHECK (apache.conf is actually there, where I installed Webobjects 5.4)
>>>> 
>>>> 
>>>> Edit /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf to make 
>>>> sure that your enabled/uncommented WebObjectsConfig property looks like 
>>>> this:
>>>> WebObjectsConfig http://localhost:1085 10
>>>> 
>>>> Checking the above referenced file under Developer/WebObjects…
>>>> 
>>>> WebObjectsConfig http://localhost:1085 10
>>>> 
>>>> 
>>>> CHECK
>>>> 
>>>> Edit 
>>>> /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Properties
>>>> Add this line after the WOPort=1085 one:
>>>&

Re: Instance not found on dev machine

2016-12-18 Thread Jeff Schmitz
I figured out the site config computer name issue, somehow my computer name and 
network name were out of sync.  I updated my network name on the sharing page 
to match my computer name so now they match.  However I restarted everything 
but still get the no instance error.  


> On Dec 18, 2016, at 10:57 AM, Jeff Schmitz <jeffschm...@icloud.com> wrote:
> 
> I’m trying to get this running again and I was wondering if I needed to setup 
> an entry in the Wotaskd config for my app like you do for deployment 
> machines?  I went to http://localhost:1085 <http://localhost:1085/> and 
> noticed that there was no entry listed for my app.  I tried adding one in, 
> pointing to the application in my dist folder in my development environment 
> but that didn’t help.  But the other thing I noticed though was the header 
> for the Site Config listed the incorrect machine name:
> 
> Wotaskd for WebObjects 5: mbp17.local
> 
>  My development machine name should be mbp15.local so I’m wondering where 
> that header comes from?
> 
> Jeff
> 
> 
>  
>> On Sep 2, 2016, at 10:11 PM, Jeff Schmitz <jeffschm...@icloud.com 
>> <mailto:jeffschm...@icloud.com>> wrote:
>> 
>> One other note, I’m running ElCapitan with Apache 2.4.  I am using the 
>> Apache 2.4 compatible mod_webobjects adaptor that works on a deployment 
>> machine that’s also running El Capitan.
>> 
>> After triple checking, all from that page seems to check out:
>> 
>> Edit /etc/apache2/httpd.conf
>> ServerName localhost jdj
>> CHECK
>> 
>> You will also need to find this block
>> # First, we configure the "default" to be a very restrictive set of
>> # features.
>> #
>> 
>> Options FollowSymLinks
>> AllowOverride None
>> Order deny,allow
>> Deny from all
>> 
>> And modify like so:
>> # First, we configure the "default" to be a very restrictive set of
>> # features.
>> #
>> 
>> Options FollowSymLinks
>> AllowOverride None
>> #Order deny,allow
>> #Deny from all
>> 
>> 
>> Options FollowSymLinks
>> AllowOverride None
>> #Require all denied
>> 
>> 
>> CHECK
>> 
>> 
>> Got to the very end of /etc/apache2/httpd.conf and add :
>> Include /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf
>> 
>> Include 
>> /Developer/WebObjects/Versions/WebObjects543/System/Library/WebObjects/Adaptors/Apache2.2/apache.conf
>> 
>> CHECK (apache.conf is actually there, where I installed Webobjects 5.4)
>> 
>> 
>> Edit /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf to make sure 
>> that your enabled/uncommented WebObjectsConfig property looks like this:
>> WebObjectsConfig http://localhost:1085 <http://localhost:1085/> 10
>> 
>> Checking the above referenced file under Developer/WebObjects…
>> 
>> WebObjectsConfig http://localhost:1085 <http://localhost:1085/> 10
>> 
>> 
>> CHECK
>> 
>> Edit 
>> /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Properties
>> Add this line after the WOPort=1085 one:
>> WOHost=localhost
>> 
>> Again, looking under Developer/WebObjects…/Properties
>> 
>> WOPort=1085
>> WOHost=localhost
>> 
>> 
>> CHECK
>> 
>> 
>> Restart wotaskd:  sudo launchctl stop com.apple.webobjects.wotaskd
>> 
>> CHECK
>> sudo launchctl list | grep webobjects
>> 430  1   com.apple.webobjects.womonitor
>> 3519 143 com.apple.webobjects.wotaskd
>> 
>> CHECK
>> 
>> Add or edit these launch parameters:
>> -WODirectConnectEnabled false
>> -WOHost localhost
>> -WOAdaptorURL http://localhost/cgi-bin/WebObjects 
>> <http://localhost/cgi-bin/WebObjects>
>> -WOPort 9999
>> ALL CHECKED in the Debug Configuration for the application.
>> 
>> Still no love.
>> 
>> http://localhost/cgi-bin/WebObjects/mlb.woa/- 
>> <http://localhost/cgi-bin/WebObjects/mlb.woa/->  =  No instance available
>> 
>> 
>> Thanks!
>> Jeff
>> 
>> 
>>> On Sep 2, 2016, at 8:57 PM, Chuck Hill <ch...@gevityinc.com 
>>> <mailto:ch...@gevityinc.com>> wrote:
>>> 
>>> Double check what is on that page.  Ensure that WOHost=localhost is set for 
>>> both the app and wotaskd.
>>>  
>>> From: <webobjects-dev-bounces+chill=gevityinc@lists.apple.com 
>>> <mailto:webobjects-dev-bounces+chill=gevityinc@lists.

Re: Instance not found on dev machine

2016-12-18 Thread Jeff Schmitz
I’m trying to get this running again and I was wondering if I needed to setup 
an entry in the Wotaskd config for my app like you do for deployment machines?  
I went to http://localhost:1085 <http://localhost:1085/> and noticed that there 
was no entry listed for my app.  I tried adding one in, pointing to the 
application in my dist folder in my development environment but that didn’t 
help.  But the other thing I noticed though was the header for the Site Config 
listed the incorrect machine name:

Wotaskd for WebObjects 5: mbp17.local

 My development machine name should be mbp15.local so I’m wondering where that 
header comes from?

Jeff


 
> On Sep 2, 2016, at 10:11 PM, Jeff Schmitz <jeffschm...@icloud.com> wrote:
> 
> One other note, I’m running ElCapitan with Apache 2.4.  I am using the Apache 
> 2.4 compatible mod_webobjects adaptor that works on a deployment machine 
> that’s also running El Capitan.
> 
> After triple checking, all from that page seems to check out:
> 
> Edit /etc/apache2/httpd.conf
> ServerName localhost jdj
> CHECK
> 
> You will also need to find this block
> # First, we configure the "default" to be a very restrictive set of
> # features.
> #
> 
> Options FollowSymLinks
> AllowOverride None
> Order deny,allow
> Deny from all
> 
> And modify like so:
> # First, we configure the "default" to be a very restrictive set of
> # features.
> #
> 
> Options FollowSymLinks
> AllowOverride None
> #Order deny,allow
> #Deny from all
> 
> 
> Options FollowSymLinks
> AllowOverride None
> #Require all denied
> 
> 
> CHECK
> 
> 
> Got to the very end of /etc/apache2/httpd.conf and add :
> Include /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf
> 
> Include 
> /Developer/WebObjects/Versions/WebObjects543/System/Library/WebObjects/Adaptors/Apache2.2/apache.conf
> 
> CHECK (apache.conf is actually there, where I installed Webobjects 5.4)
> 
> 
> Edit /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf to make sure 
> that your enabled/uncommented WebObjectsConfig property looks like this:
> WebObjectsConfig http://localhost:1085 <http://localhost:1085/> 10
> 
> Checking the above referenced file under Developer/WebObjects…
> 
> WebObjectsConfig http://localhost:1085 <http://localhost:1085/> 10
> 
> 
> CHECK
> 
> Edit 
> /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Properties
> Add this line after the WOPort=1085 one:
> WOHost=localhost
> 
> Again, looking under Developer/WebObjects…/Properties
> 
> WOPort=1085
> WOHost=localhost
> 
> 
> CHECK
> 
> 
> Restart wotaskd:  sudo launchctl stop com.apple.webobjects.wotaskd
> 
> CHECK
> sudo launchctl list | grep webobjects
> 430   1   com.apple.webobjects.womonitor
> 3519  143 com.apple.webobjects.wotaskd
> 
> CHECK
> 
> Add or edit these launch parameters:
> -WODirectConnectEnabled false
> -WOHost localhost
> -WOAdaptorURL http://localhost/cgi-bin/WebObjects 
> <http://localhost/cgi-bin/WebObjects>
> -WOPort 
> ALL CHECKED in the Debug Configuration for the application.
> 
> Still no love.
> 
> http://localhost/cgi-bin/WebObjects/mlb.woa/- 
> <http://localhost/cgi-bin/WebObjects/mlb.woa/->  =  No instance available
> 
> 
> Thanks!
> Jeff
> 
> 
>> On Sep 2, 2016, at 8:57 PM, Chuck Hill <ch...@gevityinc.com 
>> <mailto:ch...@gevityinc.com>> wrote:
>> 
>> Double check what is on that page.  Ensure that WOHost=localhost is set for 
>> both the app and wotaskd.
>>  
>> From: <webobjects-dev-bounces+chill=gevityinc@lists.apple.com 
>> <mailto:webobjects-dev-bounces+chill=gevityinc@lists.apple.com>> on 
>> behalf of Jeff Schmitz <jeffschm...@icloud.com 
>> <mailto:jeffschm...@icloud.com>>
>> Date: Friday, September 2, 2016 at 6:21 PM
>> To: WebObjects Development <webobjects-dev@lists.apple.com 
>> <mailto:webobjects-dev@lists.apple.com>>
>> Subject: Instance not found on dev machine
>>  
>> Hey All, 
>>I followed the directions here: 
>> https://wiki.wocommunity.org/display/documentation/Development+Tools-Running+Through+Apache
>>  
>> <https://wiki.wocommunity.org/display/documentation/Development+Tools-Running+Through+Apache>
>>  
>> And when I start my app in eclipse, I get the “No Instance Available” error 
>> in the browser. 
>>  
>>  Apache is running as is wotaskd so I’m at a loss as to what to check.  
>> Anything simple I can do to try to debug the app?  

Re: Instance not found on dev machine

2016-09-02 Thread Jeff Schmitz
One other note, I’m running ElCapitan with Apache 2.4.  I am using the Apache 
2.4 compatible mod_webobjects adaptor that works on a deployment machine that’s 
also running El Capitan.

After triple checking, all from that page seems to check out:

Edit /etc/apache2/httpd.conf
ServerName localhost jdj
CHECK

You will also need to find this block
# First, we configure the "default" to be a very restrictive set of
# features.
#

Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all

And modify like so:
# First, we configure the "default" to be a very restrictive set of
# features.
#

Options FollowSymLinks
AllowOverride None
#Order deny,allow
#Deny from all


Options FollowSymLinks
AllowOverride None
#Require all denied


CHECK


Got to the very end of /etc/apache2/httpd.conf and add :
Include /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf

Include 
/Developer/WebObjects/Versions/WebObjects543/System/Library/WebObjects/Adaptors/Apache2.2/apache.conf

CHECK (apache.conf is actually there, where I installed Webobjects 5.4)


Edit /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf to make sure 
that your enabled/uncommented WebObjectsConfig property looks like this:
WebObjectsConfig http://localhost:1085 10

Checking the above referenced file under Developer/WebObjects…

WebObjectsConfig http://localhost:1085 10


CHECK

Edit 
/System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Properties
Add this line after the WOPort=1085 one:
WOHost=localhost

Again, looking under Developer/WebObjects…/Properties

WOPort=1085
WOHost=localhost


CHECK


Restart wotaskd:  sudo launchctl stop com.apple.webobjects.wotaskd

CHECK
sudo launchctl list | grep webobjects
430 1   com.apple.webobjects.womonitor
3519143 com.apple.webobjects.wotaskd

CHECK

Add or edit these launch parameters:
-WODirectConnectEnabled false
-WOHost localhost
-WOAdaptorURL http://localhost/cgi-bin/WebObjects
-WOPort 
ALL CHECKED in the Debug Configuration for the application.

Still no love.

http://localhost/cgi-bin/WebObjects/mlb.woa/- 
<http://localhost/cgi-bin/WebObjects/mlb.woa/->  =  No instance available


Thanks!
Jeff


> On Sep 2, 2016, at 8:57 PM, Chuck Hill <ch...@gevityinc.com> wrote:
> 
> Double check what is on that page.  Ensure that WOHost=localhost is set for 
> both the app and wotaskd.
>  
> From: <webobjects-dev-bounces+chill=gevityinc@lists.apple.com> on behalf 
> of Jeff Schmitz <jeffschm...@icloud.com>
> Date: Friday, September 2, 2016 at 6:21 PM
> To: WebObjects Development <webobjects-dev@lists.apple.com>
> Subject: Instance not found on dev machine
>  
> Hey All, 
>I followed the directions here: 
> https://wiki.wocommunity.org/display/documentation/Development+Tools-Running+Through+Apache
>  
> <https://wiki.wocommunity.org/display/documentation/Development+Tools-Running+Through+Apache>
>  
> And when I start my app in eclipse, I get the “No Instance Available” error 
> in the browser. 
>  
>  Apache is running as is wotaskd so I’m at a loss as to what to check.  
> Anything simple I can do to try to debug the app?  There are no errors during 
> startup from the app, and the log ends with the following three lines:
>  
> Sep 03 01:19:31 mlb[] INFO  er.extensions.appserver.ERXApplication  - 
> Local host IPs: (mbp17.local/192.168.0.108, localhost/127.0.0.1, 
> localhost/0:0:0:0:0:0:0:1, mbp17.local/fe80:0:0:0:bae8:56ff:fe47:dbe8%4, 
> mbp17.local/fe80:0:0:0:a059::fe9a:374d%8, 
> mbp17.local/fe80:0:0:0:3d92:7248:46b4:852c%10, 
> mbp17.local/fd11:314e:8afc:764b:3d92:7248:46b4:852c)
> Sep 03 01:19:31 mlb[] DEBUG NSLog  - DirectToWeb WebAssistant launch 
> line: 
> appletviewerhttp://localhost/cgi-bin/WebObjectsmlb.woa/wa/D2WActions/openWebAssistant
>  <http://localhost/cgi-bin/WebObjectsmlb.woa/wa/D2WActions/openWebAssistant>
> Sep 03 01:19:31 mlb[] DEBUG NSLog  - Waiting for requests…
>  
> The error in the browser comes up immediately if that helps.
>  
> Thanks!
> Jeff

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Instance not found on dev machine

2016-09-02 Thread Jeff Schmitz
Hey All,
   I followed the directions here: 
https://wiki.wocommunity.org/display/documentation/Development+Tools-Running+Through+Apache
 


And when I start my app in eclipse, I get the “No Instance Available” error in 
the browser. 

 Apache is running as is wotaskd so I’m at a loss as to what to check.  
Anything simple I can do to try to debug the app?  There are no errors during 
startup from the app, and the log ends with the following three lines:

Sep 03 01:19:31 mlb[] INFO  er.extensions.appserver.ERXApplication  - Local 
host IPs: (mbp17.local/192.168.0.108, localhost/127.0.0.1, 
localhost/0:0:0:0:0:0:0:1, mbp17.local/fe80:0:0:0:bae8:56ff:fe47:dbe8%4, 
mbp17.local/fe80:0:0:0:a059::fe9a:374d%8, 
mbp17.local/fe80:0:0:0:3d92:7248:46b4:852c%10, 
mbp17.local/fd11:314e:8afc:764b:3d92:7248:46b4:852c)
Sep 03 01:19:31 mlb[] DEBUG NSLog  - DirectToWeb WebAssistant launch line: 
appletviewer 
http://localhost/cgi-bin/WebObjectsmlb.woa/wa/D2WActions/openWebAssistant
Sep 03 01:19:31 mlb[] DEBUG NSLog  - Waiting for requests…

The error in the browser comes up immediately if that helps.

Thanks!
Jeff ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Quick EOModel Column Locking ?

2016-03-19 Thread Jeff Schmitz
I’m starting to get some optimistic column locking failures during background 
db processing soI’m trying to grasp conditions under which I don’t need to lock 
a column (i.e. put the little lock symbol in EOModeler) 

If I have a column in a table that I know is not updated (i.e. changed) by any 
client except form my personal administrative page, can I get away without 
locking that column?On unlocked columns is there any where clause checks 
such as shown below before that column is updated?  If not, this should stop 
the locking errors, right?  Any other dangers with this?

update Person set FirstName = 'Robert' where PersonID = 123 and FirstName = 
'Bob' and LastName = 'Roberts'
Finally, to make this change Is it as simple as unchecking the column and 
redeploying my EOModel file?

Thanks!
Jeff ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Quick EOModel Column Locking ?

2016-03-18 Thread Jeff Schmitz
Thanks Chuck,
   Yep, I understand the issue with inconsistent data, but most of my 
attributes are not semantically dependent on other attributes in that way  If 
that’s all the locks are guarding against I’ve got some lock trimming to do.

> On Mar 18, 2016, at 11:11 AM, Chuck Hill <ch...@gevityinc.com> wrote:
> 
> Hi Jeff,
> 
> Yes, if a column is not marked as locking, then it won’t appear in the WHERE 
> clause.
> 
> The danger is that you might save changes that are inconsistent with what the 
> database has stored in the columns that you are not locking on.  As a 
> contrived example, consider the update below changing Bob to Robert.  If you 
> don’t lock on first and last name, some other process might have updated both 
> names to John Edwards.  Your update will now change the name to Robert 
> Edwards.  You need to look at your data and see where that might matter and 
> where it does not.
> 
> Chuck
> 
> 
> From: <webobjects-dev-bounces+chill=gevityinc@lists.apple.com 
> <mailto:webobjects-dev-bounces+chill=gevityinc@lists.apple.com>> on 
> behalf of Jeff Schmitz <jeffschm...@icloud.com 
> <mailto:jeffschm...@icloud.com>>
> Date: Thursday, March 17, 2016 at 5:20 PM
> To: WebObjects Development <webobjects-dev@lists.apple.com 
> <mailto:webobjects-dev@lists.apple.com>>
> Subject: Quick EOModel Column Locking ?
> 
> I’m starting to get some optimistic column locking failures during background 
> db processing soI’m trying to grasp conditions under which I don’t need to 
> lock a column (i.e. put the little lock symbol in EOModeler) 
> 
> If I have a column in a table that I know is not updated (i.e. changed) by 
> any client except form my personal administrative page, can I get away 
> without locking that column?On unlocked columns is there any where clause 
> checks such as shown below before that column is updated?  If not, this 
> should stop the locking errors, right?  Any other dangers with this?
> 
> update Person set FirstName = 'Robert' where PersonID = 123 and FirstName = 
> 'Bob' and LastName = 'Roberts'
> Finally, to make this change Is it as simple as unchecking the column and 
> redeploying my EOModel file?
> 
> Thanks!
> Jeff

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Quick EOModel Column Locking ?

2016-03-18 Thread Jeff Schmitz
For most of my attributes, last in wins will be fine.  

Would like to avoid SQL as there are a lot of fairly complicated computations 
being performed so really want to stick with Java for that.

Jeff



> On Mar 18, 2016, at 1:02 PM, Philippe Rabier <prab...@icloud.com> wrote:
> 
> Jeff, if you remove the lock, you have a risk to get a write-write conflict, 
> aka a write replaced by another. It’s maybe not a big deal. I don’t know.
> 
> Another solution, if you are sure your background db process is the only one 
> to modify an attribute, is to use raw sql to update the column you want to 
> modify.
> 
> Philippe
> 
>> On 18 mars 2016, at 17:42, Jeff Schmitz <jeffschm...@icloud.com 
>> <mailto:jeffschm...@icloud.com>> wrote:
>> 
>> Thanks Chuck,
>>Yep, I understand the issue with inconsistent data, but most of my 
>> attributes are not semantically dependent on other attributes in that way  
>> If that’s all the locks are guarding against I’ve got some lock trimming to 
>> do.
>> 
>>> On Mar 18, 2016, at 11:11 AM, Chuck Hill <ch...@gevityinc.com 
>>> <mailto:ch...@gevityinc.com>> wrote:
>>> 
>>> Hi Jeff,
>>> 
>>> Yes, if a column is not marked as locking, then it won’t appear in the 
>>> WHERE clause.
>>> 
>>> The danger is that you might save changes that are inconsistent with what 
>>> the database has stored in the columns that you are not locking on.  As a 
>>> contrived example, consider the update below changing Bob to Robert.  If 
>>> you don’t lock on first and last name, some other process might have 
>>> updated both names to John Edwards.  Your update will now change the name 
>>> to Robert Edwards.  You need to look at your data and see where that might 
>>> matter and where it does not.
>>> 
>>> Chuck
>>> 
>>> 
>>> From: <webobjects-dev-bounces+chill=gevityinc@lists.apple.com 
>>> <mailto:webobjects-dev-bounces+chill=gevityinc@lists.apple.com>> on 
>>> behalf of Jeff Schmitz <jeffschm...@icloud.com 
>>> <mailto:jeffschm...@icloud.com>>
>>> Date: Thursday, March 17, 2016 at 5:20 PM
>>> To: WebObjects Development <webobjects-dev@lists.apple.com 
>>> <mailto:webobjects-dev@lists.apple.com>>
>>> Subject: Quick EOModel Column Locking ?
>>> 
>>> I’m starting to get some optimistic column locking failures during 
>>> background db processing soI’m trying to grasp conditions under which I 
>>> don’t need to lock a column (i.e. put the little lock symbol in EOModeler) 
>>> 
>>> If I have a column in a table that I know is not updated (i.e. changed) by 
>>> any client except form my personal administrative page, can I get away 
>>> without locking that column?On unlocked columns is there any where 
>>> clause checks such as shown below before that column is updated?  If not, 
>>> this should stop the locking errors, right?  Any other dangers with this?
>>> 
>>> update Person set FirstName = 'Robert' where PersonID = 123 and FirstName = 
>>> 'Bob' and LastName = 'Roberts'
>>> Finally, to make this change Is it as simple as unchecking the column and 
>>> redeploying my EOModel file?
>>> 
>>> Thanks!
>>> Jeff
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/prabier%40icloud.com 
>> <https://lists.apple.com/mailman/options/webobjects-dev/prabier%40icloud.com>
>> 
>> This email sent to prab...@icloud.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:
> https://lists.apple.com/mailman/options/webobjects-dev/jeffschmitz%40icloud.com
> 
> This email sent to jeffschm...@icloud.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: NoClassDefFoundError

2016-02-25 Thread Jeff Schmitz
And you would guess right.  After doing a chown -R _appserver on the Webojects 
Installation (/opt/Library/WebObjects) it started working.  

Thanks for the help!
Jeff

> On Feb 24, 2016, at 9:19 PM, Steve Peery <spe...@me.com> wrote:
> 
> I would guess a permissions issue. Can everything write to the log directory? 
> 
> Steve
> 
>> On Feb 24, 2016, at 10:08 PM, Jeff Schmitz <jeffschm...@icloud.com 
>> <mailto:jeffschm...@icloud.com>> wrote:
>> 
>> Embedding the frameworks did work in that it allowed me to start my app from 
>> the command line (Thanks!)
>> 
>> However now I’m at the javamonitor/wotaskd “hades” that always seems to get 
>> me.  I’ve set all my WOHost vars to localhost, and am using localhost across 
>> the board (Site and Host).  I’ve successfully added the application and 
>> configured out, but when I start it nothing happens.  No log file, and 
>> eventual a death.  Since I can start from the command line fine I don’t 
>> think it’s the app itself, but with no log file to go by I’m not sure what 
>> the next step would be.  Any ideas would be GREATLY appreciated.
>> 
>> 
>> Jeff
>> 
>> 
>> 
>>> On Feb 18, 2016, at 6:17 PM, Paul Hoadley <pa...@logicsquad.net 
>>> <mailto:pa...@logicsquad.net>> wrote:
>>> 
>>> Hi Jeff,
>>> 
>>> On 19 Feb 2016, at 10:39 am, Jeff Schmitz <jeffschm...@icloud.com 
>>> <mailto:jeffschm...@icloud.com>> wrote:
>>> 
>>>> I’m trying to deploy to a new machine and am getting the below classpath 
>>>> error when I start my app from the command line. I can build and run in my 
>>>> dev environment as well as deploy to a different machine.  I checked 
>>>> JAVA_HOME and it looks good so I’m not sure what to check next.  I’m 
>>>> guessing my main project is looking in the wrong place for the frameworks 
>>>> and added libs on the deployment machine, but I’m not sure what property 
>>>> tells it where to look when deployed.  I’m hoping this is a simple one.
>>> 
>>> If that’s the problem, most people embed all the required frameworks in the 
>>> application bundle to solve it. Set these in build.properties:
>>> 
>>> embed.Local=true
>>> embed.Network=true
>>> embed.Project=true
>>> embed.System=true
>>> embed.User=true
>>> 
>>> (If there’s some reason you can’t do this, we’ll have to explore the issue 
>>> further.)
>>> 
>>> 
>>> -- 
>>> Paul Hoadley
>>> http://logicsquad.net/ <http://logicsquad.net/>
>>> 
>>> 
>>> 
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/speery%40me.com 
>> <https://lists.apple.com/mailman/options/webobjects-dev/speery%40me.com>
>> 
>> This email sent to spe...@me.com <mailto:spe...@me.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: NoClassDefFoundError

2016-02-24 Thread Jeff Schmitz
Embedding the frameworks did work in that it allowed me to start my app from 
the command line (Thanks!)

However now I’m at the javamonitor/wotaskd “hades” that always seems to get me. 
 I’ve set all my WOHost vars to localhost, and am using localhost across the 
board (Site and Host).  I’ve successfully added the application and configured 
out, but when I start it nothing happens.  No log file, and eventual a death.  
Since I can start from the command line fine I don’t think it’s the app itself, 
but with no log file to go by I’m not sure what the next step would be.  Any 
ideas would be GREATLY appreciated.


Jeff



> On Feb 18, 2016, at 6:17 PM, Paul Hoadley <pa...@logicsquad.net> wrote:
> 
> Hi Jeff,
> 
> On 19 Feb 2016, at 10:39 am, Jeff Schmitz <jeffschm...@icloud.com 
> <mailto:jeffschm...@icloud.com>> wrote:
> 
>> I’m trying to deploy to a new machine and am getting the below classpath 
>> error when I start my app from the command line. I can build and run in my 
>> dev environment as well as deploy to a different machine.  I checked 
>> JAVA_HOME and it looks good so I’m not sure what to check next.  I’m 
>> guessing my main project is looking in the wrong place for the frameworks 
>> and added libs on the deployment machine, but I’m not sure what property 
>> tells it where to look when deployed.  I’m hoping this is a simple one.
> 
> If that’s the problem, most people embed all the required frameworks in the 
> application bundle to solve it. Set these in build.properties:
> 
> embed.Local=true
> embed.Network=true
> embed.Project=true
> embed.System=true
> embed.User=true
> 
> (If there’s some reason you can’t do this, we’ll have to explore the issue 
> further.)
> 
> 
> -- 
> Paul Hoadley
> http://logicsquad.net/ <http://logicsquad.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: NoClassDefFoundError

2016-02-19 Thread Jeff Schmitz
I believe they are.  

NEXT_ROOT is set to /opt

and the frameworks are installed in /opt/Library/Frameworks, including 
ERJars.framework

Jeff


> On Feb 19, 2016, at 2:49 AM, Daniele Corti <ilde...@gmail.com> wrote:
> 
> Hi Jeff,
> the slf4j is in the ERJar framework. Check the NEXT_ROOT variable and see if 
> the frameworks are correctly copied in the Local path on the new machine.
> 
> 
> 
> 2016-02-19 1:09 GMT+01:00 Jeff Schmitz <jeffschm...@icloud.com 
> <mailto:jeffschm...@icloud.com>>:
> Hello list,
>   I’m trying to deploy to a new machine and am getting the below classpath 
> error when I start my app from the command line. I can build and run in my 
> dev environment as well as deploy to a different machine.  I checked 
> JAVA_HOME and it looks good so I’m not sure what to check next.  I’m guessing 
> my main project is looking in the wrong place for the frameworks and added 
> libs on the deployment machine, but I’m not sure what property tells it where 
> to look when deployed.  I’m hoping this is a simple one.
> 
> 
> Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
> at er.extensions.eof.ERXConstant.(ERXConstant.java:140)
> at 
> er.extensions.appserver.ERXApplication$Loader.(ERXApplication.java:588)
> at 
> er.extensions.appserver.ERXApplication.setup(ERXApplication.java:1066)
> at 
> er.extensions.appserver.ERXApplication.main(ERXApplication.java:873)
> 
> Thanks!
> Jeff
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
> <mailto:Webobjects-dev@lists.apple.com>)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/ildenae%40gmail.com 
> <https://lists.apple.com/mailman/options/webobjects-dev/ildenae%40gmail.com>
> 
> This email sent to ilde...@gmail.com <mailto:ilde...@gmail.com>
> 
> 
> -- 
> Daniele Corti
> --
> I DON'T DoubleClick

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

NoClassDefFoundError

2016-02-18 Thread Jeff Schmitz
Hello list,
  I’m trying to deploy to a new machine and am getting the below classpath 
error when I start my app from the command line. I can build and run in my dev 
environment as well as deploy to a different machine.  I checked JAVA_HOME and 
it looks good so I’m not sure what to check next.  I’m guessing my main project 
is looking in the wrong place for the frameworks and added libs on the 
deployment machine, but I’m not sure what property tells it where to look when 
deployed.  I’m hoping this is a simple one.


Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at er.extensions.eof.ERXConstant.(ERXConstant.java:140)
at 
er.extensions.appserver.ERXApplication$Loader.(ERXApplication.java:588)
at 
er.extensions.appserver.ERXApplication.setup(ERXApplication.java:1066)
at er.extensions.appserver.ERXApplication.main(ERXApplication.java:873)

Thanks!
Jeff
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Using multiple servers

2015-12-15 Thread Jeff Schmitz
It was the /etc/hosts setting.  I changed it, and added the host again to 
JavaMonitor and the correct IP came up instead of 127.0.0.1.  I also double 
checked the reverse proxies and they looked good.  However, I was still unable 
to get it to work.  So…

I decided to get the netbrandeds machine back to its stand-alone web and app 
server state.  However, after starting the app with the local javamonitor, it 
no longer worked either.  I now get the dreaded “Application not found on this 
server” error when I try to bring up the site.  Everything else looks good, and 
I was able to re-install the app and start it on JavaMonitor with no errors.  I 
just can’t navigate to the site.  I double checked all the relevant 
configuration properties and don’t see anything amiss (they are below), and 
this server had been running as a stand-alone web and app server for years with 
these parameters.


netbrandeds-mini1:LaunchDaemons netBrackets$ which apachectl
/opt/local/apache2/bin/apachectl


/opt/local/apache2/bin/apachectl:
# the path to your httpd binary, including options if necessary
HTTPD='/opt/local/apache2/bin/httpd'

/opt/local/apache2/conf/httpd.conf:
ServerRoot "/opt/local/apache2"
ServerName netbrandeds-mini1.netbrandeds.info:80
DocumentRoot "/Library/WebServer/Documents"

Options FollowSymLinks
AllowOverride None
#Order deny,allow
#Deny from all


 Options Indexes FollowSymLinks

AllowOverride None

Order allow,deny
Allow from all





 ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) 
"/Library/WebServer/CGI-Executables/$1"



AllowOverride None
Options None
Require all granted


Include /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf



/System/Library/WebObjects/Adaptors/Apache2.2/apache.conf:
WebObjectsDocumentRoot /Library/WebServer/Documents
WebObjectsAlias /cgi-bin/WebObjects
WebObjectsConfig http://netbrandeds-mini1.netbrandeds.info:1085 10
 WebObjectsAdminUsername xxx
 WebObjectsAdminPassword 
WebObjectsLog /Library/WebObjects/Logs/WebObjects.log Debug



/Library/LaunchDaemons/com.apple.webobjects.wotaskd.plist:
Disabled

GroupName
appserverusr
Label
com.apple.webobjects.wotaskd
OnDemand

Program

/Library/WebObjects/JavaApplications/wotaskd.woa/wotaskd
ProgramArguments

wotaskd
-WOPort
1085
-_DeploymentDebugging
false

ServiceIPC

UserName
appserver
StandardOutPath
/Library/WebObjects/Logs/wotaskd.log
StandardErrorPath
/Library/WebObjects/Logs/wotaskd.log


/Library/LaunchDaemons/com.apple.webobjects.womonitor.plist:


http://www.apple.com/DTDs/PropertyList-1.0.dtd;>


Disabled

GroupName
appserverusr
Label
com.apple.webobjects.womonitor
OnDemand

Program

/Library/WebObjects/JavaApplications/JavaMonitor.woa/JavaMonitor
ProgramArguments

JavaMonitor
-WOPort
56789
-_DeploymentDebugging
true

ServiceIPC

UserName
appserver
StandardOutPath
/Library/WebObjects/Logs/womonitor.log
StandardErrorPath
/Library/WebObjects/Logs/womonitor.log




/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources (ALL 
PARAMETERS SHOWN):
WOHost=netbrandeds-mini1.netbrandeds.info

WOAutoOpenInBrowser=false
WODebuggingEnabled=false
WODirectConnectEnabled=true
WOCachingEnabled=true
WOPort=1085
er.extensions.ERXMessageEncoding.Enabled=false

WOMonitorEnabled=false
WOLifebeatDestinationPort=1085
WOLifebeatEnabled=false

WOMulticastAddress=239.128.14.2  #I have no idea what IP address this is, I've 
never changed it though.

WORespondsToMulticastQuery=false

WOSavesAdaptorConfiguration=false

WOAssumeApplicationIsDeadMultiplier=4

WOShouldUseSpawn=true
log4j.rootCategory=INFO, A1

log4j.appender.A1=org.apache.log4j.ConsoleAppender

log4j.appender.A1.layout=er.extensions.logging.ERXPatternLayout
log4j.appender.A1.layout.ConversionPattern=%d %-5p %V{u/f} [%t] %C{2} (%F:%L) - 
%m%n




/Library/WebObjects/JavaApplications/womonitor.woa/Contents/Resources:
WOHost=netbrandeds-mini1.netbrandeds.info

WOMonitor Start parameters:
-d64 -Xms2048m -Xmx3072m -WOAllowsConcurrentRequestHandling YES 
EOAdaptorDebugEnabled NO -WODirectConnectEnabled NO 

> On Dec 11, 2015, at 11:56 AM, Chuck Hill <ch...@gevityinc.com> wrote:
> 
> One thing that I do recall is that is very, very sensitive to IP address and 
> DNS configuration.  Reverse lookup needs to work.
> 
> Chuck
> 
> From: Jeff Schmitz <jeffschm...@icloud.com <mailto:jeffschm...@icloud.com>>
> Date: Wednesday, December 9, 2015 at 10:

Re: Using multiple servers

2015-12-08 Thread Jeff Schmitz
Thanks for checking that out, sounds plausible.  And yeah, not the best 
solution, but I wanted to see if I could get it working at all and take it from 
there.  I may try using IP’s for WOHost values.



> On Dec 8, 2015, at 3:11 PM, Klaus Berkling <webobje...@berkling.us> wrote:
> 
>> 
>> On Dec 7, 2015, at 10:16 PM, Jeff Schmitz <jeffschm...@icloud.com 
>> <mailto:jeffschm...@icloud.com>> wrote:
>> 
>> I believe I’ve checked everything you mention (see below) to no avail.  One 
>> thought I had is that the servers are running different Mac OS versions.  
>> Could the WOAdaptor compiled for El Capitan on the head machine not be able 
>> to use a remote app instance running under Mt. Lion on the remote machine?
> 
> The OS probably doesn’t matter.  Is this right:
> 
> netbrackets1.netbrackets.com <http://netbrackets1.netbrackets.com/> has 
> address 208.52.161.87
> 87.161.52.208.in-addr.arpa domain name pointer netbrackets1.netbrackets.com 
> <http://netbrackets1.netbrackets.com/>.
> 
> netbrandeds-mini1.netbrandeds.info 
> <http://netbrandeds-mini1.netbrandeds.info/> has address 208.52.189.44
> 44.189.52.208.in-addr.arpa domain name pointer 
> netbrandeds-mini1.netbrandeds.info 
> <http://netbrandeds-mini1.netbrandeds.info/>.
> 
> I have a feeling the servers need to be in the same domain - Can someone 
> second that?
> I always put my hosts on a private network but if you have Mac minis you 
> might not have that option (maybe firewire of thunderbolt network bridge?).
> You don’t want to send your application traffic over a co-location network 
> anyways.
> 
>> 
>> 
>> 
>>> On Dec 7, 2015, at 11:02 PM, Klaus Berkling <webobje...@berkling.us 
>>> <mailto:webobje...@berkling.us>> wrote:
>>> 
>>> 
>>> On Dec 6, 2015, at 9:21 PM, Jeff Schmitz <jeffschm...@icloud.com 
>>> <mailto:jeffschm...@icloud.com>> wrote:
>>> 
>>>> I’m trying to follow the instructions at:  
>>>> https://wiki.wocommunity.org/pages/viewpage.action?pageId=7143530 
>>>> <https://wiki.wocommunity.org/pages/viewpage.action?pageId=7143530>
>>>> 
>>>> I'm using one machine for a web server (e.g. Apache, womonitor) and one 
>>>> for the application server (wotaskd, my app)
>>>> 
>>>> I’ve set the WebObjectsConfig appropriately on the webserver machine, 
>>>> e.g.: 
>>>> 
>>>> WebObjectsConfig http://www.server.com:1085,http://www2.server.com:1085 
>>>> <http://www.server.com:1085,http://www2.server.com:1085> 10
>>>> 
>>>> I have added the application server host and the application to java 
>>>> monitor on the web server and it all looks good.
>>>> 
>>>> I start up the remote application from the webserver javamonitor, but when 
>>>> I try to reach the app using the webserver URL, it says application not 
>>>> found.  However, if I try to access the application by going straight to 
>>>> the application server URL, it works.  (I do have apache setup on the 
>>>> application server as well).
>>>> 
>>>> I tested the 2001 and 1085 ports using telnet from the web server to the 
>>>> application server, and both ports are open.
>>>> 
>>>> One thing that isn’t clear in the wiki instructions is what the WOHost 
>>>> parameters should be set to on the app server machine.  I set them to the 
>>>> app server itself’s address, and it works with a local instance of 
>>>> Apache/JavaMonitor, but should I keep them set to this when I want to run 
>>>> them as remote applications from the webserver?
>>>> 
>>>> If that’s not it, any other ideas?
>>> 
>>> 
>>> If it's not a firewall issue, it might be a DNS issue if you are using host 
>>> names.  If memory serves then use the WOHost parameter as the hostname you 
>>> use in JavaMonitor. If you have multiple IP addresses you'll need to check 
>>> if everyone is listing on the right socket, check with lsof -i tcp:1085 or 
>>> lsof -i tcp:2001
>> I can definitely telnet from the head machine to both port 2001 and 1085 on 
>> the app server.  WOHost in the respective wotaskd property files on each 
>> server matches the respective host in JavaMonitor .  Also, reverse DNS 
>> lookups are correct for both machines.
>>> 
>>> Make sure there is only one JavaMonior running, usually on the head node. 
>>> One wotaskd on each server and only one apach

Re: Using multiple servers

2015-12-07 Thread Jeff Schmitz
I believe I’ve checked everything you mention (see below) to no avail.  One 
thought I had is that the servers are running different Mac OS versions.  Could 
the WOAdaptor compiled for El Capitan on the head machine not be able to use a 
remote app instance running under Mt. Lion on the remote machine?



> On Dec 7, 2015, at 11:02 PM, Klaus Berkling <webobje...@berkling.us> wrote:
> 
> 
> On Dec 6, 2015, at 9:21 PM, Jeff Schmitz <jeffschm...@icloud.com 
> <mailto:jeffschm...@icloud.com>> wrote:
> 
>> I’m trying to follow the instructions at:  
>> https://wiki.wocommunity.org/pages/viewpage.action?pageId=7143530 
>> <https://wiki.wocommunity.org/pages/viewpage.action?pageId=7143530>
>> 
>> I'm using one machine for a web server (e.g. Apache, womonitor) and one for 
>> the application server (wotaskd, my app)
>> 
>> I’ve set the WebObjectsConfig appropriately on the webserver machine, e.g.: 
>> 
>> WebObjectsConfig http://www.server.com:1085,http://www2.server.com:1085 
>> <http://www.server.com:1085,http://www2.server.com:1085> 10
>> 
>> I have added the application server host and the application to java monitor 
>> on the web server and it all looks good.
>> 
>> I start up the remote application from the webserver javamonitor, but when I 
>> try to reach the app using the webserver URL, it says application not found. 
>>  However, if I try to access the application by going straight to the 
>> application server URL, it works.  (I do have apache setup on the 
>> application server as well).
>> 
>> I tested the 2001 and 1085 ports using telnet from the web server to the 
>> application server, and both ports are open.
>> 
>> One thing that isn’t clear in the wiki instructions is what the WOHost 
>> parameters should be set to on the app server machine.  I set them to the 
>> app server itself’s address, and it works with a local instance of 
>> Apache/JavaMonitor, but should I keep them set to this when I want to run 
>> them as remote applications from the webserver?
>> 
>> If that’s not it, any other ideas?
> 
> 
> If it's not a firewall issue, it might be a DNS issue if you are using host 
> names.  If memory serves then use the WOHost parameter as the hostname you 
> use in JavaMonitor. If you have multiple IP addresses you'll need to check if 
> everyone is listing on the right socket, check with lsof -i tcp:1085 or lsof 
> -i tcp:2001
I can definitely telnet from the head machine to both port 2001 and 1085 on the 
app server.  WOHost in the respective wotaskd property files on each server 
matches the respective host in JavaMonitor .  Also, reverse DNS lookups are 
correct for both machines.
> 
> Make sure there is only one JavaMonior running, usually on the head node. One 
> wotaskd on each server and only one apache web server - the head node.
JavaMonitor is only running on the head node.  Each server has a wotaskd 
running, and apache is only running on the head node.
> 
> Try to completely set up one host only, so no www2 server anywhere - not in 
> JavaMonitor nor WebObjectsConfig. First use localhost and make sure the app 
> is working.
Everything works fine on the head node, which is running on instance of the 
application, and all WOHost parameters and specified JavaMonitor hosts are 
using domain name, NOT localhost.
> 
> Then use the servers' IP address, at this point you can't use 'localhost' 
> anymore anywhere. Make sure your app is still working.
The head node is working using the domain name that comes up on a reverse 
lookup of the machine IP address.

> After that add the other host to WebObjectsConfig and JavaMonitor using the 
> IP addresses (avoiding any DNS issues). Double check the syntax on that line. 
> JavaMonitor should say that both hosts are available.
Done, again using domain name that comes up on reverse host lookup of the 
machine IP, e.g. netbrandeds-mini1.netbrandeds.info
host 208.52.189.44
44.189.52.208.in-addr.arpa domain name pointer 
netbrandeds-mini1.netbrandeds.info.
> 
JavaMonitor on the head machine does say both hosts are available.

> If you make changes in JavaMonitor to the configuration, make sure you see 
> the SiteConfig.xml file change on both servers (usually in 
> /Library/WebObjects/Configuration).
I did have to do a Synchronize Host to get both SiteConfig.xml files in 
agreement as to the URL to Adaptor setting.  It originally was pointing to 
itself.  However even after doing the sync, it’s still exhibiting the same 
behavior.

> 
> If both servers are talking to each other, add your application in 
> JavaMonitor and add one instance for each host. Then try to turn them on and 
> off and watch the processes on each of the hosts

Using multiple servers

2015-12-06 Thread Jeff Schmitz

Hi All,

I’m trying to follow the instructions at:  
https://wiki.wocommunity.org/pages/viewpage.action?pageId=7143530

I'm using one machine for a web server (e.g. Apache, womonitor) and one for the 
application server (wotaskd, my app)

I’ve set the WebObjectsConfig appropriately on the webserver machine, e.g.: 

WebObjectsConfig http://www.server.com:1085,http://www2.server.com:1085 
 10

I have added the application server host and the application to java monitor on 
the web server and it all looks good.

I start up the remote application from the webserver javamonitor, but when I 
try to reach the app using the webserver URL, it says application not found.  
However, if I try to access the application by going straight to the 
application server URL, it works.  (I do have apache setup on the application 
server as well).

I tested the 2001 and 1085 ports using telnet from the web server to the 
application server, and both ports are open.

One thing that isn’t clear in the wiki instructions is what the WOHost 
parameters should be set to on the app server machine.  I set them to the app 
server itself’s address, and it works with a local instance of 
Apache/JavaMonitor, but should I keep them set to this when I want to run them 
as remote applications from the webserver?

If that’s not it, any other ideas?

Thanks!

Jeff ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: wotaskd reliability

2015-12-03 Thread Jeff Schmitz
As a follow up, I did fix the locking up problem.

When I checked my energy saver settings it was set to sleep after 3 hours but 
wake on network activity. 

 I can’t remember if I had it set to that before El Capitan, or if I had it set 
to never sleep and El Capitan changed it.  But in El Capitan this combination 
caused my computer to go into an unwakeable sleep.  

Setting the computer to never go to sleep has fixed the “lock up” problem.

Jeff



> On Nov 29, 2015, at 4:30 PM, Michael Kondratov <mich...@aspireauctions.com> 
> wrote:
> 
> Sounds like something is using up too much memory.
> 
> Sent from my iPhone
> 
>> On Nov 29, 2015, at 5:29 PM, Jeff Schmitz <jeffschm...@icloud.com> wrote:
>> 
>> After a couple of days running an app with virtually no load, my El Capitan 
>> server has been completely locking up every few hours to where I can’t even 
>> ssh in, requiring a remote power cycle to bring it back to life.  I may try 
>> a remote linux install using some combination of these pages:
>> 
>> http://www.houseoflinux.com/installation/how-to-remote-install-centos-6-via-vnc/
>> https://www.centos.org/forums/viewtopic.php?t=3876
>> https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+RedHat%2C+CentOS+or+Amazon+Linux
>> 
>> 
>> 
>>> On Nov 29, 2015, at 3:14 PM, Michael Kondratov <mich...@aspireauctions.com> 
>>> wrote:
>>> 
>>> The server load stays pretty low at around 10%-15% on a 6 core Mac Pro. 
>>> I’ve noticed that wotaskd starts up with 64MB max heap. Is it an acceptable 
>>> amount for a 64bit system?
>>> 
>>> Michael
>>> 
>>> 
>>>> On Nov 29, 2015, at 4:09 PM, Chuck Hill <ch...@gevityinc.com> wrote:
>>>> 
>>>> If it is load related, I’d look at the application first.  You might also 
>>>> be running low on file handles or other system resources.  Linux is likely 
>>>> better configured in that respect.
>>>> 
>>>> WO should easily be able to handle that load, but that assumes that the 
>>>> application does not have have issues with the load.
>>>> 
>>>> Chuck
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>>> On 2015-11-29, 12:09 PM, 
>>>>> "webobjects-dev-bounces+chill=gevityinc@lists.apple.com on behalf of 
>>>>> Michael Kondratov" 
>>>>> <webobjects-dev-bounces+chill=gevityinc@lists.apple.com on behalf of 
>>>>> mich...@aspireauctions.com> wrote:
>>>>> 
>>>>> We start having issues right about 100k page views per day. Is it 
>>>>> reasonable to believe WO should handle it without breaking a sweat? What 
>>>>> makes Linux better than OS X?
>>>>> 
>>>>> Michael
>>>>> 
>>>>>> On Nov 29, 2015, at 2:03 PM, Pascal Robert <prob...@macti.ca> wrote:
>>>>>> 
>>>>>> 
>>>>>>> Le 2015-11-29 à 13:19, Michael Kondratov <mich...@aspireauctions.com> a 
>>>>>>> écrit :
>>>>>>> 
>>>>>>> Hello,
>>>>>>>   What is the most reliable deployment set up at this time?
>>>>>> 
>>>>>> Linux.
>>>>>> 
>>>>>>> It seems we are having occasional issues with wotaskd crashing or 
>>>>>>> hanging. We are on Mac Os X 10.9 Server. Would we gain anything from 
>>>>>>> using SiteConfig.xml for Apache Adaptor instead of wotaskd?
>>>>>>> 
>>>>>>> Thank you!
>>>>>>> 
>>>>>>> Michael Kondratov
>>>>>>> Aspire Auctions
>>>>>>> ___
>>>>>>> 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:
>>>>>>> https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
>>>>>>> 
>>>>>>> This email sent to prob...@macti.ca
>>>>> 
>>>>> 
>>>>> ___
>>>>> 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:
>>>>> https://lists.apple.com/mailman/options/webobjects-dev/chill%40gevityinc.com
>>>>> 
>>>>> This email sent to ch...@gevityinc.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:
>>> https://lists.apple.com/mailman/options/webobjects-dev/jeffschmitz%40icloud.com
>>> 
>>> This email sent to jeffschm...@icloud.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: El Capitan Apache Seg Fault

2015-12-02 Thread Jeff Schmitz
Yes, that worked.  I did have to copy the WebServerResources into the proper 
directory under /Library/WebServer/Documents but all seems well now.  So 
basically I have two instances of JavaMonitor running.  Any downside to that, 
Or should I unload the one running on port 56789?

Thanks!
Jeff

> On Nov 30, 2015, at 4:47 AM, Patrick Middleton <pmiddle...@onestep.co.uk> 
> wrote:
> 
> Another choice is to install JavaMonitor as a regular application, with a 
> single instance, always running.  JavaMonitor has its own password 
> protection, but use Apache access permissions to further lock down access to 
> it.
> 
> 
> -- Patrick
> 
> 
> 
> 
> 
> 
> 
> On 29/11/2015 20:09,  Tim Worman wrote:
> 
>> Jeff:
>> 
>> Even if it were not El Capitan, I would not open that port to outside 
>> traffic. Instead, use ssh to tunnel that traffic to localhost, like:
>> 
>> ssh -L 8080:localhost:56789 @
>> 
>> Then you can connect your browser to: http://localhost:8080 to interact w 
>> JavaMonitor on the remote host. You can also put the above command in your 
>> .alias file so you can use a shortcut to start it up.
>> 
>> Tim
>> UCLA GSE
>> 
>>> On Nov 29, 2015, at 10:24 AM, Jeff Schmitz <jeffschm...@icloud.com> wrote:
>>> 
>>> One last annoyance with the El Capitan machine, I can’t seem to open port 
>>> 56789 for accessing javamonitor remotely.  
>>> 
>>> I tried the steps outlined at the link below, but according to Network 
>>> Utility port scan it’s still not open.  Also, I have the firewall 
>>> completely turned off under Security & Privacy Settings.
> 
> 
>> 
> 
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/jeffschmitz%40icloud.com
> 
> This email sent to jeffschm...@icloud.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: El Capitan Apache Seg Fault

2015-11-29 Thread Jeff Schmitz
One last annoyance with the El Capitan machine, I can’t seem to open port 56789 
for accessing javamonitor remotely.  

I tried the steps outlined at the link below, but according to Network Utility 
port scan it’s still not open.  Also, I have the firewall completely turned off 
under Security & Privacy Settings.

https://rolfje.wordpress.com/2014/05/10/open-a-port-in-osx-mavericks-firewall/

Anyone have any luck opening the JavaMonitor port on El Capitan?  When I try to 
telnet to the port I get a connection refused error.

Here’s the port scan results I get:

Port Scan has started…

Port Scanning host: 208.52.161.87

 Open TCP Port: 22  ssh
 Open TCP Port: 80  http
 Open TCP Port: 88  kerberos
 Open TCP Port: 631 ipp
 Open TCP Port: 5900rfb
 Open TCP Port: 6783
 Open TCP Port: 17500
 Open TCP Port: 20020
 Open TCP Port: 49161
 Open TCP Port: 49162
 Open TCP Port: 49164
 Open TCP Port: 49197
 Open TCP Port: 49199

Thanks,
Jeff

> On Nov 28, 2015, at 9:09 PM, T Worman <li...@thetimmy.com> wrote:
> 
> On Nov 27, 2015, at 10:55 AM, Jeff Schmitz <jeffschm...@icloud.com> wrote:
>> 
>> Thinking maybe the apple installer failed because of no java I tried it 
>> again but it failed the same way.
> 
> The Apple installer attempts to install the WO runtime in /System/Library. El 
> Capitans SIP will not allow you to do that.
> 
> https://support.apple.com/en-us/HT204899
> 
> Tim
> UCLA GSE


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: wotaskd reliability

2015-11-29 Thread Jeff Schmitz
After a couple of days running an app with virtually no load, my El Capitan 
server has been completely locking up every few hours to where I can’t even ssh 
in, requiring a remote power cycle to bring it back to life.  I may try a 
remote linux install using some combination of these pages:

http://www.houseoflinux.com/installation/how-to-remote-install-centos-6-via-vnc/
https://www.centos.org/forums/viewtopic.php?t=3876
https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+RedHat%2C+CentOS+or+Amazon+Linux



> On Nov 29, 2015, at 3:14 PM, Michael Kondratov  
> wrote:
> 
> The server load stays pretty low at around 10%-15% on a 6 core Mac Pro. I’ve 
> noticed that wotaskd starts up with 64MB max heap. Is it an acceptable amount 
> for a 64bit system?
> 
> Michael
> 
> 
>> On Nov 29, 2015, at 4:09 PM, Chuck Hill  wrote:
>> 
>> If it is load related, I’d look at the application first.  You might also be 
>> running low on file handles or other system resources.  Linux is likely 
>> better configured in that respect.
>> 
>> WO should easily be able to handle that load, but that assumes that the 
>> application does not have have issues with the load.
>> 
>> Chuck
>> 
>> 
>> 
>> 
>> 
>> On 2015-11-29, 12:09 PM, 
>> "webobjects-dev-bounces+chill=gevityinc@lists.apple.com on behalf of 
>> Michael Kondratov" 
>> > mich...@aspireauctions.com> wrote:
>> 
>>> We start having issues right about 100k page views per day. Is it 
>>> reasonable to believe WO should handle it without breaking a sweat? What 
>>> makes Linux better than OS X?
>>> 
>>> Michael
>>> 
 On Nov 29, 2015, at 2:03 PM, Pascal Robert  wrote:
 
 
> Le 2015-11-29 à 13:19, Michael Kondratov  a 
> écrit :
> 
> Hello,
>   What is the most reliable deployment set up at this time?
 
 Linux.
 
> It seems we are having occasional issues with wotaskd crashing or 
> hanging. We are on Mac Os X 10.9 Server. Would we gain anything from 
> using SiteConfig.xml for Apache Adaptor instead of wotaskd?
> 
> Thank you!
> 
> Michael Kondratov
> Aspire Auctions
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
> 
> This email sent to prob...@macti.ca
 
>>> 
>>> 
>>> ___
>>> 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:
>>> https://lists.apple.com/mailman/options/webobjects-dev/chill%40gevityinc.com
>>> 
>>> This email sent to ch...@gevityinc.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:
> https://lists.apple.com/mailman/options/webobjects-dev/jeffschmitz%40icloud.com
> 
> This email sent to jeffschm...@icloud.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: El Capitan Apache Seg Fault

2015-11-27 Thread Jeff Schmitz
 combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
AllowOverride None

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all


ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) 
"/Library/WebServer/CGI-Executables/$1"

   AllowOverride None
   Options None
   Order allow,deny
   Allow from all


——-
> On Nov 25, 2015, at 6:50 PM, Jeff Schmitz <jeffschm...@icloud.com> wrote:
> 
> Hello List,
> I’m in the process of upgrading a server to El Capitan and apache is giving 
> me the below segmentation fault whenever I try to bring up a page on my 
> application:
> 
>   [Tue Nov 24 23:19:32 2015] [notice] child pid 97433 exit signal 
> Segmentation fault (11)
> 
> I’ve seen a few things about MPM worker vs prefork that says to run with MPM 
> prefork.  When I do a httpd -V I get:
> 
> 
> Server version: Apache/2.2.31 (Unix)
> Server built:   Nov 25 2015 11:47:12
> Server's Module Magic Number: 20051115:40
> Server loaded:  APR 1.5.2, APR-Util 1.5.4
> Compiled using: APR 1.5.2, APR-Util 1.5.4
> Architecture:   64-bit
> Server MPM: Prefork
> threaded: no
>   forked: yes (variable process count)
> Server compiled with
> -D APACHE_MPM_DIR="server/mpm/prefork"
> -D APR_HAS_SENDFILE
> -D APR_HAS_MMAP…
> 
> So I think  i am running prefork, and I couldn’t find anything in httpd.conf 
> that looks like it overrides the default.
> 
> Note that I’m currently running a version of Apache installed by MacPorts.
> 
> Is there anything else that might cause this?  
> 
> Also I was wondering is there any reason to buy the El Capitan Server 
> application if I’m only using this machine for deployment?
> 
> Thanks!
> Jeff
> ___
> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/jeffschmitz%40icloud.com
> 
> This email sent to jeffschm...@icloud.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

El Capitan Apache Seg Fault

2015-11-25 Thread Jeff Schmitz
Hello List,
 I’m in the process of upgrading a server to El Capitan and apache is giving me 
the below segmentation fault whenever I try to bring up a page on my 
application:

[Tue Nov 24 23:19:32 2015] [notice] child pid 97433 exit signal 
Segmentation fault (11)

I’ve seen a few things about MPM worker vs prefork that says to run with MPM 
prefork.  When I do a httpd -V I get:


Server version: Apache/2.2.31 (Unix)
Server built:   Nov 25 2015 11:47:12
Server's Module Magic Number: 20051115:40
Server loaded:  APR 1.5.2, APR-Util 1.5.4
Compiled using: APR 1.5.2, APR-Util 1.5.4
Architecture:   64-bit
Server MPM: Prefork
 threaded: no
   forked: yes (variable process count)
Server compiled with
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP…

So I think  i am running prefork, and I couldn’t find anything in httpd.conf 
that looks like it overrides the default.

Note that I’m currently running a version of Apache installed by MacPorts.

Is there anything else that might cause this?  

Also I was wondering is there any reason to buy the El Capitan Server 
application if I’m only using this machine for deployment?

Thanks!
Jeff
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Starting second instance=app not available

2014-03-04 Thread Jeff Schmitz
Definitely random. Every reboot is an adventure :-)

Here's the host info. I think it looks good. 
host netbrackets1.netbrackets.com
netbrackets1.netbrackets.com has address 208.52.168.238

host 208.52.168.238
238.168.52.208.in-addr.arpa domain name 

I'll have to try starting the app from the command line later but all is 
working right now so I'm pretty sure the app itself starts fine. Per the logs 
It was actually getting started by javamonitor without error but javamonitor 
didn't know it. 

Sent from my iPhone

 On Mar 4, 2014, at 9:01 AM, Aaron Rosenzweig aa...@chatnbike.com wrote:
 
 Hi Jeff,
 
 I wonder if you are having NSLOOKUP trouble.
 
 If the DNS isn’t just right, WO can get easily confused and probably will 
 cause sporadic problems like you are experiencing.
 
 Right? If I understand it correctly things are failing somewhat randomly. 
 It’s not like they never work, they sometimes do. That smells of DNS trouble. 
 
 In particular:
 
 Check that the machine is properly identified in the DNS including the 
 reverse lookup.
 AARON ROSENZWEIG / Chat 'n Bike
 e:  aa...@chatnbike.com  t:  (301) 956-2319   
   
 
 On Mar 4, 2014, at 4:44 AM, Jeffrey Schmitz j...@netbrackets.com wrote:
 
 JavaMonitor started the instances, and they start fine with no errors.  
 
 Is there some way I can get this working without javamonitor knowing it's 
 running at least temporarily?  The app is up and running according to the 
 log at least.
 
 
 On Mar 4, 2014, at 3:08 AM, Alexander Spohr a...@freeport.de wrote:
 
 
 Am 04.03.2014 um 09:30 schrieb Jeffrey Schmitz j...@netbrackets.com:
 
 port = 2003; runningState = DEAD
 
 Who started the instances?
 Are they on the right port?
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/aaron%40chatnbike.com
 
 This email sent to aa...@chatnbike.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Windows Deployment

2014-02-26 Thread Jeff Schmitz
Not in the path to the windows source

Sent from my iPhone

 On Feb 24, 2014, at 10:18 PM, Robert B. Hanviriyapunt roberth...@mac.com 
 wrote:
 
 Just curious, does any folder name contain a space in it?
 
 On Feb 24, 2014, at 7:48 PM, Jeffrey Schmitz j...@netbrackets.com wrote:
 
 Hello List,
In my day job I'm evaluating webobjects for a project I'm on, with the 
 prerequisite that it must be developed and deployed on Windows.  So... I'm 
 gamely following the Webobjects on Windows directions that I can find and 
 keeping a diary of the experience and the gotcha's I've run into, which 
 I'll gladly share if/when I get through this.  
 
 At this point I've actually bumbled my way to getting the Wonder Example 
 projects to build and run within Eclipse, as well as created my own Hello 
 World project, so now I'm on to deployment.
 
  For the deployment effort I've been following:
 
 http://wiki.wocommunity.org/display/WEB/Your+First+Deployment
 
 This noted that I needed to build and install frameworks first.  Since I’m 
 using wonder, I went to:
 
 http://wiki.wocommunity.org/display/documentation/Building+and+Installing+a+Framework+with+Ant
 
 I first tried to do an 'ant build' command in the WonderSource directory as 
 it was after cloning it from the git repository, but got the exception shown 
 at the bottom of this email.
 
 Then I noted the  following passage:
 
 When building a Framework project, Ant needs to be able to find WebObjects. 
 WebObjects itself is a set of Frameworks just like the one you are building. 
 They can be installed anywhere using these instructions.
 Where Ant will look for WebObjects is specified by the wo.system.frameworks 
 build property. This property can be set in a number of locations, or even 
 passed as a command-line property to Ant.
 Where Ant looks for this property is different for each method of building a 
 Framework:
 
 4. Command Line
 a. Properties specified in the Ant command: -Dproperty=value
 
 b.A properties file specified in the Ant command: -propertyfile name
 
 c. The build.properties file in the same directory as the build.xml file 
 as specified by property file=build.properties / task in the build.xml 
 file.
 
  
 
 So, since I was shooting for option 4.c, I created a build.properties file 
 in the WonderSource main folder and added the following line to mimic what 
 WOLips used in its properties file:
 
 wo.system.frameworks=C\:\\Apple\\System\\Library\\Frameworks
 
 and then I added the following line just under the project element in the 
 existing build.xml  file:
 
 property file=build.properties /  
 
 Doing another 'ant build' command resulted in the same exception which is 
 shown below, all of which leaves me stuck and hoping I can get a nudge in 
 the right direction.  I've got all the notes about how I got to where I am.  
 If that helps I'll gladly dump all or part of it in a separate message.
 
 -- Output from 'ant build' command  ---
 
 Buildfile: C:\Users\si454a\GIT Folders\WonderSource\build.xml
  
 frameworks:
  
 frameworks.all:
  
 patch.frameworks.54:
  
 ERJars.all:
  
 global.environment:
  
 global.properties:
  
 global.prepare:
  
 global.compile:
  
 global.dummy:
  
 BUILD FAILED
 C:\Users\si454a\GIT Folders\WonderSource\build.xml:13: The following error 
 occur
 red while executing this line:
 C:\Users\si454a\GIT Folders\WonderSource\Build\build\build.xml:1428: The 
 followi
 ng error occurred while executing this line:
 C:\Users\si454a\GIT Folders\WonderSource\Build\build\build.xml:1419: The 
 followi
 ng error occurred while executing this line:
 C:\Users\si454a\GIT Folders\WonderSource\Build\build\build.xml:58: The 
 following
 error occurred while executing this line:
 C:\Users\si454a\GIT Folders\WonderSource\Build\build\generic.xml:270: 
 java.lang.
 NullPointerException
 at java.util.Hashtable.put(Hashtable.java:542)
 at java.util.Properties.setProperty(Properties.java:161)
 at 
 org.objectstyle.woenvironment.env.WOVariables.createDefaultProperties
 (Unknown Source)
 at org.objectstyle.woenvironment.env.WOVariables.init(Unknown Source)
 at org.objectstyle.woenvironment.env.WOVariables.init(Unknown 
 Source)
 at org.objectstyle.woenvironment.env.WOEnvironment.init(Unknown 
 Source
 )...
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/roberthana%40mac.com
 
 This email sent to roberth...@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:

D2W Edit page not saving

2012-01-24 Thread Jeff Schmitz
Hope this isn't a double post, but my original posting seems to be in limbo 
somewhere...

Hello board,
   After watching several of the excellent D2W webcasts, including Dave L's two 
part intro, as well as reading much of the wiki D2W docs, I thought it time to 
get my hands dirty with D2W.  I am trying to add an ERModernLook D2W Edit page 
for an ApplicationState entity object, to an already created Wonder project.  
By using the below process I've gotten pretty close, but whenever I try to save 
edits from the page, it returns with errors telling  me I need to enter values 
for most of the fields, even though values are entered in the fields.  I'm sure 
there's some step I overlooked, but can't seem to figure it out.  Any ideas?


Steps to add an ERModernLook page in and already existing non-D2W Wonder App:

1. Make sure you have the following libraries imported into your project:
Ajax Framework
ERCoolComponents
ERDirectToWeb
ERModernDefaultSkin
ERModernDirectToWeb
ERModernLook
JavaDirectToWeb
JavaDTWGeneration
WOLips

If you don't do all the above, when you try to bring up your D2W page you'll 
get unable to find component errors for components such as the WOToolBar, 
CCAjax..., etc.

2.   Add code something like this to the page from which you will access the 
D2W page, using your own entity instead of ApplicationState of course:


  public WOActionResults goToAppState() {
EOQualifier appStateFetch = ApplicationState.POOL_TYPE.eq(0);
appState = ApplicationState.fetchRequiredApplicationState(this.compEC, 
appStateFetch);
EditPageInterface epi = 
(EditPageInterface)D2W.factory().editPageForEntityNamed(ApplicationState.ENTITY_NAME,
 Session());
epi.setObject(appState);
epi.setNextPage(this.context().page());
return (WOActionResults)epi;
  }


  and add a corresponding link to the same page to invoke the above code:

 wo:WOHyperlink action=goToAppStateSet Application 
State/wo:WOHyperlink

3. Create a new Wonder D2W Application and from it copy the PageWrapper and 
MenuHeader components into your application. 

4. Add the following properties to your project's Properties file

er.component.clickToOpen=true
wolips.password=wo

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Using Maven

2011-12-28 Thread Jeff Schmitz
Hello all,
   I have been reading up on Maven the past few days and wanted to give it a 
try with a webobjects project.  So I've tried following the Quick Start process 
outlined here:

http://wiki.wocommunity.org/display/WOL/Quick+Start

I ran the following bootstrap command:

mvn wobootstrap:install 
-DwebObjectsLibFolder=/Developer/WebObjects/Versions/WebObjects543/Library/WebObjects/lib
 -DwebObjectsVersion=5.4.3

and the following archetype command to create the project:

mvn archetype:generate -DarchetypeArtifactId=erxapplication-archetype \
-DarchetypeGroupId=org.objectstyle.woproject.maven2 \
-DarchetypeVersion=2.1


Everything seems to have gone well until step 5.  After importing into Eclipse 
the project created by the webobjects archetype command, I'm unable to get it 
to run from within eclipse.  I setup a debug configuration, but when I try to 
debug I get:

Exception in thread main java.lang.NoClassDefFoundError: 
com/test/components/Main

I think I have the required frameworks in my build path, so I'm not sure why it 
can't find class Main, which does exist in the project in 
src/main/java/com/test/components/Main.java

Any ideas what's going on?

Thanks,
Jeff
 ___
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: Problem loading Ajax frameworks

2011-11-28 Thread Jeff Schmitz
As I never did resolve this one, I thought I'd resurrect this thread..

The long and the short of it is,
How I can get my App to generate Wonder Framework javascript (and other static 
resource) references that point here:

/WebObjects/Frameworks/... (e.g.  script 
src=/WebObjects/Frameworks/Ajax.framework/WebServerResources/prototype.js)


instead of here:

/WebObjects/myApp.woa/Frameworks... (e.g. script 
src=/WebObjects/netBrackets.woa/Frameworks/Ajax.framework/WebServerResources/prototype.js)


So that the references match where the Wonder framework resources are installed 
when following these instructions:

http://wiki.objectstyle.org/confluence/display/WO/Building+and+Installing+a+Framework+with+Ant


I tried Chucks suggestion...
   You probably have the wrong setting in build.properties, try this:

frameworksBaseURL=/WebObjects/Frameworks

to no avail as the generated references are still looking under the project 
specific directory. 

any other ideas?
Jeff

On Nov 21, 2011, at 10:40 PM, Stavros Panidis wrote:

 Dear Jeremy,
 
 Many thanks, this problem solved.
 
 Actually in this server static pages are in 
 /Library/Server/Web/Data/Sites/Mysite
 
 so I copied WebServerResources in WebObjects inside Mysite folder. Now it 
 works.
 
 Best regards
 
 Stavros
 
 On 21 Νοε 2011, at 8:28 μ.μ., Jérémy DE ROYER [INGENCYS] wrote:
 
 Hello,
 
 Did you copy the folders WebServerResources of yours app/frameworks in the 
 folder WebObjects of your WebServer (located in /Library/WebServer/Documents 
 on Mac OS X Server) ?
 
 Jérémy
 
 Le 21 nov. 2011 à 19:24, Stavros Panidis a écrit :
 
 Hi,
 
 I have the following error in a deployed application (Lion server)
 
 GET 
 http://www.mysite.com/WebObjects/myapp.woa/Frameworks/Ajax.framework/WebServerResources/prototype.js
 404 (Not Found)
 GET 
 http://www.mysite.com/WebObjects/myapp.woa/Frameworks/Ajax.framework/WebServerResources/wonder.js
404 (Not Found)
 GET 
 http://www.mysite.com/WebObjects/myapp.woa/Frameworks/Ajax.framework/WebServerResources/effects.js
   404 (Not Found)
 
 ReferenceError Can't find variable ASB
 ReferenceError Can't find variable ASB
 ReferenceError Can't find variable AUC
 
 The application works fine in other aspects.
 
 Also at the same deployment machine css files are not loaded  in JAVA 
 MONITOR when run as instance. 
 
 Has to do with permissions? Any other help?
 
 
 Many thanks in advance
 
 
 Stavros
 
 
 ___
 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/jeremy.deroyer%40ingencys.net
 
 This email sent to jeremy.dero...@ingencys.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/jeffandmonica%40mac.com
 
 This email sent to jeffandmon...@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: Connection Dictionary for ERAttachment (go away!)

2011-11-26 Thread Jeff Schmitz
It ended up being a bad build.xml file.  When updating my WOApplication build 
file I copied in a Wonder Framework build file on accident.

 
On Nov 24, 2011, at 11:12 PM, Jeff Schmitz wrote:

 A little more info.  I've noticed that in the dist folder where my 
 WOApplication is built, the MacOSClassPath.txt file under .../Contents/MacOS 
 does reference the ERAttachment jar...
 
 LOCALROOT/Library/Frameworks/ERAttachment.framework/Resources/Java/ERAttachment.jar
 
 I'm just not sure where it's picking this up though.  I'm using the Run 
 As-Ant Build command to install.
 
 
 
 IOn Nov 24, 2011, at 9:03 PM, Chuck Hill wrote:
 
 You must still have the framework as part of your project.  CHeck here:
 
 PastedGraphic-2.pdf
 
 
 
 On 2011-11-24, at 5:33 PM, Jeff Schmitz wrote:
 
 I'm Lucky there's some Canadians on here to respond on Thanksgiving day :-)
 
 I should have checked this before, but yes, looking at the startup log, it 
 is getting set in my classpath (see below).  Deleting the ERAttachment 
 framework in /Library/Frameworks got rid of the problem.  Is that the 
 proper thing to do? Or is there a proper way to fix it?  It is still 
 showing up in my classpath variables in the startup log.
 
 com.webobjects.classpath=/.../Library/Frameworks/ERAttachment.framework/Resources/Java/ERAttachment.jar:...
 
 and
 
 er.extensions.appserver.ERXApplication  - classpath =
 ...
 /Library/Frameworks/ERAttachment.framework/Resources/Java/ERAttachment.jar
 ...
 
 Thanks!
 Jeff
 
 On Nov 24, 2011, at 11:54 AM, Chuck Hill wrote:
 
 It is almost certainly on your classpath somewhere.  Check the classpath 
 on the deployment machine.
 
 On 2011-11-24, at 8:17 AM, Jeff Schmitz wrote:
 
 Hello,
 I have a Wonder App/Wonder Framework combo application that runs on my 
 development machine, but when I deploy I'm getting the following error 
 about connection dictionaries not being equal:
 
 The connection dictionaries for netbracketsFW and ERAttachment have the 
 same URL and username, but the connection dictionaries are not equal. 
 Check your connection dictionaries carefully! This problem is often 
 caused by jdbc2Info not matching between the two.  One fix for this is to 
 set netbracketsFW.removeJdbc2Info=true and 
 ERAttachment.removeJdbc2Info=true in your Properties file. 
 (netbracketsFW={driver = jdbc.FrontBase.FBJDriver; password = 
 smsbear1; username = netBrackets; URL = 
 jdbc:FrontBase://localhost/netBrackets/isolation=read_committed/locking=optimistic;
  }; and ERAttachment={password = smsbear1; username = netBrackets; 
 URL = 
 jdbc:FrontBase://localhost/netBrackets/isolation=read_committed/locking=optimistic;
  }).
 
 I'm not importing the ERAttachment framework anywhere in my projects, 
 although I had it in there briefly as I was dabbling with it, at which 
 time it seems to have injected itself somewhere in my projects like a bad 
 virus.
 Also,  I looked through the following list of properties files on my 
 deployment machine:
   • Resources/Properties in any frameworks that the application links to
   • Resources/Properties.username in any frameworks that the application 
 links to
   • Resources/Properties in the application itself
   • WebObjects.properties under the home directory (not sure on this 
 file's precedence)
   • Resources/Properties.dev (when app is launched in Development Mode)
   • Properties in /etc/WebObjects/YourAppName/
   • Resources/Properties.username in the application itself
 and the only connection dictionary properties I found were my Framework 
 project's Resources/Properties file:
 
 dbConnectURLGLOBAL=jdbc:FrontBase://localhost/netBrackets/isolation=read_committed/locking=optimistic
 dbConnectUserGLOBAL=netBrackets
 dbConnectPasswordGLOBAL=myPassword
 
 For now, I'd like to get rid of all vestiges of ERAttachment from my app, 
 but it doesn't seem to want to go away on my deployment machine.  Any 
 ideas where it's picking up this reference to an ERAttachment connection 
 dictionary on my deployment machine?
 
 Thanks!
 Jeff
 
 ___
 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/chill%40global-village.net
 
 This email sent to ch...@global-village.net
 
 -- 
 Chuck Hill Senior Consultant / VP Development
 
 Practical WebObjects - for developers who want to increase their overall 
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects
 
 
 
 
 
 
 
 
 
 -- 
 Chuck Hill Senior Consultant / VP Development
 
 Practical WebObjects - for developers who want to increase their overall 
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects

Connection Dictionary for ERAttachment (go away!)

2011-11-24 Thread Jeff Schmitz
Hello,
   I have a Wonder App/Wonder Framework combo application that runs on my 
development machine, but when I deploy I'm getting the following error about 
connection dictionaries not being equal:

The connection dictionaries for netbracketsFW and ERAttachment have the same 
URL and username, but the connection dictionaries are not equal. Check your 
connection dictionaries carefully! This problem is often caused by jdbc2Info 
not matching between the two.  One fix for this is to set 
netbracketsFW.removeJdbc2Info=true and ERAttachment.removeJdbc2Info=true in 
your Properties file. (netbracketsFW={driver = jdbc.FrontBase.FBJDriver; 
password = smsbear1; username = netBrackets; URL = 
jdbc:FrontBase://localhost/netBrackets/isolation=read_committed/locking=optimistic;
 }; and ERAttachment={password = smsbear1; username = netBrackets; URL = 
jdbc:FrontBase://localhost/netBrackets/isolation=read_committed/locking=optimistic;
 }).

I'm not importing the ERAttachment framework anywhere in my projects, although 
I had it in there briefly as I was dabbling with it, at which time it seems to 
have injected itself somewhere in my projects like a bad virus.
Also,  I looked through the following list of properties files on my deployment 
machine:
Resources/Properties in any frameworks that the application links to
Resources/Properties.username in any frameworks that the application links to
Resources/Properties in the application itself
WebObjects.properties under the home directory (not sure on this file's 
precedence)
Resources/Properties.dev (when app is launched in Development Mode)
Properties in /etc/WebObjects/YourAppName/
Resources/Properties.username in the application itself
and the only connection dictionary properties I found were my Framework 
project's Resources/Properties file:

dbConnectURLGLOBAL=jdbc:FrontBase://localhost/netBrackets/isolation=read_committed/locking=optimistic
dbConnectUserGLOBAL=netBrackets
dbConnectPasswordGLOBAL=myPassword

For now, I'd like to get rid of all vestiges of ERAttachment from my app, but 
it doesn't seem to want to go away on my deployment machine.  Any ideas where 
it's picking up this reference to an ERAttachment connection dictionary on my 
deployment machine?

Thanks!
Jeff

 ___
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: Connection Dictionary for ERAttachment (go away!)

2011-11-24 Thread Jeff Schmitz
I'm Lucky there's some Canadians on here to respond on Thanksgiving day :-)

I should have checked this before, but yes, looking at the startup log, it is 
getting set in my classpath (see below).  Deleting the ERAttachment framework 
in /Library/Frameworks got rid of the problem.  Is that the proper thing to do? 
Or is there a proper way to fix it?  It is still showing up in my classpath 
variables in the startup log.

  
com.webobjects.classpath=/.../Library/Frameworks/ERAttachment.framework/Resources/Java/ERAttachment.jar:...

and

er.extensions.appserver.ERXApplication  - classpath =
...
/Library/Frameworks/ERAttachment.framework/Resources/Java/ERAttachment.jar
...

Thanks!
Jeff

On Nov 24, 2011, at 11:54 AM, Chuck Hill wrote:

 It is almost certainly on your classpath somewhere.  Check the classpath on 
 the deployment machine.
 
 On 2011-11-24, at 8:17 AM, Jeff Schmitz wrote:
 
 Hello,
   I have a Wonder App/Wonder Framework combo application that runs on my 
 development machine, but when I deploy I'm getting the following error about 
 connection dictionaries not being equal:
 
 The connection dictionaries for netbracketsFW and ERAttachment have the same 
 URL and username, but the connection dictionaries are not equal. Check your 
 connection dictionaries carefully! This problem is often caused by jdbc2Info 
 not matching between the two.  One fix for this is to set 
 netbracketsFW.removeJdbc2Info=true and ERAttachment.removeJdbc2Info=true in 
 your Properties file. (netbracketsFW={driver = jdbc.FrontBase.FBJDriver; 
 password = smsbear1; username = netBrackets; URL = 
 jdbc:FrontBase://localhost/netBrackets/isolation=read_committed/locking=optimistic;
  }; and ERAttachment={password = smsbear1; username = netBrackets; URL = 
 jdbc:FrontBase://localhost/netBrackets/isolation=read_committed/locking=optimistic;
  }).
 
 I'm not importing the ERAttachment framework anywhere in my projects, 
 although I had it in there briefly as I was dabbling with it, at which time 
 it seems to have injected itself somewhere in my projects like a bad virus.
 Also,  I looked through the following list of properties files on my 
 deployment machine:
  • Resources/Properties in any frameworks that the application links to
  • Resources/Properties.username in any frameworks that the application 
 links to
  • Resources/Properties in the application itself
  • WebObjects.properties under the home directory (not sure on this 
 file's precedence)
  • Resources/Properties.dev (when app is launched in Development Mode)
  • Properties in /etc/WebObjects/YourAppName/
  • Resources/Properties.username in the application itself
 and the only connection dictionary properties I found were my Framework 
 project's Resources/Properties file:
 
 dbConnectURLGLOBAL=jdbc:FrontBase://localhost/netBrackets/isolation=read_committed/locking=optimistic
 dbConnectUserGLOBAL=netBrackets
 dbConnectPasswordGLOBAL=myPassword
 
 For now, I'd like to get rid of all vestiges of ERAttachment from my app, 
 but it doesn't seem to want to go away on my deployment machine.  Any ideas 
 where it's picking up this reference to an ERAttachment connection 
 dictionary on my deployment machine?
 
 Thanks!
 Jeff
 
 ___
 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/chill%40global-village.net
 
 This email sent to ch...@global-village.net
 
 -- 
 Chuck Hill Senior Consultant / VP Development
 
 Practical WebObjects - for developers who want to increase their overall 
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects
 
 
 
 
 
 
 

 ___
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: Connection Dictionary for ERAttachment (go away!)

2011-11-24 Thread Jeff Schmitz
That's correct.  I've always been hesitant to do that in the past because I'm 
afraid it will make my deployment package very large, which means it would take 
a lot of time to copy to my server over the network, as well as I assume taking 
a lot of bandwidth.  But I'll give it a try as it would alleviate a lot of 
headaches I seem to get myself into.  My build script though doesn't look at 
those properties.  It's setup more like is shown here:

http://wiki.objectstyle.org/confluence/display/WOL/Embedding+WOFrameworks

If I set the properties in my WOApplication as explained at the top of the 
above article (copied below) should that be all I need to do? 

For WOLips 3.4.x and later, while embedding is built-in, it's not enabled by 
default. To enable embedding:

• make sure you are in the WO Explorer view
• right-click your project folder, select Properties, select WOLips 
Deployment
• check the related, if not all, options under Embed Frameworks


 I noticed for my Framework project the embed options are disabled.  Is that 
normal? I'm guessing yes since you probably really just need everything 
embedded in your top level application.

Jeff


On Nov 24, 2011, at 8:03 PM, Paul Yu wrote:

 So it sounds like you are not embedding the frameworks in your deployment woa.
 
 You should change your build properties to include the following:
 
 embed.Local=true
 embed.Project=true
 embed.System=true
 
 
 
 On Nov 24, 2011, at 8:33 PM, Jeff Schmitz wrote:
 
 I'm Lucky there's some Canadians on here to respond on Thanksgiving day :-)
 
 I should have checked this before, but yes, looking at the startup log, it 
 is getting set in my classpath (see below).  Deleting the ERAttachment 
 framework in /Library/Frameworks got rid of the problem.  Is that the proper 
 thing to do? Or is there a proper way to fix it?  It is still showing up 
 in my classpath variables in the startup log.
 
 com.webobjects.classpath=/.../Library/Frameworks/ERAttachment.framework/Resources/Java/ERAttachment.jar:...
 
 and
 
 er.extensions.appserver.ERXApplication  - classpath =
 ...
 /Library/Frameworks/ERAttachment.framework/Resources/Java/ERAttachment.jar
 ...
 
 Thanks!
 Jeff
 
 On Nov 24, 2011, at 11:54 AM, Chuck Hill wrote:
 
 It is almost certainly on your classpath somewhere.  Check the classpath on 
 the deployment machine.
 
 On 2011-11-24, at 8:17 AM, Jeff Schmitz wrote:
 
 Hello,
 I have a Wonder App/Wonder Framework combo application that runs on my 
 development machine, but when I deploy I'm getting the following error 
 about connection dictionaries not being equal:
 
 The connection dictionaries for netbracketsFW and ERAttachment have the 
 same URL and username, but the connection dictionaries are not equal. 
 Check your connection dictionaries carefully! This problem is often caused 
 by jdbc2Info not matching between the two.  One fix for this is to set 
 netbracketsFW.removeJdbc2Info=true and ERAttachment.removeJdbc2Info=true 
 in your Properties file. (netbracketsFW={driver = 
 jdbc.FrontBase.FBJDriver; password = smsbear1; username = 
 netBrackets; URL = 
 jdbc:FrontBase://localhost/netBrackets/isolation=read_committed/locking=optimistic;
  }; and ERAttachment={password = smsbear1; username = netBrackets; URL 
 = 
 jdbc:FrontBase://localhost/netBrackets/isolation=read_committed/locking=optimistic;
  }).
 
 I'm not importing the ERAttachment framework anywhere in my projects, 
 although I had it in there briefly as I was dabbling with it, at which 
 time it seems to have injected itself somewhere in my projects like a bad 
 virus.
 Also,  I looked through the following list of properties files on my 
 deployment machine:
• Resources/Properties in any frameworks that the application links to
• Resources/Properties.username in any frameworks that the application 
 links to
• Resources/Properties in the application itself
• WebObjects.properties under the home directory (not sure on this 
 file's precedence)
• Resources/Properties.dev (when app is launched in Development Mode)
• Properties in /etc/WebObjects/YourAppName/
• Resources/Properties.username in the application itself
 and the only connection dictionary properties I found were my Framework 
 project's Resources/Properties file:
 
 dbConnectURLGLOBAL=jdbc:FrontBase://localhost/netBrackets/isolation=read_committed/locking=optimistic
 dbConnectUserGLOBAL=netBrackets
 dbConnectPasswordGLOBAL=myPassword
 
 For now, I'd like to get rid of all vestiges of ERAttachment from my app, 
 but it doesn't seem to want to go away on my deployment machine.  Any 
 ideas where it's picking up this reference to an ERAttachment connection 
 dictionary on my deployment machine?
 
 Thanks!
 Jeff
 
 ___
 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

Re: Connection Dictionary for ERAttachment (go away!)

2011-11-24 Thread Jeff Schmitz
If just having ERAttachment installed in Library/Frameworks isn't the problem, 
then that's true.  But it is something that's burned me in the past, and in 
most cases you're the one that helped me figure out what was going on :-)


On Nov 24, 2011, at 9:49 PM, Chuck Hill wrote:

 
 On 2011-11-24, at 7:39 PM, Jeff Schmitz wrote:
 
 That's correct.  I've always been hesitant to do that in the past because 
 I'm afraid it will make my deployment package very large, which means it 
 would take a lot of time to copy to my server over the network, as well as I 
 assume taking a lot of bandwidth.  But I'll give it a try as it would 
 alleviate a lot of headaches I seem to get myself into.
 
 
 That does not seem to be your original problem.  Your original problem was 
 that you did not want ERAttachment and kept getting it loading.  Embedding is 
 not going to change that. 
 
 
 My build script though doesn't look at those properties.  It's setup more 
 like is shown here:
 
 http://wiki.objectstyle.org/confluence/display/WOL/Embedding+WOFrameworks
 
 If I set the properties in my WOApplication as explained at the top of the 
 above article (copied below) should that be all I need to do? 
 
 For WOLips 3.4.x and later, while embedding is built-in, it's not enabled by 
 default. To enable embedding:
 
  • make sure you are in the WO Explorer view
  • right-click your project folder, select Properties, select WOLips 
 Deployment
  • check the related, if not all, options under Embed Frameworks
 
 
 I noticed for my Framework project the embed options are disabled.  Is that 
 normal? I'm guessing yes since you probably really just need everything 
 embedded in your top level application.
 
 Correct, only Applications can embed frameworks.
 
 
 
 On Nov 24, 2011, at 8:03 PM, Paul Yu wrote:
 
 So it sounds like you are not embedding the frameworks in your deployment 
 woa.
 
 You should change your build properties to include the following:
 
 embed.Local=true
 embed.Project=true
 embed.System=true
 
 
 
 On Nov 24, 2011, at 8:33 PM, Jeff Schmitz wrote:
 
 I'm Lucky there's some Canadians on here to respond on Thanksgiving day :-)
 
 I should have checked this before, but yes, looking at the startup log, it 
 is getting set in my classpath (see below).  Deleting the ERAttachment 
 framework in /Library/Frameworks got rid of the problem.  Is that the 
 proper thing to do? Or is there a proper way to fix it?  It is still 
 showing up in my classpath variables in the startup log.
 
 com.webobjects.classpath=/.../Library/Frameworks/ERAttachment.framework/Resources/Java/ERAttachment.jar:...
 
 and
 
 er.extensions.appserver.ERXApplication  - classpath =
 ...
 /Library/Frameworks/ERAttachment.framework/Resources/Java/ERAttachment.jar
 ...
 
 Thanks!
 Jeff
 
 On Nov 24, 2011, at 11:54 AM, Chuck Hill wrote:
 
 It is almost certainly on your classpath somewhere.  Check the classpath 
 on the deployment machine.
 
 On 2011-11-24, at 8:17 AM, Jeff Schmitz wrote:
 
 Hello,
 I have a Wonder App/Wonder Framework combo application that runs on my 
 development machine, but when I deploy I'm getting the following error 
 about connection dictionaries not being equal:
 
 The connection dictionaries for netbracketsFW and ERAttachment have the 
 same URL and username, but the connection dictionaries are not equal. 
 Check your connection dictionaries carefully! This problem is often 
 caused by jdbc2Info not matching between the two.  One fix for this is 
 to set netbracketsFW.removeJdbc2Info=true and 
 ERAttachment.removeJdbc2Info=true in your Properties file. 
 (netbracketsFW={driver = jdbc.FrontBase.FBJDriver; password = 
 smsbear1; username = netBrackets; URL = 
 jdbc:FrontBase://localhost/netBrackets/isolation=read_committed/locking=optimistic;
  }; and ERAttachment={password = smsbear1; username = netBrackets; 
 URL = 
 jdbc:FrontBase://localhost/netBrackets/isolation=read_committed/locking=optimistic;
  }).
 
 I'm not importing the ERAttachment framework anywhere in my projects, 
 although I had it in there briefly as I was dabbling with it, at which 
 time it seems to have injected itself somewhere in my projects like a 
 bad virus.
 Also,  I looked through the following list of properties files on my 
 deployment machine:
  • Resources/Properties in any frameworks that the application links to
  • Resources/Properties.username in any frameworks that the application 
 links to
  • Resources/Properties in the application itself
  • WebObjects.properties under the home directory (not sure on this 
 file's precedence)
  • Resources/Properties.dev (when app is launched in Development Mode)
  • Properties in /etc/WebObjects/YourAppName/
  • Resources/Properties.username in the application itself
 and the only connection dictionary properties I found were my Framework 
 project's Resources/Properties file:
 
 dbConnectURLGLOBAL=jdbc:FrontBase://localhost/netBrackets/isolation=read_committed/locking=optimistic

Re: Connection Dictionary for ERAttachment (go away!)

2011-11-24 Thread Jeff Schmitz
A little more info.  I've noticed that in the dist folder where my 
WOApplication is built, the MacOSClassPath.txt file under .../Contents/MacOS 
does reference the ERAttachment jar...

LOCALROOT/Library/Frameworks/ERAttachment.framework/Resources/Java/ERAttachment.jar

I'm just not sure where it's picking this up though.  I'm using the Run As-Ant 
Build command to install.



IOn Nov 24, 2011, at 9:03 PM, Chuck Hill wrote:

 You must still have the framework as part of your project.  CHeck here:
 
 PastedGraphic-2.pdf
 
 
 
 On 2011-11-24, at 5:33 PM, Jeff Schmitz wrote:
 
 I'm Lucky there's some Canadians on here to respond on Thanksgiving day :-)
 
 I should have checked this before, but yes, looking at the startup log, it 
 is getting set in my classpath (see below).  Deleting the ERAttachment 
 framework in /Library/Frameworks got rid of the problem.  Is that the proper 
 thing to do? Or is there a proper way to fix it?  It is still showing up 
 in my classpath variables in the startup log.
 
 com.webobjects.classpath=/.../Library/Frameworks/ERAttachment.framework/Resources/Java/ERAttachment.jar:...
 
 and
 
 er.extensions.appserver.ERXApplication  - classpath =
 ...
 /Library/Frameworks/ERAttachment.framework/Resources/Java/ERAttachment.jar
 ...
 
 Thanks!
 Jeff
 
 On Nov 24, 2011, at 11:54 AM, Chuck Hill wrote:
 
 It is almost certainly on your classpath somewhere.  Check the classpath on 
 the deployment machine.
 
 On 2011-11-24, at 8:17 AM, Jeff Schmitz wrote:
 
 Hello,
 I have a Wonder App/Wonder Framework combo application that runs on my 
 development machine, but when I deploy I'm getting the following error 
 about connection dictionaries not being equal:
 
 The connection dictionaries for netbracketsFW and ERAttachment have the 
 same URL and username, but the connection dictionaries are not equal. 
 Check your connection dictionaries carefully! This problem is often caused 
 by jdbc2Info not matching between the two.  One fix for this is to set 
 netbracketsFW.removeJdbc2Info=true and ERAttachment.removeJdbc2Info=true 
 in your Properties file. (netbracketsFW={driver = 
 jdbc.FrontBase.FBJDriver; password = smsbear1; username = 
 netBrackets; URL = 
 jdbc:FrontBase://localhost/netBrackets/isolation=read_committed/locking=optimistic;
  }; and ERAttachment={password = smsbear1; username = netBrackets; URL 
 = 
 jdbc:FrontBase://localhost/netBrackets/isolation=read_committed/locking=optimistic;
  }).
 
 I'm not importing the ERAttachment framework anywhere in my projects, 
 although I had it in there briefly as I was dabbling with it, at which 
 time it seems to have injected itself somewhere in my projects like a bad 
 virus.
 Also,  I looked through the following list of properties files on my 
 deployment machine:
• Resources/Properties in any frameworks that the application links to
• Resources/Properties.username in any frameworks that the application 
 links to
• Resources/Properties in the application itself
• WebObjects.properties under the home directory (not sure on this 
 file's precedence)
• Resources/Properties.dev (when app is launched in Development Mode)
• Properties in /etc/WebObjects/YourAppName/
• Resources/Properties.username in the application itself
 and the only connection dictionary properties I found were my Framework 
 project's Resources/Properties file:
 
 dbConnectURLGLOBAL=jdbc:FrontBase://localhost/netBrackets/isolation=read_committed/locking=optimistic
 dbConnectUserGLOBAL=netBrackets
 dbConnectPasswordGLOBAL=myPassword
 
 For now, I'd like to get rid of all vestiges of ERAttachment from my app, 
 but it doesn't seem to want to go away on my deployment machine.  Any 
 ideas where it's picking up this reference to an ERAttachment connection 
 dictionary on my deployment machine?
 
 Thanks!
 Jeff
 
 ___
 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/chill%40global-village.net
 
 This email sent to ch...@global-village.net
 
 -- 
 Chuck Hill Senior Consultant / VP Development
 
 Practical WebObjects - for developers who want to increase their overall 
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects
 
 
 
 
 
 
 
 
 
 -- 
 Chuck Hill Senior Consultant / VP Development
 
 Practical WebObjects - for developers who want to increase their overall 
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects
 
 
 
 
 
 
 

 ___
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

Re: Cant find imported jar

2011-11-22 Thread Jeff Schmitz
Hmm, I thought I had checked that and was still getting the error.  However, in 
the interim I reverted my build back to a previous state, and I was able to run 
again from within Eclipse.  However I was then getting an error when trying to 
install my Frameworks using WO Ant Tools-Install. 

More specifically, I'm using Lion/Eclipse3.7.1/Webobjects5.4.3, and the method 
described here for my WOLips intallation:

http://wiki.objectstyle.org/confluence/display/WOL/Using+WOLips+With+Multiple+Versions+of+WebObjects

but my framework build script wasn't picking up where to install my framework 
project, and continued to try to install it in /Library/Frameworks.

After looking more closely at my build file, I noticed the variables used in it 
weren't matching the variables used in my wolips.properties files.  e.g. The 
build file was using:

wo.wosystemroot
wo.wolocalroot

when my properties files were using:

wo.system.root
wo.local.root

After updating my build file to match, then the installation worked.  And 
honestly, this was the original problem I had that started me hacking at things 
in the first place that ended up with the previous jar file error.  

Now, I have to ask, does anyone have any idea how these files might have gotten 
out of sync in the first place so perhaps I can avoid such a scenario in the 
future?  I'm guessing it had to do with my recent update to the lastest Eclipse 
and WOLips builds and/or to Lion, since that's about when the build error 
started occurring originally.

Thanks!
Jeff

On Nov 21, 2011, at 2:06 PM, Chuck Hill wrote:

 Are they marked as exported?
 
 PastedGraphic-1.pdf
 
 
 On 2011-11-19, at 8:59 PM, Jeff Schmitz wrote:
 
 Hello list,
 
   I have Eclipse projects that consist of a Wonder Application that 
 references a Wonder Framework.  Everything compiles without error, including 
 NBConfiguration which is resident in the Wonder framework project, but when 
 I run I'm getting the below error about not being able to resolve a 
 referenced import.  The jdom.jar file, which contains the class 
 JDOMException, is in my project build path (otherwise there would be 
 compilation errors).  Obviously something is out of whack, but I'm not sure 
 where to look.  Any help would be mightily appreciated.
 
  The import org.jdom cannot be resolved
  The constructor NBConfiguration() refers to the missing type 
 JDOMException
  JDOMException cannot be resolved to a type
 
 [2011-11-19 22:45:19 CST] main java.lang.Error: Unresolved compilation 
 problems: 
  The import org.jdom cannot be resolved
  The constructor NBConfiguration() refers to the missing type 
 JDOMException
  JDOMException cannot be resolved to a type
 
 ___
 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/chill%40global-village.net
 
 This email sent to ch...@global-village.net
 
 -- 
 Chuck Hill Senior Consultant / VP Development
 
 Practical WebObjects - for developers who want to increase their overall 
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects
 
 
 
 
 
 
 

 ___
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


Cant find imported jar

2011-11-19 Thread Jeff Schmitz
Hello list,

   I have Eclipse projects that consist of a Wonder Application that references 
a Wonder Framework.  Everything compiles without error, including 
NBConfiguration which is resident in the Wonder framework project, but when I 
run I'm getting the below error about not being able to resolve a referenced 
import.  The jdom.jar file, which contains the class JDOMException, is in my 
project build path (otherwise there would be compilation errors).  Obviously 
something is out of whack, but I'm not sure where to look.  Any help would be 
mightily appreciated.

The import org.jdom cannot be resolved
The constructor NBConfiguration() refers to the missing type 
JDOMException
JDOMException cannot be resolved to a type

[2011-11-19 22:45:19 CST] main java.lang.Error: Unresolved compilation 
problems: 
The import org.jdom cannot be resolved
The constructor NBConfiguration() refers to the missing type 
JDOMException
JDOMException cannot be resolved to a type

 ___
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


AjaxSubmitButton URL treated as direct action

2011-10-09 Thread Jeff Schmitz
Hello all,

   I'm trying to use an AjaxSubmitButton, and for some reason the URL generated 
by clicking it is being treated as a DirectAction URL.

Here's the details:

It does this both when using DirectConnect and when using Apache.
The Wonder Ajax framework and ERExtensions framework are both being imported, 
and are the latest Wonder source.

This is the form and submit button code I'm using (this is lifted directly from 
the Expensive Updates Wonder Ajax Examples):
wo:form multipleSubmit = $true
wo:WOText id = newComment rows = 5 cols = 30 value = 
$newComment/
br/
wo:AjaxSubmitButton action = $addComment value = Add as a 
Remote User onClickServer = \$('newComment').value = ''/
/wo:form

This is the generated HTML for the form:
form action=/cgi-bin/WebObjects/netBrackets.woa/-/wo/5.0.21.27 
method=post name=f_0_21_27
textarea id=newComment name=0.21.27.1 cols=30 rows=5/textarea
br
input type=button onclick=ASB.request(this.form,null,{_asbn:'0.21.27.3'}) 
value=Add as a Remote User name=0.21.27.3
/form

The Exception I'm seeing:
java.lang.reflect.InvocationTargetException
at 
com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:269)
at 
com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158)
at 
er.extensions.appserver.ERXDirectActionRequestHandler.handleRequest(ERXDirectActionRequestHandler.java:126)
at 
com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687) 
 //WHY IS THIS INVOKING ERXDirectAction?
at 
er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2021)
at 
er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1986)
at com.netbrackets.app.Application.dispatchRequest(Application.java:106)
at 
com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at 
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.NoSuchMethodException: 
com.netbrackets.app.DirectAction.5.0.21.27Action()
at 
com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:141)
at 
er.extensions.appserver.ERXDirectAction.performActionNamed(ERXDirectAction.java:401)
at 
com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259)
 


This is the log for the submitted URL.  Note at this point it seems to know its 
an ajax action request, WOApplication is shunting the request off to 
ERXDirectActionRequestHander.  :
Oct 08 10:58:21 netBrackets[] (Application.java:103) INFO  
er.extensions.appserver.ERXApplication  - Received ajax action request 
/cgi-bin/WebObjects/netBrackets.woa/-/ajax/35.0.21.27?1318089501545
Oct 08 10:58:21 netBrackets[] (ERXNSLogLog4jBridge.java:40) INFO  NSLog  - 
form values {WOIsmapCoords = (1318089501545); 0.21.27.1 = (test); 0.21.27.3 
= (Add as a Remote User); AJAX_SUBMIT_BUTTON_NAME = (0.21.27.3); _ = (); }

Thanks!
Jeff

 ___
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: Strange constraint violation

2011-10-01 Thread Jeff Schmitz
Well, I thought I was, but apparently I wasn't.  After deleting all my wonder 
framework projects (I'm using them from source), updating my Wonder source from 
git, and re-adding them back into my workspace and build path,  the constraint 
is now being created DEFERRED INITIALLY DEFERRED.  I also put a break point in 
the wonder source in function foreignKeyConstraintStatementsForRelationship, 
and it is getting hit for every addForeignKey call in my migration code.

In the meantime though, I re-designed my database to remove the problem problem 
foreign key that was setup with owns destination and propagate id, so not sure 
if this would have fixed my original problem or not.

As always, thanks much for you help.

Jeff

On Sep 30, 2011, at 3:04 PM, Chuck Hill wrote:

 
 On 2011-09-30, at 12:18 PM, Jeff Schmitz wrote:
 
 Yes, it is also set to Owns Destination.  It's to-one from Pool to 
 Pricing, but I didn't create a return relationship in the Pricing EO, so I 
 don't know if you would consider that one-to-one.  It is mandatory though.
 
 Deferrable is set to No, Check Time is set to Initially Immediate.
 
 That part is wrong.  DEFERRED INITIALLY DEFERRED is what you want.  Entity 
 Modeler or Migrations SHOULD be generating that for you.  You are using the 
 Wonder Frontbase plugin, right?
 
 Chuck
 
 
 
 Oh, and after dropping and restoring the DB on my dev machine, the error is 
 now reproducible on it too.
 
 On Sep 30, 2011, at 1:54 PM, Chuck Hill wrote:
 
 If it also Owns Destination (I think) and is to-one, then EOF will 
 automatically create it.  Otherwise you need to create it.
 
 Is the Pricing relationship optional or mandatory?
 
 Is that constraint marked as DEFERRED INITIALLY DEFERRED?
 
 
 Chuck
 
 
 On 2011-09-30, at 11:47 AM, Jeff Schmitz wrote:
 
 Yep, that's the clue I needed.  There's a defined relationship from Pool 
 to another EO (Pricing) that I created with Propagates primary key.  
 Should such objects get created automatically in the createxxx function 
 of the parent EO code generated by EOModeler?  Seems like they would have 
 to be to keep the ID's in sync, but I'm not seeing it in the generated 
 code.  
 
 
 On Sep 30, 2011, at 12:12 PM, Chuck Hill wrote:
 
 Connect to that database using FrontBaseManager.  Go to Schema Objects, 
 select that table and click the Open Definition button.  Click Foreign 
 Key and see what is really set for that table.  It looks like perhaps you 
 have made a self-referencing FK constraint.
 
 
 
 On 2011-09-29, at 9:44 PM, Jeff Schmitz wrote:
 
 Hello all,
 For some reason I'm seeing the below constraint violation when I try to 
 insert a new EO into my database (frontbase).  I checked the database, 
 and in the t_pool table, no row exists that has the ID of the row being 
 inserted (102), but every time I try to insert a new row I get the 
 below exception.  Also, this build runs fine on my development machine, 
 it's only on the deployment machine where I'm seeing this.  I've tried 
 dropping the database, re-generating my migration code and installing 
 the new build from scratch, but no luck.  
 
 I am a little confused by where it says the violation is occurring:
 
 Integrity constraint violation (FOREIGN KEY, 
 t_pool.t_pool_id_id_FK(id=102)).
 
 as I don't know why it would be considered a foreign key since it's the 
 ID of the row being added, but then I'm no low level DB expert (one of 
 the reasons I use webobjects :-))
 
 
 Any ideas?
 
 
 evaluateExpression: 
 com.webobjects.jdbcadaptor.FrontbasePlugIn$FrontbaseExpression: INSERT 
 INTO t_pool(c_spare_string, c_name, c_paid, c_admin_email, 
 c_can_i_wins_calculated, c_ud_bonus, c_possibilities, 
 c_admin_pw, c_weighted, c_password, c_stand_alone, 
 c_early_bird_paid, c_entry_limit, c_can_i_win_index, 
 c_seed_type, c_admin_msg, c_calculating_can_i_wins, id, 
 c_pool_type, c_updating_results, applicationStateID, 
 c_results_index, c_allow_one_entry_per_user) VALUES ('', 'ZEBRAS NEW 
 401K PLAN', 'false', 'x...@yyy.com', 'false', 'false', 1, 'pw', 'false', 
 'pw', 'false', 'false', 0, 0, 0, NULL, 'false', 102, 1, 'false', 
 101, 0, 'false') withBindings: 
 Sep 29 22:40:39 netBrackets[2002] (ERXDatabaseContextDelegate.java:177) 
 INFO  er.transaction.adaptor.Exceptions  - Database Exception occured: 
 com.webobjects.eoaccess.EOGeneralAdaptorException: EvaluateExpression 
 failed: com.webobjects.jdbcadaptor.FrontbasePlugIn$FrontbaseExpression: 
 INSERT INTO t_pool(c_spare_string, c_name, c_paid, 
 c_admin_email, c_can_i_wins_calculated, c_ud_bonus, 
 c_possibilities, c_admin_pw, c_weighted, c_password, 
 c_stand_alone, c_early_bird_paid, c_entry_limit, 
 c_can_i_win_index, c_seed_type, c_admin_msg, 
 c_calculating_can_i_wins, id, c_pool_type, c_updating_results, 
 applicationStateID, c_results_index, c_allow_one_entry_per_user) 
 VALUES ('', 'ZEBRAS NEW 401K PLAN', 'false', 'x...@yyy.com', 'false', 
 'false', 1, 'pw', 'false', 'pw', 'false', 'false', 0, 0, 0, NULL

Re: Strange constraint violation

2011-09-30 Thread Jeff Schmitz
Hi Pascal,

Yes, it gets the same error when executed directly from FrontbaseManager: 

INSERT INTO t_pool(c_spare_string, c_name, c_paid, c_admin_email, 
c_can_i_wins_calculated, c_ud_bonus, c_possibilities, c_admin_pw, 
c_weighted, c_password, c_stand_alone, c_early_bird_paid, 
c_entry_limit, c_can_i_win_index, c_seed_type, c_admin_msg, 
c_calculating_can_i_wins, id, c_pool_type, c_updating_results, 
applicationStateID, c_results_index, c_allow_one_entry_per_user) VALUES 
('', 'ZEBRAS NEW 401K PLAN', 'false', 'x...@yyy.com', 'false', 'false', 1, 
'pw', 'false', 'pw', 'false', 'false', 0, 0, 0, NULL, 'false', 102, 1, 
'false', 101, 0, 'false');

Exception 361 (23:000). Integrity constraint violation (FOREIGN KEY, 
t_pool.t_pool_id_id_FK(id=102)).
Exception 363 (40:000). Transaction rollback.

Again, there is no row with id 102 in the t_pool table.

Thanks,
Jeff

On Sep 30, 2011, at 6:33 AM, Pascal Robert wrote:

 withBindings:

 ___
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: Strange constraint violation

2011-09-30 Thread Jeff Schmitz
Yep, that's the clue I needed.  There's a defined relationship from Pool to 
another EO (Pricing) that I created with Propagates primary key.  Should such 
objects get created automatically in the createxxx function of the parent EO 
code generated by EOModeler?  Seems like they would have to be to keep the ID's 
in sync, but I'm not seeing it in the generated code.  


On Sep 30, 2011, at 12:12 PM, Chuck Hill wrote:

 Connect to that database using FrontBaseManager.  Go to Schema Objects, 
 select that table and click the Open Definition button.  Click Foreign Key 
 and see what is really set for that table.  It looks like perhaps you have 
 made a self-referencing FK constraint.
 
 
 
 On 2011-09-29, at 9:44 PM, Jeff Schmitz wrote:
 
 Hello all,
   For some reason I'm seeing the below constraint violation when I try to 
 insert a new EO into my database (frontbase).  I checked the database, and 
 in the t_pool table, no row exists that has the ID of the row being inserted 
 (102), but every time I try to insert a new row I get the below 
 exception.  Also, this build runs fine on my development machine, it's only 
 on the deployment machine where I'm seeing this.  I've tried dropping the 
 database, re-generating my migration code and installing the new build from 
 scratch, but no luck.  
 
 I am a little confused by where it says the violation is occurring:
 
 Integrity constraint violation (FOREIGN KEY, 
 t_pool.t_pool_id_id_FK(id=102)).
 
 as I don't know why it would be considered a foreign key since it's the ID 
 of the row being added, but then I'm no low level DB expert (one of the 
 reasons I use webobjects :-))
 
 
 Any ideas?
 
 
 evaluateExpression: 
 com.webobjects.jdbcadaptor.FrontbasePlugIn$FrontbaseExpression: INSERT 
 INTO t_pool(c_spare_string, c_name, c_paid, c_admin_email, 
 c_can_i_wins_calculated, c_ud_bonus, c_possibilities, c_admin_pw, 
 c_weighted, c_password, c_stand_alone, c_early_bird_paid, 
 c_entry_limit, c_can_i_win_index, c_seed_type, c_admin_msg, 
 c_calculating_can_i_wins, id, c_pool_type, c_updating_results, 
 applicationStateID, c_results_index, c_allow_one_entry_per_user) 
 VALUES ('', 'ZEBRAS NEW 401K PLAN', 'false', 'x...@yyy.com', 'false', 
 'false', 1, 'pw', 'false', 'pw', 'false', 'false', 0, 0, 0, NULL, 'false', 
 102, 1, 'false', 101, 0, 'false') withBindings: 
 Sep 29 22:40:39 netBrackets[2002] (ERXDatabaseContextDelegate.java:177) INFO 
  er.transaction.adaptor.Exceptions  - Database Exception occured: 
 com.webobjects.eoaccess.EOGeneralAdaptorException: EvaluateExpression 
 failed: com.webobjects.jdbcadaptor.FrontbasePlugIn$FrontbaseExpression: 
 INSERT INTO t_pool(c_spare_string, c_name, c_paid, c_admin_email, 
 c_can_i_wins_calculated, c_ud_bonus, c_possibilities, c_admin_pw, 
 c_weighted, c_password, c_stand_alone, c_early_bird_paid, 
 c_entry_limit, c_can_i_win_index, c_seed_type, c_admin_msg, 
 c_calculating_can_i_wins, id, c_pool_type, c_updating_results, 
 applicationStateID, c_results_index, c_allow_one_entry_per_user) 
 VALUES ('', 'ZEBRAS NEW 401K PLAN', 'false', 'x...@yyy.com', 'false', 
 'false', 1, 'pw', 'false', 'pw', 'false', 'false', 0, 0, 0, NULL, 'false', 
 102, 1, 'false', 101, 0, 'false') withBindings: :
Next exception:SQL State:23   subclass = 00 -- error code: 361 -- 
 msg: Exception condition 361. Integrity constraint violation (FOREIGN KEY, 
 t_pool.t_pool_id_id_FK(id=102)).
Next exception:SQL State:40   subclass = 00 -- error code: 363 -- 
 msg: Exception condition 363. Transaction rollback.
 Sep 29 22:40:39 netBrackets[2002] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  
 -  === Rollback Internal Transaction
 com.webobjects.eoaccess.EOGeneralAdaptorException: EvaluateExpression 
 failed: com.webobjects.jdbcadaptor.FrontbasePlugIn$FrontbaseExpression: 
 INSERT INTO t_pool(c_spare_string, c_name, c_paid, c_admin_email, 
 c_can_i_wins_calculated, c_ud_bonus, c_possibilities, c_admin_pw, 
 c_weighted, c_password, c_stand_alone, c_early_bird_paid, 
 c_entry_limit, c_can_i_win_index, c_seed_type, c_admin_msg, 
 c_calculating_can_i_wins, id, c_pool_type, c_updating_results, 
 applicationStateID, c_results_index, c_allow_one_entry_per_user) 
 VALUES ('', 'ZEBRAS NEW 401K PLAN', 'false', 'x...@yyy.com', 'false', 
 'false', 1, 'pw', 'false', 'pw', 'false', 'false', 0, 0, 0, NULL, 'false', 
 102, 1, 'false', 101, 0, 'false') withBindings: :
Next exception:SQL State:23   subclass = 00 -- error code: 361 -- 
 msg: Exception condition 361. Integrity constraint violation (FOREIGN KEY, 
 t_pool.t_pool_id_id_FK(id=102)).
Next exception:SQL State:40   subclass = 00 -- error code: 363 -- 
 msg: Exception condition 363. Transaction rollback.
at 
 com.webobjects.eoaccess.EODatabaseContext._exceptionWithDatabaseContextInformationAdded(EODatabaseContext.java:4504)
at 
 com.webobjects.eoaccess.EODatabaseContext.performChanges(EODatabaseContext.java:6216

Re: Strange constraint violation

2011-09-30 Thread Jeff Schmitz
Yes, it is also set to Owns Destination.  It's to-one from Pool to Pricing, 
but I didn't create a return relationship in the Pricing EO, so I don't know if 
you would consider that one-to-one.  It is mandatory though.

Deferrable is set to No, Check Time is set to Initially Immediate.

Oh, and after dropping and restoring the DB on my dev machine, the error is now 
reproducible on it too.

On Sep 30, 2011, at 1:54 PM, Chuck Hill wrote:

 If it also Owns Destination (I think) and is to-one, then EOF will 
 automatically create it.  Otherwise you need to create it.
 
 Is the Pricing relationship optional or mandatory?
 
 Is that constraint marked as DEFERRED INITIALLY DEFERRED?
 
 
 Chuck
 
 
 On 2011-09-30, at 11:47 AM, Jeff Schmitz wrote:
 
 Yep, that's the clue I needed.  There's a defined relationship from Pool to 
 another EO (Pricing) that I created with Propagates primary key.  Should 
 such objects get created automatically in the createxxx function of the 
 parent EO code generated by EOModeler?  Seems like they would have to be to 
 keep the ID's in sync, but I'm not seeing it in the generated code.  
 
 
 On Sep 30, 2011, at 12:12 PM, Chuck Hill wrote:
 
 Connect to that database using FrontBaseManager.  Go to Schema Objects, 
 select that table and click the Open Definition button.  Click Foreign Key 
 and see what is really set for that table.  It looks like perhaps you have 
 made a self-referencing FK constraint.
 
 
 
 On 2011-09-29, at 9:44 PM, Jeff Schmitz wrote:
 
 Hello all,
 For some reason I'm seeing the below constraint violation when I try to 
 insert a new EO into my database (frontbase).  I checked the database, and 
 in the t_pool table, no row exists that has the ID of the row being 
 inserted (102), but every time I try to insert a new row I get the 
 below exception.  Also, this build runs fine on my development machine, 
 it's only on the deployment machine where I'm seeing this.  I've tried 
 dropping the database, re-generating my migration code and installing the 
 new build from scratch, but no luck.  
 
 I am a little confused by where it says the violation is occurring:
 
 Integrity constraint violation (FOREIGN KEY, 
 t_pool.t_pool_id_id_FK(id=102)).
 
 as I don't know why it would be considered a foreign key since it's the ID 
 of the row being added, but then I'm no low level DB expert (one of the 
 reasons I use webobjects :-))
 
 
 Any ideas?
 
 
 evaluateExpression: 
 com.webobjects.jdbcadaptor.FrontbasePlugIn$FrontbaseExpression: INSERT 
 INTO t_pool(c_spare_string, c_name, c_paid, c_admin_email, 
 c_can_i_wins_calculated, c_ud_bonus, c_possibilities, c_admin_pw, 
 c_weighted, c_password, c_stand_alone, c_early_bird_paid, 
 c_entry_limit, c_can_i_win_index, c_seed_type, c_admin_msg, 
 c_calculating_can_i_wins, id, c_pool_type, c_updating_results, 
 applicationStateID, c_results_index, c_allow_one_entry_per_user) 
 VALUES ('', 'ZEBRAS NEW 401K PLAN', 'false', 'x...@yyy.com', 'false', 
 'false', 1, 'pw', 'false', 'pw', 'false', 'false', 0, 0, 0, NULL, 'false', 
 102, 1, 'false', 101, 0, 'false') withBindings: 
 Sep 29 22:40:39 netBrackets[2002] (ERXDatabaseContextDelegate.java:177) 
 INFO  er.transaction.adaptor.Exceptions  - Database Exception occured: 
 com.webobjects.eoaccess.EOGeneralAdaptorException: EvaluateExpression 
 failed: com.webobjects.jdbcadaptor.FrontbasePlugIn$FrontbaseExpression: 
 INSERT INTO t_pool(c_spare_string, c_name, c_paid, 
 c_admin_email, c_can_i_wins_calculated, c_ud_bonus, 
 c_possibilities, c_admin_pw, c_weighted, c_password, 
 c_stand_alone, c_early_bird_paid, c_entry_limit, 
 c_can_i_win_index, c_seed_type, c_admin_msg, 
 c_calculating_can_i_wins, id, c_pool_type, c_updating_results, 
 applicationStateID, c_results_index, c_allow_one_entry_per_user) 
 VALUES ('', 'ZEBRAS NEW 401K PLAN', 'false', 'x...@yyy.com', 'false', 
 'false', 1, 'pw', 'false', 'pw', 'false', 'false', 0, 0, 0, NULL, 'false', 
 102, 1, 'false', 101, 0, 'false') withBindings: :
  Next exception:SQL State:23   subclass = 00 -- error code: 361 -- 
 msg: Exception condition 361. Integrity constraint violation (FOREIGN KEY, 
 t_pool.t_pool_id_id_FK(id=102)).
  Next exception:SQL State:40   subclass = 00 -- error code: 363 -- 
 msg: Exception condition 363. Transaction rollback.
 Sep 29 22:40:39 netBrackets[2002] (ERXNSLogLog4jBridge.java:46) DEBUG 
 NSLog  -  === Rollback Internal Transaction
 com.webobjects.eoaccess.EOGeneralAdaptorException: EvaluateExpression 
 failed: com.webobjects.jdbcadaptor.FrontbasePlugIn$FrontbaseExpression: 
 INSERT INTO t_pool(c_spare_string, c_name, c_paid, 
 c_admin_email, c_can_i_wins_calculated, c_ud_bonus, 
 c_possibilities, c_admin_pw, c_weighted, c_password, 
 c_stand_alone, c_early_bird_paid, c_entry_limit, 
 c_can_i_win_index, c_seed_type, c_admin_msg, 
 c_calculating_can_i_wins, id, c_pool_type, c_updating_results, 
 applicationStateID, c_results_index, c_allow_one_entry_per_user) 
 VALUES

Strange constraint violation

2011-09-29 Thread Jeff Schmitz
Hello all,
   For some reason I'm seeing the below constraint violation when I try to 
insert a new EO into my database (frontbase).  I checked the database, and in 
the t_pool table, no row exists that has the ID of the row being inserted 
(102), but every time I try to insert a new row I get the below exception.  
Also, this build runs fine on my development machine, it's only on the 
deployment machine where I'm seeing this.  I've tried dropping the database, 
re-generating my migration code and installing the new build from scratch, but 
no luck.  

I am a little confused by where it says the violation is occurring:

 Integrity constraint violation (FOREIGN KEY, 
t_pool.t_pool_id_id_FK(id=102)).

as I don't know why it would be considered a foreign key since it's the ID of 
the row being added, but then I'm no low level DB expert (one of the reasons I 
use webobjects :-))


Any ideas?


 evaluateExpression: 
com.webobjects.jdbcadaptor.FrontbasePlugIn$FrontbaseExpression: INSERT INTO 
t_pool(c_spare_string, c_name, c_paid, c_admin_email, 
c_can_i_wins_calculated, c_ud_bonus, c_possibilities, c_admin_pw, 
c_weighted, c_password, c_stand_alone, c_early_bird_paid, 
c_entry_limit, c_can_i_win_index, c_seed_type, c_admin_msg, 
c_calculating_can_i_wins, id, c_pool_type, c_updating_results, 
applicationStateID, c_results_index, c_allow_one_entry_per_user) VALUES 
('', 'ZEBRAS NEW 401K PLAN', 'false', 'x...@yyy.com', 'false', 'false', 1, 
'pw', 'false', 'pw', 'false', 'false', 0, 0, 0, NULL, 'false', 102, 1, 
'false', 101, 0, 'false') withBindings: 
Sep 29 22:40:39 netBrackets[2002] (ERXDatabaseContextDelegate.java:177) INFO  
er.transaction.adaptor.Exceptions  - Database Exception occured: 
com.webobjects.eoaccess.EOGeneralAdaptorException: EvaluateExpression failed: 
com.webobjects.jdbcadaptor.FrontbasePlugIn$FrontbaseExpression: INSERT INTO 
t_pool(c_spare_string, c_name, c_paid, c_admin_email, 
c_can_i_wins_calculated, c_ud_bonus, c_possibilities, c_admin_pw, 
c_weighted, c_password, c_stand_alone, c_early_bird_paid, 
c_entry_limit, c_can_i_win_index, c_seed_type, c_admin_msg, 
c_calculating_can_i_wins, id, c_pool_type, c_updating_results, 
applicationStateID, c_results_index, c_allow_one_entry_per_user) VALUES 
('', 'ZEBRAS NEW 401K PLAN', 'false', 'x...@yyy.com', 'false', 'false', 1, 
'pw', 'false', 'pw', 'false', 'false', 0, 0, 0, NULL, 'false', 102, 1, 
'false', 101, 0, 'false') withBindings: :
Next exception:SQL State:23   subclass = 00 -- error code: 361 -- msg: 
Exception condition 361. Integrity constraint violation (FOREIGN KEY, 
t_pool.t_pool_id_id_FK(id=102)).
Next exception:SQL State:40   subclass = 00 -- error code: 363 -- msg: 
Exception condition 363. Transaction rollback.
Sep 29 22:40:39 netBrackets[2002] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  -  
=== Rollback Internal Transaction
com.webobjects.eoaccess.EOGeneralAdaptorException: EvaluateExpression failed: 
com.webobjects.jdbcadaptor.FrontbasePlugIn$FrontbaseExpression: INSERT INTO 
t_pool(c_spare_string, c_name, c_paid, c_admin_email, 
c_can_i_wins_calculated, c_ud_bonus, c_possibilities, c_admin_pw, 
c_weighted, c_password, c_stand_alone, c_early_bird_paid, 
c_entry_limit, c_can_i_win_index, c_seed_type, c_admin_msg, 
c_calculating_can_i_wins, id, c_pool_type, c_updating_results, 
applicationStateID, c_results_index, c_allow_one_entry_per_user) VALUES 
('', 'ZEBRAS NEW 401K PLAN', 'false', 'x...@yyy.com', 'false', 'false', 1, 
'pw', 'false', 'pw', 'false', 'false', 0, 0, 0, NULL, 'false', 102, 1, 
'false', 101, 0, 'false') withBindings: :
Next exception:SQL State:23   subclass = 00 -- error code: 361 -- msg: 
Exception condition 361. Integrity constraint violation (FOREIGN KEY, 
t_pool.t_pool_id_id_FK(id=102)).
Next exception:SQL State:40   subclass = 00 -- error code: 363 -- msg: 
Exception condition 363. Transaction rollback.
at 
com.webobjects.eoaccess.EODatabaseContext._exceptionWithDatabaseContextInformationAdded(EODatabaseContext.java:4504)
at 
com.webobjects.eoaccess.EODatabaseContext.performChanges(EODatabaseContext.java:6216)
at 
com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:376)
at 
com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)
at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1094)
at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1016)

 ___
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: App thinks name is MainBundle

2011-09-02 Thread Jeff Schmitz
No help, here's my whole build.properties file:

webXML_CustomContent=
project.name=netBrackets
project.type=application
webXML=false
eoAdaptorClassName=
principalClass=com.netbrackets.app.Application
classes.dir=bin
project.name.lowercase=netbrackets
customInfoPListContent=
frameworksBaseURL=/WebObjects/Frameworks

On Sep 2, 2011, at 11:07 AM, Chuck Hill wrote:

 
 On 2011-09-01, at 8:37 PM, Jeff Schmitz wrote:
 
 I've seen a few e-mails on this subject, but none with an obvious solution.  
 Not sure exactly when it started, but when I start my app from Eclipse, it 
 thinks its name is MainBundle, e.g. its URL is:
 
 http://localhost/cgi-bin/WebObjects/MainBundle.woa/-
 
 I've searched for both MainBundle and my app name in my WOLips project, and 
 all I find is the my app name specified in seemingly all the right places, 
 including:
 
 .project:
 projectDescription
  namenetBrackets/name
 
 build.xml:
 project name=netBrackets default=build basedir=.
 
 build.properties:
 project.name=netBrackets
 principalClass=com.netbrackets.app.Application
 project.name.lowercase=netbrackets
 
 Try adding
 project.type=application
 
 
 
 any ideas what's going on?
 
 Thanks!
 Jeff
 ___
 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/chill%40global-village.net
 
 This email sent to ch...@global-village.net
 
 -- 
 Chuck Hill Senior Consultant / VP Development
 
 Practical WebObjects - for developers who want to increase their overall 
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects
 
 
 
 
 
 
 

 ___
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: App thinks name is MainBundle

2011-09-02 Thread Jeff Schmitz
Don't think so since I just bit the bullet and used the following brute force 
solution:

1. renamed the old project, 
2. created a new wonder project with my desired app name, 
3. copied the source, components, properties, etc. files from the project that 
thinks its name is MainBundle into the new project, 
5. setup the proper java build paths and referenced wonder projects in the new 
project, which matches what the old project had setup.

and now everything is well in my new project as far as running under the 
development environment (haven't tried deploying it yet).  Still not sure what 
about the old project was out of whack, but I'd be willing to try other 
suggestions.


On Sep 2, 2011, at 9:05 PM, Mike Schrag wrote:

 any chance you have a framework that claims to be an application type?
 
 On Sep 2, 2011, at 9:50 PM, Jeff Schmitz wrote:
 
 No help, here's my whole build.properties file:
 
 webXML_CustomContent=
 project.name=netBrackets
 project.type=application
 webXML=false
 eoAdaptorClassName=
 principalClass=com.netbrackets.app.Application
 classes.dir=bin
 project.name.lowercase=netbrackets
 customInfoPListContent=
 frameworksBaseURL=/WebObjects/Frameworks
 
 On Sep 2, 2011, at 11:07 AM, Chuck Hill wrote:
 
 
 On 2011-09-01, at 8:37 PM, Jeff Schmitz wrote:
 
 I've seen a few e-mails on this subject, but none with an obvious 
 solution.  Not sure exactly when it started, but when I start my app from 
 Eclipse, it thinks its name is MainBundle, e.g. its URL is:
 
 http://localhost/cgi-bin/WebObjects/MainBundle.woa/-
 
 I've searched for both MainBundle and my app name in my WOLips project, 
 and all I find is the my app name specified in seemingly all the right 
 places, including:
 
 .project:
 projectDescription
namenetBrackets/name
 
 build.xml:
 project name=netBrackets default=build basedir=.
 
 build.properties:
 project.name=netBrackets
 principalClass=com.netbrackets.app.Application
 project.name.lowercase=netbrackets
 
 Try adding
 project.type=application
 
 
 
 any ideas what's going on?
 
 Thanks!
 Jeff
 ___
 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/chill%40global-village.net
 
 This email sent to ch...@global-village.net
 
 -- 
 Chuck Hill Senior Consultant / VP Development
 
 Practical WebObjects - for developers who want to increase their overall 
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects
 
 
 
 
 
 
 
 
 ___
 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/mschrag%40pobox.com
 
 This email sent to msch...@pobox.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: App thinks name is MainBundle

2011-09-02 Thread Jeff Schmitz
/**/*.*/
---
   exclude if=javaClient 
 name=**/client/**/*.*/
114c114
   /target
---
 /target
Only in netBracketsMainBundle: embedded-build.xml
Only in netBracketsMainBundle: index.html
Only in netBracketsMainBundle: junk.txt
Only in netBracketsMainBundle: payment.html
Only in netBracketsMainBundle: sql.txt
Only in netBracketsMainBundle/woproject: .svn
Only in netBracketsMainBundle/woproject: ant.classpaths.user.home
Only in netBracketsMainBundle/woproject: ant.classpaths.wo.wolocalroot
Only in netBracketsMainBundle/woproject: ant.classpaths.wo.wosystemroot
Only in netBracketsMainBundle/woproject: ant.frameworks.user.home
Only in netBracketsMainBundle/woproject: ant.frameworks.wo.wolocalroot
Only in netBracketsMainBundle/woproject: ant.frameworks.wo.wosystemroot
diff -r netBrackets/woproject/resources.include.patternset 
netBracketsMainBundle/woproject/resources.include.patternset
1,3c1,7
 Components/**/*.wo/**/*
 Components/**/*.api
 Resources/**/*
\ No newline at end of file
---
 **/Properties
 **/*.eomodeld/
 **/*.d2wmodel
 **/*.wo/
 **/*.api
 **/*.strings
 **/*.plist
diff -r netBrackets/woproject/wsresources.include.patternset 
netBracketsMainBundle/woproject/wsresources.include.patternset
1c1,6
 WebServerResources/**/*
---
 **/*.gif
 **/*.xsl
 **/*.css
 **/*.png
 **/*.jpg
 **/*.js
mbp17:workspace netBrackets$ 

On Sep 2, 2011, at 10:42 PM, Mike Schrag wrote:

 diff -r the two and see what's different
 
 ms
 
 On Sep 2, 2011, at 11:27 PM, Jeff Schmitz wrote:
 
 Don't think so since I just bit the bullet and used the following brute 
 force solution:
 
 1. renamed the old project, 
 2. created a new wonder project with my desired app name, 
 3. copied the source, components, properties, etc. files from the project 
 that thinks its name is MainBundle into the new project, 
 5. setup the proper java build paths and referenced wonder projects in the 
 new project, which matches what the old project had setup.
 
 and now everything is well in my new project as far as running under the 
 development environment (haven't tried deploying it yet).  Still not sure 
 what about the old project was out of whack, but I'd be willing to try other 
 suggestions.
 
 
 On Sep 2, 2011, at 9:05 PM, Mike Schrag wrote:
 
 any chance you have a framework that claims to be an application type?
 
 On Sep 2, 2011, at 9:50 PM, Jeff Schmitz wrote:
 
 No help, here's my whole build.properties file:
 
 webXML_CustomContent=
 project.name=netBrackets
 project.type=application
 webXML=false
 eoAdaptorClassName=
 principalClass=com.netbrackets.app.Application
 classes.dir=bin
 project.name.lowercase=netbrackets
 customInfoPListContent=
 frameworksBaseURL=/WebObjects/Frameworks
 
 On Sep 2, 2011, at 11:07 AM, Chuck Hill wrote:
 
 
 On 2011-09-01, at 8:37 PM, Jeff Schmitz wrote:
 
 I've seen a few e-mails on this subject, but none with an obvious 
 solution.  Not sure exactly when it started, but when I start my app 
 from Eclipse, it thinks its name is MainBundle, e.g. its URL is:
 
 http://localhost/cgi-bin/WebObjects/MainBundle.woa/-
 
 I've searched for both MainBundle and my app name in my WOLips project, 
 and all I find is the my app name specified in seemingly all the right 
 places, including:
 
 .project:
 projectDescription
  namenetBrackets/name
 
 build.xml:
 project name=netBrackets default=build basedir=.
 
 build.properties:
 project.name=netBrackets
 principalClass=com.netbrackets.app.Application
 project.name.lowercase=netbrackets
 
 Try adding
 project.type=application
 
 
 
 any ideas what's going on?
 
 Thanks!
 Jeff
 ___
 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/chill%40global-village.net
 
 This email sent to ch...@global-village.net
 
 -- 
 Chuck Hill Senior Consultant / VP Development
 
 Practical WebObjects - for developers who want to increase their overall 
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects
 
 
 
 
 
 
 
 
 ___
 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/mschrag%40pobox.com
 
 This email sent to msch...@pobox.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


App thinks name is MainBundle

2011-09-01 Thread Jeff Schmitz
I've seen a few e-mails on this subject, but none with an obvious solution.  
Not sure exactly when it started, but when I start my app from Eclipse, it 
thinks its name is MainBundle, e.g. its URL is:

http://localhost/cgi-bin/WebObjects/MainBundle.woa/-

I've searched for both MainBundle and my app name in my WOLips project, and all 
I find is the my app name specified in seemingly all the right places, 
including:

.project:
projectDescription
namenetBrackets/name

build.xml:
project name=netBrackets default=build basedir=.

build.properties:
project.name=netBrackets
principalClass=com.netbrackets.app.Application
project.name.lowercase=netbrackets

any ideas what's going on?

Thanks!
Jeff
 ___
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: Bundle Name Problem solved

2011-08-18 Thread Jeff Schmitz
Looks like it didn't like where my wonder source code projects were.  When I 
re-created them with the new github repository in a new place, and then 
re-imported them into my project, the problem cleared up.  One of the 
directories in the path did have a space in it which I eliminated when I moved 
them.  Weird thing is that it had been working fine for months where it was, 
then all the sudden it wouldn't work anymore.

As always, thanks to all for the help!

Jeff

On Aug 17, 2011, at 10:00 PM, Chuck Hill wrote:

 I'll guess that you have some sort of recursive soft links in your project.  
 ls -al will show you what files really are.
 
 
 
 
 On 2011-08-17, at 7:01 PM, Jeff Schmitz wrote:
 
 OK, that got me past the bundle error.  But now I'm back to a java heap 
 space error.  Other projects work fine in the workspace.  I even tried 
 creating a new Wonder project and manually moving source code, wod files, 
 libraries and property and build files from the old project into this new 
 one, and I'm still seeing the problem.
 
 [2011-8-17 20:28:28 CDT] main Initialized : er.extensions.ERXExtensions
 [2011-8-17 20:28:28 CDT] main Couldn't load properties file: 
 /Users/netBrackets/WebObjects.properties at path: /Users/netBrackets
 You are referencing er.extensions.ERXPatternLayout but should use 
 er.extensions.logging.ERXPatternLayout instead
 Aug 17 20:28:29 N/A[N/A] (ERXLogger.java:211) INFO  org.apache.log4j.Logger  
 - Updated the logging configuration with the current system properties.
 You are referencing er.extensions.ERXPatternLayout but should use 
 er.extensions.logging.ERXPatternLayout instead
 Aug 17 20:28:29 N/A[N/A] (ERXLogger.java:211) INFO  org.apache.log4j.Logger  
 - Updated the logging configuration with the current system properties.
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:43) WARN  NSLog  - 
 Couldn't load properties file: /Users/netBrackets/WebObjects.properties at 
 path: /Users/netBrackets
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOMaxIOBufferSize=8196
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOWorkerThreadCountMin=16
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOSocketMonitorSleepTime=50
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WODirectConnectEnabled=true
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOIncludeCommentsInResponse=false
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOWorkerThreadCount=8
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOAdaptorURL=http://127.0.0.1/cgi-bin/WebObjects
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOLaunchdEnabled=false
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOIDE=WOLips
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WODebuggingEnabled=true
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOListenQueueSize=128
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOMissingResourceSearchEnabled=true
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOApplicationClassName=com.netbrackets.app.Application
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOSessionStoreClassName=WOServerSessionStore
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOContextClassName=WOContext
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOCachingEnabled=false
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOAcceptMalformedCookies=false
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 NSProjectSearchPath=(..)
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOMonitorEnabled=false
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOAllowRapidTurnaround=true
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOGenerateWSDL=true
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOWorkerThreadCountMax=256
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOAllowsConcurrentRequestHandling=false
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOAdaptor=WODefaultAdaptor
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOSessionTimeOut=3600
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOMaxSocketIdleTime=18
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WODefaultUndoStackLimit=10
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOAutoOpenClientApplication=true
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
 WOAutoOpenInBrowser=true
 Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog

Re: Bundle Name Problem

2011-08-17 Thread Jeff Schmitz
  - 
WOLifebeatDestinationPort=1085
Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - WOPort=-1
Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
WOLifebeatInterval=30
Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
WOSocketCacheSize=100
Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
WOUserDirectory=/Users/netBrackets/Documents/workspace/netBrackets
Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
WODisplayExceptionPages=true
Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 

Aug 17 20:28:29 N/A[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
WebObjects version = 5.4.2
Aug 17 20:28:29 netBrackets[N/A] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
Created adaptor of class WODefaultAdaptor on port 55047 and address 
mbp17.local/10.0.1.5 with WOWorkerThread minimum of 16 and maximum of 256
Aug 17 20:28:29 netBrackets[55047] (ERXNSLogLog4jBridge.java:43) WARN  NSLog  - 
Application project found: Will locate resources in 
'/Users/netBrackets/Documents/workspace/netBrackets' rather than 
'/Users/netBrackets/Documents/workspace/netBrackets/' .
Aug 17 20:28:29 netBrackets[55047] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
NSBundle is unable to find ExtensionsForResources.plist in the main bundle.  
Ignoring optional configuration file.
Aug 17 20:28:29 netBrackets[55047] (ERXNSLogLog4jBridge.java:43) WARN  NSLog  - 
Cannot use rapid turnaround.  Please start Xcode and open the project for this 
application.
Aug 17 20:28:29 netBrackets[55047] (ERXNSLogLog4jBridge.java:43) WARN  NSLog  - 
Application project found: Will locate resources in 
'/Users/netBrackets/Documents/workspace/netBrackets' rather than 
'/Users/netBrackets/Documents/workspace/netBrackets/' .
Aug 17 20:28:29 netBrackets[55047] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog  - 
Creating LifebeatThread now with: netBrackets -1 mbp17.local/10.0.1.5 1085 3
Aug 17 20:28:53 netBrackets[55047] (ERXNSLogLog4jBridge.java:43) WARN  NSLog  - 
A fatal exception occurred: java.lang.OutOfMemoryError: Java heap space

On Aug 17, 2011, at 11:06 AM, Chuck Hill wrote:

 Try closing Eclipse, deleting the build (build?  that is old, should be 
 called dist) directory, and starting Eclipse again.
 
 
 On 2011-08-16, at 9:34 PM, Jeff Schmitz wrote:
 
 After getting an Eclipse crash while editing a wod file (something that 
 happens quite often these days), I can no longer run my application from 
 eclipse.  When I try, I get the below error.  A quick search in the archives 
 and on the web has turned up nothing on it.  I tried restoring my project 
 and my workspace from my time machine backup, and neither worked.  I tried 
 importing my projects into a new workspace, and that didn't work.  Any other 
 ideas?
 
 Caused by: java.lang.IllegalStateException: There was no name defined for 
 the bundle 'com.webobjects.foundation.development.NSLegacyBundle 
 name:'Contents' 
 bundlePath:'/Users/netBrackets/Documents/workspace/netBrackets/build/netBrackets.woa/Contents'
  packages:'(com.netbrackets.components, com.restfb.example, 
 com.netbrackets.app)' 112 classes '
  at com.webobjects.foundation.NSBundle.InitMainBundle(NSBundle.java:683)
  at com.webobjects.foundation.NSBundle.clinit(NSBundle.java:342)
  ... 16 more
 
 Thanks!
 Jeff
 ___
 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/chill%40global-village.net
 
 This email sent to ch...@global-village.net
 
 -- 
 Chuck Hill Senior Consultant / VP Development
 
 Practical WebObjects - for developers who want to increase their overall 
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects
 
 
 
 
 
 
 

 ___
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


Bundle Name Problem

2011-08-16 Thread Jeff Schmitz
After getting an Eclipse crash while editing a wod file (something that happens 
quite often these days), I can no longer run my application from eclipse.  When 
I try, I get the below error.  A quick search in the archives and on the web 
has turned up nothing on it.  I tried restoring my project and my workspace 
from my time machine backup, and neither worked.  I tried importing my projects 
into a new workspace, and that didn't work.  Any other ideas?

Caused by: java.lang.IllegalStateException: There was no name defined for the 
bundle 'com.webobjects.foundation.development.NSLegacyBundle name:'Contents' 
bundlePath:'/Users/netBrackets/Documents/workspace/netBrackets/build/netBrackets.woa/Contents'
 packages:'(com.netbrackets.components, com.restfb.example, 
com.netbrackets.app)' 112 classes '
at com.webobjects.foundation.NSBundle.InitMainBundle(NSBundle.java:683)
at com.webobjects.foundation.NSBundle.clinit(NSBundle.java:342)
... 16 more

Thanks!
Jeff
 ___
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: _rewriteURL not firing

2011-03-11 Thread Jeff Schmitz
context class:er.extensions.appserver.ajax.ERXAjaxContext

Interesting, when this started happening was about the time I added the ERAjax 
frameworks to my project.  I think you're onto something.

I'm running with just plain WO with Apache and the WOAdaptor (hope I said that 
right).  I'm not running inside tomcat or anything like that.

On Mar 11, 2011, at 3:21 AM, Lachlan Deck wrote:

 What context are you getting at runtime?
 
 WOContext context = request().context();
 LOG.warn(context class: + context.getClass().getName());
 
 Are you running in a servlet container or just plain WO?
 
 ERXWOContext._postprocessURL should get called.
 
 
 On 11/03/2011, at 12:59 PM, Jeff Schmitz wrote:
 
 Still haven't figured this one out so I downloaded and installed the Wonder 
 source so I can setup breakpoints in it.  I see that my  _rewriteURL should 
 be getting called by the ERXWOContext _postprocessURL function, so I put a 
 break point there.  Moving up the chain, I also put breakpoints in:
 
 ERXWOContext54 _urlWithRequestHandlerKey 
 ERXRedirect appendToRepsonse
 
 Ah, you didn't mention ERXRedirect before. Perhaps it doesn't work with 
 ERXRedirect? Does it work for your normal urls?
 
 And none of the breakpoints are hit on a page load.   I do have other 
 breakpoints in the wonder code that are hit, so it's not a 
 classpath/debugger issue.
 
 Is there some flag that needs to be set for the _rewriteURL in my 
 Application class that extends ERXApplication to be called now? As I noted 
 below, this did work at one time.
 
 I'm using webobjects 5.4.x and the latest Wonder source.
 
 with regards,
 -
 
 Lachlan Deck
 

 ___
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: _rewriteURL not firing

2011-03-11 Thread Jeff Schmitz
Missed your last question.  I don't know that I am using ERXRedirect, I was 
just snooping through the code trying to figure out places that might 
eventually lead to _rewriteURL being called.  As the breakpoint that I put 
there was never hit, perhaps that means I'm actually not using ERXRedirect.


On Mar 11, 2011, at 3:21 AM, Lachlan Deck wrote:

 What context are you getting at runtime?
 
 WOContext context = request().context();
 LOG.warn(context class: + context.getClass().getName());
 
 Are you running in a servlet container or just plain WO?
 
 ERXWOContext._postprocessURL should get called.
 
 
 On 11/03/2011, at 12:59 PM, Jeff Schmitz wrote:
 
 Still haven't figured this one out so I downloaded and installed the Wonder 
 source so I can setup breakpoints in it.  I see that my  _rewriteURL should 
 be getting called by the ERXWOContext _postprocessURL function, so I put a 
 break point there.  Moving up the chain, I also put breakpoints in:
 
 ERXWOContext54 _urlWithRequestHandlerKey 
 ERXRedirect appendToRepsonse
 
 Ah, you didn't mention ERXRedirect before. Perhaps it doesn't work with 
 ERXRedirect? Does it work for your normal urls?
 
 And none of the breakpoints are hit on a page load.   I do have other 
 breakpoints in the wonder code that are hit, so it's not a 
 classpath/debugger issue.
 
 Is there some flag that needs to be set for the _rewriteURL in my 
 Application class that extends ERXApplication to be called now? As I noted 
 below, this did work at one time.
 
 I'm using webobjects 5.4.x and the latest Wonder source.
 
 with regards,
 -
 
 Lachlan Deck
 

 ___
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: _rewriteURL not firing

2011-03-10 Thread Jeff Schmitz
Still haven't figured this one out so I downloaded and installed the Wonder 
source so I can setup breakpoints in it.  I see that my  _rewriteURL should be 
getting called by the ERXWOContext _postprocessURL function, so I put a break 
point there.  Moving up the chain, I also put breakpoints in:

ERXWOContext54 _urlWithRequestHandlerKey 
 ERXRedirect appendToRepsonse

And none of the breakpoints are hit on a page load.   I do have other 
breakpoints in the wonder code that are hit, so it's not a classpath/debugger 
issue.

Is there some flag that needs to be set for the _rewriteURL in my Application 
class that extends ERXApplication to be called now? As I noted below, this did 
work at one time.

 I'm using webobjects 5.4.x and the latest Wonder source.

Thanks!
Jeff


On Feb 26, 2011, at 7:27 PM, Jeff Schmitz wrote:

 I'm not using a custom context, and ERXWOContext is in my classpath, but I 
 did recently upgrade to the latest Wonder build.
 
 Jeff
 
 
 On Feb 26, 2011, at 1:58 PM, Lachlan Deck wrote:
 
 On 27/02/2011, at 12:22 AM, Jeff Schmitz wrote:
 
 Hello,
 I'm not sure exactly when, but somewhere along the line the _rewriteURL 
 method in my Application class stopped firing.  My Application class 
 extends ERXApplication and the signature of the overriding method is:
 
 public String _rewriteURL(String url) 
 
 This should be called by ERXWOContext[54]
 
 Are you using a custom context class?
 Or did you upgrade to using Wonder 54... or are perhaps missing the above 
 class in your classpath?
 
 
 with regards,
 -
 
 Lachlan Deck
 
 
 
 
 ___
 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/jeffandmonica%40mac.com
 
 This email sent to jeffandmon...@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


_rewriteURL not firing

2011-02-26 Thread Jeff Schmitz
Hello,
   I'm not sure exactly when, but somewhere along the line the _rewriteURL 
method in my Application class stopped firing.  My Application class extends 
ERXApplication and the signature of the overriding method is:

public String _rewriteURL(String url) 

but when I put a breakpoint in it, it never gets hit.  

I do have the rewrite properties in my project Properties file commented out:

#er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/netBrackets.woa
#er.extensions.ERXApplication.replaceApplicationPath.replace=/netBrackets

I tried uncommenting them too, but the rewrites still weren't happening.  Are 
there any other properties that need to be set?

I do have -WODirectConnectEnabled set to false for both development and 
deployment (actually it's set to NO for deployment).

Any ideas?  

Thanks,
Jeff
 ___
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: _rewriteURL not firing

2011-02-26 Thread Jeff Schmitz
I'm not using a custom context, and ERXWOContext is in my classpath, but I did 
recently upgrade to the latest Wonder build.

Jeff


On Feb 26, 2011, at 1:58 PM, Lachlan Deck wrote:

 On 27/02/2011, at 12:22 AM, Jeff Schmitz wrote:
 
 Hello,
  I'm not sure exactly when, but somewhere along the line the _rewriteURL 
 method in my Application class stopped firing.  My Application class extends 
 ERXApplication and the signature of the overriding method is:
 
  public String _rewriteURL(String url) 
 
 This should be called by ERXWOContext[54]
 
 Are you using a custom context class?
 Or did you upgrade to using Wonder 54... or are perhaps missing the above 
 class in your classpath?
 
 
 with regards,
 -
 
 Lachlan Deck
 
 
 

 ___
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


_rewriteURL not firing

2011-02-25 Thread Jeff Schmitz
Hello,
   I'm not sure exactly when, but somewhere along the line my _rewriteURL 
method stopped firing.  My Application extends ERXApplication and the signature 
the overriding method is:

public String _rewriteURL(String url) 

but when I put a breakpoint in it, it never gets hit.  

I do have the rewrite properties in my project Properties file commented out:

#er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/netBrackets.woa
#er.extensions.ERXApplication.replaceApplicationPath.replace=/netBrackets

I tried uncommenting them too, but the rewrites still weren't happening.

And I do have -WODirectConnectEnabled set to false for both development and 
deployment (actually it's set to NO for deployment).

Any ideas?  

Thanks,
Jeff

 ___
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

Global ID mixup when adding to many to many relationship

2010-12-29 Thread Jeff Schmitz
Hello,
   I'm not sure how the following can happen, but I seem to have figured out a 
way to make it so.  My code creates a new EO (user) and then adds an existing 
EO (this) to a many to many relationship of the new EO as shown with added 
logged messages:

User user = User.createUser(this.editingContext(), password, 
eMail, first, forumName, last, lastYearUser, userName,  real, thisYear, 
useFBAccount, useFBLogin);
this.editingContext().saveChanges();
EOGlobalID poolID = 
this.editingContext().globalIDForObject(this);
EOGlobalID userID = 
this.editingContext().globalIDForObject(user);
System.out.println(Adding user  + user.name() +  with ID  + 
userID +  to Pool  + this.name() +  with id  + poolID);
user.addToPoolsRelationship(this);
this.editingContext().saveChanges();

Note that the first saveChanges after creation of the new EO works fine.  But 
after the second saveChanges I get the below constraint error.  The strange 
part is that when printing out the ID's of the EO's, it looks like it should be 
using a User EO with an ID of 109.  However, the integrity error makes it 
look like it tried to add this to a user with ID 107.  


Dec 29 11:53:24 netBrackets[] (Pool.java:407) INFO  
com.netbracketsfw.model.Pool  - Adding user Wilma with ID 
_EOIntegralKeyGlobalID[User (java.lang.Integer)109] to Pool VVV0 with id 
_EOIntegralKeyGlobalID[Pool (java.lang.Integer)105]

Dec 29 11:53:24 netBrackets[] (ERXDatabaseContextDelegate.java:175) INFO  
er.transaction.adaptor.Exceptions  - Database Exception occured: 
com.webobjects.eoaccess.EOGeneralAdaptorException: EvaluateExpression failed: 
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseExpression: INSERT INTO 
PoolUser(userId, poolId) VALUES (107, 105) withBindings: :
Next exception:SQL State:23   subclass = 00 -- error code: 358 -- msg: 
Exception condition 358. Integrity constraint violation (PRIMARY KEY, 
PoolUser.PRIMARY_KEY_PoolUser_userId_poolId(userId=107,poolId=105)).
Next exception:SQL State:40   subclass = 00 -- error code: 363 -- msg: 
Exception condition 363. Transaction rollback.

Finally, I'm using Wonder, with the InverseRelationshipUpdater turned on, i.e. 
addToPools gets called.

  public void addToPoolsRelationship(com.netbracketsfw.model.Pool object) {
if (_User.LOG.isDebugEnabled()) {
  _User.LOG.debug(adding  + object +  to pools relationship);
}
if 
(er.extensions.eof.ERXGenericRecord.InverseRelationshipUpdater.updateInverseRelationships())
 {
addToPools(object);
}
else {
addObjectToBothSidesOfRelationshipWithKey(object, pools);
}
  }

any ideas what's going on?

Thanks!
Jeff

 ___
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

httpd-ssl.conf on snow leopard server

2010-11-30 Thread Jeff Schmitz
I'm trying to configure SSL on my deployment machine running snow leopard 
server.  I see lots of documents referencing a 
/etc/apache2/extra/httpd-ssl.conf file, but my installation has no such file, 
and in fact doesn’t even have a /etc/apache2/extra directory.  Is my 
installation hosed some way, or have things moved around?  I've searched 
everywhere and can't find a httpd-ssl.conf file anywhere on the machine.  The 
/etc/apache2 directory does contain a lot of other config files (see below) but 
no httpd-ssl.conf file.  Without this file I am unable to get ssl configured.  
Any suggestions?  Can I use the file from my SL Client machine?

conf files in /etc/apache2:

httpd.conf  httpd_mailman.conf  
httpd_squirrelmail_default.conf
httpd_directory.confhttpd_podcastproducer_availability.conf 
httpd_teams_required.conf
httpd_emailrules_required.conf  httpd_pwdchange_required.conf   
httpd_users.conf
httpd_groups.conf   httpd_squirrelmail.conf 
httpd_webcalendar.conf

Thanks!
Jeff ___
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: httpd-ssl.conf on snow leopard server

2010-11-30 Thread Jeff Schmitz
OK,
   Yeah, that's how my site installation is setup too.  In the sites dir I have 
just a couple config files.  One is _any_80_.conf that looks like it's 
setup for setting up a host that runs on port 80.  Would the proper thing be to 
create a _any_443_.conf file (maybe copied from the port 80 one, or the 
httpd-ssl.conf file on my dev machine) to configure the ssl/https stuff that 
listens to port 443?   Guess I'll have to read up and play around a bit to see 
how to setup such a file, or try using Server Admin.

Thanks!
Jeff

  
On Nov 30, 2010, at 9:36 PM, Tim Worman wrote:

 Jeff:
 
 I _think_ /etc/apache2/extra/ is only there on OS X, not OS X Server. On OS X 
 Server, you configure ssl per site or virtual host. For that reason I've 
 always used Server Admin to set up SSL for web services. You'd find the 
 individual configs for sites in /etc/apache2/sites/.
 
 Tim Worman
 UCLA GSEIS
 
 On Nov 30, 2010, at 4:20 PM, Jeff Schmitz wrote:
 
 I'm trying to configure SSL on my deployment machine running snow leopard 
 server.  I see lots of documents referencing a 
 /etc/apache2/extra/httpd-ssl.conf file, but my installation has no such 
 file, and in fact doesn’t even have a /etc/apache2/extra directory.  Is my 
 installation hosed some way, or have things moved around?  I've searched 
 everywhere and can't find a httpd-ssl.conf file anywhere on the machine.  
 The /etc/apache2 directory does contain a lot of other config files (see 
 below) but no httpd-ssl.conf file.  Without this file I am unable to get ssl 
 configured.  Any suggestions?  Can I use the file from my SL Client machine?
 
 conf files in /etc/apache2:
 
 httpd.conf   httpd_mailman.conf  
 httpd_squirrelmail_default.conf
 httpd_directory.conf httpd_podcastproducer_availability.conf 
 httpd_teams_required.conf
 httpd_emailrules_required.conf   httpd_pwdchange_required.conf   
 httpd_users.conf
 httpd_groups.confhttpd_squirrelmail.conf 
 httpd_webcalendar.conf
 
 Thanks!
 Jeff ___
 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/lists%40thetimmy.com
 
 This email sent to li...@thetimmy.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: SSL Trouble with httpd-ssl.conf include

2010-11-29 Thread Jeff Schmitz
Tried that with the same result.  Here's what I now have for the section of 
httpd-ssl.conf  that gets updated per the wiki.  Note I did move the cert and 
key files up into the apache 2 dir and and named them server.crt and 
server.key.  Also, the config-ssl file is Included in my httpd.conf file...


##
## SSL Virtual Host Context
##

VirtualHost localhost:443

#   General setup for the virtual host
DocumentRoot /Library/WebServer/Documents
ServerName localhost:443
ServerAdmin j...@netbrackets.com
ErrorLog /private/var/log/apache2/error_log
TransferLog /private/var/log/apache2/access_log

#   SSL Engine Switch:
#   Enable/Disable SSL for this virtual host.
SSLEngine on

#   SSL Cipher Suite:
#   List the ciphers that the client is permitted to negotiate.
#   See the mod_ssl documentation for a complete list.
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL

#   Server Certificate:
#   Point SSLCertificateFile at a PEM encoded certificate.  If
#   the certificate is encrypted, then you will be prompted for a
#   pass phrase.  Note that a kill -HUP will prompt again.  Keep
#   in mind that if you have both an RSA and a DSA certificate you
#   can configure both in parallel (to also allow the use of DSA
#   ciphers, etc.)
#SSLCertificateFile /private/etc/apache2/devsslcerts/localhost_server.crt
SSLCertificateFile /private/etc/apache2/server.crt
#SSLCertificateFile /private/etc/apache2/server-dsa.crt

On Nov 29, 2010, at 4:54 AM, Henrique Gomes wrote:

 
 On Nov 28, 2010, at 3:58 PM, Jeff Schmitz wrote:
 
 
 
 It doesn't find the generated URL of:
 
 https://localhost/netBrackets/-/wa/poolLogin
 
 but if I just remove the 's' from https, it finds the page:
 
 http://localhost/netBrackets/-/wa/poolLogin
 
 I'm thinking it has to do with the secure port not being generated 
 correctly.  Shouldn't :443 be specified as part of the https url?  
 
 
 (You don;t a need a :443 for https the same way you don't need a :80 for 
 http, they are the default ports for those protocols.)
 
 On the httpd-ssl.conf could you try changing the ServerName to localhost:443? 
 Like these:
 
 ServerName localhost:443
 
 Henrique Gomes
 
 
 
 On Nov 28, 2010, at 8:08 AM, Henrique Gomes wrote:
 
 
 What's the URL that's not found? What code or bindings are you using to 
 generate the hyperlink to the secure page?
 
 Henrique Gomes
 
 
 On Nov 28, 2010, at 2:51 PM, Jeff Schmitz wrote:
 
 Thanks,
 
 That gets me closer.  Apache is now running when I restart it, and when I 
 click on the secure WOHyperlink it's creating a https URL, and it picks up 
 the certificate, but then when I accept the certificate I get the 
 requested URL not found error.  If I simply change the url to be a 
 http:// URL, the page comes up with no other changes to the generated URL. 
  Looks like webobjects is not liking any https URL.  Is there something 
 I've forgotten to do?  
 
 Thanks
 Jeff
 On Nov 26, 2010, at 12:11 PM, Henrique Gomes wrote:
 
 The wiki is more complicated than what it's need on a recent system:
 
 After generating the certificate, just put the certificate and key as 
 server.crt and server.key in /etc/apache2
 
 The only change needed to the conf files is to uncomment the line in 
 httpd.conf to include the ssl conf. I just left this at it was, included 
 below:
 (I believe it's just like snow leopard installed it.)
 httpd-ssl.conf
 
 Make sure the cert and key are readable to everyone or to the apache user.
 (on a production environment you should be more careful about the key 
 file)
 
 
 Henrique Gomes
 
 
 On Nov 26, 2010, at 2:31 PM, Jeff Schmitz wrote:
 
 
 On Nov 26, 2010, at 6:34 AM, Henrique Gomes wrote:
 
 
 On Nov 26, 2010, at 4:25 AM, Jeff Schmitz wrote:
 
 Hello,
 I'm following the directions at the below link to add ssl support...
 
 http://wiki.objectstyle.org/confluence/display/WO/Development-SSL+requests+via+https+protocol?showComments=trueshowCommentArea=true#addcomment
 
 but after adding the following Include to the httpd.conf file...
 
 Include /private/etc/apache2/extra/httpd-ssl.conf
 
 Whats in that file? Did you edit it?
 
 Didn't edit it.  It's pasted below.
 
 
 
 
 
 When I restart apache and try to open http://localhost I get the 
 cannot connect to server error page.  Looking in /var/log/apache there 
 are no error messages, and according to the Systems Preferences panel 
 apache is running.  If I comment it out again and restart apache, it 
 starts serving pages again. 
 
 
 http? or https? if http://localhost doesn't work, either apache is not 
 running or some thing really strange is wrong with your setup.
 
 Neither works.  But as soon as I comment out that line and restart, it 
 starts serving http://localhost, but still not https://localhost
 
 I did notice when restarting this morning with the Include line 
 commented out, I get the following warnings/notices:
 
 [Fri Nov 26 08:19:00 2010] [warn] Init: Session Cache is not configured 
 [hint: SSLSessionCache

Re: SSL Trouble with httpd-ssl.conf include

2010-11-29 Thread Jeff Schmitz
yes, am using rewrite rules, and that's the problem.  Application._rewriteURL 
doesn't get called when secure WOHyperlinks are selected.  Will have to read up 
a bit on that to see how to get rewrites to work with https.  Or perhaps I 
should use the completeURLWithRequestHandlerKey method somehow to inject  the 
cgi-bin/WebObjects back into the link for secure requests?


On Nov 29, 2010, at 9:23 AM, Henrique Gomes wrote:

 
 It shouldn't make any difference but the default files have a VirtualHost 
 like this: 
 VirtualHost _default_:443
 
 Also I noticed you are using non standard URLs. Why the 'netBrackets' instead 
 of /cgi-bin/WebObjects? Did you change the WebObjectsAlias directive? Are you 
 using URL rewrite rules?
 
 https://localhost/netBrackets/-/wa/poolLogin
 
 
 
 On Nov 29, 2010, at 3:10 PM, Jeff Schmitz wrote:
 
 Tried that with the same result.  Here's what I now have for the section of 
 httpd-ssl.conf  that gets updated per the wiki.  Note I did move the cert 
 and key files up into the apache 2 dir and and named them server.crt and 
 server.key.  Also, the config-ssl file is Included in my httpd.conf file...
 
 
 ##
 ## SSL Virtual Host Context
 ##
 
 VirtualHost localhost:443
 
 #   General setup for the virtual host
 DocumentRoot /Library/WebServer/Documents
 ServerName localhost:443
 ServerAdmin j...@netbrackets.com
 ErrorLog /private/var/log/apache2/error_log
 TransferLog /private/var/log/apache2/access_log
 
 #   SSL Engine Switch:
 #   Enable/Disable SSL for this virtual host.
 SSLEngine on
 
 #   SSL Cipher Suite:
 #   List the ciphers that the client is permitted to negotiate.
 #   See the mod_ssl documentation for a complete list.
 SSLCipherSuite 
 ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
 
 #   Server Certificate:
 #   Point SSLCertificateFile at a PEM encoded certificate.  If
 #   the certificate is encrypted, then you will be prompted for a
 #   pass phrase.  Note that a kill -HUP will prompt again.  Keep
 #   in mind that if you have both an RSA and a DSA certificate you
 #   can configure both in parallel (to also allow the use of DSA
 #   ciphers, etc.)
 #SSLCertificateFile /private/etc/apache2/devsslcerts/localhost_server.crt
 SSLCertificateFile /private/etc/apache2/server.crt
 #SSLCertificateFile /private/etc/apache2/server-dsa.crt
 
 On Nov 29, 2010, at 4:54 AM, Henrique Gomes wrote:
 
 
 On Nov 28, 2010, at 3:58 PM, Jeff Schmitz wrote:
 
 
 
 It doesn't find the generated URL of:
 
 https://localhost/netBrackets/-/wa/poolLogin
 
 but if I just remove the 's' from https, it finds the page:
 
 http://localhost/netBrackets/-/wa/poolLogin
 
 I'm thinking it has to do with the secure port not being generated 
 correctly.  Shouldn't :443 be specified as part of the https url?  
 
 
 (You don;t a need a :443 for https the same way you don't need a :80 for 
 http, they are the default ports for those protocols.)
 
 On the httpd-ssl.conf could you try changing the ServerName to 
 localhost:443? Like these:
 
 ServerName localhost:443
 
 Henrique Gomes
 
 
 
 On Nov 28, 2010, at 8:08 AM, Henrique Gomes wrote:
 
 
 What's the URL that's not found? What code or bindings are you using to 
 generate the hyperlink to the secure page?
 
 Henrique Gomes
 
 
 On Nov 28, 2010, at 2:51 PM, Jeff Schmitz wrote:
 
 Thanks,
 
 That gets me closer.  Apache is now running when I restart it, and when 
 I click on the secure WOHyperlink it's creating a https URL, and it 
 picks up the certificate, but then when I accept the certificate I get 
 the requested URL not found error.  If I simply change the url to be a 
 http:// URL, the page comes up with no other changes to the generated 
 URL.  Looks like webobjects is not liking any https URL.  Is there 
 something I've forgotten to do?  
 
 Thanks
 Jeff
 On Nov 26, 2010, at 12:11 PM, Henrique Gomes wrote:
 
 The wiki is more complicated than what it's need on a recent system:
 
 After generating the certificate, just put the certificate and key as 
 server.crt and server.key in /etc/apache2
 
 The only change needed to the conf files is to uncomment the line in 
 httpd.conf to include the ssl conf. I just left this at it was, 
 included below:
 (I believe it's just like snow leopard installed it.)
 httpd-ssl.conf
 
 Make sure the cert and key are readable to everyone or to the apache 
 user.
 (on a production environment you should be more careful about the key 
 file)
 
 
 Henrique Gomes
 
 
 On Nov 26, 2010, at 2:31 PM, Jeff Schmitz wrote:
 
 
 On Nov 26, 2010, at 6:34 AM, Henrique Gomes wrote:
 
 
 On Nov 26, 2010, at 4:25 AM, Jeff Schmitz wrote:
 
 Hello,
 I'm following the directions at the below link to add ssl support...
 
 http://wiki.objectstyle.org/confluence/display/WO/Development-SSL+requests+via+https+protocol?showComments=trueshowCommentArea=true#addcomment
 
 but after adding the following Include to the httpd.conf file...
 
 Include /private/etc/apache2/extra/httpd-ssl.conf
 
 Whats

https and mod_rewrite. was: SSL Trouble with httpd-ssl.conf include

2010-11-29 Thread Jeff Schmitz
OK, thanks for all your help.  Thought I'd change the subject and hope someone 
has experience with rewrite and SSL...


On Nov 29, 2010, at 10:08 AM, Henrique Gomes wrote:

 
 My experience ends there, I'm afraid. I've setup apache with SSL, but never 
 did any specific coding in WebObjects for it.
 Hope others can help.
 
 Henrique Gomes
 
 On Nov 29, 2010, at 4:52 PM, Jeff Schmitz wrote:
 
 yes, am using rewrite rules, and that's the problem.  
 Application._rewriteURL doesn't get called when secure WOHyperlinks are 
 selected.  Will have to read up a bit on that to see how to get rewrites to 
 work with https.  Or perhaps I should use the 
 completeURLWithRequestHandlerKey method somehow to inject  the 
 cgi-bin/WebObjects back into the link for secure requests?
 
 
 On Nov 29, 2010, at 9:23 AM, Henrique Gomes wrote:
 
 
 It shouldn't make any difference but the default files have a VirtualHost 
 like this: 
 VirtualHost _default_:443
 
 Also I noticed you are using non standard URLs. Why the 'netBrackets' 
 instead of /cgi-bin/WebObjects? Did you change the WebObjectsAlias 
 directive? Are you using URL rewrite rules?
 
 https://localhost/netBrackets/-/wa/poolLogin
 
 
 
 On Nov 29, 2010, at 3:10 PM, Jeff Schmitz wrote:
 
 Tried that with the same result.  Here's what I now have for the section 
 of httpd-ssl.conf  that gets updated per the wiki.  Note I did move the 
 cert and key files up into the apache 2 dir and and named them server.crt 
 and server.key.  Also, the config-ssl file is Included in my httpd.conf 
 file...
 
 
 ##
 ## SSL Virtual Host Context
 ##
 
 VirtualHost localhost:443
 
 #   General setup for the virtual host
 DocumentRoot /Library/WebServer/Documents
 ServerName localhost:443
 ServerAdmin j...@netbrackets.com
 ErrorLog /private/var/log/apache2/error_log
 TransferLog /private/var/log/apache2/access_log
 
 #   SSL Engine Switch:
 #   Enable/Disable SSL for this virtual host.
 SSLEngine on
 
 #   SSL Cipher Suite:
 #   List the ciphers that the client is permitted to negotiate.
 #   See the mod_ssl documentation for a complete list.
 SSLCipherSuite 
 ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
 
 #   Server Certificate:
 #   Point SSLCertificateFile at a PEM encoded certificate.  If
 #   the certificate is encrypted, then you will be prompted for a
 #   pass phrase.  Note that a kill -HUP will prompt again.  Keep
 #   in mind that if you have both an RSA and a DSA certificate you
 #   can configure both in parallel (to also allow the use of DSA
 #   ciphers, etc.)
 #SSLCertificateFile /private/etc/apache2/devsslcerts/localhost_server.crt
 SSLCertificateFile /private/etc/apache2/server.crt
 #SSLCertificateFile /private/etc/apache2/server-dsa.crt
 
 On Nov 29, 2010, at 4:54 AM, Henrique Gomes wrote:
 
 
 On Nov 28, 2010, at 3:58 PM, Jeff Schmitz wrote:
 
 
 
 It doesn't find the generated URL of:
 
 https://localhost/netBrackets/-/wa/poolLogin
 
 but if I just remove the 's' from https, it finds the page:
 
 http://localhost/netBrackets/-/wa/poolLogin
 
 I'm thinking it has to do with the secure port not being generated 
 correctly.  Shouldn't :443 be specified as part of the https url?  
 
 
 (You don;t a need a :443 for https the same way you don't need a :80 for 
 http, they are the default ports for those protocols.)
 
 On the httpd-ssl.conf could you try changing the ServerName to 
 localhost:443? Like these:
 
 ServerName localhost:443
 
 Henrique Gomes
 
 
 
 On Nov 28, 2010, at 8:08 AM, Henrique Gomes wrote:
 
 
 What's the URL that's not found? What code or bindings are you using to 
 generate the hyperlink to the secure page?
 
 Henrique Gomes
 
 
 On Nov 28, 2010, at 2:51 PM, Jeff Schmitz wrote:
 
 Thanks,
 
 That gets me closer.  Apache is now running when I restart it, and 
 when I click on the secure WOHyperlink it's creating a https URL, and 
 it picks up the certificate, but then when I accept the certificate I 
 get the requested URL not found error.  If I simply change the url 
 to be a http:// URL, the page comes up with no other changes to the 
 generated URL.  Looks like webobjects is not liking any https URL.  Is 
 there something I've forgotten to do?  
 
 Thanks
 Jeff
 On Nov 26, 2010, at 12:11 PM, Henrique Gomes wrote:
 
 The wiki is more complicated than what it's need on a recent system:
 
 After generating the certificate, just put the certificate and key as 
 server.crt and server.key in /etc/apache2
 
 The only change needed to the conf files is to uncomment the line in 
 httpd.conf to include the ssl conf. I just left this at it was, 
 included below:
 (I believe it's just like snow leopard installed it.)
 httpd-ssl.conf
 
 Make sure the cert and key are readable to everyone or to the apache 
 user.
 (on a production environment you should be more careful about the key 
 file)
 
 
 Henrique Gomes
 
 
 On Nov 26, 2010, at 2:31 PM, Jeff Schmitz wrote:
 
 
 On Nov 26, 2010, at 6:34 AM, Henrique Gomes wrote:
 
 
 On Nov

Re: https and mod_rewrite. was: SSL Trouble with httpd-ssl.conf include

2010-11-29 Thread Jeff Schmitz
I got it working, but not sure if it's the best solution.  I had to add the 
apache  RewriteRules to the httpd-ssl.conf file.  I just copied what I have in 
the httpd.conf file into this file, under the General setup for the virtual 
host stuff, e.g.

#   General setup for the virtual host
DocumentRoot /Library/WebServer/Documents
ServerName localhost:443
ServerAdmin j...@netbrackets.com
ErrorLog /private/var/log/apache2/error_log
TransferLog /private/var/log/apache2/access_log

IfModule rewrite_module
# rewrite logging
RewriteLog /tmp/rewrite.log

# mod_rewrite rules
RewriteEngine On
RewriteRule ^/netBrackets(.*)$ /cgi-bin/WebObjects/netBrackets.woa$1 [PT,L,NC]
/IfModule



On Nov 29, 2010, at 10:30 AM, Jeff Schmitz wrote:

 OK, thanks for all your help.  Thought I'd change the subject and hope 
 someone has experience with rewrite and SSL...
 
 
 On Nov 29, 2010, at 10:08 AM, Henrique Gomes wrote:
 
 
 My experience ends there, I'm afraid. I've setup apache with SSL, but never 
 did any specific coding in WebObjects for it.
 Hope others can help.
 
 Henrique Gomes
 
 On Nov 29, 2010, at 4:52 PM, Jeff Schmitz wrote:
 
 yes, am using rewrite rules, and that's the problem.  
 Application._rewriteURL doesn't get called when secure WOHyperlinks are 
 selected.  Will have to read up a bit on that to see how to get rewrites to 
 work with https.  Or perhaps I should use the 
 completeURLWithRequestHandlerKey method somehow to inject  the 
 cgi-bin/WebObjects back into the link for secure requests?
 
 
 On Nov 29, 2010, at 9:23 AM, Henrique Gomes wrote:
 
 
 It shouldn't make any difference but the default files have a VirtualHost 
 like this: 
 VirtualHost _default_:443
 
 Also I noticed you are using non standard URLs. Why the 'netBrackets' 
 instead of /cgi-bin/WebObjects? Did you change the WebObjectsAlias 
 directive? Are you using URL rewrite rules?
 
 https://localhost/netBrackets/-/wa/poolLogin
 
 
 
 On Nov 29, 2010, at 3:10 PM, Jeff Schmitz wrote:
 
 Tried that with the same result.  Here's what I now have for the section 
 of httpd-ssl.conf  that gets updated per the wiki.  Note I did move the 
 cert and key files up into the apache 2 dir and and named them server.crt 
 and server.key.  Also, the config-ssl file is Included in my httpd.conf 
 file...
 
 
 ##
 ## SSL Virtual Host Context
 ##
 
 VirtualHost localhost:443
 
 #   General setup for the virtual host
 DocumentRoot /Library/WebServer/Documents
 ServerName localhost:443
 ServerAdmin j...@netbrackets.com
 ErrorLog /private/var/log/apache2/error_log
 TransferLog /private/var/log/apache2/access_log
 
 #   SSL Engine Switch:
 #   Enable/Disable SSL for this virtual host.
 SSLEngine on
 
 #   SSL Cipher Suite:
 #   List the ciphers that the client is permitted to negotiate.
 #   See the mod_ssl documentation for a complete list.
 SSLCipherSuite 
 ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
 
 #   Server Certificate:
 #   Point SSLCertificateFile at a PEM encoded certificate.  If
 #   the certificate is encrypted, then you will be prompted for a
 #   pass phrase.  Note that a kill -HUP will prompt again.  Keep
 #   in mind that if you have both an RSA and a DSA certificate you
 #   can configure both in parallel (to also allow the use of DSA
 #   ciphers, etc.)
 #SSLCertificateFile 
 /private/etc/apache2/devsslcerts/localhost_server.crt
 SSLCertificateFile /private/etc/apache2/server.crt
 #SSLCertificateFile /private/etc/apache2/server-dsa.crt
 
 On Nov 29, 2010, at 4:54 AM, Henrique Gomes wrote:
 
 
 On Nov 28, 2010, at 3:58 PM, Jeff Schmitz wrote:
 
 
 
 It doesn't find the generated URL of:
 
 https://localhost/netBrackets/-/wa/poolLogin
 
 but if I just remove the 's' from https, it finds the page:
 
 http://localhost/netBrackets/-/wa/poolLogin
 
 I'm thinking it has to do with the secure port not being generated 
 correctly.  Shouldn't :443 be specified as part of the https url?  
 
 
 (You don;t a need a :443 for https the same way you don't need a :80 for 
 http, they are the default ports for those protocols.)
 
 On the httpd-ssl.conf could you try changing the ServerName to 
 localhost:443? Like these:
 
 ServerName localhost:443
 
 Henrique Gomes
 
 
 
 On Nov 28, 2010, at 8:08 AM, Henrique Gomes wrote:
 
 
 What's the URL that's not found? What code or bindings are you using 
 to generate the hyperlink to the secure page?
 
 Henrique Gomes
 
 
 On Nov 28, 2010, at 2:51 PM, Jeff Schmitz wrote:
 
 Thanks,
 
 That gets me closer.  Apache is now running when I restart it, and 
 when I click on the secure WOHyperlink it's creating a https URL, and 
 it picks up the certificate, but then when I accept the certificate I 
 get the requested URL not found error.  If I simply change the url 
 to be a http:// URL, the page comes up with no other changes to the 
 generated URL.  Looks like webobjects is not liking any https URL.  
 Is there something I've forgotten to do?  
 
 Thanks
 Jeff
 On Nov 26, 2010, at 12:11

Re: SSL Trouble with httpd-ssl.conf include

2010-11-28 Thread Jeff Schmitz
Thanks,

That gets me closer.  Apache is now running when I restart it, and when I click 
on the secure WOHyperlink it's creating a https URL, and it picks up the 
certificate, but then when I accept the certificate I get the requested URL 
not found error.  If I simply change the url to be a http:// URL, the page 
comes up with no other changes to the generated URL.  Looks like webobjects is 
not liking any https URL.  Is there something I've forgotten to do?  

Thanks
Jeff
On Nov 26, 2010, at 12:11 PM, Henrique Gomes wrote:

 The wiki is more complicated than what it's need on a recent system:
 
 After generating the certificate, just put the certificate and key as 
 server.crt and server.key in /etc/apache2
 
 The only change needed to the conf files is to uncomment the line in 
 httpd.conf to include the ssl conf. I just left this at it was, included 
 below:
 (I believe it's just like snow leopard installed it.)
 httpd-ssl.conf
 
 Make sure the cert and key are readable to everyone or to the apache user.
 (on a production environment you should be more careful about the key file)
 
 
 Henrique Gomes
 
 
 On Nov 26, 2010, at 2:31 PM, Jeff Schmitz wrote:
 
 
 On Nov 26, 2010, at 6:34 AM, Henrique Gomes wrote:
 
 
 On Nov 26, 2010, at 4:25 AM, Jeff Schmitz wrote:
 
 Hello,
 I'm following the directions at the below link to add ssl support...
 
 http://wiki.objectstyle.org/confluence/display/WO/Development-SSL+requests+via+https+protocol?showComments=trueshowCommentArea=true#addcomment
 
 but after adding the following Include to the httpd.conf file...
 
 Include /private/etc/apache2/extra/httpd-ssl.conf
 
 Whats in that file? Did you edit it?
 
 Didn't edit it.  It's pasted below.
 
 
 
 
 
 When I restart apache and try to open http://localhost I get the cannot 
 connect to server error page.  Looking in /var/log/apache there are no 
 error messages, and according to the Systems Preferences panel apache is 
 running.  If I comment it out again and restart apache, it starts serving 
 pages again. 
 
 
 http? or https? if http://localhost doesn't work, either apache is not 
 running or some thing really strange is wrong with your setup.
 
 Neither works.  But as soon as I comment out that line and restart, it 
 starts serving http://localhost, but still not https://localhost
 
 I did notice when restarting this morning with the Include line commented 
 out, I get the following warnings/notices:
 
 [Fri Nov 26 08:19:00 2010] [warn] Init: Session Cache is not configured 
 [hint: SSLSessionCache]
 [Fri Nov 26 08:19:00 2010] [notice] Digest: generating secret for digest 
 authentication ...
 [Fri Nov 26 08:19:00 2010] [notice] Digest: done
 [Fri Nov 26 08:19:00 2010] [notice] Apache/2.2.15 (Unix) mod_ssl/2.2.15 
 OpenSSL/0.9.8l DAV/2 configured -- resuming normal operations
 [Fri Nov 26 08:19:03 2010] [notice] caught SIGTERM, shutting down
 [Fri Nov 26 08:19:03 2010] [warn] Init: Session Cache is not configured 
 [hint: SSLSessionCache]
 [Fri Nov 26 08:19:03 2010] [notice] Digest: generating secret for digest 
 authentication ...
 [Fri Nov 26 08:19:03 2010] [notice] Digest: done
 [Fri Nov 26 08:19:03 2010] [notice] Apache/2.2.15 (Unix) mod_ssl/2.2.15 
 OpenSSL/0.9.8l DAV/2 configured -- resuming normal operations
 
 But I get no messages when the Include line is included.
 
 
 
 Any ideas?
 
 Thanks,
 Jeff
 
 ___
 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/lists%40farol.pt
 
 This email sent to li...@farol.pt
 
 #
 # This is the Apache server configuration file providing SSL support.
 # It contains the configuration directives to instruct the server how to
 # serve pages over an https connection. For detailing information about 
 these 
 # directives see URL:http://httpd.apache.org/docs/2.2/mod/mod_ssl.html
 # 
 # Do NOT simply read the instructions in here without understanding
 # what they do.  They're here only as hints or reminders.  If you are unsure
 # consult the online docs. You have been warned.  
 #
 
 #
 # Pseudo Random Number Generator (PRNG):
 # Configure one or more sources to seed the PRNG of the SSL library.
 # The seed data should be of good random quality.
 # WARNING! On some platforms /dev/random blocks if not enough entropy
 # is available. This means you then cannot use the /dev/random device
 # because it would lead to very long connection times (as long as
 # it requires to make more entropy available). But usually those
 # platforms additionally provide a /dev/urandom device which doesn't
 # block. So, if available, use this one instead. Read the mod_ssl User
 # Manual for more details.
 #
 #SSLRandomSeed startup file:/dev/random  512
 #SSLRandomSeed startup file:/dev/urandom 512
 #SSLRandomSeed connect file:/dev/random  512
 #SSLRandomSeed connect file:/dev

Re: SSL Trouble with httpd-ssl.conf include

2010-11-28 Thread Jeff Schmitz


It doesn't find the generated URL of:

https://localhost/netBrackets/-/wa/poolLogin

but if I just remove the 's' from https, it finds the page:

http://localhost/netBrackets/-/wa/poolLogin

I'm thinking it has to do with the secure port not being generated correctly.  
Shouldn't :443 be specified as part of the https url?  


On Nov 28, 2010, at 8:08 AM, Henrique Gomes wrote:

 
 What's the URL that's not found? What code or bindings are you using to 
 generate the hyperlink to the secure page?
 
 Henrique Gomes
 
 
 On Nov 28, 2010, at 2:51 PM, Jeff Schmitz wrote:
 
 Thanks,
 
 That gets me closer.  Apache is now running when I restart it, and when I 
 click on the secure WOHyperlink it's creating a https URL, and it picks up 
 the certificate, but then when I accept the certificate I get the requested 
 URL not found error.  If I simply change the url to be a http:// URL, the 
 page comes up with no other changes to the generated URL.  Looks like 
 webobjects is not liking any https URL.  Is there something I've forgotten 
 to do?  
 
 Thanks
 Jeff
 On Nov 26, 2010, at 12:11 PM, Henrique Gomes wrote:
 
 The wiki is more complicated than what it's need on a recent system:
 
 After generating the certificate, just put the certificate and key as 
 server.crt and server.key in /etc/apache2
 
 The only change needed to the conf files is to uncomment the line in 
 httpd.conf to include the ssl conf. I just left this at it was, included 
 below:
 (I believe it's just like snow leopard installed it.)
 httpd-ssl.conf
 
 Make sure the cert and key are readable to everyone or to the apache user.
 (on a production environment you should be more careful about the key file)
 
 
 Henrique Gomes
 
 
 On Nov 26, 2010, at 2:31 PM, Jeff Schmitz wrote:
 
 
 On Nov 26, 2010, at 6:34 AM, Henrique Gomes wrote:
 
 
 On Nov 26, 2010, at 4:25 AM, Jeff Schmitz wrote:
 
 Hello,
 I'm following the directions at the below link to add ssl support...
 
 http://wiki.objectstyle.org/confluence/display/WO/Development-SSL+requests+via+https+protocol?showComments=trueshowCommentArea=true#addcomment
 
 but after adding the following Include to the httpd.conf file...
 
 Include /private/etc/apache2/extra/httpd-ssl.conf
 
 Whats in that file? Did you edit it?
 
 Didn't edit it.  It's pasted below.
 
 
 
 
 
 When I restart apache and try to open http://localhost I get the cannot 
 connect to server error page.  Looking in /var/log/apache there are no 
 error messages, and according to the Systems Preferences panel apache is 
 running.  If I comment it out again and restart apache, it starts 
 serving pages again. 
 
 
 http? or https? if http://localhost doesn't work, either apache is not 
 running or some thing really strange is wrong with your setup.
 
 Neither works.  But as soon as I comment out that line and restart, it 
 starts serving http://localhost, but still not https://localhost
 
 I did notice when restarting this morning with the Include line commented 
 out, I get the following warnings/notices:
 
 [Fri Nov 26 08:19:00 2010] [warn] Init: Session Cache is not configured 
 [hint: SSLSessionCache]
 [Fri Nov 26 08:19:00 2010] [notice] Digest: generating secret for digest 
 authentication ...
 [Fri Nov 26 08:19:00 2010] [notice] Digest: done
 [Fri Nov 26 08:19:00 2010] [notice] Apache/2.2.15 (Unix) mod_ssl/2.2.15 
 OpenSSL/0.9.8l DAV/2 configured -- resuming normal operations
 [Fri Nov 26 08:19:03 2010] [notice] caught SIGTERM, shutting down
 [Fri Nov 26 08:19:03 2010] [warn] Init: Session Cache is not configured 
 [hint: SSLSessionCache]
 [Fri Nov 26 08:19:03 2010] [notice] Digest: generating secret for digest 
 authentication ...
 [Fri Nov 26 08:19:03 2010] [notice] Digest: done
 [Fri Nov 26 08:19:03 2010] [notice] Apache/2.2.15 (Unix) mod_ssl/2.2.15 
 OpenSSL/0.9.8l DAV/2 configured -- resuming normal operations
 
 But I get no messages when the Include line is included.
 
 
 
 Any ideas?
 
 Thanks,
 Jeff
 
 ___
 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/lists%40farol.pt
 
 This email sent to li...@farol.pt
 
 #
 # This is the Apache server configuration file providing SSL support.
 # It contains the configuration directives to instruct the server how to
 # serve pages over an https connection. For detailing information about 
 these 
 # directives see URL:http://httpd.apache.org/docs/2.2/mod/mod_ssl.html
 # 
 # Do NOT simply read the instructions in here without understanding
 # what they do.  They're here only as hints or reminders.  If you are 
 unsure
 # consult the online docs. You have been warned.  
 #
 
 #
 # Pseudo Random Number Generator (PRNG):
 # Configure one or more sources to seed the PRNG of the SSL library.
 # The seed data should be of good random quality.
 # WARNING! On some

Re: SSL Trouble with httpd-ssl.conf include

2010-11-28 Thread Jeff Schmitz
Here are the bindings I'm using to generate the url:

loginLink: WOHyperlink {
directActionName = poolLogin;
class = style4;
secure = true;
}

On Nov 28, 2010, at 8:08 AM, Henrique Gomes wrote:

 
 What's the URL that's not found? What code or bindings are you using to 
 generate the hyperlink to the secure page?
 
 Henrique Gomes
 
 
 On Nov 28, 2010, at 2:51 PM, Jeff Schmitz wrote:
 
 Thanks,
 
 That gets me closer.  Apache is now running when I restart it, and when I 
 click on the secure WOHyperlink it's creating a https URL, and it picks up 
 the certificate, but then when I accept the certificate I get the requested 
 URL not found error.  If I simply change the url to be a http:// URL, the 
 page comes up with no other changes to the generated URL.  Looks like 
 webobjects is not liking any https URL.  Is there something I've forgotten 
 to do?  
 
 Thanks
 Jeff
 On Nov 26, 2010, at 12:11 PM, Henrique Gomes wrote:
 
 The wiki is more complicated than what it's need on a recent system:
 
 After generating the certificate, just put the certificate and key as 
 server.crt and server.key in /etc/apache2
 
 The only change needed to the conf files is to uncomment the line in 
 httpd.conf to include the ssl conf. I just left this at it was, included 
 below:
 (I believe it's just like snow leopard installed it.)
 httpd-ssl.conf
 
 Make sure the cert and key are readable to everyone or to the apache user.
 (on a production environment you should be more careful about the key file)
 
 
 Henrique Gomes
 
 
 On Nov 26, 2010, at 2:31 PM, Jeff Schmitz wrote:
 
 
 On Nov 26, 2010, at 6:34 AM, Henrique Gomes wrote:
 
 
 On Nov 26, 2010, at 4:25 AM, Jeff Schmitz wrote:
 
 Hello,
 I'm following the directions at the below link to add ssl support...
 
 http://wiki.objectstyle.org/confluence/display/WO/Development-SSL+requests+via+https+protocol?showComments=trueshowCommentArea=true#addcomment
 
 but after adding the following Include to the httpd.conf file...
 
 Include /private/etc/apache2/extra/httpd-ssl.conf
 
 Whats in that file? Did you edit it?
 
 Didn't edit it.  It's pasted below.
 
 
 
 
 
 When I restart apache and try to open http://localhost I get the cannot 
 connect to server error page.  Looking in /var/log/apache there are no 
 error messages, and according to the Systems Preferences panel apache is 
 running.  If I comment it out again and restart apache, it starts 
 serving pages again. 
 
 
 http? or https? if http://localhost doesn't work, either apache is not 
 running or some thing really strange is wrong with your setup.
 
 Neither works.  But as soon as I comment out that line and restart, it 
 starts serving http://localhost, but still not https://localhost
 
 I did notice when restarting this morning with the Include line commented 
 out, I get the following warnings/notices:
 
 [Fri Nov 26 08:19:00 2010] [warn] Init: Session Cache is not configured 
 [hint: SSLSessionCache]
 [Fri Nov 26 08:19:00 2010] [notice] Digest: generating secret for digest 
 authentication ...
 [Fri Nov 26 08:19:00 2010] [notice] Digest: done
 [Fri Nov 26 08:19:00 2010] [notice] Apache/2.2.15 (Unix) mod_ssl/2.2.15 
 OpenSSL/0.9.8l DAV/2 configured -- resuming normal operations
 [Fri Nov 26 08:19:03 2010] [notice] caught SIGTERM, shutting down
 [Fri Nov 26 08:19:03 2010] [warn] Init: Session Cache is not configured 
 [hint: SSLSessionCache]
 [Fri Nov 26 08:19:03 2010] [notice] Digest: generating secret for digest 
 authentication ...
 [Fri Nov 26 08:19:03 2010] [notice] Digest: done
 [Fri Nov 26 08:19:03 2010] [notice] Apache/2.2.15 (Unix) mod_ssl/2.2.15 
 OpenSSL/0.9.8l DAV/2 configured -- resuming normal operations
 
 But I get no messages when the Include line is included.
 
 
 
 Any ideas?
 
 Thanks,
 Jeff
 
 ___
 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/lists%40farol.pt
 
 This email sent to li...@farol.pt
 
 #
 # This is the Apache server configuration file providing SSL support.
 # It contains the configuration directives to instruct the server how to
 # serve pages over an https connection. For detailing information about 
 these 
 # directives see URL:http://httpd.apache.org/docs/2.2/mod/mod_ssl.html
 # 
 # Do NOT simply read the instructions in here without understanding
 # what they do.  They're here only as hints or reminders.  If you are 
 unsure
 # consult the online docs. You have been warned.  
 #
 
 #
 # Pseudo Random Number Generator (PRNG):
 # Configure one or more sources to seed the PRNG of the SSL library.
 # The seed data should be of good random quality.
 # WARNING! On some platforms /dev/random blocks if not enough entropy
 # is available. This means you then cannot use the /dev/random device
 # because it would lead to very

SSL Trouble with httpd-ssl.conf include

2010-11-25 Thread Jeff Schmitz
Hello,
  I'm following the directions at the below link to add ssl support...

http://wiki.objectstyle.org/confluence/display/WO/Development-SSL+requests+via+https+protocol?showComments=trueshowCommentArea=true#addcomment

but after adding the following Include to the httpd.conf file...

Include /private/etc/apache2/extra/httpd-ssl.conf

When I restart apache and try to open http://localhost I get the cannot connect 
to server error page.  Looking in /var/log/apache there are no error messages, 
and according to the Systems Preferences panel apache is running.  If I comment 
it out again and restart apache, it starts serving pages again. 

Any ideas?

Thanks,
Jeff

 ___
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] Apache rewrite rule

2010-11-03 Thread Jeff Schmitz
Thanks!
   That was it.  had to add it to the _any_80_.conf file in 
/etc/apache2/sites/  Man, I read a lot of stuff in a lot of places on 
mod_rewrite, and nothing mentioned the config files in the sites dir, so I 
added a bit to the wiki at:

http://wiki.objectstyle.org/confluence/display/WO/Deployment-Apache

Hope it's not too simplistic, but something like that would have saved me some 
time and angst.

Jeff




On Nov 3, 2010, at 11:29 AM, Dev WO wrote:

 Hello Jeff,
 
 On your server you may have virtual host setup, so the rewrite rule has to be 
 put inside the virtual host configuration /etc/apache2/sites/ for each site 
 that need it.
 
 Xavier
 
 
 
 Did this on my dev machine and it worked great, but on my leopard server 
 deployment machine I added the same entry in /etc/apache2/httpd.conf and no 
 dice.  The shorter URL's are being output from my app using the Wonder 
 er.extensions.ERXApplication.replaceApplicationPath properties, but I get 
 the requested URL not found error when I click on one of them.  Nothing in 
 the rewrite.log file.  Is there some other property to set in httpd.conf or 
 elsewhere?
 
 Thanks,
 Jeff
 
 
 On Apr 16, 2009, at 9:50 AM, Kieran Kelleher wrote:
 
 Finally! Searching the apache docs more, I found another option PT, the 
 passthrough option, that specifically refers to this being needed for 
 mod_alias or using mod_rewrite with any other modules that do 
 URI-to-filename mapping or translation.
 
 The final working rewrite rule is:
 
 IfModule rewrite_module
 # rewrite logging
 RewriteLog /var/log/apache2/rewrite.log
 
 # PURL feature
 RewriteEngine On
 RewriteRule ^/purl/(.*)$ 
 /cgi-bin/WebObjects/cheetah.woa/-52040/wa/PurlAction/purl?p=$1 [PT]
 /IfModule
 
 Thanks for the mind-prodding guys.
 
 Now it is working in apache2 on my dev machine. Hopefully apache 1.3 will 
 be similar configuration when I deploy this feature in a few days.
 
 Regards, Kieran
 
 On Apr 16, 2009, at 10:28 AM, Kieran Kelleher wrote:
 
 I added an [R] option on the end of the rule to force an external redirect 
 and it works, albeit the URL in the browser address bar becomes the ugly 
 one. So, at least this is returning the page ... not let's see if I can 
 make it do without an external redirect so that the short URL stays in the 
 browser address bar  (since the marketing design spec wants the short 
 URL)
 
 IfModule rewrite_module
 # rewrite logging
 RewriteLog /tmp/rewrite.log
 
 # PURL feature
 RewriteEngine On
 RewriteRule ^/purl/(.*)$ 
 /cgi-bin/WebObjects/cheetah.woa/-52040/wa/PurlAction/purl?p=$1 [R]
 /IfModule
 
 
 On Apr 16, 2009, at 10:17 AM, Kieran Kelleher wrote:
 
 I am using WO 5.3 on leopard with apache 2.2.9. The wo module is coming 
 before rewrite module in httpd.conf:
 LoadModule WebObjects_module 
 /System/Library/WebObjects/Adaptors/Apache2.2/mod_WebObjects.so
 LoadModule rewrite_module libexec/apache2/mod_rewrite.so
 
 Further investigation shows that each time I try to access the short URL, 
 I see the following error in the apache error_log:
 [Thu Apr 16 10:12:15 2009] [error] [client ::1] File does not exist: 
 /Library/WebServer/Documents/cgi-bin
 
 So just maybe the rewrite rule is working but the result may be 
 conflicting with mod_alias which has a scriptalias entry for the wo 
 cgi-bin???
 
 Does that ring any bells with anyone?
 
 Kieran
 
 
 
 On Apr 16, 2009, at 10:08 AM, Mike Schrag wrote:
 
 if you're rewriting to wo instances, you need to make sure the ordering 
 of your modules is right, too ... in 5.3 (i don't know about 5.4), the 
 order of the modules was wrong -- you have to make mod_webobjects come 
 before mod_rewrite (iirc).
 
 ms
 
 On Apr 16, 2009, at 9:25 AM, Kieran Kelleher wrote:
 
 Hello list,
 
 Well when Brian Moore said mod_rewrite was voodoo 
 (http://httpd.apache.org/docs/2.2/rewrite/), I was skeptical, but now I 
 believe him! I need some help for what I think should be a pretty 
 simple rewrite rule. I am currently trying to get this to work 
 initially on my development machine, and I keep getting a 404 Not 
 Found message from apache (version 2.2.9).
 
 The rule is supposed to take convert URLs like this :
 http://localhost/purl/KieranKelleher
 
 and rewrite them like this (on my dev machine):
 http://localhost/cgi-bin/WebObjects/cheetah.woa/-52040/wa/PurlAction/purl?p=KieranKelleher
 
 I have added this to the end of my /etc/apache2/httpd.conf just before 
 the last 2 includes at the end of the file (other/*.conf and WO 
 apache.conf)
 
 IfModule rewrite_module
 # rewrite logging
 RewriteLog /tmp/rewrite.log
 
 # PURL feature
 RewriteEngine On
 RewriteRule ^/purl/(.*)$ 
 /cgi-bin/WebObjects/cheetah.woa/-52040/wa/PurlAction/purl?p=$1
 /IfModule
 
 I can confirm that when I restarted apache it creates the 
 /tmp/rewrite.log if it does not exist, however nothing gets written 
 there.
 
 I have studied the docs, the wiki docs and many examples. This looks 
 like it should work, but I cannot for the life of me 

Re: [OT] Apache rewrite rule

2010-11-02 Thread Jeff Schmitz
Did this on my dev machine and it worked great, but on my leopard server 
deployment machine I added the same entry in /etc/apache2/httpd.conf and no 
dice.  The shorter URL's are being output from my app using the Wonder 
er.extensions.ERXApplication.replaceApplicationPath properties, but I get the 
requested URL not found error when I click on one of them.  Nothing in the 
rewrite.log file.  Is there some other property to set in httpd.conf or 
elsewhere?

Thanks,
Jeff


On Apr 16, 2009, at 9:50 AM, Kieran Kelleher wrote:

 Finally! Searching the apache docs more, I found another option PT, the 
 passthrough option, that specifically refers to this being needed for 
 mod_alias or using mod_rewrite with any other modules that do URI-to-filename 
 mapping or translation.
 
 The final working rewrite rule is:
 
 IfModule rewrite_module
 # rewrite logging
 RewriteLog /var/log/apache2/rewrite.log
 
 # PURL feature
 RewriteEngine On
 RewriteRule ^/purl/(.*)$ 
 /cgi-bin/WebObjects/cheetah.woa/-52040/wa/PurlAction/purl?p=$1 [PT]
 /IfModule
 
 Thanks for the mind-prodding guys.
 
 Now it is working in apache2 on my dev machine. Hopefully apache 1.3 will be 
 similar configuration when I deploy this feature in a few days.
 
 Regards, Kieran
 
 On Apr 16, 2009, at 10:28 AM, Kieran Kelleher wrote:
 
 I added an [R] option on the end of the rule to force an external redirect 
 and it works, albeit the URL in the browser address bar becomes the ugly 
 one. So, at least this is returning the page ... not let's see if I can make 
 it do without an external redirect so that the short URL stays in the 
 browser address bar  (since the marketing design spec wants the short 
 URL)
 
 IfModule rewrite_module
 # rewrite logging
 RewriteLog /tmp/rewrite.log
 
 # PURL feature
 RewriteEngine On
 RewriteRule ^/purl/(.*)$ 
 /cgi-bin/WebObjects/cheetah.woa/-52040/wa/PurlAction/purl?p=$1 [R]
 /IfModule
 
 
 On Apr 16, 2009, at 10:17 AM, Kieran Kelleher wrote:
 
 I am using WO 5.3 on leopard with apache 2.2.9. The wo module is coming 
 before rewrite module in httpd.conf:
 LoadModule WebObjects_module 
 /System/Library/WebObjects/Adaptors/Apache2.2/mod_WebObjects.so
 LoadModule rewrite_module libexec/apache2/mod_rewrite.so
 
 Further investigation shows that each time I try to access the short URL, I 
 see the following error in the apache error_log:
 [Thu Apr 16 10:12:15 2009] [error] [client ::1] File does not exist: 
 /Library/WebServer/Documents/cgi-bin
 
 So just maybe the rewrite rule is working but the result may be conflicting 
 with mod_alias which has a scriptalias entry for the wo cgi-bin???
 
 Does that ring any bells with anyone?
 
 Kieran
 
 
 
 On Apr 16, 2009, at 10:08 AM, Mike Schrag wrote:
 
 if you're rewriting to wo instances, you need to make sure the ordering of 
 your modules is right, too ... in 5.3 (i don't know about 5.4), the order 
 of the modules was wrong -- you have to make mod_webobjects come before 
 mod_rewrite (iirc).
 
 ms
 
 On Apr 16, 2009, at 9:25 AM, Kieran Kelleher wrote:
 
 Hello list,
 
 Well when Brian Moore said mod_rewrite was voodoo 
 (http://httpd.apache.org/docs/2.2/rewrite/), I was skeptical, but now I 
 believe him! I need some help for what I think should be a pretty simple 
 rewrite rule. I am currently trying to get this to work initially on my 
 development machine, and I keep getting a 404 Not Found message from 
 apache (version 2.2.9).
 
 The rule is supposed to take convert URLs like this :
 http://localhost/purl/KieranKelleher
 
 and rewrite them like this (on my dev machine):
 http://localhost/cgi-bin/WebObjects/cheetah.woa/-52040/wa/PurlAction/purl?p=KieranKelleher
 
 I have added this to the end of my /etc/apache2/httpd.conf just before 
 the last 2 includes at the end of the file (other/*.conf and WO 
 apache.conf)
 
 IfModule rewrite_module
 # rewrite logging
 RewriteLog /tmp/rewrite.log
 
 # PURL feature
 RewriteEngine On
 RewriteRule ^/purl/(.*)$ 
 /cgi-bin/WebObjects/cheetah.woa/-52040/wa/PurlAction/purl?p=$1
 /IfModule
 
 I can confirm that when I restarted apache it creates the 
 /tmp/rewrite.log if it does not exist, however nothing gets written there.
 
 I have studied the docs, the wiki docs and many examples. This looks like 
 it should work, but I cannot for the life of me figure out why it does 
 not work :-(
 
 Any clues or hints would be appreciated.
 
 Thanks, Kieran
 ___
 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/mschrag%40mdimension.com
 
 This email sent to msch...@mdimension.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:
 

Re: no CGI-Executables/WebObjects installed

2010-04-16 Thread Jeff Schmitz
Am now back to normal.  The last problem with apache not finding my css files 
was in the /etc/apache2/httpd.conf file as well.  Looks like the update 
commented out the following line that sets DocumentRoot:

# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
#DocumentRoot /Library/WebServer/Documents

Uncommenting put everything right.  Anyone else see this after an update to 
Snow Leopard?

Jeff


On Apr 15, 2010, at 11:10 PM, Jeff Schmitz wrote:

 Went over all the apache config stuff on the wiki, and I think the problem 
 was this directive:
 
   Tell wotaskd to Use Localhost Too
   Edit 
 /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Properties
 
   Add this line after the WOPort=1085 one:
 
   WOHost=localhost
 
 When I looked at my Properties file, it had a similar line, but it said:
 
 WOPort=localhost
 
 What's weird is all this worked until my upgrade to Snow Leopard.  Could 
 upgrading have caused that line to get changed?
 
 Anyway, I changed it to WOHost, and now my app comes up.
 
 Now on to the next problem.   The app can't find my css file that I keep 
 under /Library/Webserver/Documents.  Haven't really debugged this part yet, 
 but wanted to post what I found so far for the previous problem.
 
 Jeff
 
 
 
 On Dec 30, 2009, at 10:42 PM, Chuck Hill wrote:
 
 
 On Dec 30, 2009, at 8:20 PM, Jeff Schmitz wrote:
 
 I'm not configuring virtual hosts (that I know of anyway).
 
 http://wiki.objectstyle.org/confluence/display/WO/Running+Through+Apache+-+Leopard+Client+10.5.5+-+Summary
 
 I'm trying to set up a Snow Leopard Server deployment machine.  Will all 
 this apply?
 
 I don't know about all but the directory stuff will.
 
 
 Chuck
 
 
 On Dec 30, 2009, at 9:31 PM, Chuck Hill wrote:
 
 I think that your Apache config is messed up.  Are you configuring virtual 
 hosts?
 
 Check the Directory config here:
 http://wiki.objectstyle.org/confluence/display/WO/Web+Applications-Deployment-Apache
 http://wiki.objectstyle.org/confluence/display/WO/Running+Through+Apache+-+Leopard+Client+10.5.5+-+Summary
 
 Also:
 http://wiki.objectstyle.org/confluence/dosearchsite.action?searchQuery.queryString=%2Bdirectory+%2BapachesearchQuery.spaceKey=conf_global
 
 Chuck
 
 On Dec 30, 2009, at 7:08 PM, Jeff Schmitz wrote:
 
 
 Does apache.conf is included in httpd.conf? In /etc/apache2/httpd.conf, 
 you should have this :
 
  Include /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf
 
 Yes, this has been there all along.  and the apache.conf file does exist.
 
 Jeff
 
 
 On Dec 30, 2009, at 8:00 PM, Pascal Robert wrote:
 
 
 Le 09-12-30 à 18:51, Jeff Schmitz a écrit :
 
 Hello,
 I used migration to migrate my data from a Leopard server to a snow 
 leopard server.  I then installed my webobjects app and started it with 
 Monitor for WebObjects.  That all seemed to work without problem.  
 However, when I try to navigate to the app with:
 
 http://localhost/cgi-bin/WebObjects/netBrackets
 
 I get a 404 error.  Looking at the httpd error logs I see:
 
 script not found or unable to stat: 
 /Library/WebServer/CGI-Executables/WebObjects
 
 I then tried to install WO using the installer here:
 
 http://support.apple.com/kb/DL688
 
 I restarted apache and am still getting the error.  I have verified 
 that the .../CGI-Executables/WebObjects script still does NOT exist.
 
 And it shouldn't exist, it should run as a Apache module.
 
 Shouldn't this have been installed by the installer?  I guess I could 
 copy the one over from my Leopard Server, but I'm afraid perhaps 
 something else didn't get installed correctly.  Any suggestions on how 
 to proceed?
 
 
 As a note, I have done the things outlined below:
 
 - Download  install WO 5.4.3 for 10.5 from ADC
 - cd /Developer/Examples/JavaWebObjects/Deployment/
 - sudo sh configure.sh
 - Test: http://127.0.0.1:1085  - wotaskd works
 - Test: http://127.0.0.1:56789 - WOMonitor works
 
 - edit /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf :
 Uncomment Line WebObjectsAdminUsername public
 
 Does apache.conf is included in httpd.conf? In /etc/apache2/httpd.conf, 
 you should have this :
 
  Include /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf
 
 If not, add it and restart Apache.
 
 - Restart apache: sudo apachectl restart
 
 
 
 Thanks,
 Jeff
 
 ___
 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/probert%40macti.ca
 
 This email sent to prob...@macti.ca
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help

Re: no CGI-Executables/WebObjects installed

2010-04-15 Thread Jeff Schmitz
Went over all the apache config stuff on the wiki, and I think the problem was 
this directive:

   Tell wotaskd to Use Localhost Too
   Edit 
/System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Properties

   Add this line after the WOPort=1085 one:

   WOHost=localhost

When I looked at my Properties file, it had a similar line, but it said:

WOPort=localhost

What's weird is all this worked until my upgrade to Snow Leopard.  Could 
upgrading have caused that line to get changed?

Anyway, I changed it to WOHost, and now my app comes up.

Now on to the next problem.   The app can't find my css file that I keep under 
/Library/Webserver/Documents.  Haven't really debugged this part yet, but 
wanted to post what I found so far for the previous problem.

Jeff



On Dec 30, 2009, at 10:42 PM, Chuck Hill wrote:

 
 On Dec 30, 2009, at 8:20 PM, Jeff Schmitz wrote:
 
 I'm not configuring virtual hosts (that I know of anyway).
 
 http://wiki.objectstyle.org/confluence/display/WO/Running+Through+Apache+-+Leopard+Client+10.5.5+-+Summary
 
 I'm trying to set up a Snow Leopard Server deployment machine.  Will all 
 this apply?
 
 I don't know about all but the directory stuff will.
 
 
 Chuck
 
 
 On Dec 30, 2009, at 9:31 PM, Chuck Hill wrote:
 
 I think that your Apache config is messed up.  Are you configuring virtual 
 hosts?
 
 Check the Directory config here:
 http://wiki.objectstyle.org/confluence/display/WO/Web+Applications-Deployment-Apache
 http://wiki.objectstyle.org/confluence/display/WO/Running+Through+Apache+-+Leopard+Client+10.5.5+-+Summary
 
 Also:
 http://wiki.objectstyle.org/confluence/dosearchsite.action?searchQuery.queryString=%2Bdirectory+%2BapachesearchQuery.spaceKey=conf_global
 
 Chuck
 
 On Dec 30, 2009, at 7:08 PM, Jeff Schmitz wrote:
 
 
 Does apache.conf is included in httpd.conf? In /etc/apache2/httpd.conf, 
 you should have this :
 
   Include /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf
 
 Yes, this has been there all along.  and the apache.conf file does exist.
 
 Jeff
 
 
 On Dec 30, 2009, at 8:00 PM, Pascal Robert wrote:
 
 
 Le 09-12-30 à 18:51, Jeff Schmitz a écrit :
 
 Hello,
 I used migration to migrate my data from a Leopard server to a snow 
 leopard server.  I then installed my webobjects app and started it with 
 Monitor for WebObjects.  That all seemed to work without problem.  
 However, when I try to navigate to the app with:
 
 http://localhost/cgi-bin/WebObjects/netBrackets
 
 I get a 404 error.  Looking at the httpd error logs I see:
 
 script not found or unable to stat: 
 /Library/WebServer/CGI-Executables/WebObjects
 
 I then tried to install WO using the installer here:
 
 http://support.apple.com/kb/DL688
 
 I restarted apache and am still getting the error.  I have verified that 
 the .../CGI-Executables/WebObjects script still does NOT exist.
 
 And it shouldn't exist, it should run as a Apache module.
 
 Shouldn't this have been installed by the installer?  I guess I could 
 copy the one over from my Leopard Server, but I'm afraid perhaps 
 something else didn't get installed correctly.  Any suggestions on how 
 to proceed?
 
 
 As a note, I have done the things outlined below:
 
 - Download  install WO 5.4.3 for 10.5 from ADC
 - cd /Developer/Examples/JavaWebObjects/Deployment/
 - sudo sh configure.sh
 - Test: http://127.0.0.1:1085  - wotaskd works
 - Test: http://127.0.0.1:56789 - WOMonitor works
 
 - edit /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf :
 Uncomment Line WebObjectsAdminUsername public
 
 Does apache.conf is included in httpd.conf? In /etc/apache2/httpd.conf, 
 you should have this :
 
   Include /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf
 
 If not, add it and restart Apache.
 
 - Restart apache: sudo apachectl restart
 
 
 
 Thanks,
 Jeff
 
 ___
 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/probert%40macti.ca
 
 This email sent to prob...@macti.ca
 
 
 ___
 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/chill%40global-village.net
 
 This email sent to ch...@global-village.net
 
 -- 
 Chuck Hill Senior Consultant / VP Development
 
 Practical WebObjects - for developers who want to increase their overall 
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects
 
 
 
 
 
 
 
 
 
 -- 
 Chuck Hill Senior Consultant / VP Development
 
 Practical WebObjects - for developers who want to increase their overall 
 knowledge of WebObjects or who

Re: You don't have permission to access /cgi-bin/WebObjects/TheApp.woa/-5579 on this server.

2010-04-14 Thread Jeff Schmitz
Same thing was happening to me (I just upgraded to SL on my Dev machine), and 
after making the suggested change below, when I start my app with DirectConnect 
disabled I'm getting 

Forbidden

You don't have permission to access /cgi-bin/WebObjects/netBrackets.woa/- 
on this server.

Any ideas?

Thanks,
Jeff

On Apr 6, 2010, at 2:34 PM, David LeBer wrote:

 
 On 2010-04-06, at 3:06 PM, David LeBer wrote:
 
 Hey all,
 
 I'm on Snow Leopard and my dev environment is not letting me connect to my 
 app with direct connect disabled. Sheepishly, I can't remember whether this 
 has worked since I updated  to SL. Does anyone have a working apache2 
 httpd.conf file they could send me that I could compare against mine? 
 
 Thx,
 
 ;david
 
 
 Thanks everyone, found it.
 
 Directory /
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
 /Directory
 
 vs:
 
 Directory /
Options FollowSymLinks
AllowOverride None
#Order deny,allow
#Deny from all
 /Directory
 
 I thought I'd corrected that...
 
 ;david
 
 --
 David LeBer
 Codeferous Software
 'co-def-er-ous' adj. Literally 'code-bearing'
 site: http://codeferous.com
 blog: http://davidleber.net
 profile:  http://www.linkedin.com/in/davidleber
 twitter:  http://twitter.com/rebeld
 --
 Toronto Area Cocoa / WebObjects developers group:
 http://tacow.org
 
 
 
 
 ___
 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/jeffandmonica%40mac.com
 
 This email sent to jeffandmon...@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: You don't have permission to access /cgi-bin/WebObjects/TheApp.woa/-5579 on this server.

2010-04-14 Thread Jeff Schmitz
Actually, I think I had the Directory entry right originally (with the Order 
and Deny lines commented out).  But when I have them like that, it still 
doesn't run and gives me a Safari can't open the page. error (not the 
permissions error).  Runs fine with direct connect enabled.

Jeff

On Apr 14, 2010, at 9:54 PM, Jeff Schmitz wrote:

 Same thing was happening to me (I just upgraded to SL on my Dev machine), and 
 after making the suggested change below, when I start my app with 
 DirectConnect disabled I'm getting 
 
 Forbidden
 
 You don't have permission to access /cgi-bin/WebObjects/netBrackets.woa/- 
 on this server.
 
 Any ideas?
 
 Thanks,
 Jeff
 
 On Apr 6, 2010, at 2:34 PM, David LeBer wrote:
 
 
 On 2010-04-06, at 3:06 PM, David LeBer wrote:
 
 Hey all,
 
 I'm on Snow Leopard and my dev environment is not letting me connect to my 
 app with direct connect disabled. Sheepishly, I can't remember whether this 
 has worked since I updated  to SL. Does anyone have a working apache2 
 httpd.conf file they could send me that I could compare against mine? 
 
 Thx,
 
 ;david
 
 
 Thanks everyone, found it.
 
 Directory /
   Options FollowSymLinks
   AllowOverride None
   Order deny,allow
   Deny from all
 /Directory
 
 vs:
 
 Directory /
   Options FollowSymLinks
   AllowOverride None
   #Order deny,allow
   #Deny from all
 /Directory
 
 I thought I'd corrected that...
 
 ;david
 
 --
 David LeBer
 Codeferous Software
 'co-def-er-ous' adj. Literally 'code-bearing'
 site:http://codeferous.com
 blog:http://davidleber.net
 profile: http://www.linkedin.com/in/davidleber
 twitter: http://twitter.com/rebeld
 --
 Toronto Area Cocoa / WebObjects developers group:
 http://tacow.org
 
 
 
 
 ___
 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/jeffandmonica%40mac.com
 
 This email sent to jeffandmon...@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/jeffandmonica%40mac.com
 
 This email sent to jeffandmon...@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: frontbase dying

2010-03-29 Thread Jeff Schmitz


On Mar 28, 2010, at 8:52 PM, Chuck Hill wrote:



On Mar 28, 2010, at 6:48 AM, Mike Schrag wrote:

presumably it crashed ... there should be a crash log produced by  
it that you can send to FB.


Hint: look in /Library/Logs/CrashReporter


That directory is empty.




you should also look at the query that ran just before it crashed  
and see if it's the same both times -- maybe you can check to see  
if something is corrupted related to that query.


If the _exact_ _same_ (different data values perhaps, but same SQL)  
query runs OK one time and fails later, that would suggest a  
corrupted table or index.  Doing a write all and importing it to re- 
create the database will fix this.  If that is the case, I'd run the  
hardware tests on that machine and  check the disk.


The above is the case.



If the SQL form is unique, you have have hit a parsing bug in  
FrontBase.  I've seen that happen now and then.



Chuck




On Mar 28, 2010, at 9:37 AM, Jeff Schmitz wrote:

Any idea what might cause frontbase to just up and die.  Twice now  
it will seem to be functioning fine, and then it will just go  
away.  Below is the only exception I'm getting when it dies:


(ERXDatabaseContextDelegate.java:175) INFO   
er.transaction.adaptor.Exceptions  - Database Exception occured:  
Database - netBrackets - is not runningat  
com 
.frontbase.jdbc.FBJConnection.createConnection(FBJConnection.java: 
275)
at com.frontbase.jdbc.FBJConnection.reconnect(FBJConnection.java: 
355)

at com.frontbase.jdbc.FBJConnection.fbX(FBJConnection.java:796)
at com.frontbase.jdbc.FBJConnection.execute(FBJConnection.java:839)
at com.frontbase.jdbc.FBJConnection.rollback(FBJConnection.java:629)

Thanks,
Jeff
___
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/mschrag%40mdimension.com

This email sent to msch...@mdimension.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/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects









___
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


frontbase dying

2010-03-28 Thread Jeff Schmitz
Any idea what might cause frontbase to just up and die.  Twice now it  
will seem to be functioning fine, and then it will just go away.   
Below is the only exception I'm getting when it dies:


 (ERXDatabaseContextDelegate.java:175) INFO   
er.transaction.adaptor.Exceptions  - Database Exception occured:  
Database - netBrackets - is not runningat  
com.frontbase.jdbc.FBJConnection.createConnection(FBJConnection.java: 
275)

at com.frontbase.jdbc.FBJConnection.reconnect(FBJConnection.java:355)
at com.frontbase.jdbc.FBJConnection.fbX(FBJConnection.java:796)
at com.frontbase.jdbc.FBJConnection.execute(FBJConnection.java:839)
at com.frontbase.jdbc.FBJConnection.rollback(FBJConnection.java:629)

Thanks,
Jeff
___
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: frontbase dying

2010-03-28 Thread Jeff Schmitz
Looking at the frontbase transaction log, around the time of the below  
exception (7:42) I see a normal update (one of MANY similar ones going  
on before it) followed by one that occurred 2 minutes after the  
webobjects exception that I don't recognize concerning an updatelock.   
Of course this second transaction happened after webobjects was  
already reporting the database as not running...


--Tran: 55296 2010-03-28-06:38:35 1344314 505 505 0 1070459  
0,netBrackets,NETBRACKETS,America/Chicago
^...@^@^A?UPDATE t_pool SET c_calculating_can_i_wins = 'true' WHERE  
(id=1000743) AND (c_admin_email='sta...@fortosage.net') AND  
(c_calculating_can_i_wins='false') AND (c_can_i_win_index=0) AND  
(c_can_i_wins_calculated='false') AND (c_early_bird_paid='false')  
AND (c_entry_limit=0) AND (c_paid='tr
ue') AND (c_pool_type=0) AND (c_results_index=24) AND  
(c_seed_type=0) AND (c_stand_alone='false') AND  
(c_ud_bonus='false') AND (c_updating_results='false') AND  
(c_weighted='false');~...@^@^...@b--


Tran: 55297 2010-03-28-07:44:48 11 190 190 0 1070751  
0,netBrackets,NETBRACKETS,America/Chicago
^...@^@^...@?update _dbupdater SET lockowner = 'netBrackets-localhost: 
2003', updatelock = 1 WHERE (modelname='netbracketsFW') AND  
(updatelock=0 OR lockowner='netBrackets-localhost:2003');~...@^@^...@`
--Tran: 55298 2010-03-28-07:44:48 31 99 99 0 1070950  
0,netBrackets,NETBRACKETS,America/Chicago
^...@^@^...@_update _dbupdater SET lockowner = NULL, updatelock = 0  
WHERE modelname='netbracketsFW';~...@^@^...@b

On Mar 28, 2010, at 8:48 AM, Mike Schrag wrote:

presumably it crashed ... there should be a crash log produced by it  
that you can send to FB. you should also look at the query that ran  
just before it crashed and see if it's the same both times -- maybe  
you can check to see if something is corrupted related to that query.


On Mar 28, 2010, at 9:37 AM, Jeff Schmitz wrote:

Any idea what might cause frontbase to just up and die.  Twice now  
it will seem to be functioning fine, and then it will just go  
away.  Below is the only exception I'm getting when it dies:


(ERXDatabaseContextDelegate.java:175) INFO   
er.transaction.adaptor.Exceptions  - Database Exception occured:  
Database - netBrackets - is not runningat  
com 
.frontbase.jdbc.FBJConnection.createConnection(FBJConnection.java: 
275)

at com.frontbase.jdbc.FBJConnection.reconnect(FBJConnection.java:355)
at com.frontbase.jdbc.FBJConnection.fbX(FBJConnection.java:796)
at com.frontbase.jdbc.FBJConnection.execute(FBJConnection.java:839)
at com.frontbase.jdbc.FBJConnection.rollback(FBJConnection.java:629)

Thanks,
Jeff
___
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/mschrag%40mdimension.com

This email sent to msch...@mdimension.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: Exception: Deployment - FrontbasePlugIn - deadlock - WHY

2010-03-23 Thread Jeff Schmitz
I hate to say, but I'm not sure where that (the connection dictionary)  
is.



On Mar 23, 2010, at 12:58 AM, Chuck Hill wrote:

Look at how the connection dictionary gets set in deployment: is  
there a property file or arguments in JavaMonitor that override what  
is in the model?


Chuck



On Mar 22, 2010, at 10:48 PM, Jeff Schmitz wrote:

I was seeing the same thing as below and it was very repeatable on  
both my development and deployment machines.  I made the suggested  
change, and the error went away on my development machine.  However  
when I install the new build on my deployment machine, I still get  
the error (very repeatably).  Is there something extra I need to do  
to make sure that kind of change gets installed when you build and  
deploy your project?  As a note, my EOModel resides in a framework  
project that I build and install separately from my main project.   
And yes, I have installed both parts and still am seeing the error.


Thanks,
Jeff


On Jan 10, 2007, at 4:39 PM, Chuck Hill wrote:



On Jan 10, 2007, at 2:33 PM, Gaastra Dennis - WO Lists wrote:


Dear colleagues,

This exception just appeared at random during deployment. Yes,  
there are multiple WO application instances and multiple sessions  
per instance, but this never has caused a problem before. We were  
just trying to insert an object into the database. Any tips,  
pointers? Frontbase? WO?


You.  :-)  Add /isolation=read_committed/locking=optimistic  to  
your URL so that it looks like this:


JDBCUrl = jdbc:FrontBase://localhost/GVCSiteMaker/ 
isolation=read_committed/locking=optimistic;



Chuck




EXCEPTION:

com.webobjects.eoaccess.EOGeneralAdaptorException:  
EvaluateExpression failed:  
com.webobjects.jdbcadaptor.FrontbasePlugIn$FrontbaseExpression:  
INSERT INTO Client(address_PostalZip, phone_Fax,  
modify_user_id, create_user_id, date_Registration,  
notes_textblob_id, birthDate, date_LastPayment,  
client_id, isActive, sourceInformation, address_Line1,  
address_Line2, name_Last, salesPerson_employee_id,  
address_ProvinceState, branch_id, name_First,  
date_RTEligible, modify_date, currentBalance,  
address_Additional, address_City3C, dlClass_id,  
address_Country, address_City, division_id, create_date,  
phone_Home, dlNumber, date_LastBooking, phone_Cell,  
highSchool, phone_Additional, office_id, eMail,  
programCourse) VALUES ('A1Z-5Z1', NULL, NULL, 'rhonda',  
TIMESTAMP '2007-01-10 00:00:00.000', 1000633, TIMESTAMP  
'1951-07-29 00:00:00.000', NULL, 1000553, 1, NULL, '87-Spear Rd',  
NULL, 'Nesty', 118, 'BC', 10
1, 'Mario', NULL, NULL, NULL, NULL, 'Chi', 101, 'Canada',  
'Chillilove', 102, TIMESTAMP '2007-01-10 11:56:10.003',  
'604-793-8439', '6892720', NULL, NULL, NULL, NULL, 101, NULL,  
'CL-3 ABC($900.00)'):
 Next exception:SQL State:00   subclass =  -- error code:  
380 -- msg: Exception condition 380. Pessimistic locking:  
multiple transaction conflict detected (deadlock).
 Next exception:SQL State:40   subclass = 00 -- error code:  
363 -- msg: Exception condition 363. Transaction rollback.



With Kind Regards,

Dennis Gaastra, M.B.A.[sfu.ca], B.Sc.[ubc.ca]
Chief Technology Officer,

WEBAPPZ Systems, Inc.
HQ:  (+1) 604.921.1333
Fax:  (+1) 604.921.4313
Cell:  (+1) 604.787.2532
Web: www.webappz.com  www.1tracker.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/chill%40global-village.net

This email sent to ch...@global-village.net



--

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve  
specific problems.

http://www.global-village.net/products/practical_webobjects





___
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/jeffandmonica%40mac.com

This email sent to jeffandmon...@mac.com




--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects









___
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: Exception: Deployment - FrontbasePlugIn - deadlock - WHY

2010-03-23 Thread Jeff Schmitz

oh, i reread and think I get it.  here's the java monitor settings.

-WOPort 2002 -WOCachingEnabled YES -WODebuggingEnabled NO - 
WOOutputPath /Library/WebObjects/Logs/netBrackets-2 - 
WOAutoOpenInBrowser NO -WOAutoOpenClientApplication NO - 
WOLifebeatInterval 30 -WOLifebeatEnabled YES - 
WOLifebeatDestinationPort 1085 -WOAdaptor WODefaultAdaptor - 
WOWorkerThreadCount 4 -WOListenQueueSize 128 -WOWorkerThreadCountMin 2  
-WOWorkerThreadCountMax 8 -NSProjectSearchPath () -WOSessionTimeOut  
1800 -WOStatisticsPassword smsbear1 -WOApplicationName netBrackets - 
WOMonitorEnabled YES -WONoPause YES -d64 -Xms2048m -Xmx3072m - 
WOAllowsConcurrentRequestHandling YES EOAdaptorDebugEnabled NO - 
WODirectConnectEnabled NO

On Mar 23, 2010, at 12:58 AM, Chuck Hill wrote:

Look at how the connection dictionary gets set in deployment: is  
there a property file or arguments in JavaMonitor that override what  
is in the model?


Chuck



On Mar 22, 2010, at 10:48 PM, Jeff Schmitz wrote:

I was seeing the same thing as below and it was very repeatable on  
both my development and deployment machines.  I made the suggested  
change, and the error went away on my development machine.  However  
when I install the new build on my deployment machine, I still get  
the error (very repeatably).  Is there something extra I need to do  
to make sure that kind of change gets installed when you build and  
deploy your project?  As a note, my EOModel resides in a framework  
project that I build and install separately from my main project.   
And yes, I have installed both parts and still am seeing the error.


Thanks,
Jeff


On Jan 10, 2007, at 4:39 PM, Chuck Hill wrote:



On Jan 10, 2007, at 2:33 PM, Gaastra Dennis - WO Lists wrote:


Dear colleagues,

This exception just appeared at random during deployment. Yes,  
there are multiple WO application instances and multiple sessions  
per instance, but this never has caused a problem before. We were  
just trying to insert an object into the database. Any tips,  
pointers? Frontbase? WO?


You.  :-)  Add /isolation=read_committed/locking=optimistic  to  
your URL so that it looks like this:


JDBCUrl = jdbc:FrontBase://localhost/GVCSiteMaker/ 
isolation=read_committed/locking=optimistic;



Chuck




EXCEPTION:

com.webobjects.eoaccess.EOGeneralAdaptorException:  
EvaluateExpression failed:  
com.webobjects.jdbcadaptor.FrontbasePlugIn$FrontbaseExpression:  
INSERT INTO Client(address_PostalZip, phone_Fax,  
modify_user_id, create_user_id, date_Registration,  
notes_textblob_id, birthDate, date_LastPayment,  
client_id, isActive, sourceInformation, address_Line1,  
address_Line2, name_Last, salesPerson_employee_id,  
address_ProvinceState, branch_id, name_First,  
date_RTEligible, modify_date, currentBalance,  
address_Additional, address_City3C, dlClass_id,  
address_Country, address_City, division_id, create_date,  
phone_Home, dlNumber, date_LastBooking, phone_Cell,  
highSchool, phone_Additional, office_id, eMail,  
programCourse) VALUES ('A1Z-5Z1', NULL, NULL, 'rhonda',  
TIMESTAMP '2007-01-10 00:00:00.000', 1000633, TIMESTAMP  
'1951-07-29 00:00:00.000', NULL, 1000553, 1, NULL, '87-Spear Rd',  
NULL, 'Nesty', 118, 'BC', 10
1, 'Mario', NULL, NULL, NULL, NULL, 'Chi', 101, 'Canada',  
'Chillilove', 102, TIMESTAMP '2007-01-10 11:56:10.003',  
'604-793-8439', '6892720', NULL, NULL, NULL, NULL, 101, NULL,  
'CL-3 ABC($900.00)'):
 Next exception:SQL State:00   subclass =  -- error code:  
380 -- msg: Exception condition 380. Pessimistic locking:  
multiple transaction conflict detected (deadlock).
 Next exception:SQL State:40   subclass = 00 -- error code:  
363 -- msg: Exception condition 363. Transaction rollback.



With Kind Regards,

Dennis Gaastra, M.B.A.[sfu.ca], B.Sc.[ubc.ca]
Chief Technology Officer,

WEBAPPZ Systems, Inc.
HQ:  (+1) 604.921.1333
Fax:  (+1) 604.921.4313
Cell:  (+1) 604.787.2532
Web: www.webappz.com  www.1tracker.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/chill%40global-village.net

This email sent to ch...@global-village.net



--

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve  
specific problems.

http://www.global-village.net/products/practical_webobjects





___
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/jeffandmonica%40mac.com

This email sent to jeffandmon...@mac.com




--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase

Re: Exception: Deployment - FrontbasePlugIn - deadlock - WHY

2010-03-23 Thread Jeff Schmitz

btw, any way to get a running app to re-read that prop?


On Mar 23, 2010, at 1:18 AM, Jeff Schmitz wrote:


and bingo.  in the eomodel properties file...

#Connection Dictionary
dbConnectURLGLOBAL=jdbc:frontbase://localhost/netBrackets

thanks again!


On Mar 23, 2010, at 12:58 AM, Chuck Hill wrote:

Look at how the connection dictionary gets set in deployment: is  
there a property file or arguments in JavaMonitor that override  
what is in the model?


Chuck



On Mar 22, 2010, at 10:48 PM, Jeff Schmitz wrote:

I was seeing the same thing as below and it was very repeatable on  
both my development and deployment machines.  I made the suggested  
change, and the error went away on my development machine.   
However when I install the new build on my deployment machine, I  
still get the error (very repeatably).  Is there something extra I  
need to do to make sure that kind of change gets installed when  
you build and deploy your project?  As a note, my EOModel resides  
in a framework project that I build and install separately from my  
main project.  And yes, I have installed both parts and still am  
seeing the error.


Thanks,
Jeff


On Jan 10, 2007, at 4:39 PM, Chuck Hill wrote:



On Jan 10, 2007, at 2:33 PM, Gaastra Dennis - WO Lists wrote:


Dear colleagues,

This exception just appeared at random during deployment. Yes,  
there are multiple WO application instances and multiple  
sessions per instance, but this never has caused a problem  
before. We were just trying to insert an object into the  
database. Any tips, pointers? Frontbase? WO?


You.  :-)  Add /isolation=read_committed/locking=optimistic  to  
your URL so that it looks like this:


JDBCUrl = jdbc:FrontBase://localhost/GVCSiteMaker/ 
isolation=read_committed/locking=optimistic;



Chuck




EXCEPTION:

com.webobjects.eoaccess.EOGeneralAdaptorException:  
EvaluateExpression failed:  
com.webobjects.jdbcadaptor.FrontbasePlugIn$FrontbaseExpression:  
INSERT INTO Client(address_PostalZip, phone_Fax,  
modify_user_id, create_user_id, date_Registration,  
notes_textblob_id, birthDate, date_LastPayment,  
client_id, isActive, sourceInformation, address_Line1,  
address_Line2, name_Last, salesPerson_employee_id,  
address_ProvinceState, branch_id, name_First,  
date_RTEligible, modify_date, currentBalance,  
address_Additional, address_City3C, dlClass_id,  
address_Country, address_City, division_id, create_date,  
phone_Home, dlNumber, date_LastBooking, phone_Cell,  
highSchool, phone_Additional, office_id, eMail,  
programCourse) VALUES ('A1Z-5Z1', NULL, NULL, 'rhonda',  
TIMESTAMP '2007-01-10 00:00:00.000', 1000633, TIMESTAMP  
'1951-07-29 00:00:00.000', NULL, 1000553, 1, NULL, '87-Spear  
Rd', NULL, 'Nesty', 118, 'BC', 10
1, 'Mario', NULL, NULL, NULL, NULL, 'Chi', 101, 'Canada',  
'Chillilove', 102, TIMESTAMP '2007-01-10 11:56:10.003',  
'604-793-8439', '6892720', NULL, NULL, NULL, NULL, 101,  
NULL, 'CL-3 ABC($900.00)'):
Next exception:SQL State:00   subclass =  -- error code:  
380 -- msg: Exception condition 380. Pessimistic locking:  
multiple transaction conflict detected (deadlock).
Next exception:SQL State:40   subclass = 00 -- error code:  
363 -- msg: Exception condition 363. Transaction rollback.



With Kind Regards,

Dennis Gaastra, M.B.A.[sfu.ca], B.Sc.[ubc.ca]
Chief Technology Officer,

WEBAPPZ Systems, Inc.
HQ:  (+1) 604.921.1333
Fax:  (+1) 604.921.4313
Cell:  (+1) 604.787.2532
Web: www.webappz.com  www.1tracker.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/chill%40global-village.net

This email sent to ch...@global-village.net



--

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve  
specific problems.

http://www.global-village.net/products/practical_webobjects





___
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/jeffandmonica%40mac.com

This email sent to jeffandmon...@mac.com




--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects









___
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/jeffandmonica%40mac.com

This email

Re: Exception: Deployment - FrontbasePlugIn - deadlock - WHY

2010-03-23 Thread Jeff Schmitz
The scenario was that the application was performing a long running  
background process and I really didn't want to stop it.  But anyway, I  
survived and the fix worked a charm.  I'm pretty sure I had added that  
before at some point.  not sure when it would have gotten removed, but  
got a surprise when I started seeing it after kicking off the  
background process.


On Mar 23, 2010, at 11:51 AM, Chuck Hill wrote:



On Mar 23, 2010, at 3:35 AM, Kieran Kelleher wrote:


If you mean a currently deployed app, the easiest way would be

(1) Set the prop as a launch argument in the WOMonitor settings  
like this (launch arg props override Properties files)

-DdbConnectURLGLOBAL=jdbc:frontbase://localhost/netBrackets


Kieran meant:

-DdbConnectURLGLOBAL=jdbc:frontbase://localhost/netBrackets/ 
isolation=read_committed/locking=optimistic





(2) Launch a new instance

(3) Refuse Sessions or kill the old instance

HTH, Kieran

On Mar 23, 2010, at 2:35 AM, Jeff Schmitz wrote:


btw, any way to get a running app to re-read that prop?


On Mar 23, 2010, at 1:18 AM, Jeff Schmitz wrote:


and bingo.  in the eomodel properties file...

#Connection Dictionary
dbConnectURLGLOBAL=jdbc:frontbase://localhost/netBrackets

thanks again!


On Mar 23, 2010, at 12:58 AM, Chuck Hill wrote:

Look at how the connection dictionary gets set in deployment: is  
there a property file or arguments in JavaMonitor that override  
what is in the model?


Chuck



On Mar 22, 2010, at 10:48 PM, Jeff Schmitz wrote:

I was seeing the same thing as below and it was very repeatable  
on both my development and deployment machines.  I made the  
suggested change, and the error went away on my development  
machine.  However when I install the new build on my deployment  
machine, I still get the error (very repeatably).  Is there  
something extra I need to do to make sure that kind of change  
gets installed when you build and deploy your project?  As a  
note, my EOModel resides in a framework project that I build  
and install separately from my main project.  And yes, I have  
installed both parts and still am seeing the error.


Thanks,
Jeff


On Jan 10, 2007, at 4:39 PM, Chuck Hill wrote:



On Jan 10, 2007, at 2:33 PM, Gaastra Dennis - WO Lists wrote:


Dear colleagues,

This exception just appeared at random during deployment.  
Yes, there are multiple WO application instances and multiple  
sessions per instance, but this never has caused a problem  
before. We were just trying to insert an object into the  
database. Any tips, pointers? Frontbase? WO?


You.  :-)  Add /isolation=read_committed/locking=optimistic   
to your URL so that it looks like this:


JDBCUrl = jdbc:FrontBase://localhost/GVCSiteMaker/ 
isolation=read_committed/locking=optimistic;



Chuck




EXCEPTION:

com.webobjects.eoaccess.EOGeneralAdaptorException:  
EvaluateExpression failed:  
com.webobjects.jdbcadaptor.FrontbasePlugIn 
$FrontbaseExpression: INSERT INTO  
Client(address_PostalZip, phone_Fax, modify_user_id,  
create_user_id, date_Registration, notes_textblob_id,  
birthDate, date_LastPayment, client_id, isActive,  
sourceInformation, address_Line1, address_Line2,  
name_Last, salesPerson_employee_id,  
address_ProvinceState, branch_id, name_First,  
date_RTEligible, modify_date, currentBalance,  
address_Additional, address_City3C, dlClass_id,  
address_Country, address_City, division_id,  
create_date, phone_Home, dlNumber, date_LastBooking,  
phone_Cell, highSchool, phone_Additional, office_id,  
eMail, programCourse) VALUES ('A1Z-5Z1', NULL, NULL,  
'rhonda', TIMESTAMP '2007-01-10 00:00:00.000', 1000633,  
TIMESTAMP '1951-07-29 00:00:00.000', NULL, 1000553, 1, NULL,  
'87-Spear Rd', NULL, 'Nesty', 118, 'BC', 10
1, 'Mario', NULL, NULL, NULL, NULL, 'Chi', 101, 'Canada',  
'Chillilove', 102, TIMESTAMP '2007-01-10 11:56:10.003',  
'604-793-8439', '6892720', NULL, NULL, NULL, NULL, 101,  
NULL, 'CL-3 ABC($900.00)'):
Next exception:SQL State:00   subclass =  -- error code:  
380 -- msg: Exception condition 380. Pessimistic locking:  
multiple transaction conflict detected (deadlock).
Next exception:SQL State:40   subclass = 00 -- error  
code: 363 -- msg: Exception condition 363. Transaction  
rollback.



With Kind Regards,

Dennis Gaastra, M.B.A.[sfu.ca], B.Sc.[ubc.ca]
Chief Technology Officer,

WEBAPPZ Systems, Inc.
HQ:  (+1) 604.921.1333
Fax:  (+1) 604.921.4313
Cell:  (+1) 604.787.2532
Web: www.webappz.com  www.1tracker.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/chill%40global-village.net

This email sent to ch...@global-village.net



--

Practical WebObjects - for developers who want to increase  
their overall knowledge of WebObjects or who are trying to  
solve specific problems

Re: Exception: Deployment - FrontbasePlugIn - deadlock - WHY

2010-03-23 Thread Jeff Schmitz
Yeah, caught me very much by surprise because I ran last year with no  
problems.  That must have gotten reset somewhere along the way form  
last year to this year.


But you're right about frontbase.  My site got hammered (actually, my  
lack of optimally prefetching caused most of the hammering) but  
frontbase never did crash, deadlock or anything like that.  It slowed  
down considerably at peak times before I optimized my fetches, but it  
kept on chugging a long and never dropped a thing.


Jeff




On Mar 23, 2010, at 11:28 AM, Gaastra Dennis - WO Lists wrote:


Hi Jeff,

This was a funny exception back in 2007. Adjusting the connection  
dictionary like Chuck mentioned fixed the problem back them; and it  
has never re-occured since then. We have been using FrontBase for  
the largest professional drivings schools in Canada since then  
without any problems. Viva FrontBase!!!


With Kind Regards,

Dennis Gaastra,
Chief Technology Officer,
WEBAPPZ®  Systems, Inc.


This message contains confidential information and is intended only  
for the individual named. If you are not the named addressee you  
should not disseminate, distribute or copy this e-mail. Please  
notify the sender immediately by e-mail if you have received this e- 
mail by mistake and delete this e-mail from your system. E-mail  
transmission cannot be guaranteed to be secure or error-free as  
information could be intercepted, corrupted, lost, destroyed, arrive  
late or incomplete, or contain viruses. The sender therefore does  
not accept liability for any errors or omissions in the contents of  
this message, which arise as a result of e-mail transmission. If  
verification is required please request a hard-copy version. WEBAPPZ  
Systems, Inc., 726 - 1489 Marine Drive, West Vancouver, BC, CANADA  
V7T 1B8, www.webappz.com





On 2010-03-22, at 10:48 PM, Jeff Schmitz wrote:

I was seeing the same thing as below and it was very repeatable on  
both my development and deployment machines.  I made the suggested  
change, and the error went away on my development machine.  However  
when I install the new build on my deployment machine, I still get  
the error (very repeatably).  Is there something extra I need to do  
to make sure that kind of change gets installed when you build and  
deploy your project?  As a note, my EOModel resides in a framework  
project that I build and install separately from my main project.   
And yes, I have installed both parts and still am seeing the error.


Thanks,
Jeff


On Jan 10, 2007, at 4:39 PM, Chuck Hill wrote:



On Jan 10, 2007, at 2:33 PM, Gaastra Dennis - WO Lists wrote:


Dear colleagues,

This exception just appeared at random during deployment. Yes,  
there are multiple WO application instances and multiple sessions  
per instance, but this never has caused a problem before. We were  
just trying to insert an object into the database. Any tips,  
pointers? Frontbase? WO?


You.  :-)  Add /isolation=read_committed/locking=optimistic  to  
your URL so that it looks like this:


JDBCUrl = jdbc:FrontBase://localhost/GVCSiteMaker/ 
isolation=read_committed/locking=optimistic;



Chuck




EXCEPTION:

com.webobjects.eoaccess.EOGeneralAdaptorException:  
EvaluateExpression failed:  
com.webobjects.jdbcadaptor.FrontbasePlugIn$FrontbaseExpression:  
INSERT INTO Client(address_PostalZip, phone_Fax,  
modify_user_id, create_user_id, date_Registration,  
notes_textblob_id, birthDate, date_LastPayment,  
client_id, isActive, sourceInformation, address_Line1,  
address_Line2, name_Last, salesPerson_employee_id,  
address_ProvinceState, branch_id, name_First,  
date_RTEligible, modify_date, currentBalance,  
address_Additional, address_City3C, dlClass_id,  
address_Country, address_City, division_id, create_date,  
phone_Home, dlNumber, date_LastBooking, phone_Cell,  
highSchool, phone_Additional, office_id, eMail,  
programCourse) VALUES ('A1Z-5Z1', NULL, NULL, 'rhonda',  
TIMESTAMP '2007-01-10 00:00:00.000', 1000633, TIMESTAMP  
'1951-07-29 00:00:00.000', NULL, 1000553, 1, NULL, '87-Spear Rd',  
NULL, 'Nesty', 118, 'BC', 10
1, 'Mario', NULL, NULL, NULL, NULL, 'Chi', 101, 'Canada',  
'Chillilove', 102, TIMESTAMP '2007-01-10 11:56:10.003',  
'604-793-8439', '6892720', NULL, NULL, NULL, NULL, 101, NULL,  
'CL-3 ABC($900.00)'):
  Next exception:SQL State:00   subclass =  -- error code:  
380 -- msg: Exception condition 380. Pessimistic locking:  
multiple transaction conflict detected (deadlock).
  Next exception:SQL State:40   subclass = 00 -- error code:  
363 -- msg: Exception condition 363. Transaction rollback.



With Kind Regards,

Dennis Gaastra, M.B.A.[sfu.ca], B.Sc.[ubc.ca]
Chief Technology Officer,

WEBAPPZ Systems, Inc.
HQ:  (+1) 604.921.1333
Fax:  (+1) 604.921.4313
Cell:  (+1) 604.787.2532
Web: www.webappz.com  www.1tracker.com




___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev

Re: Exception: Deployment - FrontbasePlugIn - deadlock - WHY

2010-03-22 Thread Jeff Schmitz
I was seeing the same thing as below and it was very repeatable on  
both my development and deployment machines.  I made the suggested  
change, and the error went away on my development machine.  However  
when I install the new build on my deployment machine, I still get the  
error (very repeatably).  Is there something extra I need to do to  
make sure that kind of change gets installed when you build and deploy  
your project?  As a note, my EOModel resides in a framework project  
that I build and install separately from my main project.  And yes, I  
have installed both parts and still am seeing the error.


Thanks,
Jeff


On Jan 10, 2007, at 4:39 PM, Chuck Hill wrote:



On Jan 10, 2007, at 2:33 PM, Gaastra Dennis - WO Lists wrote:


Dear colleagues,

This exception just appeared at random during deployment. Yes,  
there are multiple WO application instances and multiple sessions  
per instance, but this never has caused a problem before. We were  
just trying to insert an object into the database. Any tips,  
pointers? Frontbase? WO?


You.  :-)  Add /isolation=read_committed/locking=optimistic  to your  
URL so that it looks like this:


JDBCUrl = jdbc:FrontBase://localhost/GVCSiteMaker/ 
isolation=read_committed/locking=optimistic;



Chuck




EXCEPTION:

com.webobjects.eoaccess.EOGeneralAdaptorException:  
EvaluateExpression failed:  
com.webobjects.jdbcadaptor.FrontbasePlugIn$FrontbaseExpression:  
INSERT INTO Client(address_PostalZip, phone_Fax,  
modify_user_id, create_user_id, date_Registration,  
notes_textblob_id, birthDate, date_LastPayment, client_id,  
isActive, sourceInformation, address_Line1, address_Line2,  
name_Last, salesPerson_employee_id, address_ProvinceState,  
branch_id, name_First, date_RTEligible, modify_date,  
currentBalance, address_Additional, address_City3C,  
dlClass_id, address_Country, address_City, division_id,  
create_date, phone_Home, dlNumber, date_LastBooking,  
phone_Cell, highSchool, phone_Additional, office_id,  
eMail, programCourse) VALUES ('A1Z-5Z1', NULL, NULL, 'rhonda',  
TIMESTAMP '2007-01-10 00:00:00.000', 1000633, TIMESTAMP '1951-07-29  
00:00:00.000', NULL, 1000553, 1, NULL, '87-Spear Rd', NULL,  
'Nesty', 118, 'BC', 10
1, 'Mario', NULL, NULL, NULL, NULL, 'Chi', 101, 'Canada',  
'Chillilove', 102, TIMESTAMP '2007-01-10 11:56:10.003',  
'604-793-8439', '6892720', NULL, NULL, NULL, NULL, 101, NULL,  
'CL-3 ABC($900.00)'):
   Next exception:SQL State:00   subclass =  -- error code:  
380 -- msg: Exception condition 380. Pessimistic locking: multiple  
transaction conflict detected (deadlock).
   Next exception:SQL State:40   subclass = 00 -- error code:  
363 -- msg: Exception condition 363. Transaction rollback.



With Kind Regards,

Dennis Gaastra, M.B.A.[sfu.ca], B.Sc.[ubc.ca]
Chief Technology Officer,

WEBAPPZ Systems, Inc.
HQ:  (+1) 604.921.1333
Fax:  (+1) 604.921.4313
Cell:  (+1) 604.787.2532
Web: www.webappz.com  www.1tracker.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/chill%40global-village.net

This email sent to ch...@global-village.net



--

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects





___
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/jeffandmonica%40mac.com

This email sent to jeffandmon...@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: Long Fetch times

2010-03-14 Thread Jeff Schmitz
I'm still re-running the stress tests (they take awhile) but from some  
preliminary testing it's looking like the problem was not having  
enough indexes, although I'm not 100% sure why this problem decided to  
manifest now, maybe just the nature of my stress tests which I  
recently upgraded.


Adding the indexes Chuck suggested seems to have solved it.  I  
probably need to do an entire analysis on where to add more indexes.


 THANKS for all your help here.

Jeff


On Mar 13, 2010, at 10:49 PM, Chuck Hill wrote:

Notice that of those queries, only _two_ take a significant amount  
of time.  That is symptomatic of not having indexes that FB can use  
to optimize them.


SELECT whatever
FROM t_combo_team t0
INNER JOIN t_entry T1 ON t0.entryID = T1.id
INNER JOIN t_pool T2 ON T1.poolID = T2.id
Those columns should all have indexes, but check to be sure

WHERE (T2.c_pool_type = 0 AND T2.c_name LIKE '0HOGANS  
HOOPSTERS' COLLATE INFORMATION_SCHEMA.CASE_INSENSITIVE)


c_pool_type should probably be indexes
Using LIKE when not needed will take longer
c_name should probably be indexed

SELECT whatever
FROM t_team_popup t0
INNER JOIN t_combo_team T1 ON t0.comboTeamID = T1.id
INNER JOIN t_entry T2 ON T1.entryID = T2.id
INNER JOIN t_pool T3 ON T2.poolID = T3.id
	WHERE (T3.c_name LIKE '0HOGANS HOOPSTERS' COLLATE  
INFORMATION_SCHEMA.CASE_INSENSITIVE AND T3.c_pool_type = 0)


See above comments for this too.


Chuck

On Mar 13, 2010, at 8:22 PM, Jeff Schmitz wrote:

A little more info.  Here's the actual code that is doing the long  
running fetch, followed by the sql generated by the code.  Note  
there there isn't all that much data in the databaes, and the fetch  
itself finds no matches...


EOQualifier poolQual = Pool.POOL_TYPE.eq((int) poolType).and(
Pool.NAME.likeInsensitive(name));
  	ERXFetchSpecification poolFetch = new  
ERXFetchSpecification(_Pool.ENTITY_NAME, poolQual, null);


  	NSArray String keyPaths = new NSArray(new String[]  
{Pool.ENTRIES_KEY ,

   Pool.ENTRIES_KEY + . + Entry.COMBO_TEAMS_KEY,
  			   Pool.ENTRIES_KEY + . + Entry.COMBO_TEAMS_KEY + . +  
ComboTeam.TEAM_POPUPS_KEY,

   Pool.ENTRIES_KEY + . + Entry.ENTRY_ADMIN_KEY});

poolFetch.setPrefetchingRelationshipKeyPaths(keyPaths);
  	Pool pool = (Pool)  
ec.objectsWithFetchSpecification(poolFetch).lastObject();

return pool;


Mar 13 22:15:58 netBrackets[] (ERXNSLogLog4jBridge.java:46)  
DEBUG NSLog  -  === Begin Internal Transaction
Mar 13 22:15:58 netBrackets[] (ERXNSLogLog4jBridge.java:46)  
DEBUG NSLog  -  evaluateExpression:  
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseExpression:  
SELECT t0.c_admin_email, t0.c_admin_msg, t0.c_admin_pw,  
t0.c_calculating_can_i_wins, t0.c_can_i_win_index,  
t0.c_can_i_wins_calculated, t0.c_early_bird_paid,  
t0.c_entry_limit, t0.id, t0.c_name, t0.c_paid,  
t0.c_password, t0.c_pool_type, t0.c_results_index,  
t0.c_seed_type, t0.c_spare_string, t0.c_stand_alone,  
t0.c_ud_bonus, t0.c_updating_results, t0.c_weighted FROM  
t_pool t0 WHERE (t0.c_pool_type = 0 AND t0.c_name LIKE  
'0HOGANS HOOPSTERS' COLLATE  
INFORMATION_SCHEMA.CASE_INSENSITIVE) withBindings: 
Mar 13 22:15:58 netBrackets[] (ERXNSLogLog4jBridge.java:46)  
DEBUG NSLog  - 1 row(s) processed
Mar 13 22:15:58 netBrackets[] (ERXNSLogLog4jBridge.java:46)  
DEBUG NSLog  -  === Commit Internal Transaction
Mar 13 22:15:58 netBrackets[] (ERXNSLogLog4jBridge.java:46)  
DEBUG NSLog  -  === Begin Internal Transaction
Mar 13 22:15:58 netBrackets[] (ERXNSLogLog4jBridge.java:46)  
DEBUG NSLog  -  evaluateExpression:  
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseExpression:  
SELECT t0.c_games, t0.c_groups, t0.id, t0.c_last_save,  
t0.c_name, t0.c_password, t0.c_picks_confirmed, t0.poolID,  
t0.c_real, t0.spare_bool, t0.spare_int, t0.spare_str,  
t0.c_still_alive_first, t0.c_still_alive_second,  
t0.c_still_alive_third, t0.c_tie_breaker, t0.userID FROM  
t_entry t0 INNER JOIN t_pool T1 ON t0.poolID = T1.id WHERE  
(T1.c_name LIKE '0HOGANS HOOPSTERS' COLLATE  
INFORMATION_SCHEMA.CASE_INSENSITIVE AND T1.c_pool_type = 0)  
withBindings: 
Mar 13 22:15:58 netBrackets[] (ERXNSLogLog4jBridge.java:46)  
DEBUG NSLog  - 2 row(s) processed
Mar 13 22:15:58 netBrackets[] (ERXNSLogLog4jBridge.java:46)  
DEBUG NSLog  -  === Commit Internal Transaction
Mar 13 22:15:58 netBrackets[] (ERXNSLogLog4jBridge.java:46)  
DEBUG NSLog  -  === Begin Internal Transaction
Mar 13 22:15:58 netBrackets[] (ERXNSLogLog4jBridge.java:46)  
DEBUG NSLog  -  evaluateExpression:  
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseExpression:  
SELECT t0.entryID, t0.c_game, t0.c_group, t0.id,  
t0.c_items, t0.c_score, t0.c_selected_item,  
t0.c_selected_weight FROM

Long Fetch times

2010-03-13 Thread Jeff Schmitz
While running some stress tests I seem to be able to get my database  
(Frontbase) in a state where fetch times take an inordinate amount of  
time (e.g. fetches that return no rows take a minute), and once in  
that state, even a reboot of the machine won't fix the problem.  Is  
there anyway to recover such a database?  I'll be perusing the  
Frontbase for any ideas, but from experience, is such behavior  
symptomatic of any particular problem?  I've been running several  
years and haven't until now seen such behavior.


Thanks,
Jeff
___
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: Long Fetch times

2010-03-13 Thread Jeff Schmitz

btw, I have tried backing up (live backup) and restoring to no avail.

Jeff


On Mar 13, 2010, at 6:44 PM, Jeff Schmitz wrote:

While running some stress tests I seem to be able to get my database  
(Frontbase) in a state where fetch times take an inordinate amount  
of time (e.g. fetches that return no rows take a minute), and once  
in that state, even a reboot of the machine won't fix the problem.   
Is there anyway to recover such a database?  I'll be perusing the  
Frontbase for any ideas, but from experience, is such behavior  
symptomatic of any particular problem?  I've been running several  
years and haven't until now seen such behavior.


Thanks,
Jeff
___
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/jeffandmonica%40mac.com

This email sent to jeffandmon...@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: Long Fetch times

2010-03-13 Thread Jeff Schmitz

Thanks Dennis,
   comments below...

On Mar 13, 2010, at 8:59 PM, Gaastra Dennis - WO Lists wrote:


Some things coming to my mind:

1) Are you using a lot of indices and/or compound indices? Sometimes  
when you have large tables, loading those indices the first time,  
takes a while. So there is a fine balance between too many and not  
enough indices; we have noticed with FB. As such, after every server  
restart, we warm up the database to get it going.
I don't have a lot of indices, just the default and one or two  
others.  The thing is, once it's gone, it's gone.  I can restart,  
restore from live backup (haven't tried flat files), reboot, doesn't  
matter, after a certain, sudden point any fetch takes on the order of  
minutes, even to return no data.




2) If your DB is too fragmented, consider writing it to a flat-file,  
and restoring it; as shown in the FB docs.

Would flat-file maybe work better than from live backup?



3) How is your underlying storage medium doing? Enough free disk  
space? Consider deploying on SSDs.
Should be plenty.  Honestly, it doesn't take that much data in the  
database to get this to happen.  A live backup gives a file on the  
order of 100 megabytes.





With Kind Regards,

Dennis Gaastra,
Chief Technology Officer,
WEBAPPZ®  Systems, Inc.





On 2010-03-13, at 4:44 PM, Jeff Schmitz wrote:

While running some stress tests I seem to be able to get my  
database (Frontbase) in a state where fetch times take an  
inordinate amount of time (e.g. fetches that return no rows take a  
minute), and once in that state, even a reboot of the machine won't  
fix the problem.  Is there anyway to recover such a database?  I'll  
be perusing the Frontbase for any ideas, but from experience, is  
such behavior symptomatic of any particular problem?  I've been  
running several years and haven't until now seen such behavior.


Thanks,
Jeff
___
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/webobjects_lists%40webappz.com

This email sent to webobjects_li...@webappz.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: Long Fetch times

2010-03-13 Thread Jeff Schmitz
,

Dennis Gaastra,
Chief Technology Officer,
WEBAPPZ®  Systems, Inc.





On 2010-03-13, at 4:44 PM, Jeff Schmitz wrote:

While running some stress tests I seem to be able to get my  
database (Frontbase) in a state where fetch times take an  
inordinate amount of time (e.g. fetches that return no rows take a  
minute), and once in that state, even a reboot of the machine won't  
fix the problem.  Is there anyway to recover such a database?  I'll  
be perusing the Frontbase for any ideas, but from experience, is  
such behavior symptomatic of any particular problem?  I've been  
running several years and haven't until now seen such behavior.


Thanks,
Jeff
___
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/webobjects_lists%40webappz.com

This email sent to webobjects_li...@webappz.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: Long Fetch times

2010-03-13 Thread Jeff Schmitz
The one thing that is different about the data added is they have  
similar names (e.g. pool names, entry names), so your comment about  
not using LIKE might be a part of it since I assume finding the right  
name is harder when there's a lot of similar ones.


On Mar 13, 2010, at 10:53 PM, Chuck Hill wrote:


Let's keep this on the list.

On Mar 13, 2010, at 8:46 PM, Jeff Schmitz wrote:

On Mar 13, 2010, at 10:41 PM, Chuck Hill wrote:

On Mar 13, 2010, at 4:44 PM, Jeff Schmitz wrote:

While running some stress tests I seem to be able to get my  
database

(Frontbase) in a state where fetch times take an inordinate amount
of time (e.g. fetches that return no rows take a minute),


Has your stress testing added any data to the database?  It sounds
like you have exposed a lack of indexes to optimize your queries, or
have queries that don't optimize well.
some, but not all that much.  Much less than I've processed fine in  
the past.


Has it added different data?  More rows to some tables than is  
normal.  It just takes a few rows to go from fine to disaster.





and once in that state, even a reboot of the machine won't fix the
problem.


Are the apps and the database on the same machine?  Is there any  
load

on the machine?  Are the stress tests still running?

Yes, everything is simple.  Single app, all on the same machine.   
Same result on 3 different machines.





Is there anyway to recover such a database?


If you have actually damaged the database (which I doubt), no.   
I'd do

a flat file export and re-import it into a new database to see.




I'll be perusing the Frontbase for any ideas, but from experience,
is such behavior symptomatic of any particular problem?  I've been
running several years and haven't until now seen such behavior.



It just sounds like you have added enough data that your queries are
no longer sufficiently performant.


I'm guessing (hoping) it's an indexing issue.



That is my assumption so far.  I'd try optimize database and do a  
flat file export and import.  If that fixes it, you might just have  
index fragmentation.



Chuck

--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects









___
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


no CGI-Executables/WebObjects installed

2009-12-30 Thread Jeff Schmitz
Hello,
  I used migration to migrate my data from a Leopard server to a snow leopard 
server.  I then installed my webobjects app and started it with Monitor for 
WebObjects.  That all seemed to work without problem.  However, when I try to 
navigate to the app with:

http://localhost/cgi-bin/WebObjects/netBrackets

I get a 404 error.  Looking at the httpd error logs I see:

   script not found or unable to stat: 
/Library/WebServer/CGI-Executables/WebObjects

I then tried to install WO using the installer here:

http://support.apple.com/kb/DL688

I restarted apache and am still getting the error.  I have verified that the 
.../CGI-Executables/WebObjects script still does NOT exist.  Shouldn't this 
have been installed by the installer?  I guess I could copy the one over from 
my Leopard Server, but I'm afraid perhaps something else didn't get installed 
correctly.  Any suggestions on how to proceed?


As a note, I have done the things outlined below:

- Download  install WO 5.4.3 for 10.5 from ADC
- cd /Developer/Examples/JavaWebObjects/Deployment/
- sudo sh configure.sh
- Test: http://127.0.0.1:1085  - wotaskd works
- Test: http://127.0.0.1:56789 - WOMonitor works

- edit /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf :
Uncomment Line WebObjectsAdminUsername public
- Restart apache: sudo apachectl restart



Thanks,
Jeff

 ___
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: no CGI-Executables/WebObjects installed

2009-12-30 Thread Jeff Schmitz


Does apache.conf is included in httpd.conf? In /etc/apache2/ 
httpd.conf, you should have this :


Include /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf


Yes, this has been there all along.  and the apache.conf file does  
exist.


Jeff


On Dec 30, 2009, at 8:00 PM, Pascal Robert wrote:



Le 09-12-30 à 18:51, Jeff Schmitz a écrit :


Hello,
I used migration to migrate my data from a Leopard server to a snow  
leopard server.  I then installed my webobjects app and started it  
with Monitor for WebObjects.  That all seemed to work without  
problem.  However, when I try to navigate to the app with:


http://localhost/cgi-bin/WebObjects/netBrackets

I get a 404 error.  Looking at the httpd error logs I see:

 script not found or unable to stat: /Library/WebServer/CGI- 
Executables/WebObjects


I then tried to install WO using the installer here:

http://support.apple.com/kb/DL688

I restarted apache and am still getting the error.  I have verified  
that the .../CGI-Executables/WebObjects script still does NOT exist.


And it shouldn't exist, it should run as a Apache module.

Shouldn't this have been installed by the installer?  I guess I  
could copy the one over from my Leopard Server, but I'm afraid  
perhaps something else didn't get installed correctly.  Any  
suggestions on how to proceed?



As a note, I have done the things outlined below:

- Download  install WO 5.4.3 for 10.5 from ADC
- cd /Developer/Examples/JavaWebObjects/Deployment/
- sudo sh configure.sh
- Test: http://127.0.0.1:1085  - wotaskd works
- Test: http://127.0.0.1:56789 - WOMonitor works

- edit /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf :
Uncomment Line WebObjectsAdminUsername public


Does apache.conf is included in httpd.conf? In /etc/apache2/ 
httpd.conf, you should have this :


Include /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf

If not, add it and restart Apache.


- Restart apache: sudo apachectl restart



Thanks,
Jeff

___
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/probert%40macti.ca

This email sent to prob...@macti.ca




___
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: no CGI-Executables/WebObjects installed

2009-12-30 Thread Jeff Schmitz
btw, I did follow the Install WebObjects Using Apple's Installer  
instructions here:


http://wiki.objectstyle.org/confluence/display/WO/Programming__WebObjects-Web+Applications-Deployment-Mac+OS+X+Server



On Dec 30, 2009, at 8:00 PM, Pascal Robert wrote:



Le 09-12-30 à 18:51, Jeff Schmitz a écrit :


Hello,
I used migration to migrate my data from a Leopard server to a snow  
leopard server.  I then installed my webobjects app and started it  
with Monitor for WebObjects.  That all seemed to work without  
problem.  However, when I try to navigate to the app with:


http://localhost/cgi-bin/WebObjects/netBrackets

I get a 404 error.  Looking at the httpd error logs I see:

 script not found or unable to stat: /Library/WebServer/CGI- 
Executables/WebObjects


I then tried to install WO using the installer here:

http://support.apple.com/kb/DL688

I restarted apache and am still getting the error.  I have verified  
that the .../CGI-Executables/WebObjects script still does NOT exist.


And it shouldn't exist, it should run as a Apache module.

Shouldn't this have been installed by the installer?  I guess I  
could copy the one over from my Leopard Server, but I'm afraid  
perhaps something else didn't get installed correctly.  Any  
suggestions on how to proceed?



As a note, I have done the things outlined below:

- Download  install WO 5.4.3 for 10.5 from ADC
- cd /Developer/Examples/JavaWebObjects/Deployment/
- sudo sh configure.sh
- Test: http://127.0.0.1:1085  - wotaskd works
- Test: http://127.0.0.1:56789 - WOMonitor works

- edit /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf :
Uncomment Line WebObjectsAdminUsername public


Does apache.conf is included in httpd.conf? In /etc/apache2/ 
httpd.conf, you should have this :


Include /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf

If not, add it and restart Apache.


- Restart apache: sudo apachectl restart



Thanks,
Jeff

___
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/probert%40macti.ca

This email sent to prob...@macti.ca




___
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


  1   2   3   4   >