maha lakshmi

Greenhorn
+ Follow
since Feb 22, 2008
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 maha lakshmi

Hi,

i am using spring 2.0. class paths are set correctly but i got the error "java.lang.NoClassDefFoundError: org/springframework/jdbc/object/SqlUpdate"..

error display like
Invoked: class com.roadmap.serviceimpl.ServiceImpl
11:16:13,931 INFO [STDOUT] DataSource: org.jboss.resource.adapter.jdbc.WrapperDataSource@54f169
11:16:13,933 ERROR [STDERR] java.lang.NoClassDefFoundError: org/springframework/jdbc/object/SqlUpdate
11:16:13,933 ERROR [STDERR] at java.lang.ClassLoader.defineClass1(Native Method)
11:16:13,933 ERROR [STDERR] at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
11:16:13,933 ERROR [STDERR] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
11:16:13,933 ERROR [STDERR] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
11:16:13,933 ERROR [STDERR] at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
11:16:13,933 ERROR [STDERR] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
11:16:13,933 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
11:16:13,933 ERROR [STDERR] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
11:16:13,933 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:672)
11:16:13,933 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:652)
11:16:13,933 ERROR [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
11:16:13,934 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:190)
11:16:13,934 ERROR [STDERR] at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131)
11:16:13,934 ERROR [STDERR] at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399)
11:16:13,934 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:517)
11:16:13,934 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
11:16:13,934 ERROR [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
11:16:13,934 ERROR [STDERR] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
11:16:13,934 ERROR [STDERR] at com.roadmap.dao.EmployeesDAOImpl.addEmployee(EmployeesDAOImpl.java:51)
11:16:13,934 ERROR [STDERR] at com.roadmap.serviceimpl.ServiceImpl.addEmployee(ServiceImpl.java:34)
11:16:13,934 ERROR [STDERR] at com.roadmap.sessionbean.ServiceBean.addEmployee(ServiceBean.java:31)
11:16:13,934 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:16:13,934 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11:16:13,934 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11:16:13,934 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
11:16:13,934 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
11:16:13,934 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
11:16:13,934 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
11:16:13,934 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:16:13,934 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
11:16:13,934 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:16:13,934 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
11:16:13,934 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:16:13,934 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
11:16:13,934 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
11:16:13,934 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:16:13,935 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
11:16:13,935 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:16:13,935 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
11:16:13,935 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:16:13,935 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
11:16:13,935 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:16:13,935 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
11:16:13,935 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:16:13,935 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
11:16:13,935 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
11:16:13,935 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:225)
11:16:13,935 ERROR [STDERR] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
11:16:13,935 ERROR [STDERR] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
11:16:13,935 ERROR [STDERR] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
11:16:13,935 ERROR [STDERR] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
11:16:13,935 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
11:16:13,935 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:398)
11:16:13,935 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)




please help me....
12 years ago
Thank you...
its working fine....
12 years ago
Hi
i am using struts1.3 frame work. my mail sending java code working servlet but i dont know how to integrate in struts1.3 please help me.

Thanks in advance...
12 years ago
Hi,
i got error message "javax.mail.NoSuchProviderException: No provider 'xxxxx'" .
i am using myeclipse6.0 IDE ,jboss4 application server & java EE5.
In java EE5 there is no activation.jar & mail.jar files.please any one can help me how to solve this problem?
my code is

12 years ago
Can any one help me how to work struts1.3 on validator.
struts1.3 is not contain validator.xml file.
12 years ago
Hi,
i am working on struts example http://www.laliluna.de/first-steps-using-struts-tutorial.html tutorial. its halfly working. ie i got booklist view but i can't view update booklit & delete.its not given any error.......
May be Action forwarding or linking error pls help me thanks in advance.

code is
/******BooklistForm.java*******************/

package com.yourcompany.struts.form;

import java.util.ArrayList;
import java.util.Collection;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;


public class BooklistForm extends ActionForm {

private static final long serialVersionUID = 1L;


private Collection books;
public Collection getBooks()
{
return books;
}

public void setBooks(Collection books)
{
this.books=books;
}

public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
// TODO Auto-generated method stub
return null;
}


public void reset(ActionMapping mapping, HttpServletRequest request) {
// TODO Auto-generated method stub
books = new ArrayList();
}
}
/**********end of BooklistForm.java**************************/


/*******************BookListAction.java**********************/

package com.yourcompany.struts.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.rits.library.SimulateDB;
import com.yourcompany.struts.form.BooklistForm;


public class BookListAction extends Action {

public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
BooklistForm booklistForm = (BooklistForm) form;
// TODO Auto-generated method stub
SimulateDB simulateDB = new SimulateDB();
booklistForm.setBooks(simulateDB.getAllBooks(request.getSession()));


return mapping.findForward("showlist");

}
}
/*********************end BookListAction.java***************************/




booklist.jsp



<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"; prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"; prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"; prefix="logic"%>

<html>
<head>
<title>Show book list</title>
</head>
<body>
<table border="1">
<tbody>
<%-- set the header --%>
<tr>
<td>Author</td>
<td>Book name</td>
<td>Available</td>
<td> </td>
<td> </td>
</tr>
<%-- check if book exists and display message or iterate over books --%>

<logic:notEmpty name="booklistForm" property="books">
<logic:iterate name="booklistForm" property="books" id="book">
<tr>
<%-- print out the book informations --%>
<td><bean:write name="book" property="author" /></td>
<td><bean:write name="book" property="title" /></td>
<td><html:checkbox disabled="true" name="book" property="available" /></td>
<%-- print out the edit and delete link for each book --%>

<td><html:link action="bookEdit.do?do=editBook" paramName="book"
paramProperty="id" paramId="id">Edit</html:link></td>
<td><html:link action="bookEdit.do?do=deleteBook" paramName="book"
paramProperty="id" paramId="id">Delete</html:link></td>
</tr>
</logic:iterate>
</logic:notEmpty>
<%-- print out the add link --%>
<tr>
<td colspan="5"> <html:link action="/jsp/bookAdd.jsp">Add a new book</html:link> </td>
</tr>
<%-- end interate --%>
</tbody>
</table>
</body>
</html>

----------------------------
struts-config.xml



<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">;

<struts-config>
<data-sources />
<form-beans>
<form-bean name="booklistForm" type="com.yourcompany.struts.form.BooklistForm" />
<form-bean name="bookEditForm" type="com.yourcompany.struts.form.BookEditForm" />
</form-beans>

<global-exceptions />
<global-forwards >
<forward name="welcome" path="/default.do" redirect="true" />

</global-forwards>

<action-mappings >
<action forward="/jsp/index.jsp" path="/default" unknown="true" />

<action
attribute="booklistForm"
input="/jsp/booklist.jsp"
name="booklistForm"
path="/booklist"
scope= "request"
type = "com.yourcompany.struts.action.BookListAction"
validate="false" >
<forward name="showlist" path="/jsp/booklist.jsp" />
</action>
<action
attribute="bookEditForm"
name="bookEditForm"
parameter="do"
path="/bookEdit"
scope="request"
type="com.yourcompany.struts.action.BookEditAction">
<forward name="showlist" path="/booklist.do" redirect="true" />
<forward name="showAdd" path="/jsp/bookAdd.jsp" />
<forward name="showEdit" path="/jsp/bookEdit.jsp" />
</action>

</action-mappings>

<message-resources parameter="com.yourcompany.struts.ApplicationResources" />
</struts-config>
-------------------------------------


Regards,
Maha
12 years ago