Wrong Name Error

Hi,
I created a package in eclipse with 3 .java files under it.
In each of the three java files I have included the "package testpackage;" clause at the top.
My first 2 files (lets call them one.java and two.java) is referenced in three.java, thus I use the import statement for both one and two in three.java.
After I compile all 3 successfully in Eclipse, I go to the command line, to the specific directory (testpackage) and run: java one, but I get the message:
NoClassDefFoundError: 1 (wrong name: testpackage/one)
What is wrong?

I found that you need to be in the PACKAGE directory when you execute the "java" command, not the directory containing the .class file(s). For example, if you have the following statement in your java program:
package buServer;
Your .class files (BUreceiver.class in my case) will reside in a directory named buServer. You need to be in the directory ABOVE the one that contains your class files (the package directory) and execute the program as shown below:
java buServer/BUreceiver
The above assumes that the current directory is in your CLASSPATH or is given by the " -cp ." on the java command line.
The basic problem, I think, is that CLASSPATH points to directories that are supposed to contain .class files. When you use a package, you have to give the fully quallified name of the class with a root beginning in one of the directories in the CLASSPATH. In my case, the "package" statement says my class should be in a <CLASSPATH>\buServer\ directory. When I was in the buServer directory (containing my .class files) and added it to the CLASSPATH, there was no <CLASSPATH>\buServer\ directory, since the buServer\ directory was inside CLASSPATH. However, when I tried to execute it without qualifying it with the "buServer", it saw the package statement in the class file that was there and gave me the "wrong name" error.
Another solution would have been to take out the package statement from the program.

Similar Messages

  • Wrong name: error with Tomcat

    hello, I'm running Tomcat on Debian Sarge and I'm getting the following error:
    java.lang.NoClassDefFoundError: com/bluewolf/BlueWolf (wrong name: BlueWolf)
         java.lang.ClassLoader.defineClass1(Native Method)
         java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1629)
         org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         java.lang.Thread.run(Thread.java:595)
    The name of my servlet is BlueWolf. I have defined my servlet in my web.xml like so:
    <!-- servlet definitions -->
    <servlet>
    <servlet-name>BlueWolf</servlet-name>
    <servlet-class>com.bluewolf.BlueWolf</servlet-class>
    </servlet>
    <!-- define mappings -->
    <servlet-mapping>
    <servlet-name>BlueWolf</servlet-name>
    <url-pattern>/BlueWolf</url-pattern>
    </servlet-mapping>
    I've tried searching for this error but there were no fixes I found that helped my situation. Can anyone please help me out? If any more information is needed please let me know.
    Thanks!

    Okay, I made a simpler web application. I have:
    index.html
    WEB-INF/
    my WEF-INF directory looks like:
    classes/
    lib/
    web.xml
    my only servlet is WEB-INF/classes/com/servTest.class
    I defined the servlet in my web.xml like this:
    <!-- Name to Java class mapping -->
    <servlet>
    <servlet-name>servTest</servlet-name>
    <servlet-class>com.servTest</servlet-class>
    </servlet>
    <!-- Name to URL mapping -->
    <servlet-mapping>
    <servlet-name>servTest</servlet-name>
    <url-pattern>/servTest</url-pattern>
    </servlet-mapping>
    However, I still get the same error (NoClassDefFoundError .... wrong name: servTest blah blah)
    I am trying to access the servlet by the url http://localhost:8080/servTest/servTest and I've also tried http://localhost:8080/servTest/com.servTest. I also tried linking to it in my index via a form with action="servTest". I've also tried action="com.servTest" however I still can't seem to get past this wrong name error. However, I can create servlets fine without trying to use packages (i.e. if i place .class files directly in WEB-INF/classes), but I would really like to have packages working. Can anyone see any potential errors? thanks!

  • Wrong name error if I mess up url string case

    Hi:
              I have a url as the following: http://localhost:7001/APP/a.jsp. If I
              close browser and type it as lower case url
              http://localhost:7001/app/a.jsp later time, it will cause a null pointer
              exception(wrong name error). Is the url case sensitivity problem been
              fixed by any service pack.
              Thanks,
              David
              

    Okay, I made a simpler web application. I have:
    index.html
    WEB-INF/
    my WEF-INF directory looks like:
    classes/
    lib/
    web.xml
    my only servlet is WEB-INF/classes/com/servTest.class
    I defined the servlet in my web.xml like this:
    <!-- Name to Java class mapping -->
    <servlet>
    <servlet-name>servTest</servlet-name>
    <servlet-class>com.servTest</servlet-class>
    </servlet>
    <!-- Name to URL mapping -->
    <servlet-mapping>
    <servlet-name>servTest</servlet-name>
    <url-pattern>/servTest</url-pattern>
    </servlet-mapping>
    However, I still get the same error (NoClassDefFoundError .... wrong name: servTest blah blah)
    I am trying to access the servlet by the url http://localhost:8080/servTest/servTest and I've also tried http://localhost:8080/servTest/com.servTest. I also tried linking to it in my index via a form with action="servTest". I've also tried action="com.servTest" however I still can't seem to get past this wrong name error. However, I can create servlets fine without trying to use packages (i.e. if i place .class files directly in WEB-INF/classes), but I would really like to have packages working. Can anyone see any potential errors? thanks!

  • SQL Injection Produces "Wrong Name" Errors

    Hi all,
    By now, you're familiar with the SQL Injection attacks
    floatin' around out there, but what has me puzzled is how my
    ColdFusion servers are responding to them. For each SQL Injection
    attempt, CF throws an application error; this is from my
    APPLICATION.LOG:
    "Error","jrpp-953","09/19/08","13:27:04",,"Application (wrong
    name: com/ms/asp/Application) The specific sequence of files
    included or processed is: D:\MySite\web\product.cfm "
    I've seen others complaining about this on ColdFusion MX 6,
    ColdFusion MX 7 and ColdFusion 8, but every discussion terminates
    mysteriously without a solution. It's an evil conspiracy....
    Any help is greatly appreciated.

    Hello,
    Were you able to solve this problem and how?
    Thanks

  • Annoying-as-hell 'wrong name' error

    Hi all,
    Okay, so I've got a Java app that compiles fine (ProxyTool.class), and works fine in Eclipse... but when I try to call it from the command-line (java ProxyTool), I'm getting this un-useful and un-helpful error: java.lang.NoClassDefFoundError: ProxyTool (wrong name: test/sys/ProxyTool).
    I then attempt to do java /test/sys/ProxyTool, and I get java.lang.NoClassDefFoundError test/sys/ProxyTool.
    Can someone please just tell me what I need to run this g*ddamn app? This is driving me nuts.

    mracuraintegra wrote:
    I had run the previous command from the package root - I simply thought I had to give a full path to the .class files. Simply using "bin" instead of the full path worked.Of course it worked, that's what I told you to do in the first place.
    I completely understand (I think) the concept of a package as a logical container. I am completely baffled as to why it is this finicky in Java. I'm assuming the .NET equivalent is a namespace, and it's not nearly this termpermental!It is not finicky, you were just doing random stuff instead of reading the documentation on how packages work.
    http://java.sun.com/docs/books/tutorial/java/package/managingfiles.html

  • Error building project using kXML2 - "Class loading error: Wrong name"

    Hi,
    I'm testing the XML-Parser KXML2 and downloaded the latest package, but the minimal version (kxml2-min.zip). I put this file into the directory "%j2mewtk%\apps\KxmlTest\lib" and wrote the lines
    import org.kxml2.io.*;
    import org.xmlpull.v1.*;
    When I try to build the project with the Wireless Toolkit (v1.04) it spits out the following error:
    Error preverifying class kxml2.io.KXmlParser
    Class loading error: Wrong name
    com.sun.kvem.ktools.ExecutionException: Preverifier returned 1
    Build failed
    I also tried the full package "kxml2.zip" but the same error occurs.
    How can I get rid of this? Thanks in advance!

    Okay, finally worked it out (hopefully). I unpacked the archive to a directory (say "%J2MEWTK%\apps\KxmlTest\tmpclasses") and then preverified them "manually":
    %J2SDK%\bin\preverify.exe -classpath "%J2MEWTK%\apps\KxmlTest\tmpclasses";"%J2MEWTK%\lib\midpapi.zip" org.kxml2.io.KXmlParser
    %J2SDK%\bin\preverify.exe -classpath "%J2MEWTK%\apps\KxmlTest\tmpclasses";"%J2MEWTK%\lib\midpapi.zip" org.xmlpull.v1.XmlPullParser
    %J2SDK%\bin\preverify.exe -classpath "%J2MEWTK%\apps\KxmlTest\tmpclasses";"%J2MEWTK%\lib\midpapi.zip" org.xmlpull.v1.XmlPullParserException
    Then I packed them again to a jar-file:
    %J2SDK%\bin\jar.exe -cvf kxml2-min.jar %J2MEWTK%\apps\KxmlTest\tmpclasses\output\.
    That was all!

  • Error - Caused By: java.lang.NoClassDefFoundError: t : T (wrong name t)

    I am getting below error when the weblogic server starts. Can somebody help on this.
    DS (XreferenceDB) creation was successful but could not test (Not available in Testing tab).
    ####<Jul 3, 2012 7:18:14 PM IST> <Error> <Deployer> <PC165237> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1341323294981> <BEA-149231> <Unable to set the activation state to true for the application 'XreferenceDB'.
    java.lang.NoClassDefFoundError: t : T (wrong name t)
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
         at weblogic.utils.classloaders.FilteringClassLoader.findClass(FilteringClassLoader.java:101)
         at weblogic.utils.classloaders.FilteringClassLoader.loadClass(FilteringClassLoader.java:86)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
         at weblogic.rmi.internal.GenericMethodDescriptor.getActualClassName(GenericMethodDescriptor.java:216)
         at weblogic.rmi.internal.GenericMethodDescriptor.access$100(GenericMethodDescriptor.java:19)
         at weblogic.rmi.internal.GenericMethodDescriptor$TypeParameter.<init>(GenericMethodDescriptor.java:250)
         at weblogic.rmi.internal.GenericMethodDescriptor.parseParams(GenericMethodDescriptor.java:111)
         at weblogic.rmi.internal.GenericMethodDescriptor.parseGenericParameter(GenericMethodDescriptor.java:151)
         at weblogic.rmi.internal.GenericMethodDescriptor.parseParams(GenericMethodDescriptor.java:109)
         at weblogic.rmi.internal.GenericMethodDescriptor.computeGenericMethodSignature(GenericMethodDescriptor.java:75)
         at weblogic.rmi.internal.GenericMethodDescriptor.computeGenericMethodSignature(GenericMethodDescriptor.java:46)
         at weblogic.rmi.internal.BasicRuntimeDescriptor.initRemoteMethods(BasicRuntimeDescriptor.java:715)
         at weblogic.rmi.internal.BasicRuntimeDescriptor.initializeRuntimeDescriptor(BasicRuntimeDescriptor.java:244)
         at weblogic.rmi.internal.BasicRuntimeDescriptor.<init>(BasicRuntimeDescriptor.java:155)
         at weblogic.rmi.internal.BasicRuntimeDescriptor.<init>(BasicRuntimeDescriptor.java:139)
         at weblogic.rmi.internal.DescriptorManager.createRuntimeDescriptor(DescriptorManager.java:106)
         at weblogic.rmi.internal.DescriptorManager.getBasicRuntimeDescriptor(DescriptorManager.java:85)
         at weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java:51)
         at weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java:37)
         at weblogic.rmi.internal.OIDManager.makeServerReference(OIDManager.java:194)
         at weblogic.rmi.internal.OIDManager.getReplacement(OIDManager.java:175)
         at weblogic.rmi.utils.io.RemoteObjectReplacer.replaceRemote(RemoteObjectReplacer.java:120)
         at weblogic.rmi.utils.io.RemoteObjectReplacer.replaceObject(RemoteObjectReplacer.java:103)
         at weblogic.rmi.extensions.server.ServerHelper.replaceAndResolveRemoteObject(ServerHelper.java:403)
         at weblogic.jndi.internal.WLEventContextImpl.copyObject(WLEventContextImpl.java:381)
         at weblogic.jndi.internal.WLEventContextImpl.bind(WLEventContextImpl.java:276)
         at javax.naming.InitialContext.bind(InitialContext.java:400)
         at weblogic.jdbc.common.internal.JDBCUtil.bindDeeply(JDBCUtil.java:147)
         at weblogic.jdbc.common.internal.JDBCUtil.bindAll(JDBCUtil.java:85)
         at weblogic.jdbc.common.internal.RmiDataSource.start(RmiDataSource.java:394)
         at weblogic.jdbc.common.internal.DataSourceManager.createAndStartDataSource(DataSourceManager.java:136)
         at weblogic.jdbc.common.internal.DataSourceManager.createAndStartDataSource(DataSourceManager.java:97)
         at weblogic.jdbc.module.JDBCModule.activate(JDBCModule.java:347)
         at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:227)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$2.next(DeploymentCallbackFlow.java:531)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:165)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:157)
         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:1267)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:409)
         at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
         at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
         at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:42)
         at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:191)
         at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
         at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
         at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
         at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
         at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
         at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    ###<Jul 3, 2012 7:18:15 PM IST> <Info> <Common> <PC165237> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1341323295059> <BEA-000626> <Free resources in pool "mds-owsm" will be tested every "300" seconds.>
    ####<Jul 3, 2012 7:18:15 PM IST> <Info> <JDBC> <PC165237> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1341323295075> <BEA-001124> <Created Connection Pool named mds-owsm.>
    ####<Jul 3, 2012 7:18:15 PM IST> <Info> <JDBC> <PC165237> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1341323295122> <BEA-001174> <Creating Data Source named mds-owsm, JNDI Name = jdbc/mds/owsm.>
    ####<Jul 3, 2012 7:18:15 PM IST> <Error> <Deployer> <PC165237> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1341323295122> <BEA-149231> <Unable to set the activation state to true for the application 'mds-owsm'.
    java.lang.NoClassDefFoundError: t : T (wrong name t)
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
         at weblogic.utils.classloaders.FilteringClassLoader.findClass(FilteringClassLoader.java:101)
         at weblogic.utils.classloaders.FilteringClassLoader.loadClass(FilteringClassLoader.java:86)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
         at weblogic.rmi.internal.GenericMethodDescriptor.getActualClassName(GenericMethodDescriptor.java:216)
         at weblogic.rmi.internal.GenericMethodDescriptor.access$100(GenericMethodDescriptor.java:19)
         at weblogic.rmi.internal.GenericMethodDescriptor$TypeParameter.<init>(GenericMethodDescriptor.java:250)
         at weblogic.rmi.internal.GenericMethodDescriptor.parseParams(GenericMethodDescriptor.java:111)
         at weblogic.rmi.internal.GenericMethodDescriptor.parseGenericParameter(GenericMethodDescriptor.java:151)
         at weblogic.rmi.internal.GenericMethodDescriptor.parseParams(GenericMethodDescriptor.java:109)
         at weblogic.rmi.internal.GenericMethodDescriptor.computeGenericMethodSignature(GenericMethodDescriptor.java:75)
         at weblogic.rmi.internal.GenericMethodDescriptor.computeGenericMethodSignature(GenericMethodDescriptor.java:46)
         at weblogic.rmi.internal.BasicRuntimeDescriptor.initRemoteMethods(BasicRuntimeDescriptor.java:715)
         at weblogic.rmi.internal.BasicRuntimeDescriptor.initializeRuntimeDescriptor(BasicRuntimeDescriptor.java:244)
         at weblogic.rmi.internal.BasicRuntimeDescriptor.<init>(BasicRuntimeDescriptor.java:155)
         at weblogic.rmi.internal.BasicRuntimeDescriptor.<init>(BasicRuntimeDescriptor.java:139)
         at weblogic.rmi.internal.DescriptorManager.createRuntimeDescriptor(DescriptorManager.java:106)
         at weblogic.rmi.internal.DescriptorManager.getBasicRuntimeDescriptor(DescriptorManager.java:85)
         at weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java:51)
         at weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java:37)
         at weblogic.rmi.internal.OIDManager.makeServerReference(OIDManager.java:194)
         at weblogic.rmi.internal.OIDManager.getReplacement(OIDManager.java:175)
         at weblogic.rmi.utils.io.RemoteObjectReplacer.replaceRemote(RemoteObjectReplacer.java:120)
         at weblogic.rmi.utils.io.RemoteObjectReplacer.replaceObject(RemoteObjectReplacer.java:103)
         at weblogic.rmi.extensions.server.ServerHelper.replaceAndResolveRemoteObject(ServerHelper.java:403)
         at weblogic.jndi.internal.WLEventContextImpl.copyObject(WLEventContextImpl.java:381)
         at weblogic.jndi.internal.WLEventContextImpl.bind(WLEventContextImpl.java:276)
         at weblogic.jdbc.common.internal.JDBCUtil.bindDeeply(JDBCUtil.java:147)
         at weblogic.jdbc.common.internal.JDBCUtil.bindAll(JDBCUtil.java:85)
         at weblogic.jdbc.common.internal.RmiDataSource.start(RmiDataSource.java:394)
         at weblogic.jdbc.common.internal.DataSourceManager.createAndStartDataSource(DataSourceManager.java:136)
         at weblogic.jdbc.common.internal.DataSourceManager.createAndStartDataSource(DataSourceManager.java:97)
         at weblogic.jdbc.module.JDBCModule.activate(JDBCModule.java:347)
         at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:227)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$2.next(DeploymentCallbackFlow.java:531)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:165)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:157)
         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:1267)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:409)
         at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
         at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
         at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:42)
         at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:191)
         at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
         at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
         at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
         at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
         at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
         at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Edited by: 944382 on Jul 4, 2012 2:34 AM

    Error while creating and saving the DS...
    ####<Jul 3, 2012 7:18:13 PM IST> <Info> <JDBC> <PC165237> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1341323293059> <BEA-001517> <Connection Pool "XreferenceDB" using Driver: "Oracle JDBC driver", Version: "11.1.0.7.0-Production".>
    ####<Jul 3, 2012 7:18:14 PM IST> <Info> <Common> <PC165237> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1341323294856> <BEA-000628> <Created "1" resources for pool "XreferenceDB", out of which "1" are available and "0" are unavailable.>
    ####<Jul 3, 2012 7:18:14 PM IST> <Info> <JDBC> <PC165237> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1341323294856> <BEA-001124> <Created Connection Pool named XreferenceDB.>
    ####<Jul 3, 2012 7:18:14 PM IST> <Info> <JDBC> <PC165237> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1341323294903> <BEA-001174> <Creating Data Source named XreferenceDB, JNDI Name = Xreference.>
    ####<Jul 3, 2012 7:18:14 PM IST> <Error> <Deployer> <PC165237> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1341323294981> <BEA-149231> <Unable to set the activation state to true for the application 'XreferenceDB'.
    java.lang.NoClassDefFoundError: t : T (wrong name t)
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
         at weblogic.utils.classloaders.FilteringClassLoader.findClass(FilteringClassLoader.java:101)
         at weblogic.utils.classloaders.FilteringClassLoader.loadClass(FilteringClassLoader.java:86)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
         at weblogic.rmi.internal.GenericMethodDescriptor.getActualClassName(GenericMethodDescriptor.java:216)
         at weblogic.rmi.internal.GenericMethodDescriptor.access$100(GenericMethodDescriptor.java:19)
         at weblogic.rmi.internal.GenericMethodDescriptor$TypeParameter.<init>(GenericMethodDescriptor.java:250)
         at weblogic.rmi.internal.GenericMethodDescriptor.parseParams(GenericMethodDescriptor.java:111)
         at weblogic.rmi.internal.GenericMethodDescriptor.parseGenericParameter(GenericMethodDescriptor.java:151)
         at weblogic.rmi.internal.GenericMethodDescriptor.parseParams(GenericMethodDescriptor.java:109)
         at weblogic.rmi.internal.GenericMethodDescriptor.computeGenericMethodSignature(GenericMethodDescriptor.java:75)
         at weblogic.rmi.internal.GenericMethodDescriptor.computeGenericMethodSignature(GenericMethodDescriptor.java:46)
         at weblogic.rmi.internal.BasicRuntimeDescriptor.initRemoteMethods(BasicRuntimeDescriptor.java:715)
         at weblogic.rmi.internal.BasicRuntimeDescriptor.initializeRuntimeDescriptor(BasicRuntimeDescriptor.java:244)
         at weblogic.rmi.internal.BasicRuntimeDescriptor.<init>(BasicRuntimeDescriptor.java:155)
         at weblogic.rmi.internal.BasicRuntimeDescriptor.<init>(BasicRuntimeDescriptor.java:139)
         at weblogic.rmi.internal.DescriptorManager.createRuntimeDescriptor(DescriptorManager.java:106)
         at weblogic.rmi.internal.DescriptorManager.getBasicRuntimeDescriptor(DescriptorManager.java:85)
         at weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java:51)
         at weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java:37)
         at weblogic.rmi.internal.OIDManager.makeServerReference(OIDManager.java:194)
         at weblogic.rmi.internal.OIDManager.getReplacement(OIDManager.java:175)
         at weblogic.rmi.utils.io.RemoteObjectReplacer.replaceRemote(RemoteObjectReplacer.java:120)
         at weblogic.rmi.utils.io.RemoteObjectReplacer.replaceObject(RemoteObjectReplacer.java:103)
         at weblogic.rmi.extensions.server.ServerHelper.replaceAndResolveRemoteObject(ServerHelper.java:403)
         at weblogic.jndi.internal.WLEventContextImpl.copyObject(WLEventContextImpl.java:381)
         at weblogic.jndi.internal.WLEventContextImpl.bind(WLEventContextImpl.java:276)
         at javax.naming.InitialContext.bind(InitialContext.java:400)
         at weblogic.jdbc.common.internal.JDBCUtil.bindDeeply(JDBCUtil.java:147)
         at weblogic.jdbc.common.internal.JDBCUtil.bindAll(JDBCUtil.java:85)
         at weblogic.jdbc.common.internal.RmiDataSource.start(RmiDataSource.java:394)
         at weblogic.jdbc.common.internal.DataSourceManager.createAndStartDataSource(DataSourceManager.java:136)
         at weblogic.jdbc.common.internal.DataSourceManager.createAndStartDataSource(DataSourceManager.java:97)
         at weblogic.jdbc.module.JDBCModule.activate(JDBCModule.java:347)
         at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:227)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$2.next(DeploymentCallbackFlow.java:531)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:165)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:157)
         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:1267)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:409)
         at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
         at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
         at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:42)
         at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:191)
         at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
         at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
         at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
         at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
         at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
         at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Edited by: 944382 on Jul 5, 2012 4:28 AM

  • Jabber Client CallerId displays wrong name

    Hi,
    I have a problem with the wrong name displaying in Jabber calls. This only occurs when John calls from his Jabber Client. There is always the CallerId of Sam showing up.
    Checked AD, Outlook contacts, CUCM & Webex configuration and found no errors.
    Then I generated a problem record in my Jabber for Windows client and found this in PROBLEM_FEEDBACK_Cisco_Jabber_17.49_01-08-2013\Contacts\PersonManager\PersonManagerForensics.txt:
    [1] <PersonResolver: 0D32AD90>
    Original record: <0D36E2B8>
    <Person: 0D36E370>
      <PersonRecord: 0D36E2B8> (Roster:[email protected])
      <PersonRecord: 09349160> Sam Sample (WebEx:[email protected])
      <PersonRecord: 0F10FE60> Doe, John (CallerID:+491234567890:Doe, John)
    In the other records there is only one name associated to one person. How did John number slip in here. And most interesting, how can I get rid of that entry? Where is it originated?
    Same Problem occurs at a customer site with a on premise deployment (CUPS). So it doesn't seem to be Webex related. Tried several Jabber versions from 9.1.3 to 9.2.3. Same behaviour.
    Any suggestions hints?
    Regards
    Andre

    I think I see what is going on, just not entirely sure why and how to prevent it yet.
    Look at the two records below, taken from the "PersonManagerForensics.txt" file generated once you report a problem through the Jabber application.
    That first contact is a personal contact in the users Outlook address book.
    The second contact is an employee.
    When the user calls the second contact in Jabber, the caller ID always shows up as first contact. Same thing happens if the second contact calls the user.
    The caller ID for the first contact is the same last 4 digits as the internal employees DID number. We use 4 digit dialing. Not really sure why the caller ID record for the first contact resolved to those last 4 digits of that one telephone number.
    Jabber issue....or Outlook issue???
    I'll open a TAC case.
    [2]
      Belinda Iberl (OutlookRecordSource:EF000000BC83CE4367E42B42B2EF336756A5DEA964E52100) [439-9380 OR 458-0170, 508-2938, 459-2220]
      (CallerID:2220:) [2220]
    3]
      Ryan Kooi (UDS:rkooi) [5204392220]
      (CallerID:5204392220:) [5204392220]

  • Invalid subreport name Error code:-2147483086

    The setup used in this particular environment is to run reports via Crystal reports server 2008. We call the servers via the rassdk_java_dg_12_en and the setup works just fine BUT in one particular case.
    The report that fails have a main report with a datasource to SQL. The report does have about 20 - 25 subreports mostly based on the same datasource. There are however 6 subreports that uses ttx files as datasources.
    The report works fine when there is no data for the ttx subreports, but whenever a "change datasource" is tried to the ttx subreports the error "Invalid subreport name Error code:-2147483086" pops up.
    We have done noumerous tests on the pojo approach in other reports so the technic and code works just fine - it most be some special case in the report.
    Before we start to try to rebuild the report we will give you a chance to help us out. The report sucker is big and complex so a rebuild is not wanted...
    Here is the particular code involved
    private static void passPOJO(ReportClientDocument clientDoc,
                ReportPojoHolder pojoHolder, String reportName)
                    throws ReportSDKException,ClassNotFoundException {
            //Its a pojo data source, but it's nothing in it
            if (pojoHolder.getPojos().size() == 0) {
                return;
            String reportTable = pojoHolder.getTableName();
            Object pojo = pojoHolder.getPojos().iterator().next();
            POJOResultSetFactory factory = new POJOResultSetFactory(pojo.getClass());
            POJOResultSet resultSet = (POJOResultSet)factory.createResultSet(pojoHolder.getPojos());
            if(reportName == null || reportName.equals("")) {
                clientDoc.getDatabaseController().setDataSource(resultSet, reportTable, reportTable);
            else {
                System.err.println("Setting data in " + reportName );
    //Here comes the error
                clientDoc.getSubreportController().getSubreport(reportName).
                    getDatabaseController().setDataSource(resultSet, reportTable, reportTable);
    Here is the stacktrace:
    table: srptMainCustomerList;1, subrapport: AddressField
    table: srptusrinf;1, subrapport: AdvisorName
    table: srptusrinf;1, pojo: Beta
    table: srptusrinf;1, pojo: JensensAlpha
    table: srptusrinf;1, pojo: PerformanceChart
    Setting data in PerformanceChart
    2009-02-06 09:05:31,720 ERROR (CrystalReportServlet:doGet()) - [Username=Patrik Andrén, UserID=n249060, CustId=005563741684, Cstid=37385] - (Creation of report: customer_report.rpt failed on: [ReportAppServer: CCA1CS0569. Datasource: cca1cd0046qa1|omega] com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException:
    Fel i filen customer_report {CDCDCEC2-050C-4405-865C-6031D4BFF2DE}.rpt:
    Ogiltigt underrapportnamn.---- Error code:-2147483086 Error code name:failed, ) - [applicationId=omega, omegaUserId=omega.userid, credentials=IT, groupName=IT, sessionId=yLkhJLtYpLlDQ5Jf5S2GkzhPfSZJBg2zZkT4LfQ0L1bJg2v20pz2!-2033571304!1233906968432, requestId=06968853:167:000], exception-stack=
    com.nordea.omega.report.exceptions.ReportGenerationFailedException: Creation of report: customer_report.rpt failed on: [ReportAppServer: CCA1CS0569. Datasource: cca1cd0046qa1|omega] com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException:
    Fel i filen customer_report {CDCDCEC2-050C-4405-865C-6031D4BFF2DE}.rpt:
    Ogiltigt underrapportnamn.---- Error code:-2147483086 Error code name:failed,
         at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.s.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.bl.do(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.do(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.verifyDatabase(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.bl.byte(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ao.onDataSourceChanged(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.setDataSource(Unknown Source)
         at com.nordea.crystalreports.ReportHelper.passPOJO(ReportHelper.java:814)
         at com.nordea.crystalreports.ReportHelper.changeDataSource(ReportHelper.java:124)
         at com.nordea.crystalreports.ReportGenerator.generate(ReportGenerator.java:115)
         at com.nordea.crystalreports.ReportGenerator.generate(ReportGenerator.java:62)
         at com.nordea.omega.report.servlet.CrystalReportServlet.doGet(CrystalReportServlet.java:116)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServi

    I have been able to wrestle this down after a lot of frustrating work. The error had nothing to do with pojos at all. The error was simple a store procedure that did not reply nothing.
    In the preparation of the subreport that did consist of the pojo data source. The report(server?) did send a "pre call" to the store procedure with NULL as parameters. The reply was unfortunately an "empty" reply. When we changed the reply to an empty result set it went pass the data sources.
    The error message given on this was "Invalid subreport name"! Not very helpful at all.
    I have used this new version for about 3 weeks now in a "proof of concept" work controlling if we would be able to upgrade from crystal 9/Harmoni to Crystal 2008/Crystal Report Server 2008. The answer will be yes. It will work. And with a minimum of report changes which is very nice.
    What have struck me the most during this work is a few proposals to improvements.
    1. Put the versions on jars and sdk's so it's obvious what's used. I spent a few days with an old version of a sdk believing that it was a newer than I already had. It should not be neccessary to go through a manifest file inside a jar in order to find out what the version is. Put it on the file names!
    2. Give proper error messages back when something goes wrong. If a parameter value is missing. Send back the parameter that's missed/misses a value for Gods sake. The programmer catching the error most know what's missed hence the message. Would save the user's of the API very much time.
    I spent about 5 - 10 days trying to find out what was wrong with my sub report name (This thread). It had nothing to do with the subreport name. It had to do with missing data from a called store procedure!
    3. The documentation can be a bit tricky to find. I saw that you have given away a eclipse plugin in order to gather the documentation inside the IDE. That's a good approach.
    If the error messages will be enhanced and more accurate it's a pretty handy api to work with. And the handling of unmanaged reports is a wet dream compared to usage of the Harmoni API. That's a real nightmare. The server seems to be very stable and just runs.
    I like this forum, fast replies when one is stuck is extremely helpful!
    /Patrik

  • CD showing up as wrong name

    I'm importing a CD into iTunes and it shows up under the wrong name and with all wrong info. Even if I delete it, when I try again it shows up as the same wrong name. How can I change it?

    This is likely due to an error in the Gracenote database that iTunes links to for retrieving album info. You'll have to manually edit the tags to correct them -- either before you import or after. If you correct them before you import, the nice thing is that iTunes will remember this if you ever have to re-import this album, and if you edit the tags before you import you have the ability to submit the corrections back to Gracenote (Advanced/Submit CD Track Names).

  • Java.lang.NoClassDefFoundError: src/myproject/myapp (wrong name: myproject/

    Hi
    I was trying to build an app using JBuilder personal. It would build and run fine. Then i realised that i could not use the api from jdk1.4 as JBuilder would only work with jdk1.3.
    So, i moved the project from JBuilder to Forte thinking that Forte would allow me to use the jdk1.4 api. After significant trouble porting the project, i got the project to build successfully.
    But when i try to run it , i get the following error
    What could be causing it and how do i fix it? these errors are very frustrating. searching this site or the forte help, hasnt given me any tips yet. Thanks
    java.lang.NoClassDefFoundError: src/myproject/myapp (wrong name: myproject/myapp )
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
    Exception in thread "main"

    But when i try to run from Forte, it still gives the same dumb errors ..
    Could it be a Forte settings problem??Definitely. Choose the Project menu, then the Settings... at the bottom. That brings you up a new dialog. On the left, select the "Execution types", and the "external execution" within. On the right pane, click on the "expert" tab on the bottom. There you have a field named classpath; add your classpath directories there. Then your program will probably run from Forte.
    For compiling, you also should set the classpath; you need "Compiler types" on the left pane, and you have to set the classpath for the fastJavac compilation and/or for the external compilation, depending which one you use.
    On the left also a "Java Sources" node - click on it, and check if the "default compilation" is either external or (preferable) fastJavac; and that the default execution is external.
    How Forte works with internal compilation, and internal execution, I don't know, never tried that.
    Best Regards,
    Ivan

  • FrutigerLTStd-Bold Cn font has wrong name in file and not installing

    Just purchased FrutigerLTStd-Bold CN font.  The font file name is correct, but In the font window it says the name is "Frutiger LT Std 47 Light Cn" but the font shows up as the bold one.  Installed the font but it is not showing up in my font list.  Think there must be an error since the wrong name is thereI already have the light one, I need the bold font.  Was on hold with Chat for 30 minutes, they told me to call support.  Phone and said there was a 2 hour wait - my phone battery died before I was connected.  Help!

  • Java.lang.NoClassDefFoundError: MyClass (wrong name: mypackage/MyClass)

    Bit nervous about posting again got absolutely slagged by the "big boys" for being an idiot. But here goes anyway -
    I'm getting the error in the subject line in an applet.
    What I am slightly confused about is why the code compiles and runs fine in NetBeans but as soon as I upload the class to my site it gives this error.
    I have read a lot about class paths being wrong on the computer and things in wrong directories, but how are the class paths wrong for a successfully compiled and built program?
    I have all the classes from the package in the same directory on the website.
    Any clues would be appreciated.
    Cheers
    Dan

    Hi cotton
    Thanks for the answer, I have tried a couple of variations in my applet tag.
    I started off very simply and managed to get a "HelloWorldApplet" to run.
    Then I simply tried embedding my programme, although not originally written for the web (it has a main class)
    I added the "HelloWorld" message output to my main class to see if the my classes and code is working.
    I fully expect the rest of the code to fall over elsewhere, however I did expect Java to find the "Main" class.
    I have tried the following
    <Applet code="flashcardserverside/Main.class" width="200" height="200"></applet>this gives the error-
    java.lang.ClassNotFoundException: flashcardserverside.Main.class
    also tried
    <Applet code="Main.class" width="200" height="200"></applet>this produces - Main (wrong name: flashcardserverside/Main)
    <Applet code="main.class" width="200" height="200"></applet>this returns - java.lang.ClassNotFoundException: main.class
    (I expected this because my class is Main)
    <Applet codebase = "http://www.mywebsite.co.uk" code="Main.class" width="200" height="200"></applet>giving- Main (wrong name: flashcardserverside/Main)
    <Applet codebase = "http://www.mywebsite.co.uk" code="flashcardserverside/Main.class" width="200" height="200"></applet>java.lang.ClassNotFoundException: flashcardserverside.Main.class
    I got the codebase tags from the following lesson:
    http://www.case.edu/help/wilbur/ch8.html
    Perhaps my problem is that I am trying to embed a program that I initially wrote as a non web application. Is it "illegal" to call a class Main when embedding applets.
    Cheers
    Dan
    PS thanks for the other info on classpaths.

  • Time Capsule shows with wrong name on Time Machine

    I changed the name of my Time Capsule using airport. However, Time Machine still shows the old Time Capsule name, with the new name underneath. When I try to back up using this disk, it shows the following error message:
    "Time Machine could not complete the backup. The backup disk image "/Volumes/Old Time Capsule name/My laptop name.sparsebundle" could not be accessed (error -1)."
    I don't know how to fix this. I have looked everywhere. I deleted the NetworkInterfaces.plist file in Library/Preferences/SystemConfiguration, and even made sure to do a secure empty trash. I even did a soft reset of the Time Capsule to the factory configuration, and renamed the Time Capsule all over again. I restarted the computer several times during this process, and yet no luck, it still shows the old Time Capsule name.
    Does anybody know how to fix this? Thank you!

    Ok, the MacBook is backing up now. Here is what I did:
    After manually changing the name of the Time Capsule Disk as above, Time Machine was still not able to back up. I kept getting the error message
    "Time Machine could not complete the backup. The backup disk image "/Volumes/Old Time Capsule name/My laptop name.sparsebundle" could not be accessed (error -1)."
    The problem is that "My laptop name" Time Machine was using is wrong. I had changed the laptop name in Network Perferences>Sharing before, but it still kept looking for the wrong .sparsebundle file in the Time Capsule. I don't know why, and I even deleted the NetworkInterfaces.plist file again with no success.
    I entered the Time Capsule from the Finder menu, found the .sparsebundle file with the wrong name, and manually deleted it. Finally the MacBook was able to backup. However, although the MacBook name is the same as it used to be before, and even though there was already an old .sparsebundle file with the correct name, Time Machine created a new .sparesebundle with the same name, and began an entirely new backup. I am just letting it do this backup, and then I will manually delete the old backup, so it doesn't take space on the Time Capsule. I don't need the past backups (and hope I won't swallow my words), and I am tired of dealing with this, so this will be it.

  • In Mail - emails arrive with the wrong name?

    I am receiving emails both in general and from FaceBook with the wrong name as the sender.  Today I received an email from "Jerri" and the name shown was "Marilyn".  I also receive all my FB emails from 'Dina'  and they are from all kinds of different people.
    I'm on a MacBook Pro, 10.10.2.  I looked on FB to find an answer, but can't find anything, but it must be with Mail, as the emails arrive from anyone direct (not from FB) and they are wrong.  I did just rebuild Mail, but the same wrong names are there.
    Thanks anyone, Cheryl

    It is an excellent question .. it used to happen when I ran my first Mac on snow leopard but I have never pursued the reason until I saw your question.
    Here is a useful reference.
    http://apple.stackexchange.com/questions/55416/my-mac-minis-computer-name-keeps- changing-when-it-resumes-from-sleep
    Something is faulty in the main router. That it is a TC is no surprise really.. they are far from being great routers.
    Of course if this didn't happen on previous OS but is now happening since you moved to Yosemite.. well you know where the blame lies.. although how Yosemite is affecting it I don't know.
    Since I moved everything to Asus router I no longer have the problem. But my Mac was up to (5) and I thought this is getting ridiculous.
    Let me copy and paste the answer and kudos to the guy who posted it.. Jon not me.
    I've seen this happen when the local DNS server has DNS caching enabled, but doesn't flush the cache often enough (or at all).
    You can set your Host Name/Computer Name to a static value using scutil in Terminal. This means that your Mac will no longer change it's name automatically, so it's important that there are no other machines on your network that actually have that hostname. When you run this, replace "new_hostname" with your desired hostname:
    sudo scutil –-set HostName new_hostname
    sudo scutil –-set LocalHostName new_hostname
    sudo scutil –-set ComputerName new_hostname
    You can check to make sure the values are set by running:
    sudo scutil –-get HostName new_hostname
    sudo scutil –-get LocalHostName new_hostname
    sudo scutil –-get ComputerName new_hostname
    When you do this you might keep getting errors that another computer of the same name is on the network.. just reboot the TC to clear the DNS cache.
    Or if that doesn't work you will need to clear the cache from the local computer.

Maybe you are looking for

  • The Web application could not be found

    Hello, I have a machine that has s share point portal . I create WCF on the same machine and set it on IIS and the identity of application pool is the administrator of machine            PlatformTarget : 64 bit ,  Framework : .net 4.5 I have added sh

  • Error ' Quantity exceeds quantity in PO' in service entry sheet creation.

    Hi, I am getting error "Quantity entered 7,000 exceeds quantity 5,000 in purchase order' ,  Message no. SE363" while creating service entry sheet PO Quantity - 1 AU Service  quantity - 5 HR in service entry sheet creation i am giving 6HR instead of w

  • Error in installation of Sap Solution Manager - AIX / Oracle

    <b>Hello, We are installing SAP Solution Manager in Operating System is AIX 5.3 and Database System is Oracle 10.2 After the Oracle Installation, in the phase of Abap Import (16 of 44), we are receiving the follow error message:</b> Required system r

  • Whats the best way to get the server name in a servlet deployed to a cluster?

              Hi,           I have a servlet in a web application that is deployed to a cluster, just           wondering what is the best way to get the name of the node that the server is           running on at run time??           Thanks           

  • Setting fonts and Background color

    Hi, Is there anyway to set the font and background color on a jLabel? Thanks for your help!