[ 
https://issues.apache.org/jira/browse/WICKET-2416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748446#action_12748446
 ] 

Loren commented on WICKET-2416:
-------------------------------

I have compiled and run this test case using Wicket 1.4.1 and Glassfish V2.1 
without error, using the back button hasn't caused any serialization problems. 
To compile the program I had to remove the libraries Bernard included and add 
the following:

For Test-ejb - just the Glassfish 2.1 library that is added when you associate 
the app with your application server in NetBeans and JDK 1.6.  Nothing else was 
required.

For Test-war -
Test-ejb
cglib-nodep-2.1_3.jar - I forget if this is required by wicket's logging, or 
java-ee-contrib, but it is needed.
wicket-extensions-1.4.1.jar
wicket-ioc-1.4.1.jar
wicket-contrib-javaee-1.1.jar
The Glassfish 2.1 library
JDK 1.6

To run Wicket with Glassfish you do need to add slf4j-jdk14.jar and 
slf4j-api.jar to /opt/glassfish/lib, because of some issue I've half forgotten 
with when the logging modules get loaded.  Igor, perhaps this will resolve your 
classloader issue?

I've been injecting ejb's into webApplications, pages, panels, and models with 
wicket-contrib-javaee 1.1 and Wicket 1.3 without any issues for nearly a year, 
it totally works.  Many thanks to the Wicket team, Filippo Diotalevi, and Maris 
Orbidans for making it go; please please don't discount bugs just because they 
involve EJB3, it's really not half bad, and some of us need to put big 
enterprisey technologies somewhere in our design specs for very silly, but, 
none the less real, reasons.

-
Loren

> Exception with EJB Session Bean
> -------------------------------
>
>                 Key: WICKET-2416
>                 URL: https://issues.apache.org/jira/browse/WICKET-2416
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.0
>         Environment: Java 1.6.
> Wicket Java EE 1.1
>            Reporter: bernard
>            Priority: Minor
>         Attachments: testcase.zip
>
>
> The attached testcase gets an exception
> java.io.InvalidClassException: test.session.TestSessionLocal; could not 
> resolve class [test.session.TestSessionLocal] when deserializing proxy
>         at 
> org.apache.wicket.proxy.LazyInitProxyFactory$ProxyReplacement.readResolve(LazyInitProxyFactory.java:236)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> when the user clicks through it, starting from index.html.
> I can't really make any progress without a fix, or without knowing what I am 
> doing wrong to get this.
> The testcase will work out of the box with NetBeans 6.7.1 and Server: 
> GlassFish V2 which is bundled with it.
> I don't know what really causes this. It is interesting that the tescase runs 
> ok when 
> two lines are removed from Page2.java.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to