On 29/12/2008, at 1:05 AM, Juan Backson wrote:
> Hi,
Hi.
The list you have sent this to ("jetty-support") is no long used.
You should send these sorts of questions to
user@...
instead.
I've copied my reply there, if you have any more questions, please
send them to that list.
> My standalone code was working fine with 6.x, but after I upgraded to
> 7pre5, I am getting error:
> Exception in thread "main" java.lang.Error: Unresolved compilation
> problems:
> The type org.mortbay.util.Attributes cannot be resolved. It is
> indirectly referenced from required .class files
> The type org.mortbay.component.LifeCycle cannot be resolved. It is
> indirectly referenced from required .class files
The most likely cause of these two errors is the you haven't put
jetty-util-7.0.0.pre5.jar
on your classpath. These two classes are defined in that jar, rather
than the core jetty jar file.
> The method doStart() from the type Server is not visible
[snip]
> public static void main(String[] args)throws Exception
> {
[snip]
> server.doStart();
> server.join();
> }
You should be calling "start" rather than "doStart"
That was true in Jetty 6 as well (although calling doStart would have
the appearance of working)
------------------------------------------------------------------------------
_______________________________________________
Jetty-support mailing list
Jetty-support@...
https://lists.sourceforge.net/lists/listinfo/jetty-support