Huge Axis2 stubs not identified as java class files in intelliJ IDEA 12

We have a Java EE application with

  • Java 6,
  • JSF 1.2,
  • Icefaces 1.8.2,
  • Axis 1.4.1
  • on Eclipse 3.7

and want to upgrade our development pipeline and product to

  • Java 7
  • JSF 2,
  • Icefaces 3.3.0
  • Axis 1.4.1 (currently updating to the current stable)
  • on Maven 4 and IntelliJ IDEA 12.

Since we do not want to rebuild our webservice nodes in Axis2 1.6.2, we stayed on version 1.4.1.

Our problem is that we have huge webservice nodes that make up about 70,000 LOCs. All classes in these stubs cannot be found by other Java classes, even if the import and classpath options are set correctly.

Compilation of stubs is error-free and class files are created correctly, however, source files are not identified as classes, but java files (= different icons in the project navigator).

What we have tried so far:

  • Increase compiler memory up to 2048 MB (Settings β†’ Compiler β†’ Java Compiler)
  • Restore webservice stub using wsdl2code
  • Disable all IntelliJ IDEA checks.

Do you have any idea why IntelliJ does not recognize stubs as expected? Is there a file size limit?

+6
source share
2 answers

Please check this document :

IDE_HOME\bin\idea.properties :

 #--------------------------------------------------------------------- # Maximum file size (kilobytes) IDE should provide code assistance for. # The larger file is the slower its editor works and higher overall system memory requirements are # if code assistance is enabled. Remove this property or set to very large number if you need # code assistance for any files available regardless their size. #--------------------------------------------------------------------- idea.max.intellisense.filesize=2500 
+10
source

Use the -u option with the wsdl2java utility, it will create several class files and, therefore, should solve your problem.

Source: Axis2 WSDL2java only generates 2 Java classes

+3
source

Source: https://habr.com/ru/post/946424/


All Articles