My Servlet does not found smack api

I try to connect google on web browser so I made the files(JSP and servlet) using struct 1.2, weblogic 8.1

but when I execute weblogic, It would show some error message

Error 500–Internal Server Error

java.lang.NoClassDefFoundError
     at org.jivesoftware.smack.ConnectionConfiguration.(ConnectionConfiguration.java:57)
     at LoginAction.(LoginAction.java:19)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:274)

my build file is

set BEA_HOME=c:\bea

set JAVA_HOME=%BEA_HOME%\jdk142_05

set path=%path%;%JAVA_HOME%\bin

set WL_HOME=%BEA_HOME%\weblogic81

set classpath=%classpath%;%WL_HOME%\server\lib\weblogic.jar;C:\Users???\Java\Strut s\8to10struts\loginStruts\lib\smack.jar;C:\Users???\Java\Struts\8to10struts\log inStruts\lib\smackx.jar;C:\Users???\Java\Struts\8to10struts\loginStruts\lib\str uts.jar;.;

del *.war

rd /s /q .\build

mkdir .\build

mkdir .\build\WEB-INF

mkdir .\build\WEB-INF\classes

mkdir .\build\WEB-INF\lib

mkdir .\build\WEB-INF\tlds

@rem Compiles the source code

javac -d .\build\WEB-INF\classes .\src*.java

copy .\src*.xml .\build\WEB-INF

copy .\src*.html .\build

copy .\src*.jsp .\build

copy .\src*.properties .\build\WEB-INF\classes

copy .\lib*.* .\build\WEB-INF\lib

copy .\tlds*.* .\build\WEB-INF\tlds

@rem java weblogic.marathon.ddinit.WebInit build

cd .\build

jar cvf …\account.war .

cd…

and I kept my lib in lib forder.

It is my servlet file

import java.util.Iterator;

import java.util.Collection;

import javax.servlet.http.*;

import org.apache.struts.action.*;

import org.jivesoftware.smack.*;

import org.jivesoftware.smack.ConnectionConfiguration;

import org.jivesoftware.smack.ChatManager;

import org.jivesoftware.smack.Chat;

import org.jivesoftware.smack.ConnectionListener;

import org.jivesoftware.smack.MessageListener;

import org.jivesoftware.smack.XMPPConnection;

import org.jivesoftware.smack.XMPPException;

import org.jivesoftware.smack.packet.Message;

import org.jivesoftware.smack.Roster;

import org.jivesoftware.smack.RosterEntry;

public class LoginAction extends Action

{

private ConnectionConfiguration connConfig = new ConnectionConfiguration(“talk.google.com”, 5222, “gmail.com”);

public ActionForward execute(ActionMapping mapping,ActionForm actionForm,HttpServletRequest request,HttpServletResponse response)

{

LoginForm form=(LoginForm)actionForm;

String userName=form.getUserName();

String password=form.getPassword();

XMPPConnection connection = new XMPPConnection(connConfig);

try

{

connection.connect();

connection.login(userName, password);

}

catch (Exception ex)

{

ActionMessages errors=new ActionMessages();

errors.add(“mismatch”,new ActionMessage(“error.mismatch”));

errors.add(“retype”,new ActionMessage(“error.retype”));

saveErrors(request,errors);

return mapping.getInputForward();

}

Roster roster = connection.getRoster();

Collection<RosterEntry> entries = roster.getEntries();

for (RosterEntry entry : entries)

{

System.out.println(entry);

}

return mapping.findForward(“success”);

}

}

I can’t find out my mistake. plz~ help me.

Thank you for reading. and sorry to distub your work.

http://mindprod.com/jgloss/runerrormessages.html#NOCLASSDEFFOUNDERROR

I think your servlet found smack api. It says “java.lang.NoClassDefFoundError at org.jivesoftware.smack.ConnectionConfiguration.(Co”.

The exception was somewhere inside org.jivesoftware.smack.ConnectionConfiguration, so it founds it.

Whats inside in your lib folder? Maybe you need smackx.jar in your lib too?