Forums

Home » Liferay IDE » English

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Sebastian Mieszczankowski
Compile error in ext-plugin sdk
August 17, 2012 5:58 AM
Answer

Sebastian Mieszczankowski

Rank: New Member

Posts: 3

Join Date: August 12, 2012

Recent Posts

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.

 1[Console output redirected to file:C:\Users\smieszczankowski\workspace\.metadata\.plugins\com.liferay.ide.eclipse.sdk\sdk.log]
 2Buildfile: C:\Users\smieszczankowski\workspace\liferay-plugins-sdk-6.1.1\ext\tia-auth-ws-ext\build.xml
 3compile:
 4compile-with-global-class-loader:
 5    [mkdir] Created dir: C:\Users\smieszczankowski\workspace\liferay-plugins-sdk-6.1.1\ext\tia-auth-ws-ext\docroot\WEB-INF\ext-service\classes
 6compile-java:
 7compile-with-portal-class-loader:
 8    [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
 9compile-java:
10compile-with-portal-class-loader:
11    [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
12compile-java:
13compile-with-portal-class-loader:
14    [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
15compile-java:
16compile-with-portal-class-loader:
17    [mkdir] Created dir: C:\Users\smieszczankowski\workspace\liferay-plugins-sdk-6.1.1\ext\tia-auth-ws-ext\docroot\WEB-INF\ext-impl\classes
18compile-java:
19     [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
20     [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
21    [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
22    [javac] ----------
23    [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)
24    [javac]     public int authenticateByEmailAddress(long companyId, String emailAddress,
25    [javac]             String password, Map<String, String[]> headerMap,
26    [javac]             Map<String, String[]> parameterMap) throws AuthException {
27    [javac]                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28    [javac] The method authenticateByEmailAddress(long, String, String, Map<String,String[]>, Map<String,String[]>) of type TIAAuthenticator must override a superclass method
29    [javac] ----------
30    [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)
31    [javac]     public int authenticateByScreenName(long companyId, String screenName,
32    [javac]             String password, Map<String, String[]> headerMap,
33    [javac]             Map<String, String[]> parameterMap) throws AuthException {
34    [javac]                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
35    [javac] The method authenticateByScreenName(long, String, String, Map<String,String[]>, Map<String,String[]>) of type TIAAuthenticator must override a superclass method
36    [javac] ----------
37    [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)
38    [javac]     public int authenticateByUserId(long companyId, long userId,
39    [javac]             String password, Map<String, String[]> headerMap,
40    [javac]             Map<String, String[]> parameterMap) throws AuthException {
41    [javac]                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42    [javac] The method authenticateByUserId(long, long, String, Map<String,String[]>, Map<String,String[]>) of type TIAAuthenticator must override a superclass method
43    [javac] ----------
44    [javac] 3 problems (3 errors)
45
46BUILD FAILED
47C:\Users\smieszczankowski\workspace\liferay-plugins-sdk-6.1.1\ext\build-common-ext.xml:141: The following error occurred while executing this line:
48C:\Users\smieszczankowski\workspace\liferay-plugins-sdk-6.1.1\ext\build-common-ext.xml:194: The following error occurred while executing this line:
49C:\Users\smieszczankowski\workspace\liferay-plugins-sdk-6.1.1\build-common.xml:95: Compile failed; see the compiler error output for details.
Hitoshi Ozawa
RE: Compile error in ext-plugin sdk
August 17, 2012 7:46 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

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
RE: Compile error in ext-plugin sdk
August 18, 2012 3:23 AM
Answer

Sebastian Mieszczankowski

Rank: New Member

Posts: 3

Join Date: August 12, 2012

Recent Posts

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.