Re: CSS Ponder and start again

James Cicenia <[email protected]>
Newsgroups gmane.comp.web.webobjects.wonder-disc
Message-ID <[email protected]>
Took it out, but your Session generated class from your framework still references it.

I changed those references to ERCoreBL and it all starts up nice and crisp!

Thanks again for the guidance. I look forward to incorporating all these new best practices.

Thanks
James



On Nov 30, 2012, at 6:37 PM, Ramsey Gurley <[email protected]> wrote:

> ERCoreBusinessLogic is on your class path somewhere. You need to remove it. ERCoreBL replaces it.
> 
> On Nov 30, 2012, at 4:59 PM, James Cicenia wrote:
> 
>> Ok,,, closer.
>> 
>> I installed the template and then created a new project again using it.
>> 
>> I ran and I get this error:
>> 
>> WARN  (ERXModelGroup.java:415) - The model 'ERCoreBL' (path: file:/Users/jcicenia/git/ponder/ERCoreBL/Resources/ERCoreBL.eomodeld) has an entity name conflict with the entities ("ERCAuditTrail", "ERCPreference", "ERCAuditTrailEntry", "ERCMailMessage") already in the model group <EOModelGroup (("ERAttachment", "file:/Library/WebObjects/Versions/WebObjects543/Library/Frameworks/ERAttachment.framework/Resources/ERAttachment.eomodeld"), ("ERCoreBusinessLogic", "file:/Library/WebObjects/Versions/WebObjects543/Library/Frameworks/ERCoreBusinessLogic.framework/Resources/ERCoreBusinessLogic.eomodeld"), ("PurplePushBaseModel", "file:/Users/jcicenia/Documents/WOEclipseWorkspace/PurplePushModelFramework/Resources/PurplePushBaseModel.eomodeld"), ("ERMail", "file:/Library/WebObjects/Versions/WebObjects543/Library/Frameworks/ERCoreBusinessLogic.framework/Resources/ERMail.eomodeld"), ("erprototypes", "file:/Library/WebObjects/Versions/WebObjects543/Library/Frameworks/ERPrototypes.framework/Resources/erprototypes.eomodeld"))>
>> DEBUG (ERXNSLogLog4jBridge.java:46) - Using JDBCPlugIn 'com.webobjects.jdbcadaptor.MySQLPlugIn' for JDBCAdaptor@144013098
>> DEBUG (ERXNSLogLog4jBridge.java:46) - Using JDBCPlugIn 'com.webobjects.jdbcadaptor.MySQLPlugIn' for JDBCAdaptor@804372294
>> DEBUG (ERXNSLogLog4jBridge.java:46) - Using JDBCPlugIn 'com.webobjects.jdbcadaptor.MySQLPlugIn' for JDBCAdaptor@675587393
>> DEBUG (ERXNSLogLog4jBridge.java:46) - Using JDBCPlugIn 'com.webobjects.jdbcadaptor.MySQLPlugIn' for JDBCAdaptor@851272462
>> DEBUG (ERXNSLogLog4jBridge.java:46) - Using JDBCPlugIn 'com.webobjects.jdbcadaptor.MySQLPlugIn' for JDBCAdaptor@800212520
>> DEBUG (ERXNSLogLog4jBridge.java:46) - Using JDBCPlugIn 'com.webobjects.jdbcadaptor.MySQLPlugIn' for JDBCAdaptor@1629226126
>> DEBUG (ERXNSLogLog4jBridge.java:46) - Using JDBCPlugIn 'com.webobjects.jdbcadaptor.MySQLPlugIn' for JDBCAdaptor@2145549774
>> DEBUG (ERXNSLogLog4jBridge.java:46) - Using JDBCPlugIn 'com.webobjects.jdbcadaptor.MySQLPlugIn' for JDBCAdaptor@1857134841
>> ERROR (ERDAssignment.java:168) - InvocationTargetException occurred in ERAssignment: java.lang.reflect.InvocationTargetException keyForMethodLookup(): entityForPageConfiguration target exception: java.lang.NullPointerException assignment was entityForPageConfiguration=<ERDDefaultModelAssignment> (java.lang.String)
>> 
>> Target exception backtrace: java.lang.NullPointerException
>> 	at com.webobjects.eoaccess.EORelationship.addJoin(EORelationship.java:1380)
>> 	at com.webobjects.eoaccess.EORelationship.awakeWithPropertyList(EORelationship.java:943)
>> 	at com.webobjects.eoaccess.EOEntity.relationships(EOEntity.java:1071)
>> 	at com.webobjects.eoaccess.EOEntity.relationshipNamed(EOEntity.java:916)
>> 	at com.webobjects.eoaccess.EOEntity.anyRelationshipNamed(EOEntity.java:960)
>> 	at com.webobjects.eoaccess.EOEntity.relationshipForPath(EOEntity.java:4075)
>> 	at com.webobjects.eoaccess.EOEntity._relationshipForPath(EOEntity.java:4061)
>> 	at er.corebl.audittrail.ERCAuditTrailHandler.configureEntity(ERCAuditTrailHandler.java:128)
>> 	at er.corebl.audittrail.ERCAuditTrailHandler.modelGroupDidLoad(ERCAuditTrailHandler.java:93)
>> 
>> Thoughts?
>> 
>> Though the bare bones page does show up!
>> 
>> Very close to starting now.
>> 
>> Thanks
>> James
>> 
>> 
>> 
>> On Nov 30, 2012, at 3:49 PM, Ramsey Gurley <[email protected]> wrote:
>> 
>>> 
>>> On Nov 30, 2012, at 1:58 PM, James Cicenia wrote:
>>> 
>>>> Ramsey -
>>>> 
>>>> I set the look in my projects rules set to R2D2. I took out all Modern frameworks.
>>>> 
>>>> I run the app, I get a very plain jane login without styling or a create user link. Is that expected?
>>>> 
>>>> If I click login, I get a null exception
>>>> 
>>>> What I did, correct me if I am wrong, was subclass your ERAuthDirectAction for my projects DirectAction.
>>> 
>>> No you shouldn't subclass that. The login action handles the login form submission from the ERATwoFactorLogin component.  
>>> 
>>> Originally, I had intended for the ERAD2WDirectAction to be the action class needed by ERAuth apps. You can subclass that and it should work, but now I'd like to get rid of it and package that logic in a simple utility class instead. There's no reason to force that superclass really.  All that does is check the crud auth to see if a page config should be allowed.
>>> 
>>>> 
>>>> 	public WOActionResults loginAction() {
>>>> 		ERXRequest request = (ERXRequest)request();
>>>> 		EOEditingContext ec = ERXEC.newEditingContext();
>>>> 		String entityName = request.stringFormValueForKey("entityName");
>>>> 	**	EOEnterpriseObject eo = EOUtilities.createAndInsertInstance(ec, entityName); <== null
>>>> 
>>>> As you can see, I am missing the very first steps and possibly style sheets? Does R2D2 have StyleSheets?
>>>> 
>>>> The actual crud/roles/auth stuff looks very nice and I seem to understand it. I am just missing some startup changes ... I think
>>>> 
>>>> James
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> Keep yourself connected to Go Parallel: 
>>>> TUNE You got it built. Now make it sing. Tune shows you how.
>>>> http://goparallel.sourceforge.net_______________________________________________
>>>> Wonder-disc mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/wonder-disc
>>> 
>> 
>> ------------------------------------------------------------------------------
>> Keep yourself connected to Go Parallel: 
>> INSIGHTS What's next for parallel hardware, programming and related areas?
>> Interviews and blogs by thought leaders keep you ahead of the curve.
>> http://goparallel.sourceforge.net_______________________________________________
>> Wonder-disc mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/wonder-disc
>

------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
INSIGHTS What's next for parallel hardware, programming and related areas?
Interviews and blogs by thought leaders keep you ahead of the curve.
http://goparallel.sourceforge.net

_______________________________________________
Wonder-disc mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wonder-disc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.