gino1234 / wogwt

Automatically exported from code.google.com/p/wogwt
0 stars 0 forks source link

Just looking for some help #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Follow getting started
2. Run in development mode

What is the expected output? What do you see instead?
Hosted mode outputs: "Unable to find/load mapped servlet class 
'er.extensions.jspservlet.ERXServletAdaptor"

Please provide any additional information below.
ERExtensions Framework is on my build path. I tried setting WOROOT and 
LOCALROOT. My user 
frameworks are in [User]/Library/Frameworks. 

Thanks in advance,

Brandon

Original issue reported on code.google.com by breg...@gmail.com on 10 Feb 2009 at 8:18

GoogleCodeExporter commented 8 years ago
I get the same thing with the demo .... using WOLips 3.4

Original comment by breg...@gmail.com on 10 Feb 2009 at 9:40

GoogleCodeExporter commented 8 years ago
A few things to check:

1) Is ERJars.framework on your classpath?  Particularly, erxservletadaptor.jar

2) Is JavaWOJSPServlet.framework in your classpath?

3) Does your web.xml file (tomcat/webapps/ROOT/WEB-INF/web.xml) have all the 
info
listed in "getting started"?  It is possible for this file to get recreated by 
GWT
sometimes and lose what you entered.

Original comment by johnth...@gmail.com on 11 Feb 2009 at 10:19

GoogleCodeExporter commented 8 years ago
Both ERJars and JavaWOJSPServlet are on the classpath. I'm using your example 
project now, but I double 
checked (I can also see them being included in the GWT log output). Below is 
the web.xml. It looks unchanged 
to me... Thanks again, Brandon

<?xml version="1.0" encoding="UTF-8"?>
<web-app>

    <!-- Indicates if application is development or deployment mode. In Development
        mode, images are vended by the application directly from frameworks. In
        Deployment mode, images are vended by the webserver. -->
    <context-param>
        <param-name>WOAppMode</param-name>
        <param-value>Development</param-value>
    </context-param>

        <!-- This parameter points to the WebObjects directories required for
        this application. If a directory contains resources, they will be
        picked up; as well, if a directory contains JARs, they will be
        picked up. WOROOT, LOCALROOT or WOAINSTALLROOT placeholders here
        will be replaced at runtime with the appropriate values (Java System
        Properties if defined, the context-param values located above 
        otherwise). WEBINFROOT placeholders will be replaced at runtime 
        with the full path to the WEB-INF directory. -->
    <context-param>
        <param-name>WOClasspath</param-name>
        <param-value>

/workspace/WOGWTDemo/build/WOGWTDemo.woa/Contents/Resources/Java/your/app/Applic
ation.class
            /workspace/WOGWTDemo/build/WOGWTDemo.woa/Contents/Resources/Java
        </param-value>
    </context-param>

        <!-- Class name of the WOApplication subclass that defines the
        WebObjects application. -->
    <context-param>
        <param-name>WOApplicationClass</param-name>
        <param-value>your.app.Application</param-value>
    </context-param>

    <servlet>
        <servlet-name>shell</servlet-name>
        <servlet-class>com.google.gwt.dev.shell.GWTShellServlet</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>shell</servlet-name>
        <url-pattern>/*</url-pattern>
    </servlet-mapping>

</web-app>

Original comment by breg...@gmail.com on 12 Feb 2009 at 1:52

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
The only way I get this error is if I remove ERJars from my classpath.  So you 
must
have a problem with erxservletadaptor.jar inside ERJars.  Check that it's there 
and
that it contains the class er.extensions.jspservlet.ERXServletAdaptor and that 
it's
on your classpath.

Original comment by johnth...@gmail.com on 12 Feb 2009 at 3:12

GoogleCodeExporter commented 8 years ago
I'm stumped ....

.classpath reads:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
        <classpathentry kind="src" path="Sources"/>
        <classpathentry kind="con" path="WOFramework/ERJars"/>
        <classpathentry kind="con" path="WOFramework/WOGWT"/>
        <classpathentry kind="con" path="WOFramework/ERExtensions"/>
        <classpathentry kind="con" path="WOFramework/DerbyPlugIn"/>
        <classpathentry kind="con" path="WOFramework/ERPrototypes"/>
        <classpathentry kind="con" path="WOFramework/JavaEOAccess"/>
        <classpathentry kind="con" path="WOFramework/JavaEOControl"/>
        <classpathentry kind="con" path="WOFramework/JavaFoundation"/>
        <classpathentry kind="con" path="WOFramework/JavaJDBCAdaptor"/>
        <classpathentry kind="con" path="WOFramework/JavaWebObjects"/>
        <classpathentry kind="con" path="WOFramework/JavaWOJSPServlet"/>
        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
        <classpathentry kind="output" path="bin"/>
</classpath>

Eclipse console says:
[Loaded er.extensions.jspservlet.ERXServletAdaptor from 
file:/Users/brandon/Library/Frameworks/ERJars.framework/Resources/Java/erxservle
tadaptor.jar]

But GWT Shell Console says:
[ERROR] Unable to instantiate 'er.extensions.jspservlet.ERXServletAdaptor'
javax.servlet.UnavailableException: Can't find application bundle.

Could it be an ordering thing? Thanks for your help.

Original comment by breg...@gmail.com on 12 Feb 2009 at 7:33

GoogleCodeExporter commented 8 years ago
Ok, having the whole error message helps.  It can't find the application 
bundle.  In
the web.xml file you need to replace the /workspace part of

/workspace/WOGWTDemo/build/WOGWTDemo.woa/Contents/Resources/Java/your/app/Applic
ation.class

with the path to your eclipse workspace where the project is.  That should do 
it.

Original comment by johnth...@gmail.com on 13 Feb 2009 at 3:57

GoogleCodeExporter commented 8 years ago
Darn. Not sure how I missed that. Thanks for your help.

Original comment by breg...@gmail.com on 13 Feb 2009 at 11:25