Francisco Llaryora

Greenhorn
+ Follow
since Dec 30, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Francisco Llaryora

Hi to all!

For some time, the language groovy is used to teach the benefits of functional programming.
What is the advantage of using java 8 over languages ​​like groovy/scala?

Thank you,
Francisco.
10 years ago
Hi Bill Gorder!
I did move the contents of the .m2/repository to other folder, and then i did create a new Spring MVC template project.
And after copy the problems.

Sory for my poor english. What is a "bundlor"?
or what do you mean with "bundlor jars" ?
12 years ago
Hello vijayakrishna Mikkilineni and Bill Gorder!
Which template project are you creating? Spring MVC Project (in home.jsp try to show the server time)

Ok, i cut and paste the files ("just in case" for other maven project ) in another location.
This are my "problems" in my problem view.
Description Resource Path Location Type
Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core" home.jsp /Lucky/src/main/webapp/WEB-INF/views line 1 JSP Problem
Controller cannot be resolved to a type HomeController.java /Lucky/src/main/java/ar/com/lucky line 17 Java Problem
Logger cannot be resolved to a type HomeController.java /Lucky/src/main/java/ar/com/lucky line 20 Java Problem
Logger cannot be resolved to a type HomeController.java /Lucky/src/main/java/ar/com/lucky line 27 Java Problem
LoggerFactory cannot be resolved HomeController.java /Lucky/src/main/java/ar/com/lucky line 20 Java Problem
Model cannot be resolved to a type HomeController.java /Lucky/src/main/java/ar/com/lucky line 26 Java Problem
RequestMapping cannot be resolved to a type HomeController.java /Lucky/src/main/java/ar/com/lucky line 25 Java Problem
RequestMethod cannot be resolved to a variable HomeController.java /Lucky/src/main/java/ar/com/lucky line 25 Java Problem
The attribute method is undefined for the annotation type RequestMapping HomeController.java /Lucky/src/main/java/ar/com/lucky line 25 Java Problem
The attribute value is undefined for the annotation type RequestMapping HomeController.java /Lucky/src/main/java/ar/com/lucky line 25 Java Problem
The import org.slf4j cannot be resolved HomeController.java /Lucky/src/main/java/ar/com/lucky line 7 Java Problem
The import org.slf4j cannot be resolved HomeController.java /Lucky/src/main/java/ar/com/lucky line 8 Java Problem
The import org.springframework cannot be resolved HomeController.java /Lucky/src/main/java/ar/com/lucky line 9 Java Problem
The import org.springframework cannot be resolved HomeController.java /Lucky/src/main/java/ar/com/lucky line 10 Java Problem
The import org.springframework cannot be resolved HomeController.java /Lucky/src/main/java/ar/com/lucky line 11 Java Problem
The import org.springframework cannot be resolved HomeController.java /Lucky/src/main/java/ar/com/lucky line 12 Java Problem

Thanks for the help! ;)
Best regards!
PS:just mvc-basic/ its going to be my Template? (laugh)
12 years ago
Hi to all.

I download the mvc-basic project from the spring repository and work as well.

Now I trying create a Maven Spring project to zero in eclipse (SpringSource Tool Suite 2.9.2), using "Spring Template Project".
But it get errors: like:
Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core" home.jsp
Class 'org.springframework.web.servlet.view.InternalResourceViewResolver' not found

I trying copy the dependencies and sources from pom file of mvc-basic to the template, and nothing.

How can i create a new Spring+Maven Project in a straightforward way?
Or How can i resolve this error?
I don't want Create a Maven and then convert it in a spring project .

thanks for readme!




12 years ago
Hi, to all. I'm using Jsf with Jboss, and i have the same problem.
I try (in head tag):
<link rel="Shortcut Icon" type="image/x-icon" href="/images/favicon-sun.ico" />
but doesn't work.

Thanks !
12 years ago
JSF
Hi Tim Holloway, thanks for reply!

I'm newbie in JSF programming but old Java programmer.

Thanks for the example.
Ok : it is a sin if i put logic in JSF instead of the business layer.

i will write again if i have a new doubt .
13 years ago
JSF
Hi , to all.

I dont know what is the component that put Commandlink or OutputText (for example ) if a integer property is 1 or 2 (true or false).

<componentUnknow value="#{bean.conditional}">
</h:Commandlink value="Is open!" action="go to the next page">
<h:OutputText >sorry...Is close</h:OutputText >
</componentUnknow>

thanks for readme.!
13 years ago
JSF
Hi, Jaikiran Pai, thanks for read me.

why do you mean that my backing bean return String (class) when the property are registered as java.util.ArrayList (the property have Getterand Setter java.util.ArrayList ), and then when i quit the property the data table work?
My eclipse are wrong configured?

Thanks in advance
13 years ago
SOLVED!!!
Jaime Castillo Montes, has the same problem, he solved the problem in:
http://www.lawebdelprogramador.com/foros/JSF/1059058-DataTable.html
Why Work quitting the property ???

I even time understand less and less the JSF.
13 years ago
Tomcat Lie, be cause i put a System.out.println("Hello world") in the constructor, and print it in the console view.
the real error is:
javax.faces.FacesException: Error performing conversion of value ' of type class java.lang.String to type class java.util.ArrayList for managed bean catalogPage.

Why a dataTable expects to receive a String and not a iterable Object?
13 years ago
Hi, to All.

I'm trying to create a dataTable (HTML component)


<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<html>
<head>
<title>Widget Catalog</title>
<link rel="stylesheet" type="text/css" href="css/default.css">
</head>
<body>
<f:view>
<h:form>
<h:dataTable value="#{catalogPage.items}"
var="item"
styleClass="resultTable"
headerClass="header"
rowClasses="oddRow, evenRow">
<h:column>
<f:facet name="header">
<h:outputText value="Code"/>
</f:facet>
<h:outputText value="#{item.code}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Name"/>
</f:facet>
<h:outputText value="#{item.name}"/>
</h:column>
</h:dataTable>
</h:form>
</f:view>
</body>
</html>

but i recive
WARNING: init parameter for skin name changed to org.richfaces.SKIN
SEVERE: JSF1001: Managedbean catalogPage could not be created.
next many Exceptions
What is wrong?

My Enviroment is:
Eclipse 3.4 RS2
Jboos tools
Tomcat 6.0.26
I add custom capabilities (RichFaces 3.3) to the proyect
Thanks for read me.
13 years ago
Problem Resolved!!!

Peter Johnson Thenk you!!! (+1)
You gave me clues to resolve this, be cause i was... (i don't know how really say it in english ) i was in low spirits (no sad).
I download http://www.roseindia.net/jsf/jsf1.2/jsf12.zip

And next In Eclipse .
Windows-->Preferences--->Web-->Libreries:
Click in Mojarra, then, click in Remove.
Click in Add and select all the jars in jsf12.zip (in lib folder)

Create a new Proyect (, new jsf view) and Run it!
Best regards Peter Johnson, from Argentina!

Sorry for the Late!
13 years ago
Hi, to all. I am new in this forum.

I write be cause i can't StartUp a "Jboss Tool Web JSF" Project in Tomcat 6.

I followed the next steps:

-Check Java JRE 6 and JDK 6
-Download and Unzip Eclipse 3.4 SR2 IDE
-Download and Unzip apache-tomcat-6.0.26
-Download and Unzip jstl 1.2, and Move the jars to apache's lib folder.
-Download and Unzip mojarra-1.2_09-b02-FCS-binary.zip
-Download JBossTools-ALL-win32-3.0.3.v200910211631N-H194-GA.zip
-Run and configure Eclipse (http://balusc.blogspot.com/2008/01/jsf-tutorial-with-eclipse-and-tomcat.html#RunAndConfigureEclipse)
-Integrate Tomcat in Eclipse (http://balusc.blogspot.com/2008/01/jsf-tutorial-with-eclipse-and-tomcat.html#IntegrateTomcatInEclipse)
-Unzip JBossTools-ALL-win32-3.0.3.v200910211631N-H194-GA.zip in the same directory that eclipse was unziped.
-Reset PC

-Create a new JSF Proyect (New Proyect..-> Jboss tool web -> JSF-> JSF Proyect)
-Create a view on face-config.xml (without a managed bean) it's a simple "Hello Word !!!".
-Right-click on the Project and select: JBoss Tools -> Add Custom Capabilities (Jboss Richfaces 3.3).
-Right click on the xxx.jsp ->Run as-> ...->select the Tomcat 6

I have few fatal error from Tomcat 6 console:

30-dic-2011 0:36:33 org.apache.catalina.core.AprLifecycleListener init
INFO: La biblioteca nativa de Apache Tomcat basada en ARP que permite un rendimiento óptimo en entornos de desarrollo no ha sido hallada en java.library.path: C:\Program Files (x86)\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files (x86)/Java/jre6/bin/client;C:/Program Files (x86)/Java/jre6/bin;C:\Windows\system32;C:\Program Files (x86)\AIMP2\;C:\Fran\Archivos\MinGW\bin
30-dic-2011 0:36:34 org.apache.coyote.http11.Http11Protocol init
INFO: Inicializando Coyote HTTP/1.1 en puerto http-8080
30-dic-2011 0:36:34 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 999 ms
30-dic-2011 0:36:34 org.apache.catalina.core.StandardService start
INFO: Arrancando servicio Catalina
30-dic-2011 0:36:34 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
30-dic-2011 0:36:34 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Desplieque del descriptor de configuración host-manager.xml
30-dic-2011 0:36:34 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Desplieque del descriptor de configuración manager.xml
30-dic-2011 0:36:34 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Desplieque del descriptor de configuración MyProyect.xml
30-dic-2011 0:36:35 org.apache.catalina.core.StandardContext addApplicationListener
INFO: El escuchador "com.sun.faces.config.ConfigureListener" ya está configurado para este contexto. La definición duplicada ha sido ignorada.
30-dic-2011 0:36:35 org.apache.catalina.core.StandardContext listenerStart
GRAVE: Error configurando escuchador de aplicación de clase com.sun.faces.config.ConfigureListener
java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3915)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
30-dic-2011 0:36:35 org.apache.catalina.core.StandardContext listenerStart
GRAVE: Se ha saltado la instalación de escuchadores de aplicación debido a error(es) previo(s)
30-dic-2011 0:36:35 org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
30-dic-2011 0:36:35 org.apache.catalina.core.StandardContext start
GRAVE: Falló en arranque del Contexto [/MyProyect] debido a errores previos

Ok, the original output error are in spanish i'm sory:
INFO: The librery ARP of Apache Tomcat was not found on java.library.path: bla bla..
SEVERE: Error when configuring aplication listener class com.sun.faces.config.ConfigureListener
java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener

In proyectView:
My JRE Librery are:
charsets.jar
dnsns.jar
jsse.jar
localedata.jar
resources.jar
rt.jar
sunjce_provider.jar
sunpkcs11.jar
sunmscapi.jar

My Libs in apache:
annotations-api.jar
catalina.jar
catalina-ant.jar
catalina-ha.jar
catalina-tribes.jar
el-api.jar
jasper-el.jar
jasper.jar
jasper-jdt.jar
jsp-api.jar
servlet-api.jar
tomcat-coyote.jar
tomcat-i18n-es.jar
tomcat-i18n-fr.jar
tomcat-i18n-ja.jar
tomcat-dbcp.jar

My Web App Libreries:
commons-annotations.jar
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-logging.jar
jsf-tlds.jar
jstl.jar
richfaces-api-3.3.0.GA.jar
richfaces-impl-3.3.0.GA.jar
richfaces-ui-3.3.0.GA.jar
standar.jar

Import to proyect from mojarra:
jsf-api-1.2.jar
jsf-impl-1.2.jar

In web.xml -> Listener:
....
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
...
but i can't found com.sun.faces.config.ConfigureListener if i push the add button.

Please, How i fix this?
Since Two days ago I'm trying to fix this.

Thanks for read me!
Sorry for my poor english.
13 years ago