stefano Tra

Greenhorn
+ Follow
since Apr 09, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by stefano Tra

seems to losse the value in statful ejb

i've done some trial:.

an action

@InjectEJB(name = "WAP-Shop/TestDeiBeanBean")
TestDeiBeanLocal tdb;
public String execute() throws Exception {
// scb = lookupShopCartBean();
System.out.println("value --> " + tdb.value());
System.out.println("setTrue " + tdb.setTrue());

...}

the ejb

private boolean b = false;

public boolean value() {
return b;
}

public boolean setTrue() {
b = true;
return b;
}

public boolean setFalse() {
b = false;
return b;
}


the output is:


21:27:46,062 INFO [STDOUT] value --> false
21:27:46,078 INFO [STDOUT] setTrue true

--lose data--
21:27:47,578 INFO [STDOUT] value --> false
21:27:47,578 INFO [STDOUT] setTrue true

--mantain data--
21:27:48,265 INFO [STDOUT] value --> true
21:27:48,265 INFO [STDOUT] setTrue true

--lose data--
21:27:48,671 INFO [STDOUT] value --> false
21:27:48,671 INFO [STDOUT] setTrue true
21:27:49,453 INFO [STDOUT] value --> false
21:27:49,453 INFO [STDOUT] setTrue true


--manatain data
21:27:49,875 INFO [STDOUT] value --> true
21:27:49,875 INFO [STDOUT] setTrue true
21:27:50,328 INFO [STDOUT] value --> true
21:27:50,328 INFO [STDOUT] setTrue true
21:27:50,734 INFO [STDOUT] value --> true
21:27:50,734 INFO [STDOUT] setTrue true
21:27:51,046 INFO [STDOUT] value --> true
21:27:51,046 INFO [STDOUT] setTrue true
21:27:51,671 INFO [STDOUT] value --> true
21:27:51,671 INFO [STDOUT] setTrue true
21:27:52,265 INFO [STDOUT] value --> true
21:27:52,265 INFO [STDOUT] setTrue true

what appends?
14 years ago
WORKS! i soved it!

so, the netbeans when i clean and build the projects put all the lib (jar) inside the root of the ear.
so the ear is:

all the jars
web allpication.war
ejb application.jar

the jars has to be in WEB-INF/lib of the webApplication, someone knows how to do that? i've to move it by myself?

14 years ago
someone can help me?
14 years ago
well,
this is the struts.xml



the tiles.xml




web.xml



14 years ago
commons-beanutils-1.7.0.jar
commons-chain-1.2.jar
commons-collections-3.2.jar
commons-digester-1.8.jar
commons-fileupload-1.2.1.jar
commons-io-1.3.2.jar
commons-lang-2.3.jar
commons-logging-1.0.4.jar
commons-logging-api-1.1.jar
commons-validator-1.3.1.jar
freemarker-2.3.13.jar
ognl-2.6.11.jar
struts2-core-2.1.6.jar
struts2-tiles-plugin-2.1.6.jar
tiles-api-2.0.6.jar
tiles-core-2.0.6.jar
tiles-jsp-2.0.6.jar
xwork-2.1.2.jar

these are my libraries.

the error now is:

14 years ago
i think there is but i'm not write it down.
but someone has ever used the jboss with struts2 and tiles2?

because i've read over the net that's quite impossible to use struts2 and tiles2 inside jboss.

14 years ago
have you solved it?

I've put all the libraries inside the Jboss lib but it doesn't work anymore.

I'm looking for a solution but it's seems to be impossible to do.

i used Netbeans.

14 years ago
hi.
the error is changed:

Error configuring application listener of class org.apache.struts2.tiles.StrutsTilesListener
java.lang.ClassNotFoundException: org.apache.struts2.tiles.StrutsTilesListener

i've put these libraries:
commons-beanutils-1.8.0.jar
commons-digester-1.8.1.jar
commons-logging-1.0.4.jar
commons-logging-api-1.1.jar
freemarker-2.3.8.jar
ognl-2.6.11.jar
struts2-core-2.0.14.jar
tiles-api-2.1.2.jar
tiles-compat-2.1.2.jar
tiles-core-2.1.2.jar
tiles-jsp-2.1.2.jar
tiles-portlet-2.1.2.jar
tiles-servlet-2.1.2.jar
xwork-2.0.7.jar


maybe the location of struts listener is somewhere else, but where?

14 years ago

David Newton wrote:

java.lang.NoClassDefFoundError: org/apache/commons/digester/Rule


Do you have all the Tiles2 dependencies deployed?



what's it?

what libraries I've to put into my project?

i don't have here the libraries but it'll be: struts-tiles-pluging and 3 libraries with suffix tiles. isn't?
14 years ago
Hi,
is a older post but is the same as my problem.

have you solve it? how?

thanks.
14 years ago