IDEA takes not chosen web.xml while running application

Hi,
I have a few problems with working on IntelliJ, so I hope you can help me ;-)

1) I have project with 4 modules. Those modules are based on Maven and GWT and each one has dependency on another (4th module has dependency on 3th, 3th on 2nd and so on). I have no issue in project view, everything is fine, but when I'm trying to compile I have error that one class from whole project has no source code (I see "did you forget to inherit a required module?). But all the rest classes from this module are compiled fine. Any idea?

2) I have two web.xml files. One on
/src/main/webapp/WEB-INF/
/tomcat/webapps/ROOT/WEB-INF/

I have added facet WEB with paths to the /src/main/webapp/ in module settings. When I'm trying to run the application through configuration (I have specified path to the /src/main/webapp/WEB-INF/web.xml) IDEA ignore this all settings and placed web.xml from /tomcat dir at ~/Library/Caches/IntelliJIDEA80/ etc.

I even have deleted whole tomcat directory, clean, verify, compile a few times project by maven, but it always takes this wrong xml file. I have absolutely no idea where IDEA have "temporary" module files for deploing applications.

In Eclipse everything work fine so I don't know what to do.

Thank you very much
Leszek

8 comments
Comment actions Permalink

Hi,

please provide exact error message which is shown after compilation (or attach a screenshot) and attach your ipr, iml and iws files.

Hi,
I have a few problems with working on IntelliJ, so I hope you can help me ;)

1) I have project with 4 modules. Those modules are based on Maven and GWT and each one has dependency on another (4th module has dependency on 3th, 3th on 2nd and so on). I have no issue in project view, everything is fine, but when I'm trying to compile I have error that one class from whole proje
ct has no source code (I see "did you forget to inherit a required module?). But all the rest classes from this module are compiled fine. Any idea?

2) I have two web.xml files. One on
/src/main/webapp/WEB-INF/
/tomcat/webapps/ROOT/WEB-INF/

I have added facet WEB with paths to the /src/main/webapp/ in module settings. When I'm trying to run the application through configuration (I have specified path to the /src/main/webapp/WEB-INF/web.xml) IDEA ignore this all settings and placed web.xml from /tomcat dir at ~/Library/Caches/IntelliJID
EA80/ etc.

I even have deleted whole tomcat directory, clean, verify, compile a few times project by maven, but it always takes this wrong xml file. I have absolutely no idea where IDEA have "temporary" module files for deploing applications.

In Eclipse everything work fine so I don't know what to do.

Thank you very much
Leszek

---
Original message URL: http://www.jetbrains.net/devnet/message/5229200#5229200



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

My output error:
Information:Note: Recompile with -Xlint:unchecked for details.
Information:Compilation completed with 4 errors and 4 warnings
Information:4 errors
Information:4 warnings
Error:[ERROR] Line 18: No source code is available for type pl.ncdc.gwt.wizard.client.ui.FieldData; did you forget to inherit a required module?
Error:[ERROR] Line 24: No source code is available for type pl.ncdc.gwt.wizard.client.ui.FieldData; did you forget to inherit a required module?
Error:[ERROR] Line 36: No source code is available for type pl.ncdc.fair.claims.client.i18n.HelpEnabledLabelConstants; did you forget to inherit a required module? //There is no even 30 lines...
Error:[ERROR] Line 163: No source code is available for type pl.ncdc.fair.claims.client.ui.ErrorDisplay; did you forget to inherit a required module?
Warning:Compilation unit 'file:/Users/leszek/IdeaProjects/NCDC/ncdc-tia-services/src/main/java/pl/ncdc/tia/service/client/ClaimServiceAsync.java' is removed due to invalid reference(s):
Warning:file:/Users/leszek/IdeaProjects/NCDC/ncdc-tia-entities/src/main/java/pl/ncdc/tia/entity/client/claim/GeneralClaimInformation.java
Warning:Compilation unit 'file:/Users/leszek/IdeaProjects/NCDC/ncdc-tia-services/src/main/java/pl/ncdc/tia/service/client/ClaimService.java' is removed due to invalid reference(s):
/Users/leszek/IdeaProjects/NCDC/fair-web-claims-OldLayout/src/main/java/pl/ncdc/fair/claims/client/ui/ClaimCircumstancesStep.java
    Warning:Warning:Note: /Users/leszek/IdeaProjects/NCDC/fair-web-claims-OldLayout/src/main/java/pl/ncdc/fair/claims/client/ui/ClaimCircumstancesStep.java uses unchecked or unsafe operations.


4 modules:
ncdc-gwt
ncdc-tia-entities - depends on ncdc-gwt
ncdc-tia-services - depends on ncdc-tia-entities
fair-web-claims-old - depends on all previous

In the attachment zip file with all IDEA configuration files I have.

Thank you for help



Attachment(s):
conf_files.zip
0
Comment actions Permalink

I think there is an error in your code. Looks like you should inherit the GWT module which contains FieldData class in the GWT module where it is
referenced (see http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideModuleXml).

Regarding the problem with web.xml: which run configuration are you using? I don't see any Tomcat run configurations in your iws files. However
ncdc-tia-services module contain Web facet which refers to /tomcat/webapps/ROOT/WEB-INF/web.xml file so it may be cause of the problem.

My output error:
Information:Note: Recompile with -Xlint:unchecked for details.
Information:Compilation completed with 4 errors and 4 warnings
Information:4 errors
Information:4 warnings
Error:[ERROR] Line 18: No source code is available for type pl.ncdc.gwt.wizard.client.ui.FieldData; did you forget to inhe
rit a required module?
Error:[ERROR] Line 24: No source code is available for type pl.ncdc.gwt.wizard.client.ui.FieldData; did you forget to inherit a required module?
Error:[ERROR] Line 36: No source code is available for type pl.ncdc.fair.claims.client.i18n.HelpEnabledLabelConstants; did you f
orget to inherit a required module? //There is no even 30 lines...
Error:[ERROR] Line 163: No source code is available for type pl.ncdc.fair.claims.client.ui.ErrorDisplay; did you forget to inherit a required module?
Warning:Compilation unit 'file:/Users/leszek/
IdeaProjects/NCDC/ncdc-tia-services/src/main/java/pl/ncdc/tia/service/client/ClaimServiceAsync.java' is removed due to invalid reference(s):
Warning:file:/Users/leszek/IdeaProjects/NCDC/ncdc-tia-entities/src/main/java/pl/ncdc/tia/entity/client/claim/GeneralClaimInformation.java
Warning:Compilati
on unit 'file:/Users/leszek/IdeaProjects/NCDC/ncdc-tia-services/src/main/java/pl/ncdc/tia/service/client/ClaimService.java' is removed due to invalid reference(s):
/Users/leszek/IdeaProjects/NCDC/fair-web-claims-OldLayout/src/main/java/pl/ncdc/fair/claims/client/ui/ClaimCircumstancesStep.java

Warning:Warning:Note: /Users/leszek/IdeaProjects/NCDC/fair-web-claims-OldLayout/src/main/java/pl/ncdc/fair/claims/client/ui/ClaimCircumstancesStep.java uses unchecked or unsafe operations.


4 modules:
ncdc-gwt
ncdc-tia-entities - depends on ncdc-gwt
ncdc-tia-services - depends on ncdc-tia-entities
fair-web-claims-old - depends on all previous

In the attachment zip file with all IDEA configuration files I have.

Thank you for help

---
Original message URL: http://www.jetbrains.net/devnet/message/5229314#5229314



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Thank you for the reply.

AD.1) I've checked again my modules. You are right. I don't know why I didn't see this error erlier. I fix it. Thanks!

AD.2) There should not be this issue because I never use web.xml from ncdc-tia-services in any configuration. For tests I deleted this web.xml and make a project clean but it doesn't works. I've checked againt and I do not use any web.xml except form /src/main/webapp but IDEA still use this from tomcat directory.

Is there some kind of clean throughout IDEA? Like in the Eclipse menu Project -> Clean...

I have turn on "Clear output directory on rebuild" in the Compiler settings.

I made about 10 cleans, makes, compiles etc. Also make a new configuration for running an application.

IDEA takes web.xml from tomcat directory, but this is more funny, because it takes whole web.xml without one defined servlet and one parameter in another servlet. (I have searched and checked all web.xml in whole project and I have absolutely no idea from where IntelliJ takes this file).

Great ;-)

Guest wrote:

I think there is an error in your code. Looks like you should inherit the GWT module which contains FieldData class in the GWT module where it is
referenced (see http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideModuleXml).


Regarding the problem with web.xml: which run configuration are you using? I don't see any Tomcat run configurations in your iws files. However
ncdc-tia-services module contain Web facet which refers to /tomcat/webapps/ROOT/WEB-INF/web.xml file so it may be cause of the problem.


--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Which kind of run configuration are you using?

Thank you for the reply.

AD.1) I've checked again my modules. You are right. I don't know why I didn't see this error erlier. I fix it. Thanks!

AD.2) There should not be this issue because I never use web.xml from ncdc-tia-services in any configuration. For tests I deleted this web.xml and make a project clean but it doesn't works. I've checked againt and I do not use any web.xml except form /src/main/webapp but IDEA still use this from tom
cat directory.

Is there some kind of clean throughout IDEA? Like in the Eclipse menu Project -> Clean...

I have turn on "Clear output directory on rebuild" in the Compiler settings.

I made about 10 cleans, makes, compiles etc. Also make a new configuration for running an application.

IDEA takes web.xml from tomcat directory, but this is more funny, because it takes whole web.xml without one defined servlet and one parameter in another servlet. (I have searched and checked all web.xml in whole project and I have absolutely no idea from where IntelliJ takes this file).

Great ;)

Guest wrote:
>
> I think there is an error in your code. Looks like you should inherit the GWT module which contains FieldData class in the GWT module where it is
> referenced (see ).
>
> Regarding the problem with web.xml: which run configuration are you using? I don't see any Tomcat run configurations in your iws files. However
> ncdc-tia-services module contain Web facet which refers to /tomcat/webapps/ROOT/WEB-INF/web.xml file so it may be cause of the problem.
>
>
> --
> Nikolay Chashnikov
> Software Developer
> JetBrains, Inc
>
> "Develop with pleasure!"
>


---
Original message URL: http://www.jetbrains.net/devnet/message/5229387#5229387



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

GWT from Run/Debug Configurations

0
Comment actions Permalink

Please reproduce the problem and post here <idea.system.path>/log/idea.log file.

GWT from Run/Debug Configurations

---
Original message URL: http://www.jetbrains.net/devnet/message/5229543#5229543



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Please see GWT file in attachments. Where is possible I have inscribed path to this web.xml file.

Any idea how it is possible?

Thanks and Happy New Year!



Attachment(s):
gwt.png
idea.log
0

Please sign in to leave a comment.