For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 7 replies, 2 voices, and was last updated 21 years, 11 months ago by
Riyad Kalla.
-
AuthorPosts
-
Keith FettermanMemberWhen I save a JSP file, I now receive the following error:
An internal error occurred during: “Update JSP Index”.
If I click on the error msg, I see the following detail:
An internal error occurred during: “Update JSP Index”.
java.lang.NullPointerException
com.ibm.sse.model.jsp.contentmodel.tld.TLDCMDocumentManager$DirectiveStructuredDocumentRegionHandler.processInclude(Unknown Source)
com.ibm.sse.model.jsp.contentmodel.tld.TLDCMDocumentManager$DirectiveStructuredDocumentRegionHandler.processInclude(Unknown Source)
com.ibm.sse.model.jsp.contentmodel.tld.TLDCMDocumentManager$DirectiveStructuredDocumentRegionHandler.nodeParsed(Unknown Source)
com.ibm.sse.model.xml.internal.parser.XMLSourceParser.fireNodeParsed(Unknown Source)
com.ibm.sse.model.jsp.parser.JSPSourceParser.parseNodes(Unknown Source)
com.ibm.sse.model.xml.internal.parser.XMLSourceParser.getDocumentRegions(Unknown Source)
com.ibm.sse.model.internal.text.BasicStructuredDocument.setText(Unknown Source)
com.ibm.sse.model.internal.text.BasicStructuredDocument.set(Unknown Source)
com.ibm.sse.model.jsp.modelquery.ModelQueryAdapterFactoryForJSP$TaglibSupportModelLifecycleListener.setDocument(Unknown Source)
com.ibm.sse.model.jsp.modelquery.ModelQueryAdapterFactoryForJSP$TaglibSupportModelLifecycleListener.processPostModelEvent(Unknown Source)
com.ibm.sse.model.LifecycleNotificationManager.signalLifecycleEvent(Unknown Source)
com.ibm.sse.model.AbstractStructuredModel.signalLifecycleEvent(Unknown Source)
com.ibm.sse.model.AbstractStructuredModel.setStructuredDocument(Unknown Source)
com.ibm.sse.model.xml.internal.document.XMLModelImpl.setStructuredDocument(Unknown Source)
com.ibm.sse.model.AbstractModelLoader.load(Unknown Source)
com.ibm.sse.model.ModelManagerImpl._commonGetModel(Unknown Source)
com.ibm.sse.model.ModelManagerImpl._commonGetModel(Unknown Source)
com.ibm.sse.model.ModelManagerImpl.getModelForRead(Unknown Source)
com.ibm.sse.model.jsp.internal.java.search.JSPSearchDocument.createCompilationUnit(Unknown Source)
com.ibm.sse.model.jsp.internal.java.search.JSPSearchDocument.<init>(Unknown Source)
com.ibm.sse.model.jsp.internal.java.search.JSPSearchSupport.addJspFile(Unknown Source)
com.ibm.sse.model.jsp.internal.java.search.JSPIndexManager$2.visit(Unknown Source)
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:68)
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:77)
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:77)
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:77)
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:77)
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:77)
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:49)
com.ibm.sse.model.jsp.internal.java.search.JSPIndexManager$1.run(Unknown Source)
org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)I am running MyEclipse 3.8.1 with Eclipse 3.0 on Redhat Enterprise 3 Linux.
Is this a bug, or do I have my project misconfigured? I was running this project with MyEclipse 3.8 beta 2 and I didn’t have any problems.
September 8, 2004 at 11:55 am #214781
Riyad KallaMemberIs this a normal Java Project and not a Web Project? Can you try and add web capabilities to this problem?
September 8, 2004 at 1:29 pm #214801
Keith FettermanMemberI guess its a normal Java Project. I created the project before I installed MyEclipse. As I asked in the thread “”Unable to create part” error in jsp files”, what will be the impact to adding Web capabilities?
This project is not a simple, straight forward Web application that conforms to the standard directory structure. It actually contains two separate Web applications, with their own WEB-INF directories. The Webroot of each application is located in separate subdirectories. The source lives in its own separate subdirectory and is shared between the two Web applications. Do you think adding Web capabilities will work?
September 8, 2004 at 2:20 pm #214809
Riyad KallaMemberkeith,
I answered the “what will happen” question in the other thread (incase you wanted to know) but as far as if web caps will work or not, can you give me a more concrete layout of your project? You can wrap your answer in code tags so it keeps the indentation.September 8, 2004 at 3:01 pm #214818
Keith FettermanMemberHere is the directory structure of my Eclipse project. The files
common to the Web applications (Web apps.) and the two Web
applications are located under the directory “apps/”.apps/ apps/common/ <= files and src common to all Web applications apps/common/lib/ <= Jar files common to all Web applications apps/common/src/ <= common Java src for all Web applications apps/common/web/ <= static HTML files used by Apache, not used by Web apps. apps/common/bin/ <= Eclipse Java compile directory apps/se/ <= A Web application apps/se/web/ <= The webroot of the application apps/se/web/WEB-INF/ <= contains web.xml apps/se/web/WEB-INF/classes <= compiled classes for app. apps/website/ <= Another Web application apps/website/web/ <= The webroot of the application apps/website/web/WEB-INF/ <= contains web.xml apps/website/web/WEB-INF/classes/ <= compiled classes for app. apps/website/web/admin/ <= a subdirectory containing JSP apps/website/web/cms/ <= same apps/website/web/csr/ <= same The following directories exist in the project but are not used by the Web apps.: bin/ cgi-bin/ database/ doc/ build/ dist/September 8, 2004 at 4:37 pm #214828
Riyad KallaMemberkeith,
This looks very dooable, I would highly suggest a copy of your workspace, or a new “testing” workspace to try it out first though, but here’s my take (NOTE: Names are your choice):1) Create a “Java Project” named “Common” using the following:
apps/common/ <= Project root apps/common/lib/ <= Remains as lib directory apps/common/src/ <= Source directory apps/common/bin/ <= Output directory2) Create a “Web Module Project” named “SE” using the following:
apps/se/ <= Project root apps/se/web/ <= WebRoot directory apps/se/web/WEB-INF/classes/ <= Output directory (should be automatically picked up)3) Create a “Web Module Project” named “Website” using the following:
apps/website/ <= Project root apps/website/web/ <= WebRoot directory apps/website/web/WEB-INF/classes/ <= Output directory (should be automatically picked up)4) Set “Common” as a project dependency for the “SE” and “Website” projects, also add “Common” to their Java Build Paths under the “Project” tab.
5) Add any JARs from the Common project that the “SE” or “Website” projects need via the “Add External JAR” button in the Java Build Path settings.
6) Adjust the “External Library” and “Dependent Project” deployment policies for the “SE” and “Website” projects accordingly so the necessary resources from “Common” are deployed along with them.That should do it. Again please try this in another workspace or test setup, while I am confident you can get this to work, I don’t want anything to screw you up or cause you to have to stop working.
September 8, 2004 at 6:22 pm #214846
Keith FettermanMemberThanks, I will give this a try. I have one question. In your post, you showed the following:
@support-rkalla wrote:
keith,
2) Create a “Web Module Project” named “SE” using the following:apps/se/ <= Project root apps/se/web/ <= WebRoot directory apps/se/web/WEB-INF/classes/ <= Output directory (should be automatically picked up)You show the “apps/se/web/WEB-INF/classes/” directory as an output directory. What will be written here? Will it be compiled classes from the Common project? I haven’t used projects that depend on other projects in Eclipse yet.
Currently, I use resin 2.1.14 for development. I have it configured to compile the classes located at “apps/common/src” to the “WEB-INF/classes/” directory for each Web application. This way, I don’t have to deploy my project during development.
September 8, 2004 at 6:47 pm #214849
Riyad KallaMemberYou show the “apps/se/web/WEB-INF/classes/” directory as an output directory. What will be written here?
The only thing written to the output dir would be class files FROM the Web MOdule Project itself, if you don’t have any, then nothing will be written. Sorry I missed that the Java Project contained all the sources.
-
AuthorPosts
