I converted an App called ASBriefsD2W. I have three Frameworks that I
created:
ASBriefsFW
TPD2WFramework
TPERJasperReports
This App runs fine as FB. I converted it and the Frameworks to maven. I
brought the frameworks into the App with this in the pom.xml:
<dependency>
<groupId>com.eltek</groupId>
<artifactId>TPJasperReports</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.eltek</groupId>
<artifactId>TPD2WFramework</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.as</groupId>
<artifactId>ASBriefsFW</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
Obviously, the EOs are defined in ASBriefsFW. I have used this process
on other apps successfully. But now The app begins the to run and it
fails with:
Jan 12 12:08:02 ASBriefsD2W[63770] WARN NSLog - ** DirectToWeb could
not find user.d2wmodel file. One will be created if you try to save
changes.
Jan 12 12:08:02 ASBriefsD2W[63770] DEBUG NSLog - Opening application's
URL in browser:
http://127.0.0.1:63770/cgi-bin/WebObjects/ASBriefsD2W.woa
Jan 12 12:08:02 ASBriefsD2W[63770] WARN NSLog -
Jan 12 12:08:02 ASBriefsD2W[63770] DEBUG NSLog - DirectToWeb
WebAssistant launch line: appletviewer
http://localhost:63770/cgi-bin/WebObjects/ASBriefsD2W.woa/wa/D2WActions/openWebAssistant
Jan 12 12:08:02 ASBriefsD2W[63770] INFO
er.corebl.audittrail.ERCAuditTrailHandler - Configuration : {}
Jan 12 12:08:02 ASBriefsD2W[63770] ERROR
er.extensions.appserver.ERXApplication - ASBriefsD2W failed to start.
IllegalArgumentException: Entity is not suitable: Person
at
er.corebusinesslogic.ERCoreBusinessLogic.addPreferenceRelationshipToActorEntity(ERCoreBusinessLogic.java:232)
at
com.as.application.app.Application.didFinishLaunching(Application.java:47)
at
er.extensions.appserver.ERXApplication.didFinishLaunching(ERXApplication.java:1343)
at
jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
... skipped 10 stack elements
Jan 12 12:08:02 ASBriefsD2W[63770] WARN NSLog - A fatal exception
occurred: Entity is not suitable: Person
[2026-1-12 12:8:2 UTC] <main> java.lang.IllegalArgumentException: Entity
is not suitable: Person
at
er.corebusinesslogic.ERCoreBusinessLogic.addPreferenceRelationshipToActorEntity(ERCoreBusinessLogic.java:232)
at
com.as.application.app.Application.didFinishLaunching(Application.java:47)
at
er.extensions.appserver.ERXApplication.didFinishLaunching(ERXApplication.java:1343)
at
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at
com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
at
com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
at
com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
at
com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:546)
at com.webobjects.appserver.WOApplication.run(WOApplication.java:1239)
at er.extensions.appserver.ERXApplication.run(ERXApplication.java:1431)
at com.webobjects.appserver.WOApplication.main(WOApplication.java:548)
at er.extensions.appserver.ERXApplication.main(ERXApplication.java:888)
at com.as.application.app.Application.main(Application.java:16)
APPLICATION SHUTDOWN SEQUENCE COMPLETE
+++++++++++++++++++++++++++++++++++
Ok, the app tried to launch but failed complaining about the Person
entity. I am using this in the Application.java:
public void didFinishLaunching() {
super.didFinishLaunching();
//Setup preferences for User
ERCoreBusinessLogic.sharedInstance().addPreferenceRelationshipToActorEntity("Person");
WOApplication.application().setSessionTimeOut(14400);
}
static {
TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
}
If I co out the ERCoreBusinessLogic, It fails with:
Application: ASBriefsD2W
Error: java.lang.IllegalStateException exception
Reason:
java.lang.IllegalStateException: An Exception occurred while generating
the Exception page 'WOExceptionPage'. This is most likely due to an
error in 'WOExceptionPage' itself or WebObjects encountered an uncaught
exception while creating a Session object.
I am at a loss what to try. Do I need to kep this thing as FB?
Ted