For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 12 replies, 4 voices, and was last updated 21 years, 10 months ago by
Riyad Kalla.
-
AuthorPosts
-
kfarley215MemberWhen I run the tutorial HelloWorld it shows Preferences -> Editors -> JSP/HTML -> turn on/off JSP compiler. This is not how Preferences -> Editors works now. The property sheet has changed.
Also, when running the Tutorial and “auto complete import directive” occurs for the HelloWorld class when editing the JSP file. This does not work, nor can I find a property sheet relevant to this, thus auto-importing isn’t working in my install right now.
Overall, I’m very impressed with the product and the documentation. I’m running on Tomcat and deploying etc, but it appears the documentation (as always) is not at the same revision as the product.
October 6, 2004 at 9:21 am #216989
Riyad KallaMember1) New documentation is in the works now, sorry you had to run into this trouble.
2) The missing auto import feature will be back in 3.8.3 (we completely changed our editors code base between 2.7 and 3.8)
October 6, 2004 at 10:20 am #217002
sheinekeMemberWould you please make sure that the auto import feature will be back in version 3.8.3? It was announced to be in version 3.8.2 already and now it has been postponed again. It is very annoying to manually enter the import statements.
October 6, 2004 at 10:37 am #217006
Riyad KallaMembersheineke,
The issue we had filed for this was actually closed this morning as Fixed with implementation details from the developer (who had been working on it since Monday). It will behave as it did before. We know that the lack fo this feature was seriously annoying, thank you for hanging in there.October 6, 2004 at 12:27 pm #217030
kfarley215MemberRiyad,
Thx for the quick reply, at least we know it is moving thru the pipe. To continue on the thread of smoothly getting HelloWorld working….
On a good note, I have Tomcat 5 working and the correct JDK JRE configured etc. so I get real debugger msgs….however….
1. Configuring a Run As … needing a main class indication is not resolving …
2. The app runs on Tomcat in a browser but the debugger reports that it can’t resolve the HelloWorld class. The default classpath should work tho right?
So, I can develop and deploy….and the debugger is giving me real msgs…..but I can’t figure out how to get the classpath working correctly in the IDE. I hate to miss something obvious but I have been pointing and clicking thru all the property sheets and haven’t seen anything yet.
I appreciate the support!
October 6, 2004 at 12:32 pm #217032
Riyad KallaMemberWhat are you trying to run? The helloworld web application? If you deploy it, and then start the application server, you run it by opening a browser and goign to: http://localhost:8080/helloWorld (where helloWorld is whatever you name the web context)… you don’t need to try and run any class files.
October 6, 2004 at 2:04 pm #217041
kfarley215MemberAgreed. It runs in Tomcat directly….it doesn’t run in the debugger however. I am merely following the steps of the Tutorial to ensure I have everything working.
Debugger is reporting “class not found” and can’t find a main either. Must be something basic.
October 6, 2004 at 3:38 pm #217050
Riyad KallaMemberCan you show me the code for your JSP page, and the code for your Class and tell me ‘how’ you are going about running this?
With web applications, there is no “main” method that gets executed. It all depends on which page your browser requests, and how you have that mapped to a class.
October 6, 2004 at 3:46 pm #217053
kfarley215Member1. JSP Page:
<%@ page import=”com.fcs.tutorial.HelloWorld” %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+”://”+request.getServerName()+”:”+request.getServerPort()+path+”/”;
%><!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<base href=”<%=basePath%>”><title>My JSP ‘helloWorld.jsp’ starting page</title>
<meta http-equiv=”pragma” content=”no-cache”>
<meta http-equiv=”cache-control” content=”no-cache”>
<meta http-equiv=”expires” content=”0″>
<meta http-equiv=”keywords” content=”keyword1,keyword2,keyword3″>
<meta http-equiv=”description” content=”This is my page”><!–
<link rel=”stylesheet” type=”text/css” href=”styles.css”>
–>
</head><body>
<%
HelloWorld hw = new HelloWorld();
out.println(“message = ” + hw.helloWorld());
%>
</body>
</html>2. java class
/*
* Created on Oct 6, 2004
*
* TODO To change the template for this generated file go to
* Window – Preferences – Java – Code Style – Code Templates
*/
package com.fcs.tutorial;/**
* @author Kevin Farley
*
* TODO To change the template for this generated type comment go to
* Window – Preferences – Java – Code Style – Code Templates
*/
public class HelloWorld {public String helloWorld() {
return “hello world”;
}
public void main(){}
}3. Running via “Debug” which asks me for a Build config which asks me for a main class.
4. I built this project via the Tutorial as a J2EE Web Application
October 6, 2004 at 3:55 pm #217054
Riyad KallaMemberKevin,
Everything looks right, but when you are running a web application you do not run its files via the Eclipse Run dialogs. After deploying the application, you run the application server used to host your application, and then navigate to it using a browser. If you have a breakpoint set on the line:return "hello world";In your HelloWorld class, then when the helloworld.jsp page is displayed and it gets down to this line:
out.println("message = " + hw.helloWorld());It will call into your class code, and the breakpoint in that method will be hit. That is how debugging in a web application works. This is shown in the Web Application tutorial (using the browser) it does not show running the class independently via the Eclipse workbench…
October 6, 2004 at 4:35 pm #217061
kfarley215MemberAha! So easy….sorry…. in Dreamweaver and ASP.NET as well as Visual Studio debugging…the IDE always launches the debug session.
All is well…thx for the excellent support. Extremely quick turn around!
October 22, 2004 at 12:02 pm #218182
Sean FergusonMemberyeah, i wish it was part of the run/debug button. that way I can just hit the hotkey or click on the icon and have it run the last session. i hate having to click on the Run/Stop Servers dropdown and selecting the only one I ever run. 🙂
October 22, 2004 at 12:46 pm #218188
Riyad KallaMembersirfergy,
We aren’t fond of this either and plan to do something about it (major) when we get some breathing time. -
AuthorPosts
