Re: Direct2Web Examples

2016-08-07 Thread anon

ERMovies.

I assume that you did not use the migration or maybe it is my choice of 
database(h2) that is different from yours. I want to go through every 
single step because I would like to recollect all my WebObjects 
knowledge that I had before I left years ago.


:-)


On 07.08.2016 22:10, Theodore Petrosky wrote:
Just curious, what is the name of the project? I am playing with 
ERModernMoviesDemo that uses the ERMoviesLogic framework.



On Aug 7, 2016, at 3:12 PM, anon > wrote:


Still fighting with Direct2Web and the Movie EOModel.

Migration is failing with a NPE that I could trace to the ERTag not 
having a /columnName/ and therefore not /externalType/ for its /id 
/attribute. As I have been watching videos and noticed that this 
EOModel is always being used, I assume I am doing something wrong or 
my properties file is not correct.


As you can see in this EOEntity, the second EOAttribute is missing 
something:




joins : '({sourceAttribute = "tag_id"; destinationAttribute = 
"id"; })'

name : 'ERTag'
destination : 'ERTag'
isMandatory : 'Y'
>
joins : '({sourceAttribute = "item_movieID"; 
destinationAttribute = "movieID"; })'

name : 'Movie'
destination : 'Movie'
isMandatory : 'Y'
>

Caused by: java.lang.NullPointerException
at 
com.webobjects.jdbcadaptor.JDBCExpression.columnTypeStringForAttribute(JDBCExpression.java:160)
at 
com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory._columnCreationClauseForAttribute(EOSchemaSynchronizationFactory.java:2124)
at 
com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory.createTableStatementsForEntityGroup(EOSchemaSynchronizationFactory.java:350)
at 
er.taggable.migrations.ERTaggableEntity0.upgrade(ERTaggableEntity0.java:103)
at 
er.taggable.migrations.ERTaggableEntity0.upgrade(ERTaggableEntity0.java:75)
at 
er.extensions.migration.ERXMigrationDatabase$Migration.upgrade(ERXMigrationDatabase.java:440)
at 
er.extensions.migration.ERXMigrator$ERXMigrationAction.doPerform(ERXMigrator.java:481)


Thanks again.

On 06.08.2016 21:39, Theodore Petrosky wrote:
I had the same problem myself. My ‘solution’ was to switch the 
database to postgresql. I realize this doesn’t address the problem, 
but sometimes you just have to get work done.


Ted


On Aug 6, 2016, at 3:19 PM, anon > wrote:


Hello,
I have decided that I was going to spend some time learning D2W. I 
have been trying to get the ERMovies example to work, but the h2 
database seems to not be started when the application is run. Am I 
supposed to start the jdbc:h2:file myself in the code or is the 
example supposed to start the database automatically? Here is the 
error that I get:

/
//failed to open database channel. Check your connection 
dictionary, and ensure your database is correctly configured./


Thanks,


___
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/tedpet5%40yahoo.com

This email sent to tedp...@yahoo.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: Direct2Web Examples

2016-08-07 Thread anon

Still fighting with Direct2Web and the Movie EOModel.

Migration is failing with a NPE that I could trace to the ERTag not 
having a /columnName/ and therefore not /externalType/ for its /id 
/attribute. As I have been watching videos and noticed that this EOModel 
is always being used, I assume I am doing something wrong or my 
properties file is not correct.


As you can see in this EOEntity, the second EOAttribute is missing 
something:




joins : '({sourceAttribute = "tag_id"; destinationAttribute = 
"id"; })'

name : 'ERTag'
destination : 'ERTag'
isMandatory : 'Y'
>
joins : '({sourceAttribute = "item_movieID"; 
destinationAttribute = "movieID"; })'

name : 'Movie'
destination : 'Movie'
isMandatory : 'Y'
>

Caused by: java.lang.NullPointerException
at 
com.webobjects.jdbcadaptor.JDBCExpression.columnTypeStringForAttribute(JDBCExpression.java:160)
at 
com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory._columnCreationClauseForAttribute(EOSchemaSynchronizationFactory.java:2124)
at 
com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory.createTableStatementsForEntityGroup(EOSchemaSynchronizationFactory.java:350)
at 
er.taggable.migrations.ERTaggableEntity0.upgrade(ERTaggableEntity0.java:103)
at 
er.taggable.migrations.ERTaggableEntity0.upgrade(ERTaggableEntity0.java:75)
at 
er.extensions.migration.ERXMigrationDatabase$Migration.upgrade(ERXMigrationDatabase.java:440)
at 
er.extensions.migration.ERXMigrator$ERXMigrationAction.doPerform(ERXMigrator.java:481)


Thanks again.

On 06.08.2016 21:39, Theodore Petrosky wrote:
I had the same problem myself. My ‘solution’ was to switch the 
database to postgresql. I realize this doesn’t address the problem, 
but sometimes you just have to get work done.


Ted


On Aug 6, 2016, at 3:19 PM, anon > wrote:


Hello,
I have decided that I was going to spend some time learning D2W. I 
have been trying to get the ERMovies example to work, but the h2 
database seems to not be started when the application is run. Am I 
supposed to start the jdbc:h2:file myself in the code or is the 
example supposed to start the database automatically? Here is the 
error that I get:

/
//failed to open database channel. Check your connection dictionary, 
and ensure your database is correctly configured./


Thanks,


___
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/tedpet5%40yahoo.com

This email sent to tedp...@yahoo.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: Direct2Web Examples

2016-08-06 Thread anon

Thank you.

Got it working now.


On 06.08.2016 23:58, Theodore Petrosky wrote:

I clicked that link and it played fine in Safari,


On Aug 6, 2016, at 5:57 PM, anon > wrote:


An example would be:

http://www.wocommunity.org/podcasts/wowodc/2010/GettingStartedWithWonder.mov

"Video can't be played because the file is corrupt."

I assume this is a firefox thing...


On 06.08.2016 23:47, Theodore Petrosky wrote:

what is the link you are using for the videos?


On Aug 6, 2016, at 5:29 PM, anon > wrote:


I was able to get it to work by manually adding h2plugin  and the 
h2.jar to the build path. M2eclipse is sadly not really helping. 
Most of the problems I do face at the moment are related to maven. 
But still, I am getting there.


I was trying to watch some screencasts from the wiki but a lot of 
the video files are invalid (thats what firefox says). Is that the 
same for everyone or is it only my webbrowser that is bugging?


Thanks.


On 06.08.2016 21:39, Theodore Petrosky wrote:
I had the same problem myself. My ‘solution’ was to switch the 
database to postgresql. I realize this doesn’t address the 
problem, but sometimes you just have to get work done.


Ted


On Aug 6, 2016, at 3:19 PM, anon > wrote:


Hello,
I have decided that I was going to spend some time learning D2W. 
I have been trying to get the ERMovies example to work, but the 
h2 database seems to not be started when the application is run. 
Am I supposed to start the jdbc:h2:file myself in the code or is 
the example supposed to start the database automatically? Here is 
the error that I get:

/
//failed to open database channel. Check your connection 
dictionary, and ensure your database is correctly configured./


Thanks,


___
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/tedpet5%40yahoo.com

This email sent to tedp...@yahoo.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: Direct2Web Examples

2016-08-06 Thread Theodore Petrosky
I clicked that link and it played fine in Safari,


> On Aug 6, 2016, at 5:57 PM, anon  wrote:
> 
> An example would be:
> 
> http://www.wocommunity.org/podcasts/wowodc/2010/GettingStartedWithWonder.mov 
> 
> "Video can't be played because the file is corrupt."
> 
> I assume this is a firefox thing...
> 
> On 06.08.2016 23:47, Theodore Petrosky wrote:
>> what is the link you are using for the videos?
>> 
>> 
>>> On Aug 6, 2016, at 5:29 PM, anon >> > wrote:
>>> 
>>> I was able to get it to work by manually adding h2plugin  and the h2.jar to 
>>> the build path. M2eclipse is sadly not really helping. Most of the problems 
>>> I do face at the moment are related to maven. But still, I am getting there.
>>> 
>>> I was trying to watch some screencasts from the wiki but a lot of the video 
>>> files are invalid (thats what firefox says). Is that the same for everyone 
>>> or is it only my webbrowser that is bugging? 
>>> Thanks.
>>> 
>>> On 06.08.2016 21:39, Theodore Petrosky wrote:
 I had the same problem myself. My ‘solution’ was to switch the database to 
 postgresql. I realize this doesn’t address the problem, but sometimes you 
 just have to get work done.
 
 Ted
 
 
> On Aug 6, 2016, at 3:19 PM, anon  > wrote:
> 
> Hello,
> I have decided that I was going to spend some time learning D2W. I have 
> been trying to get the ERMovies example to work, but the h2 database 
> seems to not be started when the application is run. Am I supposed to 
> start the jdbc:h2:file myself in the code or is the example supposed to 
> start the database automatically? Here is the error that I get:
> 
> failed to open database channel. Check your connection dictionary, and 
> ensure your database is correctly configured.
> 
> Thanks,
> 
> 
> ___
> 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/tedpet5%40yahoo.com
>  
> 
> 
> This email sent to tedp...@yahoo.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: Direct2Web Examples

2016-08-06 Thread anon

An example would be:

http://www.wocommunity.org/podcasts/wowodc/2010/GettingStartedWithWonder.mov

"Video can't be played because the file is corrupt."

I assume this is a firefox thing...


On 06.08.2016 23:47, Theodore Petrosky wrote:

what is the link you are using for the videos?


On Aug 6, 2016, at 5:29 PM, anon > wrote:


I was able to get it to work by manually adding h2plugin  and the 
h2.jar to the build path. M2eclipse is sadly not really helping. Most 
of the problems I do face at the moment are related to maven. But 
still, I am getting there.


I was trying to watch some screencasts from the wiki but a lot of the 
video files are invalid (thats what firefox says). Is that the same 
for everyone or is it only my webbrowser that is bugging?


Thanks.


On 06.08.2016 21:39, Theodore Petrosky wrote:
I had the same problem myself. My ‘solution’ was to switch the 
database to postgresql. I realize this doesn’t address the problem, 
but sometimes you just have to get work done.


Ted


On Aug 6, 2016, at 3:19 PM, anon > wrote:


Hello,
I have decided that I was going to spend some time learning D2W. I 
have been trying to get the ERMovies example to work, but the h2 
database seems to not be started when the application is run. Am I 
supposed to start the jdbc:h2:file myself in the code or is the 
example supposed to start the database automatically? Here is the 
error that I get:

/
//failed to open database channel. Check your connection 
dictionary, and ensure your database is correctly configured./


Thanks,


___
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/tedpet5%40yahoo.com

This email sent to tedp...@yahoo.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: Direct2Web Examples

2016-08-06 Thread anon
I was able to get it to work by manually adding h2plugin  and the h2.jar 
to the build path. M2eclipse is sadly not really helping. Most of the 
problems I do face at the moment are related to maven. But still, I am 
getting there.


I was trying to watch some screencasts from the wiki but a lot of the 
video files are invalid (thats what firefox says). Is that the same for 
everyone or is it only my webbrowser that is bugging?


Thanks.


On 06.08.2016 21:39, Theodore Petrosky wrote:
I had the same problem myself. My ‘solution’ was to switch the 
database to postgresql. I realize this doesn’t address the problem, 
but sometimes you just have to get work done.


Ted


On Aug 6, 2016, at 3:19 PM, anon > wrote:


Hello,
I have decided that I was going to spend some time learning D2W. I 
have been trying to get the ERMovies example to work, but the h2 
database seems to not be started when the application is run. Am I 
supposed to start the jdbc:h2:file myself in the code or is the 
example supposed to start the database automatically? Here is the 
error that I get:

/
//failed to open database channel. Check your connection dictionary, 
and ensure your database is correctly configured./


Thanks,


___
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/tedpet5%40yahoo.com

This email sent to tedp...@yahoo.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: Direct2Web Examples

2016-08-06 Thread Theodore Petrosky
I had the same problem myself. My ‘solution’ was to switch the database to 
postgresql. I realize this doesn’t address the problem, but sometimes you just 
have to get work done.

Ted


> On Aug 6, 2016, at 3:19 PM, anon  wrote:
> 
> Hello,
> I have decided that I was going to spend some time learning D2W. I have been 
> trying to get the ERMovies example to work, but the h2 database seems to not 
> be started when the application is run. Am I supposed to start the 
> jdbc:h2:file myself in the code or is the example supposed to start the 
> database automatically? Here is the error that I get:
> 
> failed to open database channel. Check your connection dictionary, and ensure 
> your database is correctly configured.
> 
> Thanks,
> 
> 
> ___
> 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/tedpet5%40yahoo.com
> 
> This email sent to tedp...@yahoo.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

Direct2Web Examples

2016-08-06 Thread anon

Hello,
I have decided that I was going to spend some time learning D2W. I have 
been trying to get the ERMovies example to work, but the h2 database 
seems to not be started when the application is run. Am I supposed to 
start the jdbc:h2:file myself in the code or is the example supposed to 
start the database automatically? Here is the error that I get:

/
//failed to open database channel. Check your connection dictionary, and 
ensure your database is correctly configured./


Thanks,


 ___
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