Can't get Struts Assistant window to show struts-config.xml file...

It seems that within some projects (don't understand why yet) that the Struts Assistant window is always blank. If I right-click on my module under the Project windows, it says to "edit" the struts file. It does modify the struts-config.xml file when running the wizard etc, but the main Struts Assistant window is always blank. Is there a way to troubleshoot or diagnose the problem?

Thanks.

6 comments

To see Struts configuration file structure in the window, just open it in the editor. Struts Assistant tool window displays structure of the file currently selected in the editor.

0

hmm :s I can't seem to get that to work. I have a couple of files (struts-config.xml, struts-config-base.xml). I switch between the two files in the editor, but the Struts Assistant window is always blank. The only high-lighted option in the Assistant Window is Help and the Struts Configuration Wizard. I am not sure how the plugin detects a struts file, but would appreciate any help in diagnosing the problem. I have attached a GIF file of a screen shot.

Thanks.



Attachment(s):
screenshot.gif
0

Have you proper DOCTYPE declaration in your configuration file? Could you also have a look at /.IntellijIdea50/system/log/idea.log file? Is there any exceptions there?

0

Here is what I have in my struts-config.xml file

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"dtd/struts-config_1_1.dtd">
<struts-config>
<form-beans>
<form-bean name="ErrorActionForm" type="com.fs.fsol.ErrorActionForm"/>
...

My log file shows:

2006-03-22 08:09:12,200 INFO - anima.C.A.A - No document have been loaded. Looking for a default config...
2006-03-22 08:09:12,260 INFO - anima.C.A.A - Opening: file://C:/p4/main/fsol/WEB-INF/struts-config.xml
2006-03-22 08:09:12,371 INFO - anima.C.B.N - Loading from cached document: C:/p4/main/fsol/WEB-INF/struts-config.xml
2006-03-22 08:09:12,461 WARN - anima.C.B.H - Cannot recognize parameter entity: #PCDATA
2006-03-22 08:09:12,461 WARN - anima.C.B.H - Cannot recognize parameter entity: #PCDATA
2006-03-22 08:09:12,641 INFO - impl.local.LocalFileSystemImpl - adding request to synchronize queue:com.intellij.openapi.vfs.impl.local.LocalFileSystemImpl$5@ec38ad
2006-03-22 08:09:12,641 INFO - impl.local.LocalFileSystemImpl - Executing request:com.intellij.openapi.vfs.impl.local.LocalFileSystemImpl$5@ec38ad
2006-03-22 08:09:12,681 INFO - lication.impl.LaterInvocatorEx - leaveModal:com.intellij.openapi.progress.util.SmoothProgressAdapter@1f58334
2006-03-22 08:09:12,721 INFO - lication.impl.LaterInvocatorEx - enterModal:com.intellij.openapi.progress.util.SmoothProgressAdapter@b63086
2006-03-22 08:09:12,751 INFO - lication.impl.LaterInvocatorEx - leaveModal:com.intellij.openapi.progress.util.SmoothProgressAdapter@b63086
2006-03-22 08:09:12,881 INFO - lication.impl.LaterInvocatorEx - enterModal:com.intellij.openapi.progress.util.SmoothProgressAdapter@d2bc5a
2006-03-22 08:09:12,971 INFO - lij.localVcs.impl.LocalVcsImpl - purged 0 items
2006-03-22 08:09:13,032 INFO - lication.impl.LaterInvocatorEx - leaveModal:com.intellij.openapi.progress.util.SmoothProgressAdapter@d2bc5a
2006-03-22 08:09:13,072 INFO - lication.impl.LaterInvocatorEx - enterModal:com.intellij.openapi.progress.util.SmoothProgressAdapter@2a915e
2006-03-22 08:09:13,102 INFO - lication.impl.LaterInvocatorEx - leaveModal:com.intellij.openapi.progress.util.SmoothProgressAdapter@2a915e
2006-03-22 08:09:13,262 INFO - anima.C.B.N - Loading from cached document: C:/p4/main/fsol/WEB-INF/struts-config.xml
2006-03-22 08:09:14,013 INFO - anima.C.A.A - Opening: file://C:/p4/main/fsol/WEB-INF/struts-config.xml
2006-03-22 08:09:14,013 INFO - anima.C.B.N - Loading from cached document: C:/p4/main/fsol/WEB-INF/struts-config.xml
2006-03-22 08:09:14,213 INFO - anima.C.B.N - Loading from cached document: C:/p4/main/fsol/WEB-INF/web.xml
2006-03-22 08:09:14,233 INFO - anima.C.A.A - Opening: file://C:/p4/main/fsol/WEB-INF/web.xml
2006-03-22 08:09:14,233 INFO - anima.C.B.N - Loading from cached document: C:/p4/main/fsol/WEB-INF/web.xml
2006-03-22 08:09:14,243 INFO - anima.C.B.N - Loading from cached document: C:/p4/main/fsol/WEB-INF/tiles-defs.xml
2006-03-22 08:09:14,253 INFO - anima.C.A.A - Opening: file://C:/p4/main/fsol/WEB-INF/tiles-defs.xml
2006-03-22 08:09:14,253 INFO - anima.C.B.N - Loading from cached document: C:/p4/main/fsol/WEB-INF/tiles-defs.xml
2006-03-22 08:09:14,273 INFO - anima.C.A.A - Opening: file://C:/p4/main/fsol/WEB-INF/struts-config.xml
2006-03-22 08:09:14,273 INFO - anima.C.B.N - Loading from cached document: C:/p4/main/fsol/WEB-INF/struts-config.xml


So, not sure what is going on.

Kyle

0

Struts Assistant will only recognize your config if use a proper public URL, e.g.

<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://struts.apache.org/dtds/struts-config_1_1.dtd">

0

Ok, thanks! That worked.

Thanks for the help.

Kyle

0

Please sign in to leave a comment.