You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by David Wynter <da...@roamware.com> on 2002/11/27 12:03:37 UTC

Move from std tdk directory causes error

Hi,

I have the following error

Horrible Exception: java.lang.ClassNotFoundException:

	Requested Screen not found:
	Turbine looked in the following modules.packages path:
	[com.roamware.rwtransform.modules, org.apache.turbine.modules]

	at
org.apache.turbine.modules.ScreenLoader.getInstance(ScreenLoader.java:197)

This was caused because I had to move my turbine project from the standard
location setup by the TDK to the Eclipse IDE workspace directory. I copied
all directories under the project directory into the workspace setup by
Eclipse and built the project, I use the Sysdeo Tomcat plugin for Eclipse.
Now when I run it from Eclipse I get the above error. I have checked the
Turbineresources.properties file and it has nothing that is directory
specific so don't know why it suddenly cannot find the Default screen class.

Code is not changed. Eclipse does allow you to change the project directory
to the webapps directory, but it blows up when it tries to compile my 6
Turbine projects with non standard package path (/WEB-INF/src/java/com/...
instead of /WEB-INF/src/com/...)

Any ideas?

David Wynter

roamware Ltd.
(+44) (0) 208 922 7539 B.
(+44) (0) 7879 605 706 M.
david@roamware.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Move from std tdk directory causes error

Posted by Eric Emminger <er...@ericemminger.com>.
David

> > This was caused because I had to move my turbine project from the standard
> > location setup by the TDK to the Eclipse IDE workspace directory. I copied
> > all directories under the project directory into the workspace setup by
> > Eclipse and built the project, I use the Sysdeo Tomcat plugin for Eclipse.
> > Now when I run it from Eclipse I get the above error. I have checked the
> > Turbineresources.properties file and it has nothing that is directory
> > specific so don't know why it suddenly cannot find the Default
> > screen class.
> >
> > Code is not changed. Eclipse does allow you to change the project
> > directory
> > to the webapps directory, but it blows up when it tries to compile my 6
> > Turbine projects with non standard package path (/WEB-INF/src/java/com/...
> > instead of /WEB-INF/src/com/...)

I'm not sure about the Tomcat plugin, but as far as using Eclipse, I can
tell you what works for me. When I create a new project in Eclipse, I
uncheck 'use default' under Project contents and set the Directory to
tdk/webapps/[myProject] . Eclipse finds the correct source folders under
WEB-INF/src/java/com/... just as you have. I'm using Eclipse 2.0.1. It
may be important that you set the directory from the beginning, rather
than changing it later.

Hope that helps!

-- 
Eric Emminger
eric@ericemminger.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Move from std tdk directory causes error

Posted by Chris K Chew <ch...@fenetics.com>.
Hi David.

I have two thoughts.  First, the "Requested Screen not found" line looks
suspicious because normally the exception message lists the screen that it
was looking for.  For instance, I get the error: "Requested Screen not
found: BadScreen" when I type a bogus screen BadScreen in the URL.  Are you
sure the request is correct inside Eclipse?

Second, if it is a classpath issue, the configuration for the tomcat plug-in
is a 1st-rate candidate for the problem.  IIRC, there have been issues with
tomcat using relative paths while the servlet standard is to use absolute
(it might be the other way around, I still haven't had my coffee this
morning).  If that is the case, maybe the plug-in is expecting an absolute
path somewhere where you have a relative one (web.xml || server.xml)?

Good luck,

Chris

> -----Original Message-----
> From: David Wynter [mailto:david@roamware.com]
> Sent: Wednesday, November 27, 2002 4:04 AM
> To: Turbine-User
> Subject: Move from std tdk directory causes error
>
>
> Hi,
>
> I have the following error
>
> Horrible Exception: java.lang.ClassNotFoundException:
>
> 	Requested Screen not found:
> 	Turbine looked in the following modules.packages path:
> 	[com.roamware.rwtransform.modules, org.apache.turbine.modules]
>
> 	at
> org.apache.turbine.modules.ScreenLoader.getInstance(ScreenLoader.java:197)
>
> This was caused because I had to move my turbine project from the standard
> location setup by the TDK to the Eclipse IDE workspace directory. I copied
> all directories under the project directory into the workspace setup by
> Eclipse and built the project, I use the Sysdeo Tomcat plugin for Eclipse.
> Now when I run it from Eclipse I get the above error. I have checked the
> Turbineresources.properties file and it has nothing that is directory
> specific so don't know why it suddenly cannot find the Default
> screen class.
>
> Code is not changed. Eclipse does allow you to change the project
> directory
> to the webapps directory, but it blows up when it tries to compile my 6
> Turbine projects with non standard package path (/WEB-INF/src/java/com/...
> instead of /WEB-INF/src/com/...)
>
> Any ideas?
>
> David Wynter
>
> roamware Ltd.
> (+44) (0) 208 922 7539 B.
> (+44) (0) 7879 605 706 M.
> david@roamware.com
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>