glassfish-3

The Eclipse plugin cannot communicate with the GlassFish server, status is :CREDENTIAL_ERROR

[亡魂溺海] 提交于 2019-11-30 14:38:05
I am able to start Glassfish through command line. However, when I try to start the server through Eclipse I encounter the following error: The Eclipse plugin cannot communicate with the GlassFish server, status is :CREDENTIAL_ERROR I have checked my login credentials ( admin / adminadmin ) and they are correct (I'm able to login into the admin console on port 4848 with the same user/pass). Here is my system info: OS: OS X 10.6.7 Eclipse: Indigo Service Release 1 Glassfish V3.0.1 Glassfish Plugin: GlassFish Server Open Source Edition 3 (Java EE 6) GlassFish user/pass: admin/adminadmin Please

OSGI missing requirement error

怎甘沉沦 提交于 2019-11-30 14:10:54
问题 I am new to OSGI and I am trying to figure out how I resolve errors such as the one below org.osgi.framework.BundleException: Unresolved constraint in bundle org.foo.serviceBundle [253]: Unable to resolve 253.0: missing requirement [253.0] package; (&(package=org.slf4j)(version>=1.6.0)(!(version>=2.0.0))) I used a maven archetype to generate a bundle and added some simple slf4j logging to my Activator class. I am also using the maven bundle plugin as follows: <plugin> <groupId>org.apache

WELD-001408 Unsatisfied dependencies when injecting EJBs that implement interfaces

旧巷老猫 提交于 2019-11-30 12:54:39
问题 Here is the situation. I've got the following interfaces: public interface Parent { } public interface ChildOne extends Parent { } public interface ChildTwo extends Parent { } and 2 EJBs: @Stateless public class FirstBean implements ChildOne { } @Stateless public class SecondBean implements ChildTwo { } And also this CDI Bean: @Named @SessionScoped public class TestController implements Serializable { @Inject private FirstBean firstBean; @Inject private SecondBean secondBean; } While trying

Impossible to run web application in debug mode with intelliJ on ubuntu with glassfish server

心不动则不痛 提交于 2019-11-30 10:24:32
In intelliJ 12.0 on ubuntu 12.04 with glassfish 3.1.2.2, I'm trying to launch my web application in debug mode but I've got this error message: Error starting domain domain1. The server exited prematurely with exit code 134. Before it died, it produced the following output: FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) ERROR: transport error 202: bind failed: Address already in use ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../

OSGI missing requirement error

≡放荡痞女 提交于 2019-11-30 09:34:37
I am new to OSGI and I am trying to figure out how I resolve errors such as the one below org.osgi.framework.BundleException: Unresolved constraint in bundle org.foo.serviceBundle [253]: Unable to resolve 253.0: missing requirement [253.0] package; (&(package=org.slf4j)(version>=1.6.0)(!(version>=2.0.0))) I used a maven archetype to generate a bundle and added some simple slf4j logging to my Activator class. I am also using the maven bundle plugin as follows: <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>2.2.0</version> <extensions>true<

JSF 2.0 not rendering any page

断了今生、忘了曾经 提交于 2019-11-30 07:48:11
问题 I’m a beginning Java EE programmer having troubles setting up my first “JSF 2.0” enabled application. I’m using the following technologies: jdk1.6.0_24 MyEclipse 10.0 Glassfish 3.0.1 JSF 2.0 Problem: I couldn’t find a way to make my server parse and render JSF 2.0 pages. I followed various guides, (notably from stackoverflow.com) without success. My test pages are not rendered by Glassfish 3.0.1. I tried different approaches to fix my code including: 1 -> web.xml 1.1 -> edited header

Maven Embedded Glassfish plugin

五迷三道 提交于 2019-11-30 07:08:24
I cannot seem to get the Maven Glassfish plugin working for the life of me: <project> ... <pluginRepositories> <pluginRepository> <id>glassfish-repository</id> <name>Java.net Repository for Glassfish</name> <url>http://download.java.net/maven/glassfish</url> <layout>default</layout> <snapshots> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </snapshots> </pluginRepository> </pluginRepositories> ... <build> <plugins> <plugin> <groupId>org.glassfish</groupId> <artifactId>maven-embedded-glassfish-plugin</artifactId> <version>3.0</version> <configuration> <goalPrefix>glassfish<

Where should beans.xml be placed?

ⅰ亾dé卋堺 提交于 2019-11-30 05:58:05
I've just upgraded to NetBeans 7.1 from 7.0. On opening a JSF managed bean it "helpfully" told me that it couldn't find my beans.xml file so would I like it created for me. I knew I had a beans.xml file under WEB-INF but I said yes anyway to see what happened. A new beans.xml was created under META-INF for me. Thinking I'd made a mistake I deleted the file under WEB-INF only to have my application fail at start up. Putting beans.xml back into WEB-INF fixed that problem. This page seems to think both locations are valid: http://seamframework.org/Documentation/WhatIsBeansxmlAndWhyDoINeedIt So,

Context path for web application on Glassfish 3.1.2.2

核能气质少年 提交于 2019-11-30 04:23:22
问题 I'm trying to find a way to explicitly specify the context path of a web application being deployed to Glassfish 3.1.2.2 but I've had no luck so far. Can anyone provide guidance on this? The background to this is below: I have a web application that consists of two separate Netbeans (7.0) projects. The first is a web service and is called FooWS. The second is a user facing web application which uses the FooWS webservice. It's called FooApp. I've recently upgraded glassfish to 3.1.2.2 in the

WELD-001408 Unsatisfied dependencies when injecting EJBs that implement interfaces

回眸只為那壹抹淺笑 提交于 2019-11-30 03:41:18
Here is the situation. I've got the following interfaces: public interface Parent { } public interface ChildOne extends Parent { } public interface ChildTwo extends Parent { } and 2 EJBs: @Stateless public class FirstBean implements ChildOne { } @Stateless public class SecondBean implements ChildTwo { } And also this CDI Bean: @Named @SessionScoped public class TestController implements Serializable { @Inject private FirstBean firstBean; @Inject private SecondBean secondBean; } While trying to deploy this on Glassfish 3.1 I get the following exception: Exception while loading the app : WELD