Skip to main content

The app client directory does not contain a manifest;

8 replies [Last post]
skl
Offline
Joined: 2010-01-07
Points: 0

Hi all,

While trying to run an app-client Main method, I keep getting the following error:

org.glassfish.appclient.client.acc.UserError: ACC007: The app client directory app.1.0.0 does not contain a manifest; the app client container cannot process it.
Java Result: 1

Has anyone seen this before? If so, can you guide me to a solution.

Thanks in advance.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
amouri
Offline
Joined: 2012-07-22
Points: 0

hi.
I have such a problem and when I run my program in netbeans,I get this Error:

org.glassfish.appclient.client.acc.UserError: ACC007: The app client directory C:\Projects\MyFirstJMSQueue does not contain a manifest; the app client container cannot process it. Embedded programs should pass URIs with scheme "jar:" for JAR files and scheme "file:" for directories.
Java Result: 1

I want to know how you solved your problem? in fact how you configure EAR's properties to the client and run the EAR itself???

Looking forward to hearing from you.Thank you

tjquinn
Offline
Joined: 2005-03-30
Points: 0

We'll need a few more details to be able to help you.

Is this app client a stand-alone app client or is it inside an EAR?

How do you deploy the application? If you are using an "asadmin deploy" command please post it here.

What command are you using to try to launch the app client? Please post it here.

- Tim

skl
Offline
Joined: 2010-01-07
Points: 0

Hi Tim,

Thanks for your response.

[b]Is this app client a stand-alone app client or is it inside an EAR?[/b]
It is a multi-module EAR. I have EAR, APP-CLIENT, AND EJB in its individual packages.

[b]How do you deploy the application? If you are using an "asadmin deploy" command please post it here.[/b]
I am using Netbeans 6.8 to deploy the package.

[b]What command are you using to try to launch the app client?[/b]
I just click on the class file and hit Run File command in Netbeans IDE.

Then, I get this error:

[b]org.glassfish.appclient.client.acc.UserError: ACC007: The app client directory app.1.0.0 does not contain a manifest; the app client container cannot process it.
Java Result: 1[/b]

tjquinn
Offline
Joined: 2005-03-30
Points: 0

Ah, I see.

Try running the EAR itself, not the client's main class.

If the EAR contains multiple clients you can configure which one should be run in the EAR's Properties sheet. If there's only one NetBeans seems to know to run that client.

(Note that NetBeans will also let you (try to) run the client directly by right-clicking on the app client module. But in this case, NetBeans deploys the client to the server as a stand-alone client (that is, not inside the EAR) and runs it that way. If the client refers to EJBs or other components in the EAR this is probably not what you want.)

Hope that helps. Let us know.

- Tim

skl
Offline
Joined: 2010-01-07
Points: 0

Thanks for your response. When I run the EAR itself (after configuring EAR's properties to the client), the previous error is gone but I get this:

The following error occurred while executing this line:
Target "run-EA.1.0.2-app-client" does not exist in the project "EA.1.0.2".
BUILD FAILED (total time: 2 seconds)

skl
Offline
Joined: 2010-01-07
Points: 0

I found the answer to this one.

You cannot have a [b]"."[/b] in your name. I changed it to [b]"_"[/b] and it worked.

skl
Offline
Joined: 2010-01-07
Points: 0

Tim - thanks for your help.

tjquinn
Offline
Joined: 2005-03-30
Points: 0

I'm glad to hear that it's working!

- Tim