Can't find client class
Hi,
I have been testing with a J2EE turtorial.
I have created a cliet file jaxrpc-simpleClient.jar. When I try to run it using : appclient -client ../jaxrpc-simpleClient.jar
I get the error:
2005-aug-10 22:00:07 com.sun.enterprise.appclient.Main <init>
VARNING: ACC003: Application threw an exception.
java.lang.ClassNotFoundException: gsz.HelloClient
It seems that the jar file does not contain the class files for the client.
jar -tf ..\jaxrpc-simpleClient.jar gives:
gsz/HelloIF_sayHello_RequestStruct_SOAPBuilder.class
gsz/HelloIF_Tie.class
gsz/HelloIF_sayHello_RequestStruct.class
gsz/HelloIF_sayHello_ResponseStruct_SOAPBuilder.class
gsz/HelloIF_sayHello_ResponseStruct_SOAPSerializer.class
gsz/HelloIF_sayHello_ResponseStruct.class
gsz/HelloIF_sayHello_RequestStruct_SOAPSerializer.class
gsz/HelloWorld_SerializerRegistry.class
gsz/HelloIF_sayHello_RequestStruct_2_SOAPBuilder.class
gsz/HelloWorld.class
gsz/HelloIF_sayHello_RequestStruct_2_SOAPSerializer.class
gsz/HelloIF_sayHello_ResponseStruct_2_SOAPBuilder.class
gsz/HelloWorld_Impl.class
gsz/HelloIF_sayHello_ResponseStruct_2_SOAPSerializer.class
gsz/HelloIF_Stub.class
WEB-INF/classes/gsz/HelloIF.class
WEB-INF/classes/gsz/HelloImpl.class
jaxrpc-simple.war
jaxrpc-simpleClient.jar
META-INF/application.xml
META-INF/sun-application.xml
I use "asant core" to create the class files. Where in the process do I miss the client files?
I had to modify the soap address per the instructions on the bottom of:
file:///C:/Sun/AppServer/samples/webservices/jaxrpc/apps/simple/docs/index.html#16226
I also had to delete the jaxrpc-simple.ear that existed under the <install-dir>/samples/webservices/jaxrpc/apps/simple. I also did a complete asant undeploy, assant clean, assant and then redeployed and it finally worked:
Similar Messages
-
Can't find main class - program will end
Dear forum readers,
Recently upgraded from Win2k pro to XP pro .. installation ran to conclusion w/ no fatal errors BUT upon booting new system I now receive an error message "Java Virtual Machine Launcher can't find main class, program will end" .. I am not aware that this error is causing any problems BUT it is annoying and I'd like to be able to fix the problem so I don't have to close the error message at each startup .. please help!
Thanks in advance, LarryTry this
java -XbootClasspath/a -jar <<Prog name>>
I think you are trying in windows XP.
Also you need to modify if there are any other jars to be reference. For eg if a.jar is also required for this try as below
java -XbootClasspath/a:a.jar -jar <<Prog name>> -
Can't find textbox class - help please!
I'm posting this again, in the hope that more people might help. I already know that the error means that the compiler can't find the class Textbox. I need to know why, because I've copied the relevant parts of the code from another app that builds fine. So why won't this build?
I'm trying to write and build my first J2ME app. My code starts:
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
import java.lang.Math;
public class TestMIDlet
extends MIDlet
implements CommandListener
private Textbox tbMain;
public void startApp()
The build fails with numerous errors of which the first is:
C:\WTK22\apps\TestMIDlet\src\TestMIDlet.java:9: cannot find symbol
symbol : class Textbox
location: class TestMIDlet
private Textbox tbMain;
with the caret under the 'T' of Textbox
I don't understand what's wrong with this, as it's in many of the sample apps I've looked at.
Thanks
EdThanks very much!
I've lost count of the times I've been caught by that case-sensitivity thing in Javascript. I thought it was just the first letter that had to be capitalised. Progress at last! -
My JSP can't find a class file
Hi
I am trying to view a JSP but I get ClassNotFoundException. I know that it means that it can't find the class but I can't understand why.
my directory structure:
Intranet->source
->jsp
->WEB-INF->classes->source-><class file here>
first line of .java file:
package source;
JSP code:
<%@page import="java.sql.*, source.*, java.util.*;" %>
<jsp:useBean id="dbConnect" scope="session" class="source.DBConnect">
<jsp:getProperty name="dbConnect" property="jdbc:odbc:Auto_Intranet" />
</jsp:useBean>
Must I create an environment variable for 'Windows': with classpath " .....\WEB-INF\classes"
The Windows environment variable doesn't exist----using XP ProLooks right to me.
You don't need a classpath variable. Web containers ignore it anyway.
Which class is not found? source.DBConnect?
Is DBConnect in a package called source?
Is your database driver in the web-inf/lib directory?
Please post the full error message with stack trace - it will be easier to sort out.
Good luck,
evnafets -
Which Table, can I find the class and characteristic assigned to equipment.
Hi all,
I have assigned a characteristc to a class.
And assigned this class to an equipment.
Now in which table can i find the class assigned to this equipment.
What is the logic to find the class and characteristic.
Thanks in advance.
PiyushHi,
As per above post, you can find classes. To find characteristics, Give EQUNR value in OBJEK field in AUSP table & get the ATINN value.
Give ATINN value in ATINN field in CABN table & get ATNAM field value.
In AUSP table, you can get the values against each characteristics as well.
Regards,
Maheswaran.
Edited by: Maheswaran.K on Apr 19, 2011 9:28 AM -
Installing 10g on Windows XP machine JVM launcher "Can't find main class"
I am trying to install 10g Release 2 on a Windows XP machine. I downloaded the zip from the OTN. Unzipped the file. No problems. Tried to run the OUI, it opened up a shell and said to wait. The shell closed and a message frome the JVM Launcher displayed "Can't find main class. Program will exit." I have seen several people on this and other discussion boards having this problem, but have yet to get a solution. Please help.
What's the value of CLASSPATH environment variable? Possibly a non-oracle application has set this variable and the installer catches it. If there is such a variable, comment it out and try again.
-
Can't find Java Class of a standard UI Command
Hello everybody,
Where can i find Java classe source and Bundle file of a standard UI Command "AppDetails"
for example ?
Thanks & Regards,
Hassan MounimHi Hassan,
You can find the UIDetailsCommand class here:
..\WEB_INF\portal\portalapps\com.sap.km.cm.ui.flex\private\lib\km.appl.ui.flex.uicommand_core.jar
And the bundle file UIConst here:
..\WEB_INF\portal\portalapps\com.sap.km.cm.ui.flex\lib\km.shared.ui.flex.uicommand_api.jar
Hope this helps,
Robert -
Swf can't find custom classes after publishing....
Hi everyone,
So this is probably an easy thing I don't know, I'm hoping.
But when I publish my project and test it in a normal HTML, the swf can find some classes but not others for some reason?
How can I make sure all the classes get compiled into the Swf?
I got the main timeline calling the first class (CalypsoPlayer); and it finds this class find -- which is under the same class path.
But CalypsoPlayer can't find the class it needs, even though it's under the same class path as the class.
I've tested the project in Flash itself and it all works great without any errors so I'm not sure what's going on. It's only when I test
the published SWF that it can't find all the classes it needs.
I appreciate anyones help -- StanHey Dan,
My mind just stopped for an hour and I wasn't thinking straight on this issue, lol. I thought I deleted this posting but apparently
I didn't.
Thanks for your help but this issue was just a result of a mind that had too much coffee and not enough energy .
- Stan -
Can not find Main Class - Can't Run Application
I have at this for a while and it is drivng me crazy... I have an application that I want execute in a bat file. I have checked the runtime environment by executing java and javaw, both which give option on error messages. I have set the classpath to point too the class subdirectory. Here it is.., Every time I execute the bath file or execute the javaw command, I get the "Can not find main class" message.
I am using XP ...
Help please...
Thanks for all your help.when you set the classpath I presume you mean that your running java or javaw as:
javaw.exe -cp %classpath%;.;c:\library\myfiles com.mycomp.myapp.MainClassIf your using a jar then you must specify the jar in the class path.
Don't presume it will find the jar. Other than that, you will have
to provide more details. -
Where can I find SafeZipFileInputStream class in weblogic 10.3
Hi ,
I am migrating my application from weblogic8.1 to weblogic 10.3. In my application I used SafeZipFileInputStream.class , this class is placed in weblogic.jar file.
In weblogic 10.3 SafeZipFileInputStream.class is not in weblogic.jar file.
Can anyone help me where can i find this class.
Thanks in advance.
Sha.It is under modules directory, look for modules\com.bea.core.utils.full_1.4.0.0.jar or modules\com.bea.core.utils_1.4.0.0.jar
-
Background callable object : can not find this class name
Hi All ,
I am following this tutorial link for creating background callable object
http://help.sap.com/saphelp_nwce10/helpdata/en/9a/e8934258a5ca6ae10000000a155106/frameset.htm
I have created java and enterprise application DC and deployed successfully. But while creating CO in design time when i am selecting application and entering class as com.examples.bckgco.UserDetailsCallableObject for Implementation Class Name , and on click next i m getting exception as "can not find this class name". package and class name are correct still getting this excetpion message. Plz help me to resolve this solution.
Regards
KavitaHi, kavita.
First, make sure you choosed the correct container when you created the background CO.
Second, make sure your package name was "com.examples.bckgco" and class name was "UserDetailsCallableObject". The exception which you got just means you entered incorrect name.
It doesn`t relate to your program.
Best Regards.
Louis Huang. -
Why after i have unzipped and edited the classes in the jar file and zipped them together again, it gives me the message "CAN NOT FIND MAIN CLASS"?
This is after i have edited any class in the .jar zip.I did not edit the Manifest text file,can someone who has experienced this problem show me how to overcome it.
Thank you.i think you have to read the "java tutorial on Jar files".
i guess after you have exracted the .jar file then you've edited the ".class"(i dont know how you did it) but i think you mean ".java" you should create another .jar file to be able to reflect the changes you have made, then set the main-class attribute of the newly created .jar file. -
How can I find these classes---please!!
where can I find these classes
com.sun.media.protocol.dsound.*
com.sun.media.protocol.sunvideo.*
they are needed in a JMF program.Generally speaking, sun classes are for internal use only. That's not to say you can't call things in those classes, but documentation is hard to come by if at all.
-
Can't find "Delegate Class Name" for JDBC Helper Service
Hi,
I downloaded WLServer 6.1 with sp1 and WLPortal 4.0, installed them on Solaris 7 using default DB cloudscape -- everything was fine. Now, I'm trying to configure database to Oracle 8.1.7.
In "Configure the JDBC Helper Service" section of document "Configuring WebLogic Portal for Oracle Databases" (http://e-docs.bea.com/wlp/docs40/deploygd/oraclnew.htm), step 2 requires to enter value of "com.bea.p13n.util.jdbc.internal.OracleJDriverJdbcHelperDelegate" to "Delegate Class Name". But, I can't find this "Delegate Class Name" variable. The available varialbles on the Configuration tab on my screen are: Maximum Number of Retries, Maximum Wait Time (milliseconds), Use CLOBs for Read?, Use CLOBs for Write?. And the Configuration tab is the only available tag for JDBC Helper Service. Did I download a different version from other people? I downloaded it within 3 months.
Can anyone help?
Thanks in advance,
JaneThanks Steve.
I had my own jndi.properties file that's why it was working with ejb bean I created in the AM and not with the sdo web service.
I didn't know I had to add the jndi properties to the connection.xml maybe you can update the documentation.
<?xml version = '1.0' encoding = 'UTF-8'?>
<ns2:References xmlns:ns2="http://xmlns.oracle.com/adf/jndi">
<Reference className="oracle.jbo.client.svc.Service"
name="{/test/model/common/}DepartmentModuleService">
<Factory className="oracle.jbo.client.svc.ServiceFactory"/>
<RefAddresses>
<StringRefAddr addrType="serviceInterfaceName">
<Contents>test.model.common.serviceinterface.DepartmentModuleService</Contents>
</StringRefAddr>
<StringRefAddr addrType="serviceEndpointProvider">
<Contents>ADFBC</Contents>
</StringRefAddr>
<StringRefAddr addrType="jndiName">
<Contents>test.model.common.DepartmentModuleServiceBean</Contents>
</StringRefAddr>
<StringRefAddr addrType="serviceSchemaName">
<Contents>DepartmentModuleService.xsd</Contents>
</StringRefAddr>
<StringRefAddr addrType="serviceSchemaLocation">
<Contents>test/model/common/serviceinterface/</Contents>
</StringRefAddr>
<StringRefAddr addrType="jndiFactoryInitial">
<Contents>oracle.j2ee.rmi.RMIInitialContextFactory</Contents>
</StringRefAddr>
<StringRefAddr addrType="jndiProviderURL">
<Contents>ormi://localhost:23791/SvcInterfaceDeploy_MiddleTier</Contents>
</StringRefAddr>
<StringRefAddr addrType="jndiSecurityPrincipal">
<Contents>fmwadmin</Contents>
</StringRefAddr>
<StringRefAddr addrType="jndiSecurityCredentials">
<Contents>welcome</Contents>
</StringRefAddr>
<StringRefAddr addrType="serviceSchemaName">
<Contents>HRAppService.xsd</Contents>
</StringRefAddr>
</RefAddresses>
</Reference>
</ns2:References>
thanks edwin -
Applet don't load, can't find the class, but is on the archve list. Tomcat5
Hi I've an applet in a JSP that runs on a Tomcat 5.5 under Windows Vista. My problem is that my page can't load the applet because a connection refused exception.
network: No se ha encontrado entrada de cach� [URL: http://localhost:2000/globalcard/jars/com/syc/client/ScanApplet.class, versi�n: null]
network: Conectando http://localhost:2000/globalcard/jars/com/syc/client/ScanApplet.class con proxy=DIRECT
network: No se ha encontrado entrada de cach� [URL: http://localhost:2000/globalcard/jars/com/syc/client/ScanApplet.class, versi�n: null]
network: Conectando http://localhost:2000/globalcard/jars/com/syc/client/ScanApplet.class con proxy=DIRECT
cargar: clase com.syc.client.ScanApplet no encontrada.
java.lang.ClassNotFoundException: com.syc.client.ScanApplet
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
basic: Excepci�n: java.lang.ClassNotFoundException: com.syc.client.ScanAppletmore....The strange thing is that if I copy &paste the url in a browser window, it finds the jar and ask to open or save. So I suppouse is something on the sandbox of the applet or something like that. Why I can find the jar using the URL, but why the applet can't? Other thing that I don't know if is important for this is that I can't find the page using my IP or 127.0.0.1, it only works using localhost.
And yes, my jar is signed. In fact it works perfect on a non Windows-Vista machine, so I suppouse is something with the browser here or something like that. The port is on the exceptions list of the firewall but I've even disabled the firewall with no changes. I can load applets from other hosts, but I can't pointing to my machine, so I don't know if is windows, tomcat, or whatever. Please help!
I'm using Tomcat 5.5, JK 1.6 and Windows Vista as server. Using the 2000 port which is on the exceptions list in the firewall. I have also IIS7, but it gives no problems. I mean if I do http://myhost (port 80) the IIS7 initial page shows, but if I use http://myhost:2000 (which is the port configured in Tomcat) then can't find the page. I don't know if is something on the firewall, on the tomcat, or what ever.
Please help!I've seen this sort of thing happen when the server is misconfigured and reports the content MIME type incorrectly.
I'd suggest using a tool like curl or the Firefox LiveHeaders extension, to confirm that that's correct.
Maybe you are looking for
-
Having seleted some text on a web page which is the only information I would like to print, I seem to be unable to preview what the printed page will look like using the "Selection" option in the Print Range section of the "Print" Menu from the Print
-
IPod Classic will not connect to iTunes, tried many different things to fix but nothing worked
What I devices I have: I have a classic iPod and a dell laptop with windows xp. The problem: iTunes and iPod work fine separately, however when I plug iPod in, iTunes will not open. If iTunes was open at the time I plugged in iPod, it freezes and won
-
When I preview a song in iTunes, the album art preview shows up blurry
So anytime I preview a song in iTunes store, whenever I click on the small album art icon (at the top) to bring up the smaller player, the album art shows up blurry. Has been happening for the past three or four iTunes releases. How can I fix it? Whe
-
Just upgraded to Office 365. Reinstalled my Acrobat 7.0 standard. All I need to do is convert office files to pdf but it wont work. Any suggestions?
-
Hello, I have followed many tutorials from the net and although I have been able to achieve a zooming in effect on a still, it isn´t exactly that. Instead the whole image becomes bigger and bigger giving a false sense of a zoom in - the still comes t