Can't launch IntelliJ with Tomcat options

Hi,

IntelliJ 11, Win XP, tomcat 6.
The following are my java_opts and when I run IntelliJ, I get the following error. The double quotes are showing up with a backslash appended and this is causing my IDE to not run. I edited this manually and it works.

Java_opts:

-Dhtmladaptorport=7504
-Djava.security.auth.login.config="${SSW_MAY_HOME}\properties\siteAdminToolLoginModule.properties"
-DRES_HOME="${SSW_MAY_HOME}"
-Xms128m
-Xss1024k
-Xmx512m

Error:

"C:\Program Files\Java\jdk1.6.0_26\bin\java" "-Dcatalina.base=C:\Documents and Settings\sg0214508\.IntelliJIdea11\system\tomcat\Unnamed_2012May_2" "-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 6.0" "-Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp" -Dhtmladaptorport=7504 "\"-Djava.security.auth.login.config=C:/Documents and Settings/sg0214508/sg214508_May12_view/dotRes\properties\siteAdminToolLoginModule.properties\"" "\"-DRES_HOME=C:/Documents and Settings/sg0214508/sg214508_May12_view/dotRes\"" -Xms128m -Xss1024k -Xmx512m -jar "C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\bootstrap.jar" start
java.lang.NoClassDefFoundError: "-Djava/security/auth/login/config=C:/Documents and Settings/sg0214508/sg214508_May12_view/dotRes\properties\siteAdminToolLoginModule/properties"
Caused by: java.lang.ClassNotFoundException: "-Djava.security.auth.login.config=C:.Documents and Settings.sg0214508.sg214508_May12_view.dotRes\properties\siteAdminToolLoginModule.properties"
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: "-Djava.security.auth.login.config=C:/Documents and Settings/sg0214508/sg214508_May12_view/dotRes\properties\siteAdminToolLoginModule.properties".  Program will exit.
Exception in thread "main" Disconnected from server

3 comments
Comment actions Permalink

Hello,

where did you specified these java options, in the tomcat run configuration or in the startup script?

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

0
Comment actions Permalink

Hi Nikolay,

Thanks a lot for the reply.
I gave these options in the tomcat run configuration.

Thanks,
Kiran

0
Comment actions Permalink

The problem will be fixed in the next IDEA 11.1 EAP build, thank you for reporting. To workaround the problem you can ensure that
/bin/catalina.bat file do exist so IDEA will use it to start Tomcat instead of using 'java' command directly.

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

0

Please sign in to leave a comment.