This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Rust Web Development and have Bastian Gruber on-line!
See this thread for details.
Win a copy of Rust Web Development this week in the Other Languages forum!

Danny Rebello

Greenhorn
+ Follow
since Dec 30, 2005
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 Danny Rebello

Hi All,
I am getting the error messages
1)Unable to open the tag library descriptor: java.sun.com for JSTL TAGS
2)Unable to load class null: org.apache.jasper.JasperException:

Does Websphere 4 has support for JSTL, if yes can someone explain
how can this be done.Websphere 4 supports JSP 1.1 Specification.
and according to JSTL Specifiacatio,
1)Standard-1.0 (JSTL 1.0) requires a JSP container that supports the Java Servlet 2.3 and JavaServer Pages 1.2 specifications
2)Standard-1.1 (JSTL 1.1) requires a JSP container that supports the Java Servlet 2.4 and JavaServer Pages 2.0 specifications.

So how can this be achived.?
1)The jstl.jar and standard.jar are placed in the /WEB-INF/lib directory.
2)The .tld files are placed in the /WEB-INF/ directory.
3)There is an entry in the web.xml file.

Can Some one help me on this.?
Does Websphere 4 has support for JSTL?

Thanks in Advance
Danny Rebello
15 years ago
JSP
Hi All,
I have not been able to build the hibernate SessionFactory from
hibernate.cfg.xml file using the code
sessionFactory = cfg.configure().buildSessionFactory();
since the hibernate.cfg.xml not found error occired.
what I did was tried changing the above code to
sessionFactory = cfg.buildSessionFactory();
for reading from the hibernate.properties file.
I have all hibernate2.jar and 3rd party jar files in my classpath, but I am still getting the error as :
231 [main] WARN net.sf.ehcache.config.Configurator - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/j2sdk1.4.2_10/jre/lib/ext/ehcache-0.9
.jar!/ehcache-failsafe.xml
Exception in thread "main" java.lang.IllegalAccessError
at net.sf.cglib.core.ClassEmitter.setTarget(ClassEmitter.java:47)
at net.sf.cglib.core.ClassEmitter.<init>(ClassEmitter.java:39)
at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:165)
at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:215)
at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)
at net.sf.hibernate.impl.SessionFactoryImpl.<clinit>(SessionFactoryImpl.java:237)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:805)
at de.laliluna.example.HibernateSessionFactory.currentSession(HibernateSessionFactory.java:55)
at de.laliluna.example.TestClient.createHoney(TestClient.java:48)
at de.laliluna.example.TestClient.main(TestClient.java:26)

<br>
Can some on help me on this
Thanks in Advance
Danny Rebello
I have added the following code :
new Configuration().configure().buildSessionFactory();
but still the error :
net.sf.hibernate.HibernateException: /hibernate.cfg.xml not found
is getting displayed

Regards
Danny
Hi All,
I am working on websphere 4 and have created a Java application.

My root folder is FirstHibernateExample and it is under
C:\danny\hibernate\FirstHibernateExample\
my java,class and xml files are under
C:\danny\hibernate\FirstHibernateExample\src\com\test\example\

When I compile the java files everything is fine.
When I run the application I get the following error :
net.sf.hibernate.HibernateException: hibernate.cfg.xml not found.
In my code I have specified
private static String CONFIG_FILE_LOCATION = "/hibernate.cfg.xml";

I have tried placing the hibernate.cfg.xml in all the locations , but
still the error exists.
Can Someone help me on this
Thanks in Advance
Regards
Danny
The ActionServlet failed to load , There is no problem with
the testServlet as it works fine without integrating the Struts
framework.

Regards
Danny
16 years ago
Hi Everybody,
I am using Websphere version 4, and struts 1.1.
My web.xml looks like this


<?xml version="1.0" encoding="UTF-8"?>
< !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">;
<web-app id="WebApp">
<display-name>TestPrj</display-name>
<servlet>
<servlet-name>testServlet</servlet-name>
<display-name>testServlet</display-name>
<servlet-class>com.test.testServlet</servlet-class>
<init-param>
<param-name>age</param-name>
<param-value>10</param-value>
</init-param>
</servlet>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>testServlet</servlet-name>
<url-pattern>testServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>

<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>


<taglib>
<taglib-uri>/WEB-INF/taglibs/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/taglibs/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/taglibs/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/taglibs/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/taglibs/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/taglibs/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/taglibs/struts-nested.tld</taglib-uri>
<taglib-location>/WEB-INF/taglibs/struts-nested.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/taglibs/struts-template.tld</taglib-uri>
<taglib-location>/WEB-INF/taglibs/struts-template.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/taglibs/struts-tiles.tld</taglib-uri>
<taglib-location>/WEB-INF/taglibs/struts-tiles.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>;
<taglib-location>/WEB-INF/taglibs/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>;
<taglib-location>/WEB-INF/taglibs/sql.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>;
<taglib-location>/WEB-INF/taglibs/fmt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/x</taglib-uri>;
<taglib-location>/WEB-INF/taglibs/x.tld</taglib-location>
</taglib>

</web-app>



Can anyone please help me on why am i getting this error.
Thanks in advance
Danny
16 years ago