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

Glassfish 3.1.2.2 Admin console not opening with Unknown protocol: jndi Error.

$
0
0

We are facing issue while opening Admin console after extracting glassfish 3.1.2.2 zip.

Environment:

LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Red Hat Enterprise Linux Server release 6.4 (Santiago)
Red Hat Enterprise Linux Server release 6.4 (Santiago)
Linux version 2.6.32-358.11.1.el6.x86_64 (mockbuild@x86-022.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Wed May 15 10:48:38 EDT 2013

Steps:
1. Download glassfish-3.1.2.2.zip file from glassfish.net
2. extract on machine with above specification (It has jdk1.6.0_37 64 bit.)
3. go to bin directory -> ./asadmin start-domain domain1
4. Domain successfully started message appears -> verified in server.log no exception / errors.
5. On demand request to load glassfish admin console .. it gives below exception.

I have already checked below JIRA issues and applied the one of workaround (asadmin set configs.config.server-config.admin-service.property.adminConsoleStartup=NEVER), but no luck.

https://java.net/jira/browse/GLASSFISH-19216
https://java.net/jira/browse/GLASSFISH-18880

Exception in server.log after step #5:

[#|2013-08-26T12:44:50.044+0530|SEVERE|glassfish3.1.2|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=20;_ThreadName=Thread-2;|Critical error during deployment:
com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: java.net.MalformedURLException: Unknown protocol: jndi
at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:672)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:322)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4750)
at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:550)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5366)
at com.sun.enterprise.web.WebModule.start(WebModule.java:498)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2019)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:375)
at com.sun.enterprise.v3.admin.adapter.InstallerThread.load(InstallerThread.java:210)
at com.sun.enterprise.v3.admin.adapter.InstallerThread.run(InstallerThread.java:108)
Caused by: java.util.concurrent.ExecutionException: java.net.MalformedURLException: Unknown protocol: jndi
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
at java.util.concurrent.FutureTask.get(FutureTask.java:83)
at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:670)
... 19 more
Caused by: java.net.MalformedURLException: Unknown protocol: jndi
at java.net.URL.(URL.java:601)
at java.net.URL.(URL.java:464)
at java.net.URL.(URL.java:413)
at java.net.URI.toURL(URI.java:1080)
at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:920)
at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:865)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:656)
... 19 more

Any help / workaround will be useful.


asadmin - "trust certificate" prompt

$
0
0

Hi,

I have an asadmin multimode script that looks something like this:

create-domain --user admin --passwordfile passwords testdomain
start-domain testdomain
enable-secure-admin --passwordfile passwords
stop-domain testdomain
start-domain testdomain
create-instance --passwordfile passwords --node node instance_name
...

Always when the create-instance command is triggered I get a prompt to verify the certificate (due to enable-secure-admin i suppose):
...
Do you trust the above certificate [y|N] -->

Is there a way to automatically trust the certificate so that I do not have to type "y" during the installation process? I want to run the script without user interaction.

Regards
Bernd

Windows service doesn't stay up when I ogged out.

$
0
0

I created the service using the configuration option in the GUI setup and added to the config.domain.xml file and restarted the service. But when I log off the service quits running and I can't reach the server from another host.

Any ideas on what might be going on or how to debug this would be greatly appreciated.

My host OS ub WinXP.

GlassFish 3.1 - Connection could not be allocated because: Communications link failure The last packet sent successfully

$
0
0

Here is the full error:

Ping Connection Pool for test is Failed. Ping failed Exception - Connection could not be allocated because: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. Please check the server.log for more details.

So, I'm using GlassFish 3.1 and I'm trying to connect from my computer at home to mysql database which is at my college. I set these setting at the admin panel:
Resource type: Javax.sql.DataSource
Datasource Classname: com.mysql.jdbc.jdbc2.optional.MysqlDataSource
...And other data like password, username, port etc., which i tried before in MySql Workbench, so I'm sure they work fine.

When I ping, I get the error above. I tried to turn off the firewall and it's not fixing the problem.. If you need any more specific information I will post one, I can also post screenshots if you need.
What could go wrong actually?

An error when perform "./asadmin start-domain domain1"

$
0
0

Hi,

I installed GlassFish V4 with JDK 7 on the CentOS 6.4 which ran on VMware Fusion 5.0.3 on my MAC.

As the method showed on "Quick Start" from Oracle, I key in "./asadmin start-domain" with default "domain1" and press "Enter", below message was shown.

"com.sun.enterprise.universal.xml.MiniXmlParserException: "Xml Parser Error: javax.xml.stream.XMLStreamException: The server element for server does not exist.
Command start-domain failed."

This message confused me extremely. I really don't know how to understand this message.

Could you share your understanding for it? Thanks in Advance.

BTW, it is my first time to use GlassFish, as a beginner, "step by step" is necessary for me, absolutely. *_*

NullPointerException from inside proxy: logging of proxy operations?

$
0
0

I am staring at something quite bizarre in my debugger.

I have a local EJB injected thusly into another EJB:

@EJB
private FooProcessor fooProcessor;

In a method that I am debugging through, I do this:

assert this.fooProcessor != null;

Assertions are enabled; this test passes.

Then immediately following that assertion I do this:

this.fooProcessor.someMethod();

A NullPointerException is raised from that line. The stack originates from
that line. No GlassFish internals show up in the stack. The EJB that
implements this interface (a @Local bean) is never entered. All I can
conclude is that the proxy code somewhere is throwing a
NullPointerException and the stack is being lost. I cannot reproduce this
in a unit test.

Is there a logging level I can turn on to hopefully discover what is going
on?

GlassFish 3.1.2.2; no deployment errors.

Best,
Laird

--
http://about.me/lairdnelson

Can GlassFish/parts of GlassFish open source edition be used in commercial closed source projects?

$
0
0

Hi all,

the question i have seems quite simple: Can i use the libraries of parts of GlassFish open source edition in closed source commercial projects?

Looking at the licenses (CDDL and GPL v2) isn't too enlightening for me. CDDL seems to be usable for such scenarios but not GPL.

Can someone please shed some light on the topic for me and explain in simple words what is allowed and what isn't? :)

best regards
synthe

CDI-OSGiService Injection failing

$
0
0

Hi,

I try to learn how to use CDI in an OSGI Web application, but i don't seem to make it work after several days of trying and i am not figuring out what i am doing wrong.

I have an interface:

public interface UserAuthService {
boolean login(String username, String password);
boolean register(String username, String password);
}

Then i registered a service using this interface:
public class SimpleServiceActivator implements BundleActivator{

@Override
public void start(BundleContext context) throws Exception {
context.registerService(UserAuthService.class.getName(), new UserAuthServiceImpl(), null);
System.out.println("SimpleServiceActivator started");
}

@Override
public void stop(BundleContext context) throws Exception {
System.out.println("SimpleServiceActivator stopped");
}
}

In a WAB i want to inject the service using CDI and for enabling CDI i created beans.xml in WEB-INF directory.

In the application i have a servlet where i want to inject an osgi service.

@WebServlet("/MyServlet")
public class MyServlet extends HttpServlet {
private static final long serialVersionUID = 1L;

@Inject @OSGiService(dynamic = true)
private UserAuthService uas;

public MyServlet() {
super();
}

@Override
protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("

Login "<br> + "");
try {
if (uas.login("oracle", "fusion")) {
out.println("Welcome " + "oracle");
} else {
out.println("Incorrect user name or password. Try again ");
}
} catch (ServiceException e) {
out.println("Service is not yet available");
}
out.println("");
}
}

When i try to run this is on Glassfish4, Equinox platform i get the error from the attached file.

Any idea what i do wrong or how to fix this? I am not using Maven in the project, is just a simple Dynamic Web Project created from Eclipse to which i add the OSGI Bundle Facet.

Thanks in advance for taking the time to read this,

Monica

AttachmentSize
Error.txt20.11 KB

server.log not updating

$
0
0

Hi,

server.log not updating anything once all the domain/app finish startup. It should show some activity/info when i try to access my application, however It just keep freezing after that.

This only happen on my SunSolaris Server. SPARC10. My red hat server is doing fine.

below is sample of my server.log.

[#|2013-09-02T11:20:14.444+0300|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=10;_ThreadName=Thread-2;|GlassFish Server Open Source Edition 3.1.1 (12) st
artup time : Felix (16,905ms), startup services(451,396ms), total(468,301ms)|#]

[#|2013-09-02T11:20:14.810+0300|INFO|glassfish3.1.1|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=20;_ThreadName=Thread-2;|JMXStartupService: Started JMXConnector, JMXService
URL = service:jmx:....

[#|2013-09-02T11:20:16.236+0300|INFO|glassfish3.1.1|org.hibernate.validator.engine.resolver.DefaultTraversableResolver|_ThreadID=21;_ThreadName=Thread-2;|Instantiated an instance of org.hibernate
.validator.engine.resolver.JPATraversableResolver.|#]

[#|2013-09-02T11:20:16.902+0300|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.admin.adapter|_ThreadID=22;_ThreadName=Thread-2;|The Admin Console is already installed, but
not yet loaded.|#]

[#|2013-09-02T11:20:16.907+0300|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.admin.adapter|_ThreadID=22;_ThreadName=Thread-2;|The Admin Console is starting. Please wait.
|#]

[#|2013-09-02T11:20:17.122+0300|INFO|glassfish3.1.1|javax.enterprise.system.tools.admin.com.sun.enterprise.container.common|_ThreadID=23;_ThreadName=Thread-2;|User [] from host ...
does not have administration access|#]

[#|2013-09-02T11:20:26.492+0300|INFO|glassfish3.1.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=22;_ThreadName=Thread-2;|Initializing Mojarra 2.1.3 (FCS b02) for context ''|#]

[#|2013-09-02T11:20:31.671+0300|INFO|glassfish3.1.1|org.hibernate.validator.engine.resolver.DefaultTraversableResolver|_ThreadID=22;_ThreadName=Thread-2;|Instantiated an instance of org.hibernate
.validator.engine.resolver.JPATraversableResolver.|#]

[#|2013-09-02T11:20:37.215+0300|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=22;_ThreadName=Thread-2;|WEB0671: Loading application [__admingui] at [/
]|#]

[#|2013-09-02T11:20:37.223+0300|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=22;_ThreadName=Thread-2;|CORE10010: Loading application __admingui done in
20,313 ms|#]

[#|2013-09-02T11:20:37.226+0300|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.admin.adapter|_ThreadID=22;_ThreadName=Thread-2;|The Admin Console application is loaded.|#]

any advice?

Spec :

Glassfish 3.1.1 ( build 12 )
SPARC 10
Java 1.6.0_43

List all applications deployed on all instances and clusters

$
0
0

I need to get all applications on a glassfish server including the ones deployed on standalone instances and clusters.

Is there a simpler way to do it other than the below sequential approach?

1. List all clusters by list-clusters command. Parse the output to extract the cluster-name.
2. List all instances by list-instances command. Parse the output to extract the instance names that are not part of the cluster (standalone instances)
3. List all applications on the domain
4. List all applications on all clusters (from step1)
5. List all applications on standalone instances (from step2)

I wonder how is it done on the glassfish console when clicked on the "Applications" tab?

@RunAs and Role Propagation

$
0
0

Glassfish-3.1.2.2

I have 1 Servlet and 2 EJB in my project.

Servlet--------->Init--------------->Print

// EJB init code

@Stateless
@RunAs("SYSTEM")
@DeclareRoles({"SYSTEM"})
public class Init {

@Resource
EJBContext ejb;
@EJB
private Print print;

public String initialize() {

System.out.println("**********" + ejb.getCallerPrincipal().getName());
System.out.println("**********" + ejb.isCallerInRole("SYSTEM"));

return print.printline();
}
}

// EJB Print code:

@Stateless
@DeclareRoles({"SYSTEM"})
public class Print {

@Resource
EJBContext ejb;

public void printline() {

System.out.println("**********" + ejb.getCallerPrincipal().getName());
System.out.println("*********" + ejb.isCallerInRole("SYSTEM"));

}
}

// Execution result:

INFO: **********ANONYMOUS (OK)
INFO: **********false (OK)

INFO: **********system (OK)
INFO: **********false (? )

Why Am I getting the second false (I am expecting true) ?

mapping of web project and ejb project


SYSTEM
system

Thank you.

Mail from log handler

$
0
0

We need to send mail from a log handler in GlassFish.

We've tried to use smtphandler-0.6 and -0.7 with limited success. We install the jarfile to domain/lib/ext. We configure smtphandler's properties in domain/config/logging.properties.

We've tried two ways of satisfying smtphandler's reliance on mail imports: 1) We have edited its manifest classpath to point to ../../../../modules/javax.mail.jar, and 2) we've put javax.mail.jar in domain/lib/ext alongside the smtphandler jar.

With either of these arrangements the behavior is the same: the handler loads ok and sends mail for errors and warnings that occur during domain startup. However, when we then deploy our application and cause it to emit some error logs, mail stops working. The handler still runs, but it fails with an error finding the constructor for SMTPTransport:

java.lang.NoSuchMethodException: com.sun.mail.smtp.SMTPTransport.[init](javax.mail.Session, javax.mail.URLName)

Questions:
1) Are we deploying the handler to the correct location (domain/lib/ext) ?
2) Why does it send mail during an (empty, no apps) domain startup, but fail for logs emitted by our application?

P.S. In the exception cited above, pretend that "init" appears in angle brackets.

Lookup JavaMail session

$
0
0

This question is related to my recent question on mailing log messages.

We're attempting to send log messages via mail, with a custom log handler. As an alternative to creating our own session, it occurred to us that we might use a JavaMail session configured in GlassFish. We create a JavaMail session in the console, giving it the name "mail/loggingMailSession". But then we find we are not able to look that session up from an installed log handler.

Our custom log handler is based on smtphandler-0.7. It does not attempt to inject the session; instead it performs a context lookup. We have tried many combinations of JNDI scope, but none of them find the configured session:

java:comp/env/mail/loggingMailSession
java:global/env/mail/loggingMailSession
java:global/mail/loggingMailSession
mail/loggingMailSession
...ad nauseum

Questions: Is it possible to lookup and load a JavaMail session in JNDI from a log handler? If so, what name should we use for the lookup?

Getting the error 'The resource manager is doing work outside a global transaction'

$
0
0

[#|2013-09-02T15:12:40.482+0200|WARNING|glassfish3.1.2|javax.enterprise.system.core.transaction.com.sun.jts.jta|_ThreadID=31;_ThreadName=Thread-2;|JTS5041: The resource manager is doing work outside a global transaction
javax.transaction.xa.XAException: The connection is already closed
at org.apache.activemq.TransactionContext.toXAException(TransactionContext.java:779)
at org.apache.activemq.TransactionContext.setXid(TransactionContext.java:687)
at org.apache.activemq.TransactionContext.start(TransactionContext.java:370)
at org.apache.activemq.ra.LocalAndXATransaction.start(LocalAndXATransaction.java:136)
at com.sun.jts.jta.TransactionState.startAssociation(TransactionState.java:311)
at com.sun.jts.jta.TransactionImpl.enlistResource(TransactionImpl.java:212)
at com.sun.enterprise.transaction.JavaEETransactionImpl.enlistResource(JavaEETransactionImpl.java:639)
at com.sun.enterprise.transaction.JavaEETransactionManagerSimplified.enlistXAResource(JavaEETransactionManagerSimplified.java:1314)
at com.sun.enterprise.transaction.JavaEETransactionManagerSimplified.enlistResource(JavaEETransactionManagerSimplified.java:363)
at com.sun.enterprise.transaction.JavaEETransactionManagerSimplified.enlistComponentResources(JavaEETransactionManagerSimplified.java:1336)
at com.sun.enterprise.transaction.JavaEETransactionManagerSimplified.postInvoke(JavaEETransactionManagerSimplified.java:630)
at com.sun.enterprise.transaction.TransactionInvocationHandler.beforePostInvoke(TransactionInvocationHandler.java:95)
at org.glassfish.api.invocation.InvocationManagerImpl.postInvoke(InvocationManagerImpl.java:201)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2021)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1994)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:222)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
at $Proxy293.getParameter(Unknown Source)
at sun.reflect.GeneratedMethodAccessor249.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264)
at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)
at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137)
at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260)
at org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:111)
at org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:56)
at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:105)

How to deploy Netbeans web application to Glassfish from Java code?

$
0
0

I am changing some Java classes on the fly and I want to deploy my Netbeans web application automatically (through) Java code to Glassfish. How to deploy Netbeans web application to Glassfish from Java code, what command should I use?

I tried to use command "ant -f D:\\DOKTORAT\\NetbeansProjects\\AiPlanningServices -DforceRedeploy=true -Ddirectory.deployment.supported=true -Dnb.wait.for.caches=true run-deploy" that is displayed in Netbeans IDE console when I manually right clicked on my web application in Netbeans and choose Deploy, but this command doesn't work.

Thanks,
Darko


Strange behavior for connection factory pool-size config

$
0
0

Hi there,
I'm quite new in j2ee world and I've got a configuration problem with my MDBs.
We're using Glassfish 3.2.1 and ActiveMQ 5.6.0 for our JMS queues (not topic, just queue).
We have deployed into Glassfish an Enterprise application containing 3 MDBs connected to 3 different JMS queues.

Each queue has the following configuration (from Glassfish admin console):
- intial-pool-size: 8
- max-pool-size: 32
- resize-quantity: 8

also we added the same configuration into the sun-ejb.xml file into the METADATA project folder.

To check its behavior, each MDB has got:
1) a static int variable (counter)
2) a constructor where we increment the static counter and display its value into a log

When we test the system with a huge amount of messages (20-30 msg per second) we have noticed that our MDBs aren't able to process messages at the same speed we put them into the queues, so from the ActiveMQ web interface we see an increment of "queued messages" for each queue.

Checking the log, I find that counters of each MDB don't exceed 10 while my expectation is to find 32 for each of them.

Please, could you help me ?

Thanks in advance and excuse me for my bad english

Alessio

copy domain from Glass Fish 3.1.2 to 3.1.2.2

$
0
0

Hi

is it possible to copy domain of GlassFish server 3.1.2 to another version , Actually it is working in same version of glass fish server,
because we have lot of conflagrations in glass fish server, so we are copying domain from which is crated in one computer to another computer. Now we have crate domain another version like 3.1.2.2 can we copy in this scenario , or is there any way to do it

Thanks
Rajendar

Netbeans STS problem

$
0
0

I am trying to build sample sts example from this tutorial: http://docs.oracle.com/cd/E19159-01/820-1072/ahiey/index.html

I created STS service using STS wizard, and used it to secure sample Calculator app. But it gives following errors:

Unsupported Content-Type: application/soap+xml Supported ones are: [text/xml]

com.sun.xml.ws.server.UnsupportedMediaException: Unsupported Content-Type: application/soap+xml Supported ones are: [text/xml] at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:130) at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:294) at com.sun.xml.ws.transport.http.HttpAdapter.decodePacket(HttpAdapter.java:276)
... ... ....

SEC2002: Container-auth: wss: Error validating request java.lang.NullPointerException at com.sun.xml.ws.message.stream.StreamMessage.(StreamMessage.java:168) at com.sun.xml.ws.security.opt.impl.incoming.SecurityRecipient.validateMessage(SecurityRecipient.java:228)
... ... ....

WSS1611: Error occurred while buffering incoming SOAP message. javax.xml.stream.XMLStreamException: XMLStreamReader not positioned at a document or element at com.sun.xml.stream.buffer.stax.StreamReaderBufferCreator.store(StreamReaderBufferCreator.java:145) at com.sun.xml.stream.buffer.stax.StreamReaderBufferCreator.create(StreamReaderBufferCreator.java:82)
... .... ....

I set the system property to dump messages in server and I can see the SOAP messages exchanged between service and client.
Now, I see the new errors:
====[com.sun.xml.ws.assembler.server:request]====
com.sun.xml.ws.protocol.soap.VersionMismatchException: Couldn't create SOAP message. Expecting Envelope in namespace http://schemas.xmlsoap.org/soap/envelope/, but got http://www.w3.org/2003/05/soap-envelope
at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:184)
at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:163)
at com.sun.xml.ws.message.stream.LazyStreamBasedMessage.cacheMessage(LazyStreamBasedMessage.java:89)
at com.sun.xml.ws.message.stream.LazyStreamBasedMessage.copy(LazyStreamBasedMessage.java:457)
at com.sun.xml.ws.util.pipe.DumpTube.dump(DumpTube.java:118)
at com.sun.xml.ws.util.pipe.DumpTube.processRequest(DumpTube.java:97)
.... ......

From this error, I set service to use SOAP 1.2 using this annotation:
@javax.xml.ws.BindingType(value="http://java.sun.com/xml/ns/jaxws/2003/05/soap/bindings/HTTP/")
But still gives me same errors.
For some reasons, I use Netbeans 6.0, jdk 1.5, glassfish 2. I updated versions, but got same error.
Since I used sts created by sts wizard and calculator app, I didn't do coding.
Could anybody tell me what is wrong?

GF4 complains about CDI failures, but I do not use CDI at all!

$
0
0

I can deploy my EAR on GF3, but when I want to deploy on GF4, it fails due to the following reason:

"CDI deployment failure:WELD-001524 Unable to load proxy class for bean ..." which is (according to server.log) caused by the fact that one of my session beans overwrites a protected (!) abstract method of its super class, and declares it 'final' (in fact I even didn't know that this is forbidden, as that method is not even part of any interface, BTW).

The point is that my EAR actually does not use CDI at all (it does not even contain a beans.xml indicator file)!

So I wonder whether (a) why it is forbidden since GF4 to declare 'final' at protected methods which are not part of any interface, and why (b) GF4 complains about CDI problems when I have no beans.xml anywhere in my EAR?

Thanks!
-Markus

Free talk in London: New JMS features in GlassFish 4.0

$
0
0

The London GlassFish User Group has its first meeting at 6pm Wednesday 18th September. This is an independent group
set up by members of the GlassFish community.

I'll be speaking about "New JMS features in GlassFish 4.0", focussing on JMS 2.0, for which I was the Specification Lead.

The meeting is at Skills Matter Exchange, 116-120 Goswell Road, London EC1 (a short walk from Barbican tube)

Here's the full agenda

18:00 - 18:15 - Coffee, Welcome and Networking
18:15 - 19:30 - 'New JMS features in GlassFish 4.0' by Nigel Deakin, Oracle
19:30 - 19:45 - 'JMS @ Data Grid? Hacking the Glassfish messaging for fun & profit'
by Jaromir Hamala, Senior Consultant at C2B2
19:45 - 20:00 - 'Deploying with GlassFish & Docker'
by Shanny Anoep, Senior Consultant at C2B2
20:00 - 20:30 - Beer, Pizza and Networking

For details and registration (free) please visit
http://www.meetup.com/GlassFish-User-Group/events/130184872/

More about the London GlassFish User Group
http://www.meetup.com/GlassFish-User-Group/

Nigel

Viewing all 1091 articles
Browse latest View live




Latest Images