Fórumok

Compile error in ext-plugin sdk

Sebastian Mieszczankowski, módosítva 11 év-val korábban

Compile error in ext-plugin sdk

New Member Bejegyzések: 3 Csatlakozás dátuma: 2012.08.12. Legújabb bejegyzések
I think this is a bug, because of my class is every thing all right 100%. This is happend, when I do redeploy (rebublish) from Servers view but sometimes it's start working when I drug and drop several times ex-plugin to Server, restart server.

If anyone faced such a annoying problem, please let me know or if not I report a bug.

[Console output redirected to file:C:\Users\smieszczankowski\workspace\.metadata\.plugins\com.liferay.ide.eclipse.sdk\sdk.log]
Buildfile: C:\Users\smieszczankowski\workspace\liferay-plugins-sdk-6.1.1\ext\tia-auth-ws-ext\build.xml
compile:
compile-with-global-class-loader:
    [mkdir] Created dir: C:\Users\smieszczankowski\workspace\liferay-plugins-sdk-6.1.1\ext\tia-auth-ws-ext\docroot\WEB-INF\ext-service\classes
compile-java:
compile-with-portal-class-loader:
    [mkdir] Created dir: C:\Users\smieszczankowski\workspace\liferay-plugins-sdk-6.1.1\ext\tia-auth-ws-ext\docroot\WEB-INF\ext-util-bridges\classes
compile-java:
compile-with-portal-class-loader:
    [mkdir] Created dir: C:\Users\smieszczankowski\workspace\liferay-plugins-sdk-6.1.1\ext\tia-auth-ws-ext\docroot\WEB-INF\ext-util-java\classes
compile-java:
compile-with-portal-class-loader:
    [mkdir] Created dir: C:\Users\smieszczankowski\workspace\liferay-plugins-sdk-6.1.1\ext\tia-auth-ws-ext\docroot\WEB-INF\ext-util-taglib\classes
compile-java:
compile-with-portal-class-loader:
    [mkdir] Created dir: C:\Users\smieszczankowski\workspace\liferay-plugins-sdk-6.1.1\ext\tia-auth-ws-ext\docroot\WEB-INF\ext-impl\classes
compile-java:
     [copy] Copying 5 files to C:\Users\smieszczankowski\workspace\liferay-plugins-sdk-6.1.1\ext\tia-auth-ws-ext\docroot\WEB-INF\ext-impl\classes
     [copy] Copied 8 empty directories to 7 empty directories under C:\Users\smieszczankowski\workspace\liferay-plugins-sdk-6.1.1\ext\tia-auth-ws-ext\docroot\WEB-INF\ext-impl\classes
    [javac] Compiling 8 source files to C:\Users\smieszczankowski\workspace\liferay-plugins-sdk-6.1.1\ext\tia-auth-ws-ext\docroot\WEB-INF\ext-impl\classes
    [javac] ----------
    [javac] 1. ERROR in C:\Users\smieszczankowski\workspace\liferay-plugins-sdk-6.1.1\ext\tia-auth-ws-ext\docroot\WEB-INF\ext-impl\src\com\affecto\inter\portal\security\auth\TIAAuthenticator.java (at line 28)
    [javac] 	public int authenticateByEmailAddress(long companyId, String emailAddress,
    [javac] 			String password, Map<string, string[]> headerMap,
    [javac] 			Map<string, string[]> parameterMap) throws AuthException {
    [javac] 	           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The method authenticateByEmailAddress(long, String, String, Map<string,string[]>, Map<string,string[]>) of type TIAAuthenticator must override a superclass method
    [javac] ----------
    [javac] 2. ERROR in C:\Users\smieszczankowski\workspace\liferay-plugins-sdk-6.1.1\ext\tia-auth-ws-ext\docroot\WEB-INF\ext-impl\src\com\affecto\inter\portal\security\auth\TIAAuthenticator.java (at line 43)
    [javac] 	public int authenticateByScreenName(long companyId, String screenName,
    [javac] 			String password, Map<string, string[]> headerMap,
    [javac] 			Map<string, string[]> parameterMap) throws AuthException {
    [javac] 	           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The method authenticateByScreenName(long, String, String, Map<string,string[]>, Map<string,string[]>) of type TIAAuthenticator must override a superclass method
    [javac] ----------
    [javac] 3. ERROR in C:\Users\smieszczankowski\workspace\liferay-plugins-sdk-6.1.1\ext\tia-auth-ws-ext\docroot\WEB-INF\ext-impl\src\com\affecto\inter\portal\security\auth\TIAAuthenticator.java (at line 58)
    [javac] 	public int authenticateByUserId(long companyId, long userId,
    [javac] 			String password, Map<string, string[]> headerMap,
    [javac] 			Map<string, string[]> parameterMap) throws AuthException {
    [javac] 	           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The method authenticateByUserId(long, long, String, Map<string,string[]>, Map<string,string[]>) of type TIAAuthenticator must override a superclass method
    [javac] ----------
    [javac] 3 problems (3 errors)

BUILD FAILED
C:\Users\smieszczankowski\workspace\liferay-plugins-sdk-6.1.1\ext\build-common-ext.xml:141: The following error occurred while executing this line:
C:\Users\smieszczankowski\workspace\liferay-plugins-sdk-6.1.1\ext\build-common-ext.xml:194: The following error occurred while executing this line:
C:\Users\smieszczankowski\workspace\liferay-plugins-sdk-6.1.1\build-common.xml:95: Compile failed; see the compiler error output for details.</string,string[]></string,string[]></string,></string,></string,string[]></string,string[]></string,></string,></string,string[]></string,string[]></string,></string,>
thumbnail
Hitoshi Ozawa, módosítva 11 év-val korábban

RE: Compile error in ext-plugin sdk

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
I think this is a bug, because of my class is every thing all right 100%. This is happend, when I do redeploy (rebublish) from Servers view but sometimes it's start working when I drug and drop several times ex-plugin to Server, restart server.


Since ext plugin can't overwrite the same class several times, it should give error when you deploy the ext plugin several times. I think there is something wrong.
Sebastian Mieszczankowski, módosítva 11 év-val korábban

RE: Compile error in ext-plugin sdk

New Member Bejegyzések: 3 Csatlakozás dátuma: 2012.08.12. Legújabb bejegyzések
I mean that I do Redeploy for still the same ext plugin, so it can overwrite classes.

I figured out that I need to Refresh project form standard project context in Eclipse (then my ext plugin changed from Synchronized to Republish) and from now every thing is working. Maybe because my ext plugin was imported as an existing project from sdk or something strange was happened.