Hi,
Avoiding the erxservletadaptor and wonder initialization, I just
made a project with the 2.0.17 archetype, for wo 5.3.3, no
wonder, true war support. wolips 3.4.5747 .
It seems some parameters are not defined.
If I mvn clean jetty:run-war
I get :
2009-07-23 08:48:45.981::INFO: No Transaction manager found - if
your webapp requires one, please configure one.
Classes and frameworks will be loaded out of the WEB-INF/lib and
WEB-INF/classes directories.
MainBundle will be set to ${project.build.finalName}
[2009-07-23 08:48:46 EDT] <main> Principal class '${mainclass}'
not found in bundle ${project.artifactId}
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main>
WODefaultUndoStackLimit=10
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main>
NSProjectSearchPath=("..")
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main>
WOGenerateWSDL=true
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main> WOMaxHeaders=200
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main>
WOCachingEnabled=false
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main>
WOFrameworksBaseURL=/WebObjects/Frameworks
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main>
WOAllowRapidTurnaround=true
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main>
WOAllowsConcurrentRequestHandling=false
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main>
WOAllowsCacheControlHeader=true
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main> WOSMTPHost=smtp
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main>
WOAcceptMalformedCookies=false
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main>
WOContextClassName=com.webobjects.jspservlet.WOServletContext
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main>
WOMissingResourceSearchEnabled=true
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main>
WOSessionStoreClassName=com.webobjects.jspservlet.WOServletSessio
nStore
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main>
WODebuggingEnabled=true
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main>
WODisplayExceptionPages=true
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main>
WOStatisticsStoreSessionMax=50
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main>
WOAutoOpenClientApplication=false
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main>
WOAdaptorURL=http://localhost/${project.build.finalName}/WebObjec
ts
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main>
WOApplicationBaseURL=/WebObjects
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main>
WOAutoOpenInBrowser=false
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main>
WOIncludeCommentsInResponse=true
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main>
------------------------
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main> Cannot use rapid
turnaround. Please start Xcode and open the project for this
application.
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main>
<WOApplication>.primeApplication: Application class is not in a
package. This could cause problems with some appservers.
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main>
<WOApplication>.primeApplication: The Application name is
JavaWebObjects
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main> The URL for
webserver connect through Servlet Container is:
http://gbtest.local/${project.build.finalName}/WebObjects/JavaWeb
Objects.woa
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main> null
<JavaWebObjects>[2009-07-23 08:48:46 EDT] <main> Waiting for
requests...
mainclass was setup by the archetype in the pom:
<properties>
<!-- properties used for filtering and dependency management -->
<jvmtarget>1.5</jvmtarget>
<mainclass>war.demo.warnowonder.app.Application</mainclass>
<webobjects.groupId>com.webobjects</webobjects.groupId>
<webobjects.version>5.3.3</webobjects.version>
</properties>
I have also seen ${project.build.finalName} apparently undefined;
who defines that?
I have followed:
http://wiki.objectstyle.org/confluence/display/WOL/Packaging+WO+A
pplications+as+true+WAR+with+Maven
Thanks,
Greg
On Jul 22, 2009, at 10:35 PM, Lachlan Deck wrote:
On 23/07/2009, at 11:20 AM, David Avendasora wrote:
On Jul 22, 2009, at 7:49 PM, Greg Brown wrote:
For more fun and joy, I am trying to package and -- this is the
important part-- run a WebObjects Wonder app in a tomcat or jetty
container.
If you are using the current stable or nightly of WOLips, this
should "just work".
I think I am getting tripped up by the Wonder initialization in a
servlet environment. (WO 5.3)
The auto-generated web.xml file has:
<!-- The WebObjects Servlet that interfaces between the Servlet
container
world and the WebObjects world. -->
<servlet>
<servlet-name>WOServletAdaptor</servlet-name>
<servlet-class>
er.extensions.jspservlet.ERXServletAdaptor
</servlet-class>
<load-on-startup>5</load-on-startup>
</servlet>
Hmm Wonder has no
er.extensions.jspservlet.ERXServletAdaptor.java, and neither does
the http://maven.wocommunity.org/content/groups/public & snapshot
repository of goodies.
It is included as a Library (in the Referenced Libraries
directory) in ERJars.
With ant ERJars is used, that's true. But not with maven. This
particular jar - which has no equivalents that I can see in the
source files needs to be added to your repo.
Where is the source for ERXServletAdaptor btw?
(Henrique - since you do servlet builds how are you handling
this?)
Q 1. Should http://maven.wocommunity.org/content/groups/public
have this jar, or am I missing where it is?
I did a svn checkout, and a maven build and I found a jar with
ERXServletAdaptor. Next question:
Q 2. Should I use that jar?
In
http://wiki.objectstyle.org/confluence/display/WONDER/Creating+a+
wonder+app+to+deploy+as+a+servlet
Stop! Did you read the warning at the top of that? That is an old
document and doesn't apply to modern WO development.
Try the instructions at
http://wiki.objectstyle.org/confluence/display/WONDER/Servlet+Dep
loyment+Setup. That is the current method of setting up a WO
project for servlet deployment.
Dave
I read that "Henrique created a class called ERXServletAdaptor
and it is submitted as a pending project wonder patch as we speak
(or as I type, as the case may be). I could not get the code in
that patch to run as is, so I have changed it just a bit. Here is
my version of the class that works for me. Something very similar
to this may soon be bundled with project wonder [ or not--"As I
told Henrique in his bug report: I'm not going to include this
into ERX..." ] , but for now, you can just toss this class into
your project's Sources folder:"
(yeah, after you figure out javax.servlet api has to be found and
added as a dependancy. )
Is that the version I should use? Is that different than the jar
I got with a Wonder svn download and build? Which one?
Q 3. Info.plist Doctype? Do I have to remove that? Here it says
to:
http://wiki.objectstyle.org/confluence/display/WO/Web+Application
s-Deployment-Tomcat+Deployment
Q 4. Perhaps it is WO 5.3.3? They have the WOServletAdaptor in
two jars JavaWOJSPServlet and a JavaWOJSPServlet_client ; which
one? both? or is it the classpath order?
Oh, the excitement!
This is the error I always get:
javax.servlet.UnavailableException: Error initializing
ERXServletAdaptor: ${mainclass}
t . i. a
Greg
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%
40avendasora.com
This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/lachlan.dec
k%40gmail.com
This email sent to [email protected]
with regards,
--
Lachlan Deck
Greg Brown
[email protected]
--
[email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]