Help Not Working [message #29827] |
Wed, 02 March 2005 21:14  |
Eclipse User |
|
|
|
Originally posted by: jim_stanley.earthlink.net
Hello,
I'm a fairly experienced programmer new to Eclipse. Help won't come up
(Windows XP SP2). I've changed the default browser to Firefox, but IE
still comes up and tells me it can't find the file. IIS is running, and
a default HTML file comes up under http://localhost.
Does Eclipse perhaps use its own web server? What's the next step?
Thanks in advance
Jim Stanley
Media Services
|
|
|
Re: Help Not Working [message #29843 is a reply to message #29827] |
Thu, 03 March 2005 11:05   |
Eclipse User |
|
|
|
Originally posted by: first_dot_last.somanetworks.com
Jim Stanley wrote:
> Hello,
>
> I'm a fairly experienced programmer new to Eclipse. Help won't come up
> (Windows XP SP2). I've changed the default browser to Firefox, but IE
> still comes up and tells me it can't find the file. IIS is running, and
> a default HTML file comes up under http://localhost.
>
> Does Eclipse perhaps use its own web server? What's the next step?
Yes eclipse help is served from its own web service, in the eclipse IDE
select Help->Help Contents. This will start the help service and open a
browser (in Windows XP, I think you get a built-in browser) Once the
service is started you can point any other browser at it using the URL
http://127.0.0.1:55508/help/index.jsp (Assuming you have not changed the
Help preferences)
Note, it you exit the IDE, the help service will no longer be available.
You can also start a standalone help server with the following command:
java -classpath (eclipse_home)/plugins/org.eclipse.help.base_3.0.1\
-command start -eclipsehome (eclipse_home) -port 8081
I use the following script on my Linux box (bash shell) to start the
server. You can also change the "-command" command to stop to shut it down.
---------------- helpserver -----------------------------
#!/bin/bash
#
export JAVA_HOME=/usr/java/jdk1.5.0_01
export PATH=$PATH:/$JAVA_HOME/bin
export ECLIPSE_HOME=/var/www/html/eclipse
export HELP_HOME=${ECLIPSE_HOME}/plugins/org.eclipse.help.base_3.0. 1
CMD="start"
#
JCMD="java -classpath $HELP_HOME/helpbase.jar
org.eclipse.help.standalone.Infocenter -command ${CMD} -eclipsehome
$ECLIPSE_HOME -port 8081"
echo "running ${JCMD}"
${JCMD} >/tmp/helpserver.log 2>&1 &
---------------------------------------------------------
Note, all of the paths will need to be changed to match you environment.
Hope this help,
ronw
>
> Thanks in advance
>
> Jim Stanley
> Media Services
|
|
|
|
|
|
Re: Help Not Working - Some Progress [message #30438 is a reply to message #29955] |
Tue, 08 March 2005 18:58   |
Eclipse User |
|
|
|
Originally posted by: jim_stanley.earthlink.net
Ron,
Some more mysteries:
At first I suspected the firewall, so I disabled that. Same problem. I
stopped IIS - same problem.
I retried the batch file and got the app server to start. Here's the
(Windows XP) command line:
java -classpath
C:\Dev\eclipse\plugins\org.eclipse.help.base_3.0.0\helpbase. jar
org.eclipse.help.standalone.Infocenter -command start -eclipsehome
C:\Dev\Eclipse -port 8501
Once that starts, I can bring up an independent browser and get the
redirected help file at http://localhost:8501.
Cool so far. Stop the process, start Eclipse, fire up the help. Still
no joy. The failure also doesn't log. But - I start the batch file,
run Eclipse, fire up help, and I get an error message which is logged as
follows:
================================
org.eclipse.core.runtime.CoreException: Exception occurred starting
application server.
at
org.eclipse.tomcat.internal.TomcatAppServer.start(TomcatAppS erver.java:207)
at
org.eclipse.help.internal.appserver.AppserverPlugin.startWeb appServer(AppserverPlugin.java:145)
at
org.eclipse.help.internal.appserver.AppserverPlugin.getAppSe rver(AppserverPlugin.java:42)
at
org.eclipse.help.internal.appserver.WebappManager.start(Weba ppManager.java:57)
at
org.eclipse.help.internal.base.BaseHelpSystem.ensureWebappRu nning(BaseHelpSystem.java:182)
at
org.eclipse.help.internal.base.HelpDisplay.displayHelpURL(He lpDisplay.java:156)
at
org.eclipse.help.internal.base.HelpDisplay.displayHelp(HelpD isplay.java:48)
at
org.eclipse.help.ui.internal.DefaultHelpUI.displayHelp(Defau ltHelpUI.java:43)
at org.eclipse.ui.help.WorkbenchHelp.displayHelp(WorkbenchHelp. java:210)
at
org.eclipse.ui.internal.actions.HelpContentsAction$1.run(Hel pContentsAction.java:78)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.actions.HelpContentsAction.run(HelpC ontentsAction.java:76)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:881 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:915)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:866)
at
org.eclipse.jface.action.ActionContributionItem$7.handleEven t(ActionContributionItem.java:785)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled
Code))
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2772)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2431)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:96)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:79)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:371)
at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)
My build info is as follows:
eclipse.buildId=I200406251208
java.fullversion=J2RE 1.4.1 IBM Windows 32 build cn141-20030516 (JIT
enabled: jitc)
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
==============
The other strange thing I notice is that the javaw.exe process still
hangs around after Eclipse exits. It doesn't do that on my other
machine where the help works. Does this provide some sort of clue?
Thanks again for all your help!
Jim Stanley
Media Services, Inc.
|
|
|
|
|
|
Re: Help Not Working [message #42932 is a reply to message #40316] |
Tue, 29 March 2005 11:27  |
Eclipse User |
|
|
|
Try uninstalling McAfee antivirus.
"Joe Frisbie" <jf-eclipse@stan.mit.edu> wrote in message
news:cd17f27ec0ead9bdfd58c9b5af9199e7$1@www.eclipse.org...
> Hello,
>
> I too am a long-time programmer trying eclipse for the first time. Help
> does not work for me either. Accessing most things produces the message
> "The document that you have requested is not available. The link may be
> wrong, or you may not have the corresponding product feature installed."
> in the browser -- the built in browser, an eclipse "external browser" or
> from a browser directly via its port number (bypassing eclipse). Setting
> the help preferences to 127.0.0.1 and a specific port number does not
help.
> The behavior is the same in versions 3.0.1, 3.0.2 and 3.1M5. All on
> windows 2000 SP4 with a fresh jdk 1.5.0_02.
>
> Any thoughts, suggestions or fixes would be welcome.
>
> Poking around yields the log file:
> C:\Documents and
>
Settings\jf\workspace\.metadata\.plugins\org.eclipse.tomcat\ catalina.2005-03
-25.log
> which contains:
>
> WebappLoader[]: Deploying class repositories to work directory
> C:\Documents and
> Settings\jf\workspace\.metadata\.plugins\org.eclipse.tomcat\ ROOT
> ContextConfig[]: Added certificates -> request attribute Valve
> StandardManager[]: Seeding random number generator class
> java.security.SecureRandom
> StandardManager[]: Seeding of random number generator has been completed
> StandardWrapper[:default]: Loading container servlet default
> StandardWrapper[:invoker]: Loading container servlet invoker
> CoyoteConnector Coyote can't register jmx for protocol
> WebappLoader[/help]: Deploying class repositories to work directory
> C:\Documents and
> Settings\jf\workspace\.metadata\.plugins\org.eclipse.tomcat\ help
> WebappLoader[/help]: Deploy JAR /WEB-INF/lib/jsp.jar to
>
c:\Software\e\eclipse\plugins\org.eclipse.help.webapp_3.0.0\ WEB-INF\lib\jsp.
jar
> WebappLoader[/help]: Deploy JAR /WEB-INF/lib/servlets.jar to
>
c:\Software\e\eclipse\plugins\org.eclipse.help.webapp_3.0.0\ WEB-INF\lib\serv
lets.jar
> ContextConfig[/help] Exception processing JAR at resource path
> /WEB-INF/lib/jsp.jar
> javax.servlet.ServletException: Exception processing JAR at resource path
> /WEB-INF/lib/jsp.jar
> at
>
org.apache.catalina.startup.ContextConfig.tldScanJar(Context Config.java:930)
> at
> org.apache.catalina.startup.ContextConfig.tldScan(ContextCon fig.java:868)
> at org.apache.catalina.startup.ContextConfig.start(ContextConfi g.java:647)
> at
>
org.apache.catalina.startup.ContextConfig.lifecycleEvent(Con textConfig.java:
243)
> at
>
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (LifecycleSuppor
t.java:166)
> at
> org.apache.catalina.core.StandardContext.start(StandardConte xt.java:3587)
>
> *** more stack stuff elided and then: ***
>
> ----- Root Cause -----
> java.util.zip.ZipException: Access is denied
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(Unknown Source)
> at java.util.jar.JarFile.<init>(Unknown Source)
> at sun.net.www.protocol.jar.URLJarFile.<init>(Unknown Source)
> at sun.net.www.protocol.jar.URLJarFile$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
> at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
> at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
> at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
> at sun.net.www.protocol.jar.JarURLConnection.getJarFile(Unknown Source)
> at
>
org.apache.catalina.startup.ContextConfig.tldScanJar(Context Config.java:906)
> at
> org.apache.catalina.startup.ContextConfig.tldScan(ContextCon fig.java:868)
>
> *** still more stack stuff elided and then: ***
>
> ContextConfig[/help]: Marking this application unavailable due to previous
> error(s)
> StandardManager[/help]: Seeding random number generator class
> java.security.SecureRandom
> StandardManager[/help]: Seeding of random number generator has been
> completed
> StandardContext[/help]: Context startup failed due to previous errors
>
> Thanks,
> Joe
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.10577 seconds