Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime can not find MvpegEntryPoint #14

Open
bhomass opened this issue Oct 31, 2011 · 4 comments
Open

runtime can not find MvpegEntryPoint #14

bhomass opened this issue Oct 31, 2011 · 4 comments

Comments

@bhomass
Copy link

bhomass commented Oct 31, 2011

I need to use the mvp4g framework. I added the lib jar to both eclipse classpath and the project /lib directory. when the app launches, the gwt FF tab shows the error

unable to find type com.mvp4g.client.Mvp4gEntryPoint

How do I get gwt2 to find this lib class?

@vbuzzano
Copy link
Owner

You have to declare it in your app.gwt.xml

Vincent Buzzano
On Oct 31, 2011 6:58 AM, "bhomass" <
[email protected]>
wrote:

I need to use the mvp4g framework. I added the lib jar to both eclipse
classpath and the project /lib directory. when the app launches, the gwt FF
tab shows the error

unable to find type com.mvp4g.client.Mvp4gEntryPoint

How do I get gwt2 to find this lib class?

Reply to this email directly or view it on GitHub:
#14

@bhomass
Copy link
Author

bhomass commented Oct 31, 2011

it is declared in app.gwt.xml as the EntryPoint. otherwise, gwt would even be looking for it.

@bhomass bhomass closed this as completed Oct 31, 2011
@bhomass
Copy link
Author

bhomass commented Oct 31, 2011

sorry, I don't mean to close it. there seems to be no other button.

@bhomass
Copy link
Author

bhomass commented Nov 2, 2011

apparently, everything a mvp4g annotation is used, the app fails

00:00:09.482 [ERROR] Annotation error: cannot resolve client.view.RootView
java.lang.ClassNotFoundException: client.view.RootView at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(TypeOracleMediator.java:742) at com.google.gwt.dev.javac.TypeOracleMediator.createAnnotation(TypeOracleMediator.java:474) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation(TypeOracleMediator.java:640) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations(TypeOracleMediator.java:655) at com.google.gwt.dev.javac.TypeOracleMediator.resolveClass(TypeOracleMediator.java:801) at com.google.gwt.dev.javac.TypeOracleMediator.addNewTypes(TypeOracleMediator.java:416) at com.google.gwt.dev.javac.TypeOracleMediatorFromSource.addNewUnits(TypeOracleMediatorFromSource.java:54) at com.google.gwt.dev.javac.CompilationState.assimilateUnits(CompilationState.java:164) at com.google.gwt.dev.javac.CompilationState.(CompilationState.java:82) at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:409) at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:299) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:325) at com.google.gwt.dev.DevModeBase$UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:105) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:190) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) at java.lang.Thread.run(Unknown Source)

The class with the annotation is

package client.presenter;

import client.TestEventBus;
import client.presenter.view_interface.IRootViewInterface;
import client.view.RootView;

import com.google.gwt.user.client.ui.Widget;
import com.mvp4g.client.annotation.Presenter;
import com.mvp4g.client.presenter.BasePresenter;

@presenter( view = RootView.class )
public class RootPresenter extends BasePresenter<IRootViewInterface, TestEventBus> {

public void onChangeBody( Widget newPage ) {
    view.setBody( newPage );
}

public void onDisplayMessage( String message ) {
    view.getMessage().setText( message );
}

public void onStart() {
    view.getMessage().setText( "" );
}

}

Any reason, Play framework does not recognize the annotation?

@bhomass bhomass reopened this Nov 2, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants