Quantcast
Channel: GlassFish Related Items on Java.net
Viewing all 1091 articles
Browse latest View live

Glassfish file upload error

$
0
0

Hello,

I have a problem with a glassfish cluster. The environment is:

Load balancer
Apache 2.2 Proxy (on host A)
Glassfish 3.1.2.2 (on host A)
Apache 2.2 Proxy (on host B)
Glassfish 3.1.2.2 (on host B)
Apex 4.2.2 (on host C)
Oracle 11.2.0.3 (on host C)

Using Oracle's Apex Sample File Upload and Download Code, I fairly often get an Apex "Please select a file to upload." error. The problem seems to be occuring on one node only. In the glassfish access logs, I see a successful POST. I see nothing in the Glassfish server logs. If I use ngrep to look at the Glassfish to database traffic on port 1521 from host B to host C, I see an ORA-01403 "no data found".

If I watch the directory /generated/jsp/apex I can see the file to be uploaded temporarily appear and then go away.

How can I enable more debug logging in Glassfish to track down this issue?

Thanks!


runnig tow application on glassfish using the same port 80

$
0
0

can deploy two Application on Glassfish using the same port 80 and tow different url ??

Glassfish4 install with j2ee jdk of incorrect version?

$
0
0

Hi Friends,

Today I spent a few mintues on setting up my GF4 env. After I downland from http://www.oracle.com/technetwork/java/javaee/downloads/java-ee-sdk-7-jd... and install the bits without any error, I check the java version, weird thing happens. java still shows:

C:\glassfish4\jdk7\bin>java -version
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)

is this right? could it be j2ee?
Jed

EL 3.0 doesn't behave in Glassfish 4 the same way as the standalone API

$
0
0

Hello,

I'm experimenting the new features of Expression Language 3.0, both in JSP and using the standalone API. I noticed that some of the new stuff are not behaving the same way in both places:

1- According to item 1.22 of EL spec, "A static field or static method of a Javaclass can be referenced with the syntax classname.field, such as Boolean.TRUE".
Doing so in the standalone API, it works as expected:

ELProcessor elp = new ELProcessor();
Object ret = elp.eval("Boolean.TRUE");
System.out.println("Output Value: " + ret);

Resulting: "Output Value: true"

or...

ELProcessor elp = new ELProcessor();
Object ret = elp.eval("(x -> Math.sqrt(x))(9)");
System.out.println("Output Value: " + ret);

prints: 9.0

However, when doing the same thing in JSP, nothing is printed:

${Boolean.TRUE}
${Integer.MAX_VALUE}
${Boolean.TRUE == true} // prints 'false'
${(x -> Math.sqrt(x))(9)}

2 - According to item 1.22.3 of EL spec, "A class name reference, followed by arguments in parenthesis, such as Boolean(true) denotes the invocation of the constructor of the class with the supplied arguments."
Doing so using the standalone API:

ELProcessor elp = new ELProcessor();
Object ret = elp.eval("StringBuilder('Java EE rocks')");
System.out.println("Output Value: " + ret);

Prints: Output Value: Java EE rocks

But, in JSP:

${StringBuilder('Java EE rocks')}

Results:


exception
org.apache.jasper.JasperException: javax.el.ELException: Expression uses functions, but no FunctionMapper was provided root cause

javax.el.ELException: Expression uses functions, but no FunctionMapper was provided

These expressions I have mentioned above wouldn't be supposed to work the same way in JSP and in the standalone API?

Thanks in advance.

Marcelo

JAX-RS: date fields are incorrectly marshalled

$
0
0

Hi there,
Today I have found that, by default, Glassfish 4 JAX-RS handles POJO
to JSON conversion very unfortunately, here is an example result:
2013-08-19T08:00:00.000 (not timezone means UTC)
The date above was created like this:
Calendar c = new GregorianCalendar();
//calendar uses my current, CEST, timezone
c.set(YEAR, 2013);
c.set(MONTH, AUGUST);
c.set(DAY, 19);
c.set(HOUR, 8);
c.set(MINUTE, 0);
c.set(MILLISECOND, 0);
return c.getTime();

When I print this, I get:
2013, August 19, 08:00:00 CEST
which is equivalent of:
2013, August, 19, 06:00:00 UTC

So, in CEST we have 8am, while it is 6am UTC.

Now, Glassfish, using MOXy is generating:
2013-08-19T08:00:00.000
and in JavaScript
var date = new Date(dateField);
produces:
2013, August, 19, 10:00:00 CEST.

So, instead of 8am we have 10am.

I think this is a major bug, it causes all the applications, by
default, to produce invalid dates.

I have asked my colleague from different project, they use GF4 as
well, he said they do not have that issue. When we double checked, we
discovered a major bug in that application, they just were not aware
of it.

Can anyone else confirm this is a bug? IS there any workaround? Should
it be reported to MOXy or Glassfish? I cannot tell where the problem
is.

Regards,
Witold Szczerba

EL 3.0 doesn't behave in Glassfish 4 the same way as in the standalone API

$
0
0

Hello,

I'm experimenting the new features of Expression Language 3.0, both in JSP
and using the standalone API. I noticed that some of the new stuff are not
behaving the same way in both places:

1- According to item 1.22 of EL spec, "A static field or static method of a
Javaclass can be referenced with the syntax classname.field, such as
Boolean.TRUE".
Doing so in the standalone API, it works as expected:

ELProcessor elp = new ELProcessor();
Object ret = elp.eval("Boolean.TRUE");
System.out.println("Output Value: " + ret);

Resulting: "Output Value: true"

or...

ELProcessor elp = new ELProcessor();
Object ret = elp.eval("(x -> Math.sqrt(x))(9)");
System.out.println("Output Value: " + ret);

prints: 9.0

However, when doing the same thing in JSP, nothing is printed:

${Boolean.TRUE}
${Integer.MAX_VALUE}
${Boolean.TRUE == true} // prints 'false'
${(x -> Math.sqrt(x))(9)}

2 - According to item 1.22.3 of EL spec, "A class name reference, followed
by arguments in parenthesis, such as Boolean(true) denotes the invocation
of the constructor of the class with the supplied arguments."
Doing so using the standalone API:

ELProcessor elp = new ELProcessor();
Object ret = elp.eval("StringBuilder('Java EE rocks')");
System.out.println("Output Value: " + ret);

Prints: Output Value: Java EE rocks

But, in JSP:

${StringBuilder('Java EE rocks')}

Results:

exception
org.apache.jasper.JasperException: javax.el.ELException: Expression uses
functions, but no FunctionMapper was provided root cause

*javax.el.ELException: Expression uses functions, but no FunctionMapper was
provided*

These expressions I have mentioned above wouldn't be supposed to work the
same way in JSP and in the standalone API? Is that a bug?

Thanks in advance.

--
*Marcelo Alves Cenerino*

How can I access an ejb in another Glassfish server?

$
0
0

For test purpose I have created two projects.

1. Project: HelloServer with the following files

1. File: HelloService.java

		package org.testejb;

import javax.ejb.Remote;

@Remote
public interface HelloService {
String sayHello(String name);
}

2. File: HelloServiceImpl.java
		package org.testejb;

import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import javax.inject.Named;

@Stateless
@Named
@LocalBean
public class HelloServiceImpl implements HelloService{

@Override
public String sayHello(String name) {
return "Hello " + name;
}

}

2. Project: HelloClient

1. File: HelloService.java

		package org.testejb;

import javax.ejb.Remote;

@Remote
public interface HelloService {
String sayHello(String name);
}

2. File: TestHelloService.java
		package org.testejb.client;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;

import org.testejb.HelloService;

@ManagedBean
public class TestHelloService {

@EJB
HelloService service;

public String sayHello() {
return service.sayHello("Test User");
}
}

3. File: sayHello.xhtml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">

<h:body>
<h1>Output: #{testHelloService.sayHello()}</h1>
</h:body>
</html>

If both projects are running in the same glassfish instance then it works fine. The output of sayHello.xhtml is "Hello Test User".
And now my question:

I have two glassfish instances I1 & I2. I1 running on my localhost:8080 and I2 in a vm with the url 192.168.100.199:8080.
In I1 is deployed HelloClient.war and in I2 is deployed HelloServer.war.

What is the configuration of the @EJB annotaion in the TestHelloService class, if i want the call HelloServiceImpl.sayHello() method in glassfish instance I2?

I tried something but nothing did work.

Glassfish claim for ejb-jar-xml in EJB 3.1 project

$
0
0

Hi, I just started a J2EE project with GF 4 and NB 7.3 . I created a simple J2EE app with web,ejb and common projects.
In the ejb project I created a simple EJB and NB put the remote interface in common project .
THen I tried to deploy the ejb module throught GF console but It claim for ejb-jar.xml descriptor and this is a very big issue because we know descriptor is not needed.

help me,please !

please find attachment of my small ejb module.


ejb module and jar dependencies

$
0
0

Hi , I am starting a J2EE application on GF 4 and NB 7.3.1 .
I created a J2EE app and web,ejb and common project. Created a new simple session bean in ejb project and put the remote inteface in common project .

Then tried to deply the ejb project by GF console but it fire a java.lang.ClassNotFoundException for the remote interface ,despite the class in present in the common jar in the ejb jar module .

Then why GF fire the error ? I am very hurt with GF ,there is enything that work right ! ( see other of my posts ) .

thanks

Questions about CDDL on GlassFish3.1.2.2

$
0
0

Hi there,
I have a question as follows.

Regarding this link, I got a information that GlassFish licenses are available under CDDL ver1.0 and GNU GPL v2.

http://glassfish.java.net/downloads/3.1.2.2-final.html

>GlassFish Community Distributions are available under a Dual License consisting of the Common Development and Distribution License (CDDL) >v1.0 and GNU General Public License (GPL) v2.

but, once checking a link on this sentence, CDDL v1.1 (and GNU GPL v2) information comes out.
Which is correct version, v1.0 or v1.1?

If anybody have an answer to this, please give me as soon as possible.

Thank you and best regards,

gun

Re: JAX-RS broken when migrating from 3.1.2.2 to 4.0

$
0
0

please see
https://jersey.java.net/apidocs/latest/jersey/javax/ws/rs/core/Application.html#getProperties()

in short - if you are working with Application (or ResourceConfig)
directly, you can set it there, if not, use init or context param,
something like:

...

jersey.config.workers.legacyOrdering
true

...

Regards,
Pavel

On 8/21/13 2:31 PM, Oliver B. Fischer wrote:
> Hi Pavel,
>
> how can I set this property? Never hit this.. ;)
>
> Bye,
>
> Oliver
>
>
> Am 21.08.13 13:43, schrieb Pavel Bucek:
>> Hi Olivier,
>>
>> you might want to send this to users@jersey.java.net, you should receive
>> better answer there (Jersey is JAX-RS Reference implementation used in
>> Glassfish).
>>
>> JAX-RS 2.0 contains change related to precedence of registered
>> providers, so you might be hitting this change. JAX-RS 1.x behavior can
>> be enabled by setting property LEGACY_PROVIDER_ORDERING [1].
>>
>> Getting HTTP status 500 is little strange, I would start with enabling
>> LOGGER org.glassfish.jersey.* (level CONFIG should be enough).
>>
>> Regards,
>> Pavel
>>
>> [1]
>> https://jersey.java.net/apidocs/latest/jersey/org/glassfish/jersey/messa...
>>
>>
>>
>> On 8/21/13 12:27 PM, Oliver B. Fischer wrote:
>>> I have normal ear deployment with an REST interface. The application
>>> works on GF 3.1.2.2 as expected but fails completely on GF 4.0.
>>>
>>> While debugging the problem I mentioned what GF 4 never uses my own
>>> implementation MessageBodyReader while GF 3 it does.
>>>
>>> So, what changed? According to the JAX-RS spec, the container should
>>> iterate through all with @Provider annotated implementations of
>>> MessageBodyReader. If no reader is found, which accepts the request
>>> the container should respond with 415. I always get an error 500.
>>>
>>> BTW, there is nothing in the log files what helps me to figure out
>>> what is going on.
>>>
>>> Any idea? What did I miss?
>>>
>>> Best,
>>>
>>> Oliver
>>>
>>>
>>
>

Custom realm - why twice group object ?

$
0
0

Hello !

I am testing custom realm in glassfish and i am following "application -development-guide.pdf" from: https://glassfish.java.net/docs/4.0/application-development-guide.pdf
On page 48, the document explain that we must create 2 classes (derivated of AppservRealm and AppservPasswordLoginModule).

I don't understand why both in AppservPasswordLoginModule and AppservRealm we link user with group :

Ex:

public class CustomLoginModule extends AppservPasswordLoginModule {

    /*
     * Perform actual authentication
     */
    @Override
    protected void authenticateUser() throws LoginException {
        super.authenticateUser();
       
        _logger.info("Passing in authenticateUser of CustomLoginModule");
        _logger.log(Level.INFO, "user: {0}", _username);
        _logger.log(Level.INFO, "password: {0}", _passwd); 
       
        // .......some other code
       

        // Final step
        String[] grpList = {"userGroup"};
        // populate grpList with the set of groups to which
        // _username belongs in this realm, if any
        commitUserAuthentication(grpList);
    }
   
}

In the last part we populate group for current user, but in this case what are the use of : public Enumeration getGroupNames(String string) in AppservRealm class ?

public class CustomRealm extends AppservRealm {
   ....... 
   
    /*
     * This method returns an Enumeration (of String objects) enumerating the groups
     * (if any) to which the given username belongs in this realm.
     */           
    @Override
    public Enumeration getGroupNames(String string) throws InvalidOperationException, NoSuchUserException {       
        List groupNames = new LinkedList();
        return (Enumeration) groupNames;       
    }   
}

Some code over internet have put "List groupNames = new LinkedList();" but i don't understand why..
Can someone can explain me the link between these two class (in terms of groups) ?

Regards

Adding Glassfish 2.1 server to Eclipse Juno

$
0
0

Hello all

I'm trying to add glassfish 2.1 to Eclipse Juno. I'm not able to get the adapters/plugin for glassfish 2.1. All i'm getting is for glassfish 3.1 and glassfish 4.0. Does anyone know how to get the adapters/plugin for glassfish 2.1 so that i can run the server from inside eclipse?

OS: Windows 7
Eclipse Version: Juno Service Release 2
glassfish Version: 2.1

Thanks
Aravindan R

CriteriaQuery, @StaticMetamodel and @EmbeddedId?

$
0
0

I hope this is the right forum - please let me know if it isn't.

I am having some trouble with CriteriaQuery - I have a table with a primary key that is composed of three columns; I have created an entity class:

---------------------------------------

public class ItemDescr implements Serializable {
private static final long serialVersionUID = 1L;
@EmbeddedId
protected ItemDescrPK itemDescrPK;
...

@Embeddable
public class ItemDescrPK implements Serializable {
@Basic(optional = false)
@NotNull
@Column(name = "itemid")
private int itemid;
@Basic(optional = false)
@NotNull
@Column(name = "atid")
private int atid;
...

---------------------------------------

And the corresponding @StaticMetamodel classes:

---------------------------------------

@StaticMetamodel(ItemDescr.class)
public class ItemDescr_ {

public static volatile SingularAttribute ivalue;
public static volatile SingularAttribute itemDescrPK;
...

@StaticMetamodel(ItemDescrPK.class)
public class ItemDescrPK_ {

public static volatile SingularAttribute atid;
public static volatile SingularAttribute created;
public static volatile SingularAttribute itemid;
...

---------------------------------------

I would have thought that I should be able to address *atid* in ItemDescrPK_ like this:

---------------------------------------
itd = em.createQuery(
itdq.select(itdr)
.where(
builder.equal(itdr.get(ItemDescr_.itemDescrPK.atid)), ...

---------------------------------------

However, it gives a syntax error; or rather, NetBeans marks this as an error, saying:

---------------------------------------

cannot find symbol
symbol: variable atid
location: variable itemDescrPK of type SingularAttribute

---------------------------------------

Isn't this the way it is supposed to be, then? Or, rather, what is the right way?

Client transaction aborted?

$
0
0

I have an application using XA. I know, I know.

There is an EJB that has two methods on it. Both do a simple find on an
entity.

Both methods log entry and exit.

Both use TransactionAttributeType.SUPPORTS.

The first one works fine. I see log output.

The second one, invoked from the same method and transaction context as the
first one, does not even get entered, and no amount of logging in the EJB
uncovers a problem. There is in fact no log output at all. The GlassFish
error I get is:

[#|2013-08-22T13:27:07.838-0400|WARNING|glassfish3.1.2|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=22;_ThreadName=Thread-5;|javax.ejb.TransactionRolledbackLocalException:
Client's transaction aborted
at com.sun.ejb.containers.BaseContainer.useClientTx(BaseContainer.java:4722)
at com.sun.ejb.containers.BaseContainer.preInvokeTx(BaseContainer.java:4616)
at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1914)
at
com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:212)
at
com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:89)
at com.sun.proxy.$Proxy327.getDisplayNameType(Unknown Source)

There is no other diagnostic information I can cause GlassFish to output,
because the error is somewhere in the proxy's invocation of my local bean
(I think?).

The local bean is created (I logged the constructor information).

Where should I begin looking to uncover the root cause of this error? Is
there a particular GlassFish logging level I can dial up that would give me
more information?

The only extant post out there that I found that even remotely seems like
this error is here: https://forums.oracle.com/thread/2130658

Best,
Laird

--
http://about.me/lairdnelson


Problem to send or retrieve an entity ( Rest module > EJB module )

$
0
0

Hello folks,

I have 2 componentes that are deployed in my GF4:
- application-server.ear: contains 2 ejb modules and a java module that contains my entities...i have a persistence.xml inside /META-INF/ and another in jar that contains entities...
- application-rest.war: web services, lookup on EJBs...in pom.xml i have a dependency to entities jar..

persistence.xml from ejb

<?xml version="1.0" encoding="UTF-8"?></p><persistence xmlns="http://java.sun.com/xml/ns/persistence"<br />
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br />
	xsi:schemaLocation="http://java.sun.com/xml/ns/persistence<br />http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"<br />
	version="2.0"><br /><persistence-unit name="Weee_PU"><jta-data-source>jdbc/Weee</jta-data-source><br /><jar-file>lib/entities.jar</jar-file></p><properties><property name="eclipselink.ddl-generation" value="create-tables" /><property name="eclipselink.ddl-generation.output-mode" value="database" /></properties></persistence-unit></persistence>

persistence.xml from entities.jar

<?xml version="1.0" encoding="UTF-8"?></p><persistence xmlns="http://java.sun.com/xml/ns/persistence"<br />
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br />
	xsi:schemaLocation="http://java.sun.com/xml/ns/persistence<br />http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"<br />
	version="2.0"><br /><persistence-unit name="Weee_PU"><jta-data-source>jdbc/Weee</jta-data-source><br /><class>...</class></p><properties><property name="eclipselink.ddl-generation" value="create-tables" /><property name="eclipselink.ddl-generation.output-mode" value="database" /></properties></persistence-unit></persistence>

My deploy structure (glassfish_home/glassfish/domains/domain1/autodeploy) :

   - application-server.ear
          - user-ejb-module.jar
          - folder called 'lib'
                  - entities.jar

  - application-rest.ear
          - web-inf
              - lib
                   - entities.jar

The problem is when i call a webservice and try to send an object ( like User.java that is annotated with @Entity ) throgh EJBs method.

When EJB receives my entity object, all attributes are null and if i try to retrieve a entity, when REST class receives object from EJB, all fields are null.

Any ideas what's going on?

Thanks in advance.

GlassFish Server Open Source Edition 3.1.2.2 (build 5) not able to find JDK

$
0
0

Hi, I am using GlassFish Server Open Source Edition 3.1.2.2 (build 5), and I am trying to deploy AffableBean from Oracle samples it deploys fine, but when I try to run I get below error:

org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required

As per research, I have addedd AS_JAVA variable in:

glassfish3/glassfish/config/asenv.conf

as shown below:

AS_IMQ_LIB="../../mq/lib"
AS_IMQ_BIN="../../mq/bin"
AS_CONFIG="../config"
AS_INSTALL=".."
AS_DEF_DOMAINS_PATH="../domains"
AS_DEF_NODES_PATH="../nodes"
AS_DERBY_INSTALL="../../javadb"
AS_JAVA="/usr/local/java/jdk*"

And I restarted server, still I am getting same error. When I try to run javac or java from shell it works fine since I have JAVA_HOME is set, but I don't know why Glassfish is not able to find JDK. BTW I am using Ubuntu 12.0.4 as a Server.

Is there any other configurations should i make to glassfish recognize JDK?

About EJB lite and Portable JNDI Name

settings for ip address to hostname conversion

$
0
0

i have developed a payroll application in java with Glassfish server. i want to convert ip address to hostname. do i need to do any settings on glassfish? pls guide how to do it

Web Application Osgi (WAB) and JAX-RS

$
0
0

I'm developing a modular application with OSGI.
The central idea is: A central Bundle defines a JAX-RS application and
A set of bundles that define resources to be dynamically attached to the JAX-RS application.
The problem is as follows:
If I define an WAB Application and define the application JAX-RS as commonly done:

@ApplicationPath ("rest")
KratosRestApplication public class extends Application {
}

and configure this in web.xml.

Now, I do not know how to get the instance of this application in order to manipulate dynamically the resources when these are detected in other bundles.

Now, if I use the HTTPService in the WAB application directly to register the JAX-RS aplication, I do not know how to access to resources (services) in the navigator, because /app/rest fails.

public class Activator implements BundleActivator {

    private BundleContext bc;
    private ServiceTracker tracker;
    private HttpService httpService = null;
    private KernelJaxApplication application = null;
    private ServletContainer container = null;
   
    public void start(BundleContext bundleContext) throws Exception {
        this.bc = bundleContext;

        System.out.println("STARTING HTTP SERVICE BUNDLE");

        this.tracker = new ServiceTracker(this.bc, HttpService.class.getName(), null) {
            @Override
            public Object addingService(ServiceReference serviceRef) {
                httpService = (HttpService) super.addingService(serviceRef);
                System.out.println("HTTP SERVICE: " + httpService.getClass().getCanonicalName());
                registerServlets();

                return httpService;
            }

            @Override
            public void removedService(ServiceReference ref, Object service) {
                if (httpService == service) {
                    //unregisterServlets();
                    httpService = null;
                }
                super.removedService(ref, service);
            }
        };

        this.tracker.open();
        System.out.println("TRACKER OPEN....");
    }

    private void registerServlets() {
        try {
            application = new KernelJaxApplication();
            container = new ServletContainer(application);
            httpService.registerServlet("/rest", container, getJerseyServletParams(), null);
            System.out.println("HTTPSERVICE .....");
        } catch (ServletException ex) {
            Logger.getLogger(Activator.class.getName()).log(Level.SEVERE, null, ex);
        } catch (NamespaceException ex) {
            Logger.getLogger(Activator.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    ...
    ...
}

In the pom.xml this is the bundle configuration:

             <plugin>
                    <groupId>org.apache.felix</groupId>
                    <artifactId>maven-bundle-plugin</artifactId>
                    <version>2.3.7</version>
                    <extensions>true</extensions>
                    <configuration>
 
                        <supportedProjectTypes>
                            <supportedProjectType>ejb</supportedProjectType>
                            <supportedProjectType>war</supportedProjectType>
                            <supportedProjectType>bundle</supportedProjectType>
                            <supportedProjectType>jar</supportedProjectType>
                        </supportedProjectTypes>
                       
                        <instructions>
                            <!-- Read all OSGi configuration info from this optional file -->
                            <!--_include>-osgi.properties</_include-->
                            <!--_include>resources/core.properties</_include-->
                            <!-- By default, we don't export anything -->
                            <!--Export-Package>!\*.impl.\*, \*</Export-Package-->
                            <Import-Package>
                                javax.ws.rs.core;version="[2.0,3)",
                                javax.ws.rs.ext;version="[2.0,3)",
                                org.glassfish.jersey.server;version="2.0",
                                org.glassfish.jersey.server.spi;version="2.0",
                                org.glassfish.jersey.servlet;version="2.0",
                                *
                            </Import-Package>
                           
                            <Web-ContextPath>/app</Web-ContextPath>
                            <Webapp-Context>/app</Webapp-Context>
                            <Bundle-SymbolicName>core</Bundle-SymbolicName>
                            <Bundle-Activator>com.workingflows.kratos.kernel.Activator</Bundle-Activator>
                        </instructions>
                    </configuration>
                    <executions>
                        <execution>
                            <id>bundle-manifest</id>
                            <phase>process-classes</phase>
                            <goals>
                                <goal>manifest</goal>
                            </goals>
                        </execution>
                        <execution>
                            <id>bundle-install</id>
                            <phase>install</phase>
                            <goals>
                                <goal>install</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>

Any suggestions?

Viewing all 1091 articles
Browse latest View live