[Tomcat, HTTPD, Servlets & JSP] - Guys, EL expression/JSTL tags just display literally on my p
by sepgs2004
I have JBoss 4.2.2, downloaded this Apache Taglibs standard.jar and jstl.jar and put these jars in jboss/server/default/lib directory; got past the compilation errors. Now on my rendered HTML page, EL expression just gets printed as it is in JSP, it does not get evaluated, seems like JBoss JSP compiler just does not apply tag library.
However my java scriptlet prints the values correctly. Can you guys help me. Thanks for your time.
Following is my JSP code
| <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
| <%@ page import="java.util.ArrayList" %>
| <%@ page import="com.model.Friends" %>
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
| <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
| <html>
| <head>
| ...
| <%
| ArrayList friendsList = (ArrayList) request.getAttribute("friendsList");
| if (friendsList != null) {
| int i = 0;
| for (i=0; i<friendsList.size(); i++)
| {
| Friends f = (Friends) friendsList.get(i);
| %>
| <%=f.getFirstName()%>
| <%
| }
| }
| else {
| %>
| <%=new String("List is null")%>
| <%
| }
|
| %>
| <br/>
| <c:forEach items="${requestScope.friendsList}" var="friend">
| First name : <c:out value="${friend.firstName}" />
| Last name : <c:out value="${friend.lastName}" />
| Comments : <c:out value="${friend.comments}" />
| </c:forEach>
| ...
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136848#4136848
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136848
18 years, 1 month
[JBoss AOP] - Re: JBoss AOP thinking
by stale.pedersen@jboss.org
hi, ill try to answer a few of the issues/questions you have (i cant answer all of your questions so if there are others that can, please fill in :)
1. maven plugin:
its true that we do not have a mavenplugin for 1.5, the one in svn is tagged against the CR release and is targeted towards the 2.0 release. note that the aopcompile weaving is compatible from 1.5 to 2.0, so you could use the plugin and still run it on jboss aop 1.5.
2. build issue.
yes, regarding the dependency issue where the interceptors are located in a different module than the classes thats getting weaved i can understand your frustration. but atm i havent found any good solutions yet (if you have any suggestions please let me know, - do you know if aspectj have a way do to this?)
3. jboss aop & hibernate
yes, in the current 1.5 release there were a few issues, but afaik they are all fixed in svn.
4. debugging.
please elaborate. if you're thinking about debugging the weaving i personally think that the debug option is quite nice, its logging a lot, but then again you get all the info you need.
5. hot swap issue
yes, from what i can understand this is the issue with aop changing the code at runtime. have you tested this using compiletime weaving?
just to make sure regarding the startuptime with loadtime weaving. you minimized the target packages that was weaved to just those packages that had to be weaved?
eg. if the entities were located in com.foo.bar.entity, thats the only package that you included in the weavingoption? (and you excluded everything else?)
we are atm working hard on getting 2.0 out the door, we're tagging our last CR release atm (or it has already been tagged). there is a lot of nice stuff that we're very excited about and we have fixed a lot of the bugs that was reported in the 1.* version. we'll also try to add a tool to make it easier to compile and run aop programs.
we would also really like to update/fix/rewrite the aopplugin for eclipse, but it dont think anything will happen before 2.0.
hopefully we can help you with your issues and you'll continue using jboss aop :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136842#4136842
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136842
18 years, 1 month
[JBoss Tools (users)] - Eclipse 3.3.2 + JBoss tools 2.0.0GA + JBOSS 4.2 - new SEAM
by borner
I've built a simple shell SEAM project using Eclipse 3.3.2 + JBoss tools 2.0.0GA in accordance with the Seam Dev Tools Reference Guide at http://docs.jboss.org/tools/2.0.0.GA/seam/en/html/create_new_seam.html
I didn't create anything other than what is generated by the SEAM wizard for a new SEAM project. I just tried to deploy to do a quick sanity check.
Deployment fails because the EAR doesn't have the jboss-seam.jar file, even though it is in the EarContent directory generated by the Seam project wizard.
Is there some setting somewhere that I can look at to see where/how the EAR file is actually generated?
Thanks,
Brad
Details:
Eclipse 3.3.2 + JBoss tools 2.0.0GA + JBOSS 4.2.2 GA. I reinstalled eclipse and jboss tools from scratch and did an update to ensure a 'clean' eclipse environment.
Deploying to JBOSS 4.2 generates the following exception on the JBOSS server:
Could not initialise deployment: file:/E:/servers/jboss-4.2.2.GA/server/default/deploy/GreatRides-ear.ear
org.jboss.deployment.DeploymentException: Failed to find module file: jboss-seam.jar
at org.jboss.deployment.EARDeployer.init(EARDeployer.java:295)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
...
I have verified that the (project)-ear\EarContent directory does in fact have jboss-seam.jar in it:
(project)-ear\EarContent\
antlr-runtime.jar
drools-compiler.jar
drools-core.jar
jboss-el.jar
jboss-seam.jar
jbpm-jpdl.jar
mvel14.jar
richfaces-api.jar
When I do a jar -tvf on the generated .ear file, jboss-seam.jar (and the others) are missing:
e:/servers/jboss-4.2.2.GA/server/default/deploy $ jar -tvf GreatRides-ear.ear
0 Fri Mar 14 18:15:46 EDT 2008 META-INF/
106 Fri Mar 14 18:15:44 EDT 2008 META-INF/MANIFEST.MF
4565 Fri Mar 14 18:15:46 EDT 2008 GreatRides-ejb.jar
4240037 Fri Mar 14 18:15:46 EDT 2008 GreatRides.war
1238 Fri Mar 14 14:42:12 EDT 2008 META-INF/application.xml
290 Fri Mar 14 14:42:12 EDT 2008 META-INF/jboss-app.xml
139 Fri Mar 14 14:42:12 EDT 2008 security.drl
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136836#4136836
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136836
18 years, 1 month
[Management, JMX/JBoss] - beginners question about MBeans
by mglowacki
Hi
I would like to have a preview in runtime, how many users are currently on site. I have session scoped bean, named SessionData, which is created for each customer that visit the site. Now I would like to see how many instances are created, I suppose I could use MBeans and JMX console for that?
What I expect with this thread is an answer if I'm right, and if, please give a link if you have, to tutorial how to do it without going deeply into mbean's topics - I know it's interesting thing, but now I have enough problems with my app performance and need quick solution to measure page load :(
Thanks in advance,
Michal
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136826#4136826
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136826
18 years, 1 month