Re: [Resin-interest] Resin embedded issues

2009-01-14 Thread Daniel López
Scott Ferguson escribió:
> bugs.caucho.com is really the best place to report these things.

There you go:

0003251: Resin dependencies are broken for version 3.2.1 at the Caucho 
Maven 2 repository: http://bugs.caucho.com/view.php?id=3251

0003250: Quercus .jar published at the maven repository is not propertly 
packaged: http://bugs.caucho.com/view.php?id=3250

0003252: Resin embedded cannot find classes in WEB-INF/lib using 
Class.forName from the very same .jar: 
http://bugs.caucho.com/view.php?id=3252

Good luck with version 4.0 ;)
D.


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Resin embedded issues

2009-01-13 Thread Scott Ferguson

On Jan 13, 2009, at 2:14 AM, Jan Kriesten wrote:

>
> Hi,
>
>> On a related note, the caucho maven repository seems to be lacking  
>> some
>> files, resin.jar 3.2.1 declares some files as dependencies that are  
>> not
>> there:
>
> sadly, that's true for most versions > 3.1.6 :-(
>
> I already reported that here on 2008/10/20 - but never got any  
> feedback on this.

bugs.caucho.com is really the best place to report these things.

At the moment, we're all tied up with the 4.0 logjam, so the bug  
squashing is slow.  That's important for 3.2.1 since 4.0.0 is the  
following release.  In other words, it makes more sense to make a 4.0  
snapshot usable and then fix bugs against it, rather than fixing bugs  
on an unusable snapshot.  But right now, it's a bit frustrating.

-- Scott

>
>
> Best regards, --- Jan.
>
>
>
>
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Resin embedded issues

2009-01-13 Thread Jan Kriesten

Hi,

> On a related note, the caucho maven repository seems to be lacking some 
> files, resin.jar 3.2.1 declares some files as dependencies that are not 
> there:

sadly, that's true for most versions > 3.1.6 :-(

I already reported that here on 2008/10/20 - but never got any feedback on this.

Best regards, --- Jan.




___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Resin embedded issues

2009-01-13 Thread Daniel López
Hi,

I'm trying to get a demo application to use Resin as embedded container. 
The application can be run successfully using Resin the usual way and it 
can also be run using Jetty as embedded container, so the application 
should be "fine".
However, inside the application some action classes are loaded using 
Class.forName and that seems to be cause issues in embedded mode. The 
stack trace that is produces looks like this:
*
ADVERTENCIA: java.lang.NoClassDefFoundError: 
org/leaf/util/ConnectionManagementHelper$SQLAction
java.lang.NoClassDefFoundError: 
org/leaf/util/ConnectionManagementHelper$SQLAction
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Unknown Source)
 at org.leaf.xml.ClassSource.getSource(ClassSource.java:134)
 at org.leaf.xml.ClassSource.getXMLSource(ClassSource.java:264)
...
Caused by: java.lang.ClassNotFoundException: 
org.leaf.util.ConnectionManagementHelper$SQLAction
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 ... 27 more
*
You can see that the class that isn't 
found(org/leaf/util/ConnectionManagementHelper) is in the same package 
as the loading class(org.leaf.xml.ClassSource) and they all come 
included in the same .jar file. Moreover, the error does not happen just 
with that specific class, but with any class from that .jar that is 
loaded through Class.forName.

The .jar file is just inside WEB-INF/lib and there is just one copy of 
it in the classpath.

It looks as if the main classes for the framework (basically, a servlet) 
would have been loaded through the system classloader, even if just 
present in WEB-INF/lib, and that causes the problem when looking for 
classes inside the same .jar file.

On a related note, the caucho maven repository seems to be lacking some 
files, resin.jar 3.2.1 declares some files as dependencies that are not 
there:
***
[ivy:retrieve]  ::
[ivy:retrieve]  ::  UNRESOLVED DEPENDENCIES ::
[ivy:retrieve]  ::
[ivy:retrieve]  :: com.caucho#resin-ejb;3.2.1: not found
[ivy:retrieve]  :: com.caucho#resin-j2ee-management;3.2.1: not found
[ivy:retrieve]  :: com.caucho#resin-jca;3.2.1: not found
[ivy:retrieve]  :: com.caucho#resin-jms;3.2.1: not found
[ivy:retrieve]  :: com.caucho#resin-jsdk;3.2.1: not found
[ivy:retrieve]  :: com.caucho#resin-jstl;3.2.1: not found
[ivy:retrieve]  :: com.caucho#resin-jpa;3.2.1: not found
[ivy:retrieve]  :: com.caucho#resin-jta;3.2.1: not found
[ivy:retrieve]  :: com.caucho#resin-jws;3.2.1: not found
[ivy:retrieve]  :: com.caucho#resin-support;3.2.1: not found
[ivy:retrieve]  :: com.caucho#resin-webbeans;3.2.1: not found
[ivy:retrieve]  ::
***
So, I had to grab the files from a Resin 3.2.1 installation, including 
osgi-14.jar and javaee-16.jar which are not listed as dependencies but 
are needed to run Resin embedded, at least with the resin.jar from a 
normal installation, as it is different from the one you can get from 
the Maven repository.

And a tiny detail, the default log level using Resin embedded is kind of 
verbose, as it is set to spit the full date, the full classname and the 
method for each log line, which makes each log line twice as big. A bit 
too much for a default, IMHO.

Cheers!
D.


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest