Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Windows 7 related???
Windows 7 related??? [message #524438] Wed, 31 March 2010 23:08 Go to next message
Mimi Tam is currently offline Mimi TamFriend
Messages: 33
Registered: January 2010
Member
Dear folks,

This infamous error has agonized a lot of people but they found solutions or workarounds in the end.

I tried all suggestions from all corners of the numerous development communities but to no avail.

The error is highlighted red below (at the end of this posting).

My server.xml has the following docBase context (with a seemingly good path):

.....
<Context docBase=" C:\Eclipse\eclipse\demoWorkspace\.metadata\.plugins\org.ecli pse.wst.server.core\tmp0\wtpwebapps\ROOT " path="" reloadable="false"/>

<Context docBase="C:\Eclipse\eclipse\ demoWorkspace\.metadata\.plugins\org.eclipse.wst.server.core \tmp0\wtpwebapps\demo " path="/demo" reloadable="true" source="org.eclipse.jst.j2ee.server:demo"/></Host>
</Engine>
...

I am running Tomcat 6.0, Eclipse, Spring 3, Hibernate 3, MySQL 5.1 on my Windows7 Ultimate. I tried cleaning everything and I tried deleting the server and re-add, it didn't help. In fact, I got this error only after I did a "clean..." on Tomcat. "clean...." did re-publish all the projects for me.

I encountered this problem before. No matter what I did, no effect. Finally, I had to recreate a whole new Eclipse project (with different name) to get around it. Now, again.... Shocked

This code ran fine on other non-Windows 7 OS. I ran out of to blame....could Windows 7 Ultimate has something to do with it? How can I make it work again?

Desperately seeking help! Please advice...

Many Thanks in advance.

INFO: Starting service Catalina
Mar 31, 2010 6:16:15 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Mar 31, 2010 6:16:16 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\Eclipse\eclipse\demoWorkspace\.metadata\.plugins\org.ecli pse.wst.server.core\tmp1\wtpwebapps\demo does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDi rContext.java:141)

at org.apache.catalina.core.StandardContext.resourcesStart(Stan dardContext.java:3957)
at org.apache.catalina.core.StandardContext.start(StandardConte xt.java:4126)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.jav a:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine .java:443)
at org.apache.catalina.core.StandardService.start(StandardServi ce.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer .java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578 )
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:2 88)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:41 3)
Mar 31, 2010 6:16:16 PM org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
Mar 31, 2010 6:16:16 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured

[Updated on: Wed, 31 March 2010 23:51]

Report message to a moderator

Re: Windows 7 related??? [message #524585 is a reply to message #524438] Thu, 01 April 2010 14:01 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
After right-clicking on the server and selecting "Clean...", are there
any new error messages in the Error Log view? Also, does the "demo"
directory exist or not?

Cheers,
Larry

Mimi Tam wrote:
>
> Dear folks,
> This infamous error has agonized a lot of people but they found
> solutions or workarounds in the end.
>
> I tried all suggestions from all corners of the numerous development
> communities but to no avail.
>
> The error is highlighted red below (at the end of this posting).
> My server.xml has the following docBase context:
>
> ....
> <Context docBase="
> C:\Eclipse\eclipse\demoWorkspace\.metadata\.plugins\org.ecli
> pse.wst.server.core\tmp0\wtpwebapps\ROOT " path="" reloadable="false"/>
>
> <Context docBase="C:\Eclipse\eclipse\
> demoWorkspace\.metadata\.plugins\org.eclipse.wst.server.core
> \tmp0\wtpwebapps\demo " path="/demo" reloadable="true"
> source="org.eclipse.jst.j2ee.server:demo"/></Host>
> </Engine>
> ..
>
> I am running Tomcat 6.0, Eclipse, Spring 3, Hibernate 3, MySQL 5.1 on my
> Windows7 Ultimate. I tried cleaning everything and I tried deleting the
> server and re-add, it didn't help. In fact, I got this error only after
> I did a "clean..." on Tomcat. "clean...." did re-publish all the
> projects for me.
> I encountered this problem before. No matter what I did, no effect.
> Finally, I was so exhausted trying and one of those things that I did
> worked. I have no idea what that thing is.
>
> This code ran fine on other non-Windows 7 OS. I ran out of all things
> that I can blame for....could Windows 7 Ultimate has something to do
> with it? How can I make it work again?
>
> Desperately seeking help! Please advice...
>
> Many Thanks in advance.
>
> INFO: Starting service Catalina
> Mar 31, 2010 6:16:15 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
> Mar 31, 2010 6:16:16 PM org.apache.catalina.core.StandardContext
> resourcesStart
> SEVERE: Error starting static Resources
> java.lang.IllegalArgumentException: Document base
> C:\Eclipse\eclipse\demoWorkspace\.metadata\.plugins\org.ecli
> pse.wst.server.core\tmp1\wtpwebapps\demo does not exist or is not a
> readable directory
> at org.apache.naming.resources.FileDirContext.setDocBase(FileDi
> rContext.java:141)
> at org.apache.catalina.core.StandardContext.resourcesStart(Stan
> dardContext.java:3957)
> at org.apache.catalina.core.StandardContext.start(StandardConte
> xt.java:4126)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.j
> ava:1045)
> at org.apache.catalina.core.StandardHost.start(StandardHost.jav a:719)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.j
> ava:1045)
> at org.apache.catalina.core.StandardEngine.start(StandardEngine
> .java:443)
> at org.apache.catalina.core.StandardService.start(StandardServi
> ce.java:516)
> at org.apache.catalina.core.StandardServer.start(StandardServer
> .java:710)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:578 )
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
> ssorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:2 88)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:41 3)
> Mar 31, 2010 6:16:16 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error in resourceStart()
> Mar 31, 2010 6:16:16 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error getConfigured
Re: Windows 7 related??? [message #908811 is a reply to message #524585] Thu, 06 September 2012 03:36 Go to previous messageGo to next message
Alejo Ceballos is currently offline Alejo CeballosFriend
Messages: 1
Registered: September 2012
Junior Member
It's a little late, and you did not specified it on your post, but if you are using maven plugin perhaps I can help...

I had a hard time to make it work, but thanks to "Alexander Pogrebnyak" I was able to make Eclipse Web Projects work with Maven through m2e:

Before starting, I must say that I'm a very suspicious man, so I always start by cleaning all my projects using "Eclipse -> Project -> Clean..." menu (without "start a build immediately" option checked). I also do not have "Eclipse -> Project -> Build Automatically" option checked.

By the way, I suppose that you will have your m2e plugin installed already, or what I'm going to state has no meaning...

Well, let's start:


**First, bye bye Server configuration:**

1) If your have any project in a previous server configuration, remove it (right click on the server and select "Add and remove" option)

2) Clean your server work directory (right click on the server and select "Tomcat Server Work Directory")

3) Clean the compiled "leftovers" (right click on the server and select "Clean")

(I told you, I'm a very suspicious guy)

4) Remove your server configuration from the "Servers" tab

5) Completely delete your "Servers" project/folder (shown in your "Project Explorer" tab)

6) BONUS: I also remove my server runtime environment ("Eclipse -> Window -> Preferences -> Server -> Runtime Environments")


**Second, "Maven clean" (if your web project has a "Maven nature"):**

1) Right click your web project

2) "Pop up Menu -> Run As -> Maven clean"

This should wipe out your target folder


**Third, Instal m2e WTP integration (yeah! It does not come as "default". One whole day to figure it out):**

1) Open Maven "Discovery" option (Eclipse -> Windows -> Preferences -> Maven -> Discovery)

2) Press "Open Catalog" Button (a "m2e Marketplace" window should appear)

3) Scroll down until you find the "WTP Integration" option, then "check" it!

4) Press "Finish"

5) A "plugin screen like" will appear. "Next", "Next", "Agree", blah, blah, blah...


**Fourth, leave Eclipse than run it again:**

1) If not asked to restar Eclipse (that I find hard to believe you won't), restart it yourself!


**Fifth, maven reintegration:**

1) Add Maven nature to the project (Right click your web project, "Pop up Menu -> Configure -> Convert to Maven Project")

2) Update your maven configuration (Yeah, yeah, suspicious, I know). Right click your web project again, now with a "M" on its icon ("Pop up Menu -> Maven -> Update Project")

3) Run a maven install (Right click your web project, "Pop up Menu -> Run As -> Maven install")

4) Build your project ("Eclipse -> Project -> Build All")


**Sixth, put it all to work:**

1) Deploy and run your web application (Right click your web project, "Pop up Menu -> Run As -> Run on Server")

2) You will be asked to create another server configuration. It will create the "Servers" project/folder again, but that's the way it is.

That's it!!! I gotta admit, once I ran the server, it didn't work, but this time (i dunnot know why) "Log4J" libraries could not be found. After one "project clean" + "maven clean" and one "maven install" + "project build" another message stating that my Servlet class could not be found. Once again, I executed a "project clean" + "maven clean" and a "maven install" + "project build" and "voila"!!! It worked (And that's why I'm so suspicious).

I was starting to get worried with this new Juno + m2e double... Never had this kind of problem with Indigo or Ganymede... But I guess I can trust Eclipse again (can I?)

Hope it helps you...
Re: Windows 7 related??? [message #910623 is a reply to message #908811] Mon, 10 September 2012 05:48 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4434
Registered: July 2009
Senior Member

It's a typo (either here or in your server.xml) that your attribute values have extraneous spaces, right? Otherwise, please elaborate on what was included when you "tried all suggestions from all corners of the numerous development communities but to no avail."

_
Nitin Dahyabhai
Eclipse Web Tools Platform

[Updated on: Mon, 10 September 2012 05:50]

Report message to a moderator

Previous Topic:WTP 3.4 XSD Schema Editor: bug report
Next Topic:Making catalog contributions
Goto Forum:
  


Current Time: Fri Apr 19 18:13:54 GMT 2024

Powered by FUDForum. Page generated in 0.03074 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top