glassfish

Glassfish: Error in linking security policy for

一曲冷凌霜 提交于 2020-06-28 01:58:23
问题 I got an error while restarting or re-deploying an app to Glassfish and I get the exception below: com.sun.enterprise.admin.cli.CommandException: remote failure: Exception while loading the app : org.glassfish.deployment.common.DeploymentException: Error in linking security policy for appname -- Inconsistent Module State What should i do to solve this issue? 回答1: After googling for a couple of hours I found some replies and only this one worked for me: Remove the application folder which is

Glassfish: Error in linking security policy for

一世执手 提交于 2020-06-28 01:58:19
问题 I got an error while restarting or re-deploying an app to Glassfish and I get the exception below: com.sun.enterprise.admin.cli.CommandException: remote failure: Exception while loading the app : org.glassfish.deployment.common.DeploymentException: Error in linking security policy for appname -- Inconsistent Module State What should i do to solve this issue? 回答1: After googling for a couple of hours I found some replies and only this one worked for me: Remove the application folder which is

Glassfish: Error in linking security policy for

社会主义新天地 提交于 2020-06-28 01:58:13
问题 I got an error while restarting or re-deploying an app to Glassfish and I get the exception below: com.sun.enterprise.admin.cli.CommandException: remote failure: Exception while loading the app : org.glassfish.deployment.common.DeploymentException: Error in linking security policy for appname -- Inconsistent Module State What should i do to solve this issue? 回答1: After googling for a couple of hours I found some replies and only this one worked for me: Remove the application folder which is

Provider org.glassfish.json.JsonProviderImpl not found

Deadly 提交于 2020-05-12 11:18:25
问题 According to my project Provider org.glassfish.json.JsonProviderImpl not found I dont understand why it is complaining about glassfish as I am using a different library for json: ... <dependencies> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.0.1</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.websocket</groupId> <artifactId>javax.websocket-api</artifactId> <version>1.1</version> <scope>provided</scope> <

Provider org.glassfish.json.JsonProviderImpl not found at javax.json.spi.JsonProvider.provider(JsonProvider.java:97)

亡梦爱人 提交于 2020-05-07 12:43:33
问题 How to run Java API for JSON Processing(JSR 374) in eclipse? I am trying to parse JSON string to JsonParser(javax.json.stream.JsonParser). Also added javax.json-api-1.0.jar in the build path. At runtime, there is an exception. My code is import java.io.StringReader; import javax.json.Json; import javax.json.JsonReader; import javax.json.JsonStructure; import javax.json.stream.JsonParser; import javax.json.stream.JsonParser.Event; import javax.json.JsonReader; import javax.json.JsonStructure;

Client call to EJB error: javax.naming.NoInitialContextException

强颜欢笑 提交于 2020-04-30 08:45:31
问题 Calling my EJB from class Main: MyService myService = (MyService) ctx.lookup(MyService.class.getName()); Gives error: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313) at javax.naming.InitialContext

doFilter called twice, intended behaviour?

…衆ロ難τιáo~ 提交于 2020-04-09 07:58:06
问题 I'm working through the Java EE servlet tutorial and tried the mood example. I noticed the doFilter is getting called twice, once the servlet call is in the chain and the second time it isnt. I added some printlns in the TimeOfDayFilter.java and in the MoodServlet.java to show this. TimeOfDayFilter.java: ... System.out.println("TimeOfDay before"); //added chain.doFilter(req, res); System.out.println("TimeOfDay after"); //added ... MoodServlet.java: ... response.setContentType("text/html

Glassfish where do I set classloader delegate option to false

我们两清 提交于 2020-03-16 07:28:39
问题 I have a web application (running on glassfisch 3.1.2) where I'm facing ClassCastException. I would like to try to solve them by setting the classloader delegate to false. I'm not able to figure out where (what file) to insert following xml tag <class-loader delegate="false" /> Google says to put that to glassfish-web.xml but I haven't got any such a file in my project (Netbeans 8.0.1) nor on server installation... Can some direct me? Thanks 回答1: The file has to be in the WEB-INF folder. In

GlassFish linux下配置服务并自动启动

时光怂恿深爱的人放手 提交于 2020-03-11 10:18:27
1、vi /etc/init.d/glassfish3 export AS_JAVA=/usr/local/jdk1.6.0_11 GLASSFISHPATH=/root/glassfish3/bin export PASSWD=/root/glassfish3/bin/.passwd case "$1" in start) echo "starting glassfish from $GLASSFISHPATH" su - root $GLASSFISHPATH/asadmin start-domain ;; status) $0 start ;; restart) $0 stop $0 start ;; stop) echo "stopping glassfish from $GLASSFISHPATH" su - root $GLASSFISHPATH/asadmin stop-domain ;; *) echo $"usage: $0 {start|stop|restart|status}" exit 3 ;; esac 2、 sudo chmod +x /etc/init.d/glassfish3 3、vi /root/glassfish3/bin/.passwd AS_ADMIN_PASSWORD=administration-password 请将

centos安装glassfish3

帅比萌擦擦* 提交于 2020-03-11 10:08:33
从老外博客搜到的资料,没翻译,很简单,自己留做资料 Sunday Mar 06, 2011 Install GlassFish 3.1 on CentOS or RHEL This post will cover installing GlassFish 3.1 on CentOS or RHEL. We'll also see how to run GlassFish as a service, how to access the Admin Console, and how to run GlassFish under a minimally privileged user. GlassFish 3.1 is the latest release and is available as GlassFish Server Open Source Edition 3.1 (free) and Oracle GlassFish Server 3.1 (supported and requires paid subscription). I installed both using the same process below. The procedure is the same as with 3.0.1 with some minor changes. If you do not