- This topic has 3 replies, 2 voices, and was last updated 17 years, 5 months ago by Riyad Kalla.
-
AuthorPosts
-
rgentelaMemberhello I am getting the following error, any help is appriceated:
using myeclipse with weblogic 8.1Error message:
Error 500–Internal Server Error
javax.servlet.jsp.JspException: Exception creating bean of class com.yourcompany.struts.form.LoginUserForm: java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: ‘com.yourcompany.struts.form.LoginUserForm’
at org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:547)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:520)
at jsp_servlet.__loginuser._jspService(__loginuser.java:155)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1072)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6981)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)Struts Config:
<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE struts-config PUBLIC “-//Apache Software Foundation//DTD Struts Configuration 1.1//EN” “http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd”><struts-config>
<data-sources />
<form-beans >
<form-bean name=”loginUserForm” type=”com.yourcompany.struts.form.LoginUserForm” /></form-beans>
<global-exceptions />
<global-forwards />
<action-mappings >
<action
attribute=”loginUserForm”
input=”/loginUser.jsp”
name=”loginUserForm”
path=”/loginUser”
scope=”request”
type=”com.yourcompany.struts.action.LoginUserAction”>
<forward name=”success” path=”/login.jsp” />
<forward name=”failure” path=”/loginUser.jsp” />
</action></action-mappings>
<message-resources parameter=”com.yourcompany.struts.ApplicationResources” />
</struts-config>web.xml
<?xml version=”1.0″ encoding=”UTF-8″?>
<!– xmlns=”http://java.sun.com/xml/ns/j2ee” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” version=”2.4″ xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd” –>
<web-app>
<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>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
Riyad KallaMemberThat looks like a full on compilation problem… what JDK did you setup Tomcat to run with? Also what compiler settings and JRE do you have set on your project?
rgentelaMemberJDK 1.4 from my eclipse windows>preferences>Java>Compiler,
weblogic 8.1 ,
JRE from my eclipse windows>preferences>Java>Installed JRE’s (C:\bea81\jdk142_08)
Riyad KallaMemberThat is really strange… an error like that (complaining about the byte code) is the result of some core problem.
I would point out that WebLogic 8 is a J2EE 1.3 complaint application server, and from your code snippets above it looks like you are using a J2EE 1.4 project web.xml descriptor, which won’t work on WebLogic 8.1.
I would suggest upgrading to WebLogic 9 or changing your project to use a J2EE 1.3 specification level (you will need to create a new project and select it on the new project page).
-
AuthorPosts