palakolanusrinu Reddy

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

Recent posts by palakolanusrinu Reddy

Hi All,
Can any one help in architecture design of one of my complex application.

Requirement :
In web based application, we need to generate Excel kind of report as HTML page
and after that we need to perform different kinds of operations like
--Add manual rows
-- Delete rows
-- Edit rows
-- adding comments based on each cell
-- viewing the added comments.
-- attaching the file based on each cell
-- viewing the attached file.
-- Collapsible functionality for some of rows

In the process of design we have come up with DB design and application frame work is Springs.
and for Web not yet finalized.
what is the best approach to implement this kind of UI?
--JSF?(keep in mind we need to Excel operations like above mentioned operations)
-- Any reporting tool which will provide editing functionality?

Please suggest me How can we do it? and what is the best technology for it? or is there any reporting tools?

Regards,
Srinivasa Reddy
Hi everyone,
I'm new to springs and I'm trying to execute sample web application with tiles.these are the jars i used

antlr-runtime-3.0.jar
commons-beanutils-1.7.0.jar
commons-digester-1.8.jar
commons-logging-1.0.4.jar
commons-logging-api-1.1.jar
jstl.jar

org.springframework.aop-3.0.1.RELEASE-A.jar
org.springframework.asm-3.0.1.RELEASE-A.jar
org.springframework.aspects-3.0.1.RELEASE-A.jar
org.springframework.beans-3.0.1.RELEASE-A.jar
org.springframework.context.support-3.0.1.RELEASE-A.jar
org.springframework.context-3.0.1.RELEASE-A.jar
org.springframework.core-3.0.1.RELEASE-A.jar
org.springframework.expression-3.0.1.RELEASE-A.jar
"WebContent/"WebContent/WEB-INF/lib/org.springframework.instrument-3.0.1.RELEASE-A.jar
"WEB-INF/lib/org.springframework.instrument.tomcat-3.0.1.RELEASE-A.jar"
"WebContent/WEB-INF/lib/org.springframework.jdbc-3.0.1.RELEASE-A.jar"
"WebContent/WEB-INF/lib/org.springframework.jms-3.0.1.RELEASE-A.jar"
"WebContent/WEB-INF/lib/org.springframework.orm-3.0.1.RELEASE-A.jar"
"WebContent/WEB-INF/lib/org.springframework.oxm-3.0.1.RELEASE-A.jar"
"WebContent/WEB-INF/lib/org.springframework.transaction-3.0.1.RELEASE-A.jar"
"WebContent/WEB-INF/lib/org.springframework.web.portlet-3.0.1.RELEASE-A.jar"
"WebContent/WEB-INF/lib/org.springframework.test-3.0.1.RELEASE-A.jar"
"WebContent/WEB-INF/lib/org.springframework.web.servlet-3.0.1.RELEASE-A.jar"
"WebContent/WEB-INF/lib/org.springframework.web.struts-3.0.1.RELEASE-A.jar"
"WebContent/WEB-INF/lib/org.springframework.web-3.0.1.RELEASE-A.jar"
"WebContent/WEB-INF/lib/servlet-api.jar"
"WebContent/WEB-INF/lib/slf4j-api-1.5.8.jar"
"WebContent/WEB-INF/lib/slf4j-jdk14-1.5.8.jar"
"WebContent/WEB-INF/lib/standard.jar"
"WebContent/WEB-INF/lib/tiles-api-2.2.1.jar"
"WebContent/WEB-INF/lib/tiles-compat-2.2.1.jar"
"WebContent/WEB-INF/lib/tiles-core-2.2.1.jar"
"WebContent/WEB-INF/lib/tiles-extras-2.2.1.jar"
"WebContent/WEB-INF/lib/tiles-el-2.2.1.jar"
"WebContent/WEB-INF/lib/tiles-freemarker-2.2.1.jar"
"WebContent/WEB-INF/lib/tiles-jsp-2.2.1.jar"
"WebContent/WEB-INF/lib/tiles-ognl-2.2.1.jar"
"WebContent/WEB-INF/lib/tiles-mvel-2.2.1.jar"
"WebContent/WEB-INF/lib/tiles-portlet-2.2.1.jar"
"WebContent/WEB-INF/lib/tiles-servlet-2.2.1.jar"
"WebContent/WEB-INF/lib/tiles-servlet-wildcard-2.2.1.jar"
"WebContent/WEB-INF/lib/tiles-test-alt-2.2.1.jar"
"WebContent/WEB-INF/lib/tiles-template-2.2.1.jar"
"WebContent/WEB-INF/lib/tiles-test-db-2.2.1.jar"
"WebContent/WEB-INF/lib/tiles-test-common-2.2.1.jar"
"WebContent/WEB-INF/lib/tiles-velocity-2.2.1.jar"
"WebContent/WEB-INF/lib/velocity-1.6.2.jar"
"WebContent/WEB-INF/lib/velocity-tools-2.0-20090514.211946-1.jar"
jcl-over-slf4j-1.5.8.jar


My servlet mapping xml is
<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd">

<!-- the application context definition for the springapp DispatcherServlet -->

<bean name="/welcome.htm" class="com.tea.controllers.WelComeController"/>
<!-- <bean id="viewResolver" class="org.springframework.web.servlet.view.ResourceBundleViewResolver" p:basename="views" />
<context:component-scan base-package="com.tea.controller" /> -->
<!--<bean id="viewResolver" class="org.springframework.web.servlet.view.ResourceBundleViewResolver">
<property name="basename">
<value>views</value>
</property>
</bean>
-->

<bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles2.TilesConfigurer" p:definitions="/WEB-INF/tiles-defs.xml" />
<bean id="tilesViewResolver"
class="org.springframework.web.servlet.view.UrlBasedViewResolver"
p:viewClass="org.springframework.web.servlet.view.tiles2.TilesView" />

</beans>

my tiles def xml is
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD
Tiles Configuration 2.0//EN" "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">

<tiles-definitions>
<definition name="baseLayout" template="/views/skeletonHome.jsp">
<put-attribute name="title" value="Template"/>
<put-attribute name="header" value="/views/Header.jsp"/>
<put-attribute name="left" value="/views/Highlights.jsp"/>
<put-attribute name="right" value="/views/FundsClientsStatus.jsp"/>
<put-attribute name="footer" value="/views/SystemActLog.jsp"/>
</definition>
<definition name="baseLayout1" template="/views/skeletonHome.jsp">
<put-attribute name="header" value="/views/Header.jsp"/>
<put-attribute name="left" value="/views/Highlights.jsp"/>
<put-attribute name="footer" value="/views/SystemActLog.jsp"/>
</definition>
<definition name="welcome" extends="baseLayout">
<put-attribute name="title" value="Welcome"/>
<put-attribute name="left" value="/views/Highlights.jsp"/>
<put-attribute name="right" value="/views/FundsClientsStatus.jsp"/>
</definition>
</tiles-definitions>

If i run this application i'm getting excetion saying that

DispatcherSer E org.springframework.web.servlet.FrameworkServlet initServletBean Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tilesConfigurer' defined in ServletContext resource [/WEB-INF/tea-servlet.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org/apache/tiles/TilesApplicationContext.getContext()Ljava/lang/Object;
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1403)

please help me in this
thanks in advance

15 years ago
Please Reply any one on this.......
15 years ago
Hi,
I have 4 years of experience in java and j2ee technologies and my
current project i have done in Grails. Now i'm looking for job change.
How about market position for groovy grails?
How is the future for groovy grails?
please clarify

thanks in advance

Regards,
Srinivas
15 years ago
Hi,

Please explain any one
How to deploye multiple applications in same jboss and want to access with different http port numbers(like http://host:8080/admin and http://host:8090/admin)?
while implementing this kind of situations how to handle JNDI?

Thanks in advance.

Regards,
Srinu.P
16 years ago
Hi,

i deployed my web application in JBoss App server and i have my app specific log configurations specified in log4j.xml
which is reading that file in LoggingManager.java(my app specific file) file using DOMConfigurator but me not able to finding the log4j.xml but log4j.xml is availble in same directory.

Please help in this..

Regarrds
Srinu
16 years ago
Hi,
Please help any one in this while converting xml to bean, here I am using betwixt.This xml contains normal data as well as collections data but normal data and some of collection data is populating in beans and some collection data is populating beans with null values.

XML response is :
<?xml version="1.0" encoding="UTF-8"?>
<Hostel noOfHostels="1">
<HostelRoom
roomNo="0004105232" roomLocation="2101086158" roomPlace="2622" bookedOn="08/27/2008 03:07:56 PM"
roomName="TAMIL NADU" quota="GN" class="SL" source="ndls" destination="mas"
day="28" month="08" year="2008" bordingdate="08/28/2008 12:00:00 AM"
internetServiceCharge="20.00" roomFare="2696.00" totalFare="2716.00" idPassenger="1">

<Passenger slNo="1" name="TEST" age="35" sex="m" concessionCode="BLANK" bookingStatus="RLWL 6" />
<Passenger slNo="2" name="aaaa" age="85" sex="m" concessionCode="NOCONC" bookingStatus="RLWL 7" />

</HostelRoom>
</Hostel>

and betwixt mapping is
MAPPING = new String(
"<?xml version=\"1.0\"?>"
+ "<betwixt-config>"
+ "<!--name of the class to map -->"
+ "<class com.booking.BookingSearchResponse\">"
+ "<element name=\"Hostel\">"
+ "<attribute name=\"noOfHostels\" property=\"noOfHostels\"/>"
//+ "<element name=\"HostelRoom\">"
+ "<element name=\"HostelRoom\" property=\"hostelRoom\" updater=\"addHostelRoom\" class=\"com.booking.BookedTicket\"/>"
+ "</element>"
+ "</class>"
+ "<class name=\"com.booking.BookedTicket\">"
+ "<element name=\"HostelRoom\">"
+ "<attribute name=\"roomNo\" property=\"roomNo\"/>"
+ "<attribute name=\"roomLocation\" property=\"roomLocation\"/>"
+ "<attribute name=\"quota\" property=\"quota\"/>"
-----
------
+ "</element>"
+ "<element name=\"Passenger\">"
+ "<element name=\"Passenger\" property=\"passenger\" updater=\"addPassenger\" class=\"com.booking.BookedPassenger\"/>"
+ "</element>"
+ "</class>"
+ "<class name=\"com.booking.BookedPassenger\">"
+ "<element name=\"Passenger\">"
+ "<attribute name=\"slNo\" property=\"slNo\"/>"
+ "<attribute name=\"name\" property=\"name\"/>"
+ "<attribute name=\"age\" property=\"age\"/>"
+ "<attribute name=\"sex\" property=\"sex\"/>"
+ "<attribute name=\"concessioncode\" property=\"concessionCode\"/>"
+ "<attribute name=\"bookingstatus\" property=\"bookingStatus\"/>"

+ "</element>" + "</class>"
+ "</betwixt-config>");

and i created 3 POJOs

1)BookingSearchResponse.java
2)BookedTicket.java
3)BookedPassenger.java

BookingSearchResponse.java
//included updater
public void addHostelRoom(BookedTicket bookedTicket) {
(this is arrayList)hostelRoom.add(bookedTicket);
}

BookedTicket.java
public void addPassenger(BookedPassenger passenger){
(this is arrayList)passenger.add(passenger);


}
Here noOfHostels and passenger collection is populating properly but HostelRoom collection is not populating please help in this

to parse this we used

public static Object xmlToBean(Object object, String xml)throws Exception{
BeanReader beanReader = null ;
try {
beanReader = new BeanReader();
//Set the ConvertUtils Object for String Conversion of the Default primitive classes
beanReader.getBindingConfiguration()
.setObjectStringConverter(new ObjectStringConverter());

beanReader.getBindingConfiguration().setValueSuppressionStrategy(new AttributeValueSuppressionStrategy());
String temp = (String)object.getClass().getField("MAPPING").get(object);
beanReader.registerMultiMapping(new InputSource(new StringReader(temp)));

Object parsedObject = beanReader.parse(new StringReader(xml));

return parsedObject;

}

Regards,
Srinivasa Reddy.P
Hi,

i want to implement refer frind link in one of my jsp if user clicks on that link it should fire a mail to corrosponding mail address till here i can do but in the mail message i need to send a link if received party clicks on the link i need to open jsp and there i need to get the senders unique id

here many users can send link to many users.

Please help in this.

Regards,
Srinivasa Reddy.P
16 years ago
Hi

Plesae help in this

I am trying to access webservices on https protocal with web application in jboss-4.0.1 but me always getting the fallowing exception.

nested exception is:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found

i successfully downloaded the certificate and updated the cacerts under
j2sdk1.4.2_08\jre\lib\security

Please help in this and tell me how to access WebServices.

Regards,
Srini.P
16 years ago
hi,
can any one help in this

I am trying to access webservices from Jboss we are getting exception

Unable to deploy typemapping: {http://net.jboss.org/jmx}AttributeType
java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.net.jmx.adaptor.AttributeSerFactory
at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198)

but i am able to access the webservices from normal java application and its working fine

thanks in advance

Regards
Srini
16 years ago
hi,
can any one help in this

I am trying to access webservices from Jboss we are getting exception

Unable to deploy typemapping: {http://net.jboss.org/jmx}AttributeType
java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.net.jmx.adaptor.AttributeSerFactory
at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198)

but i am able to access the webservices from normal java application and its working fine

thanks in advance

Regards
Srini
16 years ago
hi thanks for reply,

here problem is while writing it into log file its taking
memory usage is more how to reduse that memory usage

this memory usage is causing low performence

Regards
Srini.P
16 years ago
Hi,
Can any one help in this its urgent in production environment

issue:

My application is deployed in jboss application server on Linux machine
right now this application logs are consuming more memory if i turn it off application is working fine,if i made logs level to INFO still its consuming more memory

but log file size is only 20MB

After turn off application logs memory usage is 300
before turn off application logs memory usage is 900

how to fix this or can any one guide me how to fix this issue its high priority issue

thanks in advance

regards
Srini.P
16 years ago
hi
can any one help in this

i'm using appender is
<appender name="CommsFileBySize"
class="org.apache.log4j.RollingFileAppender">
<errorHandler
class="org.apache.log4j.helpers.OnlyOnceErrorHandler" />
<param name="File"
value="${wsc.logs.home}/comms/comms.html"/>
<param name="Append" value="true" />
<param name="MaxFileSize" value="5KB" />
<param name="MaxBackupIndex" value="20" />
<layout class="com.csam.wsc.projects.ri.util.logging.layout.CsamHtmlLayout" />
</appender>

and category for this appender is

<category name="com.csam.wsc.enabling.comms.CommsLogger">
<priority value="INFO" />
<appender-ref ref="CommsFileBySize"/>
</category>
so
1) i'm changing priority value DEBUG to INFO but still its printing all DEBUG messages and ERROR messages how to print only INFO messages?

2) and i'm giving Max File Size is 5kb but some time file size is exceeding to 5kb how to restrict to 5 kb only?

its urgent can any one help in this

regards
Srinu
Hi all,
I need urgent help from any one of you..

actual problem is:
when ever we process the request by using struts frame work complete information is printing in logs but in logs its printing project specific info as well as struts related info also

now i want to avoid that struts related info
can any one help in this its very urgent.

thanks in advance

regards
Srinu