cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
116
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: null on 15-12-2003 03:03:34 PM
Hello,
I've got an audio element, with dynamic configuration - a custom class implementing VoiceElementInterface and the getConfig() method. The class name is Testcl. I have placed it in /usr/local/Audium/applications/test1/java/application/classes/Testcl.class

I'm using NetBeans IDE, The class is compiled using javac version 1.3.1_06 with target 1.3.
I'm running Audium server on Weblogic 7.0 with j2se 1.3.1_06 (the recommended version)

Every sample application executes correctly. When i execute my application using my custom class, the server won't start:

Loading application 'Chapter1_HelloWorld'...
Loading application 'Chapter3_AudiumClock'...
Loading application 'Chapter4_AudiumReceptionist'...
Loading application 'Chapter5_AgeIdentificationRevisited'...
Loading application 'test1'...

      • AUDIUM SERVER ERROR: An error occurred during initialization of the server: Testcl (wrong name: test1/java/application/classes/Testcl) ***
       
     

<Dec 15, 2003 3:47:16 PM CET> <Error> <HTTP> <101216> <Servlet: "Server" failed to preload on startup in webapp: "Audium"
javax.servlet.ServletException: AUDIUM SERVER ERROR: An error occurred during initialization of the server: Testcl (wrong name: test1/java/application/classes/Testcl)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:912)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:833)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:773)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2782)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:2739)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:2725)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:2700)
at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:563)
at weblogic.servlet.internal.WebService.preloadResources(WebService.java:476)
at weblogic.t3.srvr.ServletInitRunner$1.run(ServletInitRunner.java:50)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:780)
at weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:46)
at java.lang.Thread.run(Thread.java:479)

what is the problem?

Subject: RE: Problem loading java class
Replied by: Michael Bochynski on 15-12-2003 05:17:27 PM
Hi Krzysztof,

It seems to be a package declaration error. If you put your class in the main directory for classes ( [i:aa8b35198e] [APPLICATION_NAME]/java/application/classes/[/i:aa8b35198e] ) please make sure that you [b:aa8b35198e]do not[/b:aa8b35198e] have any package declaration in your Java code.

If this won't help, you can also double check that Java class exists in a package that it should be placed in and the directory structure matches the package name. Moreover, please double check all the references to your Java class for small/capital letters, name of the class file, reference in the element using dynamic configuration.
Please bear in mind, that especially Unix/Linux environment is extremely case-sensitive.


Hope this helps,
Michael

Subject: RE: Problem loading java class
Replied by: null on 16-12-2003 10:27:08 AM
Hi,

actually it was the package case. thank you for the fast response
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links