You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by James Coltman <ja...@majorband.co.uk> on 2001/06/05 11:48:28 UTC

Problem with Turbine 2.1?

I'm getting the following errors when I try to compile a new version of the
tdk. These are the steps I have taken:

	1. I have build a newapp.
	2. Copied in my version of the schema.
	3. Run ant init.
	4. Checked the conf file.
	5. Run ant.

Does anyone else get the same, or is it something to do with my set-up?
Might be missing a jar?

James

E:\Program Files\Apache Group\tdk\webapps\parioifa\WEB-INF\build>ant
Buildfile: build.xml

compile:
    [javac] Compiling 66 source files to E:\Program Files\Apache
Group\tdk\webap
ps\parioifa\WEB-INF\classes
    [javac] E:\Program Files\Apache
Group\tdk\webapps\parioifa\WEB-INF\src\java\
org\apache\turbine\flux\modules\actions\FluxAction.java:99: cannot access
javax.
servlet.http.HttpSession
    [javac] file javax\servlet\http\HttpSession.class not found
    [javac]
data.getSession().getValue(AccessControlList.SESSION
_KEY);
    [javac]                                ^
    [javac] E:\Program Files\Apache
Group\tdk\webapps\parioifa\WEB-INF\src\java\
org\apache\turbine\flux\modules\actions\FluxLogin.java:88: cannot access
javax.s
ervlet.http.HttpSessionBindingListener
    [javac] file javax\servlet\http\HttpSessionBindingListener.class not
found
    [javac]             user.setHasLoggedIn(new Boolean(true));
    [javac]                 ^
    [javac] E:\Program Files\Apache
Group\tdk\webapps\parioifa\WEB-INF\src\java\
org\apache\turbine\flux\modules\actions\FluxLogin.java:97: cannot resolve
symbol

    [javac] symbol  : method setAttribute
(java.lang.String,java.lang.Object)
    [javac] location: class javax.servlet.http.HttpSession
    [javac]
ata.getSession().setAttribute( AccessControlList.SE
SSION_KEY,
    [javac]                                ^
    [javac] E:\Program Files\Apache
Group\tdk\webapps\parioifa\WEB-INF\src\java\
org\apache\turbine\flux\modules\actions\FluxLogout.java:74: cannot resolve
symbo
l
    [javac] symbol  : method getAttribute  (java.lang.String)
    [javac] location: class javax.servlet.http.HttpSession
    [javac]         if
(data.getSession().getAttribute(AccessControlList.SESSION
_KEY)!=null)
    [javac]                            ^
    [javac] E:\Program Files\Apache
Group\tdk\webapps\parioifa\WEB-INF\src\java\
org\apache\turbine\flux\modules\actions\FluxLogout.java:75: cannot resolve
symbo
l
    [javac] symbol  : method removeAttribute  (java.lang.String)
    [javac] location: class javax.servlet.http.HttpSession
    [javac]
data.getSession().removeAttribute(AccessControlList.SESS
ION_KEY);
    [javac]                            ^
    [javac] 5 errors

BUILD FAILED



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


Intake issue

Posted by James Coltman <ja...@majorband.co.uk>.
I am trying to implement an application form using Intake that uses multiple
pages. I'd like to allow the user to return to previously filled in pages
(containing their entered data) to update the form when they realise they
have made mistakes.

To me the best way to do this is to save the returned group object to the
users session using the setTemp method.
Unfortunately due to the way in which the Java and the Intake tool works
when I access the session for the group later it doesn't contain any data.
It would appear that this is because any group objects I add to the session
are referencing Intake which is being cleared between requests.

A possible way to get round this reference issue would be to update the
Group object to allow cloning and then store a cloned version of the group
in the session.

I think the IntakeTool will also need updating to allow me to copy this
group information back into the tool before returning to a previously
visited page.

Comments?


James


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


RE: Problem with Turbine 2.1?

Posted by Toni Karhu <to...@remoteapps.com>.
seems like you might be missing the servlet.jar file

-----Original Message-----
From: James Coltman [mailto:james_coltman@majorband.co.uk]
Sent: 05 June 2001 10:48
To: turbine-dev@jakarta.apache.org
Subject: Problem with Turbine 2.1?


I'm getting the following errors when I try to compile a new version of the
tdk. These are the steps I have taken:

	1. I have build a newapp.
	2. Copied in my version of the schema.
	3. Run ant init.
	4. Checked the conf file.
	5. Run ant.

Does anyone else get the same, or is it something to do with my set-up?
Might be missing a jar?

James

E:\Program Files\Apache Group\tdk\webapps\parioifa\WEB-INF\build>ant
Buildfile: build.xml

compile:
    [javac] Compiling 66 source files to E:\Program Files\Apache
Group\tdk\webap
ps\parioifa\WEB-INF\classes
    [javac] E:\Program Files\Apache
Group\tdk\webapps\parioifa\WEB-INF\src\java\
org\apache\turbine\flux\modules\actions\FluxAction.java:99: cannot access
javax.
servlet.http.HttpSession
    [javac] file javax\servlet\http\HttpSession.class not found
    [javac]
data.getSession().getValue(AccessControlList.SESSION
_KEY);
    [javac]                                ^
    [javac] E:\Program Files\Apache
Group\tdk\webapps\parioifa\WEB-INF\src\java\
org\apache\turbine\flux\modules\actions\FluxLogin.java:88: cannot access
javax.s
ervlet.http.HttpSessionBindingListener
    [javac] file javax\servlet\http\HttpSessionBindingListener.class not
found
    [javac]             user.setHasLoggedIn(new Boolean(true));
    [javac]                 ^
    [javac] E:\Program Files\Apache
Group\tdk\webapps\parioifa\WEB-INF\src\java\
org\apache\turbine\flux\modules\actions\FluxLogin.java:97: cannot resolve
symbol

    [javac] symbol  : method setAttribute
(java.lang.String,java.lang.Object)
    [javac] location: class javax.servlet.http.HttpSession
    [javac]
ata.getSession().setAttribute( AccessControlList.SE
SSION_KEY,
    [javac]                                ^
    [javac] E:\Program Files\Apache
Group\tdk\webapps\parioifa\WEB-INF\src\java\
org\apache\turbine\flux\modules\actions\FluxLogout.java:74: cannot resolve
symbo
l
    [javac] symbol  : method getAttribute  (java.lang.String)
    [javac] location: class javax.servlet.http.HttpSession
    [javac]         if
(data.getSession().getAttribute(AccessControlList.SESSION
_KEY)!=null)
    [javac]                            ^
    [javac] E:\Program Files\Apache
Group\tdk\webapps\parioifa\WEB-INF\src\java\
org\apache\turbine\flux\modules\actions\FluxLogout.java:75: cannot resolve
symbo
l
    [javac] symbol  : method removeAttribute  (java.lang.String)
    [javac] location: class javax.servlet.http.HttpSession
    [javac]
data.getSession().removeAttribute(AccessControlList.SESS
ION_KEY);
    [javac]                            ^
    [javac] 5 errors

BUILD FAILED



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org