I setup weblogic.servlet.CGIServlet and get java.lang.NoClassDefFoundError? - weblogic.developer.interest.weblogicexpress(Archived)

My WLS is 8.1 SP2. I try to run the CGI/PL program in my server and I install the servlet in the web.xml file. After I run one CGI/PL program I get
" Error 500--Internal Server Error "
And I check with the log file. I get those error message:
<Jan 6, 2005 11:53:52 AM PST> <Error> <HTTP> <BEA-101017> <[ServletContext(id=20
41638322,name=PORTAL,context-path=)] Root cause of ServletException.
java.lang.NoClassDefFoundError
at weblogic.servlet.CGIServlet.init(CGIServlet.java:74)
at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(Servl
etStubImpl.java:993)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
118)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
pl.java:869)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
Impl.java:848)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:787)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:518)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:362)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
Anyone have idea how does this happen and how to fix it?
Thanks advance
Allen 

Hi Allen,
Even I am facing the same problem. Did you received any reply from anyone? or Did you found any solution for the same? I am using WebLogic Server 8.1 SP5
If someone from BEA team helps as this being a reported problem.
Thanks in Advance,
Raghuram

Related

WLS8.1 weblogic.servlet.CGIServlet and get java.lang.NoClassDefFoundError?

My WLS is 8.1 SP2. I try to run the CGI/PL program in my server and I install the servlet in the web.xml file. After I run one CGI/PL program I get
" Error 500--Internal Server Error "
And I check with the log file. I get those error message:
<Jan 6, 2005 11:53:52 AM PST> <Error> <HTTP> <BEA-101017> <[ServletContext(id=20
41638322,name=PORTAL,context-path=)] Root cause of ServletException.
java.lang.NoClassDefFoundError
at weblogic.servlet.CGIServlet.init(CGIServlet.java:74)
at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(Servl
etStubImpl.java:993)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
118)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
pl.java:869)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
Impl.java:848)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:787)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:518)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:362)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
Anyone have idea how does this happen and how to fix it?
Thanks advance
Allen

could not be handled by classloader

Hi there,
I am developing an application in weblogic portal server 7.0.
Before configuring two ap servers as a cluster, my jsp runs well on each server.
But after clustering them as one, I requested the same jsp but got 404 Not found
message.
The exception in console is like this:
<2003/5/9 ¤U¤È09®É19¤À56¬í> <Error> <HTTP> <101018> <[ServletContext(id=3914612,
name=channel,context-path=/channel)] Servlet failed with ServletException
javax.servlet.ServletException: [ServletContext(id=3914612,name=channel,context-
path=/channel)]: Servlet class jsp_servlet._jsp._activation.__avt_queryMinMdn
fo
r servlet /jsp/activation/avt_queryMinMdn.jsp could not be handled by the ClassL
oader with classpath
...................................................................
/ap1/APBWDomain/ap1/.wlnotdelete/portalApp_channel_3914612.
java.lang.ExceptionInInitializerError
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:813)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:222)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:164)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:517)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:351)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:5412)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:744)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3086)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2544)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
Is there anyone who would like to tell me how to solve this?
Thanks a lot!

unable to start console

I am getting this error when I enter the following URL in my browser.
http://localhost:7501/console/index.jsp
<Nov 2, 2001 12:59:06 PM PST> <Error> <HTTP>
<[WebAppServletContext(24744408,con
sole,/console)] Servlet failed with ServletException
javax.servlet.ServletException: Servlet class:
'weblogic.management.console.weba
pp._index' could not be loaded - the requested class wasn't found in the
classp
ath:
'C:\bea\wlportal4.0\config\portalDomain\applications\.wlnotdelete\wl_comp29
767.war'
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:594)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:368)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:242)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2459)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
I am using WLS 6.1 SP1 with WLP 4.0.
My current classpath is :
ClassPath=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;c:\;c:\dell;C:\W
INNT
\Java\Classes\RxAssistant.zip
Any help is appreciated.
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
John,
Is this the same installation of Portal4.0 that you ran against 6.0sp1 before
installing 6.1sp1?
The .wlnotdelete folder contains work that WLS has performed (like ejbc results)
that need not be redone every time the server starts up. Since you ran against
an unsupported version earlier, perhaps there are some bad things in there.
I have never had any problems deleting the .wlnotdelete folder (!?!) aside from
the server doing lots of recompilations. Do this with the server shutdown of course.
And to be safe, rename it don't delete it.
And this is not an official BEA solution, just a hack I am recommending you try.
PJL
"John Smith" <jsmith#dacafe.com> wrote:
I am getting this error when I enter the following URL in my browser.
http://localhost:7501/console/index.jsp
<Nov 2, 2001 12:59:06 PM PST> <Error> <HTTP>
<[WebAppServletContext(24744408,con
sole,/console)] Servlet failed with ServletException
javax.servlet.ServletException: Servlet class:
'weblogic.management.console.weba
pp._index' could not be loaded - the requested class wasn't found in
the
classp
ath:
'C:\bea\wlportal4.0\config\portalDomain\applications\.wlnotdelete\wl_comp29
767.war'
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:594)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:368)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:242)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2459)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
I am using WLS 6.1 SP1 with WLP 4.0.
My current classpath is :
ClassPath=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;c:\;c:\dell;C:\W
INNT
\Java\Classes\RxAssistant.zip
Any help is appreciated.
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

How to deploy JSF portlet war in Weblogic 8.1 SP3?

Hi All,
I have taken a sample JSF based portlet code from https://javaserverfaces.dev.java.net/servlets/ProjectDocumentView?documentID=9399&showInfo=true
I am trying to deploy the war file in Weblogic 8.1 SP3 through console.I have been able to deploy the application but while starting the application, I am getting this error:
java.lang.NullPointerException
at javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(Serv
etStubImpl.java:993)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticat
dSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java
118)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubI
pl.java:869)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStu
Impl.java:848)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStub
mpl.java:787)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl
java:518)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
pl.java:362)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
pl.java:305)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispa
cherImpl.java:301)
at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:15
)
at jsp_servlet.__index._jspService(__index.java:127)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.ru
(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
pl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
pl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActi
n.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticat
dSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java
118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppS
rvletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestI
pl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Any pointers to this?
Am I supposed to use some other version of Weblogic server or am I to use Weblogic Portal server?
Thanks & Regards,
Nishant 
Hi,
You might be loaded the FacesServlet on <load-on-startup> element in web.xml file .Some times it is not able to load at server startup it loads at runtime because of this it causes to throw NuppPointer Exception.
I suggest you to remove the load on startup tag from web.xml for the FacesServlet.
Let me know the Status after you removed that element in web.xml file
Regards
Anilkumar kari 
Hi Nishant,
I guess, u might have used the web.xml file with unwanted tags like facesservlet tag.Remove that and see.
And one morething is, try to use portal server for deploying the war file. B'coz it is the prescribed one to use from bea.So , let me know after you use portalserver...
bye
All the best.
from
vairavan

ServletException: could not be handled by classloader

Hi there,
I am developing an application in weblogic portal server 7.0.
Before configuring two ap servers as a cluster, my jsp runs well on each server.
But after clustering them as one, I requested the same jsp but got 404 Not found
message.
The exception in console is like this:
<2003/5/9 ¤U¤È09®É19¤À56¬í> <Error> <HTTP> <101018> <[ServletContext(id=3914612,
name=channel,context-path=/channel)] Servlet failed with ServletException
javax.servlet.ServletException: [ServletContext(id=3914612,name=channel,context-
path=/channel)]: Servlet class jsp_servlet._jsp._activation.__avt_queryMinMdn
fo
r servlet /jsp/activation/avt_queryMinMdn.jsp could not be handled by the ClassLoader
with classpath
...................................................................
/ap1/APBWDomain/ap1/.wlnotdelete/portalApp_channel_3914612.
java.lang.ExceptionInInitializerError
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:813)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:222)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:164)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:517)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:351)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:5412)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:744)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3086)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2544)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
Is there anyone who would like to tell me how to solve this?
Thanks a lot!
You should post to the portal newsgroup.
cheers
mbg
"Charles Shen" <jengyan#m3.is.net.tw> wrote in message
news:3ebbcbc3#newsgroups.bea.com...
>
Hi there,
I am developing an application in weblogic portal server 7.0.
Before configuring two ap servers as a cluster, my jsp runs well on eachserver.
But after clustering them as one, I requested the same jsp but got 404 Notfound
message.
The exception in console is like this:
<2003/5/9 ¤U¤È09®É19¤À56¬í> <Error> <HTTP> <101018><[ServletContext(id=3914612,
name=channel,context-path=/channel)] Servlet failed with ServletException
javax.servlet.ServletException:[ServletContext(id=3914612,name=channel,context-
path=/channel)]: Servlet classjsp_servlet._jsp._activation.__avt_queryMinMdn
fo
r servlet /jsp/activation/avt_queryMinMdn.jsp could not be handled by theClassLoader
with classpath
...................................................................
/ap1/APBWDomain/ap1/.wlnotdelete/portalApp_channel_3914612.
java.lang.ExceptionInInitializerError
atweblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:813)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:222)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:164)
atweblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:517)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:351)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:306)
atweblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:5412)
atweblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:744)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3086)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2544)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
Is there anyone who would like to tell me how to solve this?
Thanks a lot!

Categories

Resources