Re: submit button errors on deployment
Re: submit button errors on deployment
- Subject: Re: submit button errors on deployment
- From: Kieran Kelleher <email@hidden>
- Date: Fri, 11 Feb 2011 09:41:24 -0500
Just guessing (disclaimer), but possibly WOOgnl is included in the classpath of an "Other" framework and you have "exported it" and "Other" framework is in classpath of the app. IIRC, the build/embedding only looks at the app classpath, Whereas Eclipse classpath calculation may be a little different.
In any case, if you want to see your classpath in console when you launch in development, you could add sth like this to your Application.didFinishLaunching (with debug INFO set to on obviously)
// Output classpath
if (log.isInfoEnabled()) {
// Classpath debugging
// When launched by wotaskd in deployment, the classpath property is
// com.webobjects.classpath
String classpath = ERXProperties.stringForKey("com.webobjects.classpath");
// When launched manually or from within IDE, the classpath is the
// regular java.class.path
if (classpath == null) {
classpath = ERXProperties.stringForKey("java.class.path");
} // ~ if (classpath == null)
// Clean it up so a dir prints on each line of console or log file
if (classpath != null) {
classpath = classpath.replace(':', '\n');
} // ~ if (classpath != null)
log.info("classpath = \n" + classpath);
} // ~ if (logger.isInfoEnabled())
On Feb 10, 2011, at 5:41 PM, Chuck Hill wrote:
> Possibly because WOLips loads it. If it does.
>
>
> On Feb 10, 2011, at 2:41 PM, Joe Little wrote:
>
>> A new feature of Eclipse 3.6.1? :)
>>
>> On Thu, Feb 10, 2011 at 2:37 PM, Chuck Hill <email@hidden> wrote:
>>> On Feb 10, 2011, at 2:08 PM, Joe Little wrote:
>>>> On Thu, Feb 10, 2011 at 2:04 PM, Chuck Hill <email@hidden> wrote:
>>>>> On Feb 10, 2011, at 2:01 PM, Joe Little wrote:
>>>>>
>>>>>> That was it. Why oh why does it work in development?
>>>>>
>>>>> I am not sure. Is it getting embedded? Is it not installed in your dev environment, so embedding can't find it?
>>>>
>>>> Its working w/ WOOGNL even though it wasn't added to the project. Its
>>>> in my dev environment in /Library/Frameworks, but of course for
>>>> deployment it needs to be defined in the project to be embedded.
>>>
>>> Really not sure how that could be working.
>>>
>>>
>>>>
>>>>
>>>>>
>>>>>
>>>>>> As for your quip about UNIX knowledge, you got me on that one.
>>>>>
>>>>> Especially considering that it usually takes you about 2 seconds to leave me in the dust...
>>>>>
>>>>>>
>>>>>>
>>>>>> On Thu, Feb 10, 2011 at 1:55 PM, Chuck Hill <email@hidden> wrote:
>>>>>>>
>>>>>>> On Feb 10, 2011, at 1:49 PM, Joe Little wrote:
>>>>>>>
>>>>>>>> Its embedded, but I'm wondering if there is a version issue with the
>>>>>>>> classpath, as if something is overriding the methods in a new way.
>>>>>>>
>>>>>>> Do you see WOOGNL.framework in /Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks? It is NOT in your class path below. ognl is, but not WOOGNL.
>>>>>>>
>>>>>>>
>>>>>>>> I don't get a classpath when running in development, but Wonder
>>>>>>>> reports it in deployment, although its not easily parsable to the
>>>>>>>> naked eye :)
>>>>>>>
>>>>>>> Ya know, a person with some UNIX knowledge could probably replace the : with a line break. Search and replace in a text editor has been known to work too. :-P
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>> com.webobjects.classpath=/Library/WebObjects/Applications/Affiliates.woa/Contents/Resources/Java/:/Library/WebObjects/Applications/Affiliates.woa/Contents/Resources/Java/affiliates.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/ERJars.framework/Resources/Java/ERJars.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/ERPrototypes.framework/Resources/Java/ERPrototypes.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/ERModernLook.framework/Resources/Java/ERModernLook.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/ERModernDefaultSkin.framework/Resources/Java/ERModernDefaultSkin.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/ERModernDirectToWeb.framework/Resources/Java/ERModernDirectToWeb.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/ERDirectToWeb.framework/Resources/Java/ERDirectToWeb.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/Ajax.framework/Resources/Java/Ajax.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/WOLips.framework/Resources/Java/WOLips.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/ERTaggable.framework/Resources/Java/ERTaggable.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/PostgresqlPlugIn.framework/Resources/Java/PostgresqlPlugIn.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/ERCoolComponents.framework/Resources/Java/ERCoolComponents.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/AffiliatesModel.framework/Resources/Java/affiliatesmodel.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/ERChronic.framework/Resources/Java/ERChronic.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/JavaDTWGeneration.framework/Resources/Java/javadtwgeneration.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/JavaDirectToWeb.framework/Resources/Java/javadirecttoweb.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/JavaFoundation.framework/Resources/Java/javafoundation.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/JavaWebObjects.framework/Resources/Java/javawebobjects.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/JavaEOProject.framework/Resources/Java/javaeoproject.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/ERJars.framework/Resources/Java/ERFoundation.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/ERJars.framework/Resources/Java/ERWebObjects.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/ERJars.framework/Resources/Java/erxservletadaptor.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/ERJars.framework/Resources/Java/icu4j-3_8_1.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/ERJars.framework/Resources/Java/junit-4.8.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/ERJars.framework/Resources/Java/log4j-1.2.14.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/ERJars.framework/Resources/Java/ognl-2.6.7.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/ERJars.framework/Resources/Java/slf4j-api-1.5.0.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/ERJars.framework/Resources/Java/slf4j-log4j12-1.5.0.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/Ajax.framework/Resources/Java/jabsorb-1.2.2.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/AffiliatesModel.framework/Resources/Java/postgresql-8.2-508.jdbc3.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/ERChronic.framework/Resources/Java/commons-lang-2.4.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/JavaDTWGeneration.framework/WebServerResources/Java/JavaDTWGeneration.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/JavaDirectToWeb.framework/WebServerResources/Java/JavaDirectToWeb.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/JavaFoundation.framework/WebServerResources/Java/JavaFoundation.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/JavaXML.framework/WebServerResources/Java/javaxml.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/JavaWebObjects.framework/WebServerResources/Java/JavaWebObjects.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/JavaEOAccess.framework/WebServerResources/Java/JavaEOAccess.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/JavaEOControl.framework/WebServerResources/Java/JavaEOControl.jar:/Library/WebObjects/Applications/Affiliates.woa/Contents/Frameworks/JavaJDBCAdaptor.framework/WebServerResources/Java/JavaJDBCAdaptor.jar:/Library/WebObjects/Extensions/postgresql.jar:/Library/WebObjects/Extensions/
>>>>>>>>
>>>>>>>> On Thu, Feb 10, 2011 at 1:21 PM, Chuck Hill <email@hidden> wrote:
>>>>>>>>> Is it missing from the deployment server? Did not get embedded? Classpath is wrong?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Feb 10, 2011, at 11:45 AM, Joe Little wrote:
>>>>>>>>>
>>>>>>>>>> Yep, it's my status page since I couldn't list multiple entities in one page, i am instead getting 4 different arrays and creating listpageinterfaces for each similar to the excel look demo.
>>>>>>>>>>
>>>>>>>>>> As for wognl, it's enabled, as it works in development mode.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Feb 10, 2011, at 11:17 AM, David LeBer <email@hidden> wrote:
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On 2011-02-10, at 2:04 PM, Joe Little wrote:
>>>>>>>>>>>
>>>>>>>>>>>> I'm getting these errors:
>>>>>>>>>>>>
>>>>>>>>>>>> Error: com.webobjects.appserver._private.WODynamicElementCreationException:
>>>>>>>>>>>> 'action' is a constant.
>>>>>>>>>>>> Reason: <er.extensions.foundation.ERXPatcher$DynamicElementsPatches$SubmitButton>'action'
>>>>>>>>>>>> is a constant.
>>>>>>>>>>>>
>>>>>>>>>>>> For this section
>>>>>>>>>>>>
>>>>>>>>>>>> <tr>
>>>>>>>>>>>> <td style="text-align:right"><wo:string value="$recentNotes.count"/>
>>>>>>>>>>>> <wo:submit action="$viewRecentNotes" value="View"/></td>
>>>>>>>>>>>> <td style="text-align:right"><wo:string value="$dueNotes.count"/>
>>>>>>>>>>>> <wo:submit action="$viewDueNotes" value="View"/></td>
>>>>>>>>>>>> <td style="text-align:right"><wo:string value="$newProjects.count"/>
>>>>>>>>>>>> <wo:submit action="$viewNewProjects" value="View"/></td>
>>>>>>>>>>>> <td style="text-align:right"><wo:string
>>>>>>>>>>>> value="$expiringProjects.count"/> <wo:submit
>>>>>>>>>>>> action="$viewExpiringProjects" value="View"/></td>
>>>>>>>>>>>> </tr>
>>>>>>>>>>>>
>>>>>>>>>>>> In ModernLook. I noticed that I was getting XML parsing errors as well
>>>>>>>>>>>> in deployment though the PageWrapper marks it as HTML4 transitional.
>>>>>>>>>>>
>>>>>>>>>>> That does not look like ModernLook code. So I'm assuming it's a custom component of yours.
>>>>>>>>>>>
>>>>>>>>>>> Is WOOgnl enabled?
>>>>>>>>>>>
>>>>>>>>>>> ;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 (email@hidden)
>>>>>>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>>>>>>
>>>>>>>>>> This email sent to email@hidden
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> 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
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>
>>>>> --
>>>>> 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
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>
> --
> 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 (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden