facebook

JSP Content Assist does not work i.e. Ctrl+Shift or in Edit

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #205710 Reply

    Currently using Eclipse 2.X and JSP Content Assist does not work i.e. Ctrl+Shift or in Edit
    Also JSP does not have html preview tab but a table view tabs present

    #205714 Reply

    Riyad Kalla
    Member

    Autocomplete is invoked via CTRL-SPACE, and if you are on Linux then there is no preview as Eclipse platform provided no HTML viewer.

    #205716 Reply

    but the os is win2k and autocomplete just dosnt work in jsp editor, but does so in the java editor.

    #205717 Reply

    Riyad Kalla
    Member

    Right click on your JSP file, go to “Open With”, what is the default editor? Do you have any other plugins installed? (Lomboz, JBoss IDE, etc?). You want to open your JSP pages with MyEclipse JSP Editor.

    What version of MyEclipse are you using? Please answer the questions we ask for in the posting guidelines. Its possible that you are using a release that didn’t include the preview feature (as it is relatively new).

    #205719 Reply

    thanks.. indeed there was another plugin that was default. Had MyEcliplseJSPEditor enabled and it worked..also
    – how can i have the MyEcliplseJSPEditor set for default permanently??
    – my server startup console does not have EXTERNAL PREVIEW. how can i enable this and set as permanent option?

    #205720 Reply

    Riyad Kalla
    Member

    – how can i have the MyEcliplseJSPEditor set for default permanently??

    This is a good question, I’ll add it to the FAQ. In the mean time, you need to change the order of the editors for that parituclar file association: Window > Preferences > Workbench > File Associations, find *.jsp, and move the MyEclipse JSP Editor to the top of the list.

    – my server startup console does not have EXTERNAL PREVIEW. how can i enable this and set as permanent option?

    External preview is actually the SWT wrapper around IE (on Windows) that is a View. It is accessible under Window > Show View > Other… > Update Manager > External Preview. Again, this is another great question, I’ll add it to the FAQ.

    #205724 Reply

    thanks.. currently using jboss3. Startup looks good.. however shutdown dosnt work.. heres the console output

    Shutting down server http://–shutdown:8080
    http://–shutdown:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system%3Atype%3DServer&methodName=shutdown
    java.net.UnknownHostException: –shutdown
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
    at java.net.Socket.connect(Socket.java:452)
    at java.net.Socket.connect(Socket.java:402)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
    at sun.net.www.http.HttpClient.New(HttpClient.java:339)
    at sun.net.www.http.HttpClient.New(HttpClient.java:320)
    at sun.net.www.http.HttpClient.New(HttpClient.java:315)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:512)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:489)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:617)
    at java.net.URLConnection.getContent(URLConnection.java:585)
    at org.jboss.Shutdown.shutdown(Shutdown.java:105)
    at org.jboss.Shutdown.main(Shutdown.java:81)
    Shutdown complete

    #205725 Reply

    Riyad Kalla
    Member

    Do you have JBoss 3 configured correctly? Looks like you are missing a servername somewhere…
    Window > Preferences > MyEclipse > Application Servers > JBoss 3

    What are all your values here?

    #205726 Reply

    In this location ServerName was set to localhost, the JBOSS home dir was set to jboss root.

    #205727 Reply

    Riyad Kalla
    Member

    I don’t know which version of JBoss you are using (3.2, or 3.0) but check here:
    http://www.myeclipseide.org/FAQ+index-myfaq-yes-id_cat-19.html

    Scroll down to the bottom, there are screenshots of “properly configured servers”, so you can compare against yours.

    #205729 Reply

    its jboss3.2, as indicated below in the startup

    20:38:30,709 INFO [Server] JBoss (MX MicroKernel) [3.0.7 (CVSTag=JBoss_3_0_7 Date=200304081816)] Started in 0m:16s:634ms

    for now i have to run the shutdown.bat available in <jboss_home>\bin dir. And the startup comes up just fine. Its the stop server from myeclipse thats at fault. The server name for 3.2 is default in jboss3 preferences, which i guess shouldnt be changed.

    Please look into this as the console indicates that the servername isnt picked up i.e. http://–shutdown:8080

    #205730 Reply

    shutdown looks good now when –shutdown was removed from Optional shutdown args…even though docs say it should be there.. heres the console output, which is identical to running the shutdown.bat script in jboss/bin

    Shutting down server http://localhost:8080
    http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system%3Atype%3DServer&methodName=shutdown
    java.io.IOException: Server returned HTTP response code: 503 for URL: http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system%3Atype%3DServer&methodName=shutdown
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:791)
    at java.net.URLConnection.getContent(URLConnection.java:585)
    at org.jboss.Shutdown.shutdown(Shutdown.java:105)
    at org.jboss.Shutdown.main(Shutdown.java:81)
    Shutdown complete

    #205731 Reply

    Riyad Kalla
    Member

    joji,
    I believe you are using the wrong setup, you said you are running JBoss 3.2, but pretty clearly in the INFO log message it states version 3.0.7. As a sanity check, I ran JBoss 3.2 on my machine and get the following:

    
    21:00:14,943 INFO  [Server] JBoss (MX MicroKernel) [3.2.3 (build: CVSTag=JBoss_3_2_3 date=200311301445)] Started in 29s:112ms
    

    Double check the FAQ and follow the instructions for JBoss 3.0 and see if that fixes the problem.

Viewing 13 posts - 1 through 13 (of 13 total)
Reply To: JSP Content Assist does not work i.e. Ctrl+Shift or in Edit

You must be logged in to post in the forum log in