Camilo Diaz

Greenhorn
+ Follow
since Sep 03, 2009
Merit badge: grant badges
For More
Bogota, Colombia
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 Camilo Diaz

Hello:

Recently I'm having an issue with Tomcat. 5 seconds after I started the service it shuts down automatically. I do not see any error in the logs and I already checked many things that may interrupt the correct behavior of Tomcat such as the lack of the file msvcr71.dll in Windows/System32.

System configuration is:
Windows Server 2003 R2
Apache tomcat 6.0.14
Java 1.6.12

I'll appreciate any help.
10 years ago
Hello:

I'll appreciate the help with the following question:

if i got the coordinates of a PIN annotation within the map, how can i know the country where it belongs:

for example:
if in my code i have

coordinate.latitude = 23.76
coordinate.longitude = -99.38

how can i know the annotation is pointing somewhere in Mexico?

10 years ago
iOS
Hello guys:

Does anybody know how can i put an external image over another image?

I'll appreciate the help
12 years ago
Hello Guys:

I was wondering how can i open diferent sessions of the same application on the same browser?

It is possible ??

I'm using tomcat 6, jsf 2.0 and spring
12 years ago
JSF
Hello there:

Well, i tried removing the el-jar from my WEB-INF/lib directory and put in my TOMCAT_HOME/lib and....... didn't work

Also I tried to downgrade the jsf version from 1.2 to 1.1 and........ it didn't work either.

I decided to use tomcat 6 for my application
12 years ago

Tim Holloway wrote:There's no bug. I've run JSF 1.1 in Tomcat 5.5, although I recommend Tomcat6.

Memory is hazy, but I think you have to copy the el.jar into TOMCAT_HOME/lib. In any event, don't put a copy in both Tomcat and the WAR - that's a sure guarantee of trouble. This stuff gets accessed from several different classpaths, and you'll end up with a great big jumble. Which is, in fact, what I think did happen.



I'm trying to run jsf 1.2.14, not the 1.1...
could that be the problem?

I'll appreciate the help
12 years ago
Thank you for the answers:

Misha Ver wrote:
where exactly you keep jar files in WAR file?



the jars are in the WEB-INF/lib directory of my webapp.

Do i have to put them in another directory??


JSF needs EL to function, but EL is not included as part of the basic library jarset in the Tomcat 5.5 server. It's in Tomcat6, but not Tomcat 5.5. For Tomcat 5.5, you'll need to explicitly include the el.jar file.



I also have the el.jar in my WEB-INF/lib. Any other jars that i must have and i'm not aware?

Could be a bug in tomcat 5.5.28 ??


I'll appreciate the help.

12 years ago
Hello there:

I've been trying to render a jsf page in my web application but when i send the request from the browser i got the following error:

6/06/2010 04:04:02 PM org.apache.catalina.core.StandardContext listenerStart
GRAVE: Error configurando escuchador de aplicaciĆ³n de clase com.sun.faces.config.ConfigureListener
java.lang.NoClassDefFoundError: javax/faces/FacesException



I'm completly sure that the jsf-api.jar and jsf-impl.jar are in the build path and inside the WAR file.

Anyone had this error before?

I'll appreciate the help.
12 years ago
Hello Guys:
Lately i'm trying to use an embedded data base (Derby) in j2me and i'm following the current derby-j2me tutorial:

Derby-J2ME tutorial

but due to some problems with that tutorial i'm thinking that probably wasn't a good idea.

DO you know any VERY GOOD derby-J2ME tutorial?

Do you know any embedded data base that could work with j2me and easy to use?

i'll appreciate the help

12 years ago
I solved:

rather than use the sesisonfactory to get a hibernate session, i used hibernateentitymanager.class this way:

Session hsession = ((HibernateEntityManager) em.getDelegate()).getSession();

then i can use the hibernate instance session hsession.
Helllo:
i was wondering hoe can i get the hibernate sesison in glassfish 2.1 ??

i've been trying this code:

public class HibernateSessionFactoryUtil
{
private static final SessionFactory sessionFactory;

static
{
try
{
sessionFactory = new Configuration().configure().buildSessionFactory();
}
catch (Throwable ex)
{
// Make sure you log the exception, as it might be swallowed
System.err.println("Initial SessionFactory creation failed." + ex);
throw new ExceptionInInitializerError(ex);
}
}

public static SessionFactory getSessionFactory()
{
return sessionFactory;
}
}



but when im using the getSessionFactory method , i get the following message:

javax.ejb.EJBException: Stateless SessionBean method returned without completing transaction
at com.sun.ejb.containers.BaseContainer.checkExceptionBeanMgTx(BaseContainer.java:3689)
Hello:

i was wondering how to building a dataTable from my bean ?

i know i should bind the tag h:datatable in my jsf file to a HtmlDataTable instance in my backing bean, but, in not sure how to populate it from the java code,

I'll appreciate the help
13 years ago
JSF
Hello:

I solved it !!!.

I have two build,xml files (one for the ebj-module and another for the web-module)
It seems that i was adding the hibernate search jar into the ejb-module's build.xml file, but not into the web-module, so i added it and worked.
Somehow, i'm using the hibernate search annotations only in the entities (ejb-module), not in the backing beans (web-module), so it shouldn't be necessary to add the hibernate search jar into the web-module. Weird. It's like add the hibernate core jar into the web-module.
Hello:

recently, i am trying to use hibernate search on glassfish 2.1, using @field annotation in one of my classes. e.g:

@Field(index=Index.TOKENIZED)
private String lastName;

However, when compiling the project i get the following error:
warning: Cannot find annotation method 'index()' in type 'org.hibernate.search.annotations.Field': class file for org.hibernate.search.annotations.Field not found
An exception has occurred in the compiler (1.6.0_17). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.

I am sure that the hibernate search library is in the classpath with its dependencies .

Does anybody know about this kind of error?.

I'm using netbeans 6.7 and i've been thinking to update it to 6.8, however i don't think that's the problem.
i need to call a local interface from a POJO within a static method, but... the lookup is not working (launch a NameNotFoundException), any help ??