This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 177940 - error when running a simple application client on nb6.8rc1
Summary: error when running a simple application client on nb6.8rc1
Status: RESOLVED DUPLICATE of bug 149195
Alias: None
Product: javaee
Classification: Unclassified
Component: App Client (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-01 10:57 UTC by carlos09
Modified: 2009-12-01 15:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description carlos09 2009-12-01 10:57:36 UTC
Still a very simple example of enterprise application.

I use NB 6.8rc1.

Server side:

package ice.server;

import javax.ejb.Remote;

@Remote
public interface ServerBeanRemote {
    public int add(int a, int b);
}

package ice.server;

import javax.ejb.Stateful;

@Stateful
public class ServerBean implements ServerBeanRemote {

    public int add(int a, int b) {
        return a + b;
    }
}

Client side:

package ice.client;

import ice.server.ServerBeanRemote;
import javax.ejb.EJB;

/**
 *
 * @author lnx
 */
public class Client {
    @EJB
    public static ServerBeanRemote server;

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        System.out.println(server.add(2, 3));
    }

}

I build and deploy it. no problem. But when I run it, following error comes out:

Undeploying ...
Initializing...
Initial deploying ice to /home/lnx/web/devel/ice/dist/gfdeploy/ice
Completed initial distribution of ice
post-run-deploy:
run-deploy:
Browsing: ${client.url}
/home/lnx/web/devel/ice/nbproject/build-impl.xml:306: 
java.net.MalformedURLException: no protocol: ${client.url}
        at java.net.URL.<init>(URL.java:567)
        at java.net.URL.<init>(URL.java:464)
        at java.net.URL.<init>(URL.java:413)
        at org.netbeans.modules.ant.browsetask.NbBrowse.execute(NbBrowse.java:75)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor200.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:278)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:498)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
BUILD FAILED (total time: 1 second)

Please explain! Thank you.
Comment 1 David Konecny 2009-12-01 15:14:41 UTC

*** This bug has been marked as a duplicate of bug 149195 ***