Does the JPA Ticket Registry stuff work for CAS 3.3.4?

8 messages Options
Embed this post
Permalink
Curtis Garman

Does the JPA Ticket Registry stuff work for CAS 3.3.4?

Reply Threaded More More options
Print post
Permalink
Does the JPA Ticket Registry stuff work for CAS 3.3.4? I just tried
setting it up on a windows xp machine running uportal 3.1.1 and CAS
3.3.4 and when i started tomcat I got some nasty errors that I
attached. I did look in my lib folder and saw a couple different
version of hibernate stuff in there...not sure why...that doesn't seem
right. Anyway, I was wondering if there was some sort of jar conflict.

--
Curtis Garman
Web Programmer
Heartland Community College

--
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user

cas.log (24K) Download Attachment
Marvin Addison

Re: Does the JPA Ticket Registry stuff work for CAS 3.3.4?

Reply Threaded More More options
Print post
Permalink
> Does the JPA Ticket Registry stuff work for CAS 3.3.4?

It should work fine.  Did you define an entityMangerFactory bean in
your deployerConfigContext.xml file?  From the log you shared, it
looks like it's missing.

M

--
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
Curtis Garman

Re: Does the JPA Ticket Registry stuff work for CAS 3.3.4?

Reply Threaded More More options
Print post
Permalink
I literally copied and pasted the ticketRegistry.xml content from the
wiki into my maven overlay at WEB-INF/spring-configuration/ as
indicated on http://www.ja-sig.org/wiki/display/CASUM/JpaTicketRegistry
...this file does contain entityManagerFactory definition

it actually looks like the cause of everything is the
java.io.FileNotFoundException

Caused by: java.io.FileNotFoundException:
C:\Program%20Files\Apache%20Software%20Foundation\tomcat\6.0.18\jvm1\webapps\cas\WEB-INF\lib\cas-server-core-3.3.4.jar
(The system cannot find the path specified)
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:114)
        at java.util.jar.JarFile.<init>(JarFile.java:133)
        at java.util.jar.JarFile.<init>(JarFile.java:97)
        at org.jboss.util.file.JarArchiveBrowser.<init>(JarArchiveBrowser.java:69)
        ... 64 more

I'm not sure why it thinks the file isn't there because it absolutely
is...I can navigate to the fold and see it myself. Any ideas why it
would claim that the file doesn't exist?

On Fri, Oct 9, 2009 at 2:41 PM, Marvin Addison <[hidden email]> wrote:

>> Does the JPA Ticket Registry stuff work for CAS 3.3.4?
>
> It should work fine.  Did you define an entityMangerFactory bean in
> your deployerConfigContext.xml file?  From the log you shared, it
> looks like it's missing.
>
> M
>
> --
> You are currently subscribed to [hidden email] as: [hidden email]
> To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
>



--
Curtis Garman
Web Programmer
Heartland Community College

--
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user

Marvin Addison

Re: Does the JPA Ticket Registry stuff work for CAS 3.3.4?

Reply Threaded More More options
Print post
Permalink
> it actually looks like the cause of everything is the
> java.io.FileNotFoundException
>
> Caused by: java.io.FileNotFoundException:
> C:\Program%20Files\Apache%20Software%20Foundation\tomcat\6.0.18\jvm1\webapps\cas\WEB-INF\lib\cas-server-core-3.3.4.jar
> (The system cannot find the path specified)
>        at java.util.zip.ZipFile.open(Native Method)
>        at java.util.zip.ZipFile.<init>(ZipFile.java:114)
>        at java.util.jar.JarFile.<init>(JarFile.java:133)
>        at java.util.jar.JarFile.<init>(JarFile.java:97)
>        at org.jboss.util.file.JarArchiveBrowser.<init>(JarArchiveBrowser.java:69)
>        ... 64 more

http://opensource.atlassian.com/projects/hibernate/browse/EJB-337
looks like a potential cause.  Can you move your Tomcat such that the
path above would not contain spaces and try again?

M

--
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
Curtis Garman

Re: Does the JPA Ticket Registry stuff work for CAS 3.3.4?

Reply Threaded More More options
Print post
Permalink
Ok...I'm actually testing 3.1.1 on both a windows machine (laptop) and
a linux server...I was trying to get it to work on my laptop...I tried
the setup on the linux box and it worked fine...except (even though I
pointed it to a different database) it still created the tables in my
portal database. Any reason why this would happen? I couldn't see
anything and as far as I know cas shouldn't even know my portal
database exists

On Mon, Oct 12, 2009 at 10:38 AM, Marvin Addison
<[hidden email]> wrote:

>> it actually looks like the cause of everything is the
>> java.io.FileNotFoundException
>>
>> Caused by: java.io.FileNotFoundException:
>> C:\Program%20Files\Apache%20Software%20Foundation\tomcat\6.0.18\jvm1\webapps\cas\WEB-INF\lib\cas-server-core-3.3.4.jar
>> (The system cannot find the path specified)
>>        at java.util.zip.ZipFile.open(Native Method)
>>        at java.util.zip.ZipFile.<init>(ZipFile.java:114)
>>        at java.util.jar.JarFile.<init>(JarFile.java:133)
>>        at java.util.jar.JarFile.<init>(JarFile.java:97)
>>        at org.jboss.util.file.JarArchiveBrowser.<init>(JarArchiveBrowser.java:69)
>>        ... 64 more
>
> http://opensource.atlassian.com/projects/hibernate/browse/EJB-337
> looks like a potential cause.  Can you move your Tomcat such that the
> path above would not contain spaces and try again?
>
> M
>
> --
> You are currently subscribed to [hidden email] as: [hidden email]
> To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
>



--
Curtis Garman
Web Programmer
Heartland Community College

--
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user

Marvin Addison

Re: Does the JPA Ticket Registry stuff work for CAS 3.3.4?

Reply Threaded More More options
Print post
Permalink
> except (even though I
> pointed it to a different database) it still created the tables in my
> portal database. Any reason why this would happen?

You're using the wrong JDBC URL in your CAS DataSource definition?

M

--
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
Curtis Garman

Re: Does the JPA Ticket Registry stuff work for CAS 3.3.4?

Reply Threaded More More options
Print post
Permalink
In reply to this post by Curtis Garman
Ok, I found out why it created the tables in the portal database but a
couple things are still a little fuzzy. I found a datasource in the
deployerConfigContext.xml pointing to it...but I didn't put it
there...it looks like it copied the credentials from the
datasource.properties file of the portal so two things

1) I ended up with two beans with dataSource as their id (both the
default one in deployerConfigContext.xml and the one in the
ticketRegistry.xml file that were included in the configuration on the
wiki) and I don't understand why spring didn't complain about trying
to have two beans with the same id.

2) why does cas by default have a datasource bean when the default
configuration doesn't use it...hmm...but upon further exploration it
appears this datasource is nescessary to authenticate fragment owner
accounts and such

I fixed the issue by changing the name of the datasource jpa uses to
casDataSource and changing the name of the bean being injected into
the entityManagerFactory...this seems to have fixed the problem.

On Thu, Oct 15, 2009 at 8:49 AM, Curtis Garman <[hidden email]> wrote:

> Ok...I'm actually testing 3.1.1 on both a windows machine (laptop) and
> a linux server...I was trying to get it to work on my laptop...I tried
> the setup on the linux box and it worked fine...except (even though I
> pointed it to a different database) it still created the tables in my
> portal database. Any reason why this would happen? I couldn't see
> anything and as far as I know cas shouldn't even know my portal
> database exists
>
> On Mon, Oct 12, 2009 at 10:38 AM, Marvin Addison
> <[hidden email]> wrote:
>>> it actually looks like the cause of everything is the
>>> java.io.FileNotFoundException
>>>
>>> Caused by: java.io.FileNotFoundException:
>>> C:\Program%20Files\Apache%20Software%20Foundation\tomcat\6.0.18\jvm1\webapps\cas\WEB-INF\lib\cas-server-core-3.3.4.jar
>>> (The system cannot find the path specified)
>>>        at java.util.zip.ZipFile.open(Native Method)
>>>        at java.util.zip.ZipFile.<init>(ZipFile.java:114)
>>>        at java.util.jar.JarFile.<init>(JarFile.java:133)
>>>        at java.util.jar.JarFile.<init>(JarFile.java:97)
>>>        at org.jboss.util.file.JarArchiveBrowser.<init>(JarArchiveBrowser.java:69)
>>>        ... 64 more
>>
>> http://opensource.atlassian.com/projects/hibernate/browse/EJB-337
>> looks like a potential cause.  Can you move your Tomcat such that the
>> path above would not contain spaces and try again?
>>
>> M
>>
>> --
>> You are currently subscribed to [hidden email] as: [hidden email]
>> To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
>>
>
>
>
> --
> Curtis Garman
> Web Programmer
> Heartland Community College
>



--
Curtis Garman
Web Programmer
Heartland Community College

--
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user

Curtis Garman

Re: Does the JPA Ticket Registry stuff work for CAS 3.3.4?

Reply Threaded More More options
Print post
Permalink
the wiki should probably be updated with a different bean name than
"datasource" so that others don't get the collision between
datasources...especially if no error is produced on startup to flag
the issue.

On Thu, Oct 15, 2009 at 10:38 AM, Curtis Garman <[hidden email]> wrote:

> Ok, I found out why it created the tables in the portal database but a
> couple things are still a little fuzzy. I found a datasource in the
> deployerConfigContext.xml pointing to it...but I didn't put it
> there...it looks like it copied the credentials from the
> datasource.properties file of the portal so two things
>
> 1) I ended up with two beans with dataSource as their id (both the
> default one in deployerConfigContext.xml and the one in the
> ticketRegistry.xml file that were included in the configuration on the
> wiki) and I don't understand why spring didn't complain about trying
> to have two beans with the same id.
>
> 2) why does cas by default have a datasource bean when the default
> configuration doesn't use it...hmm...but upon further exploration it
> appears this datasource is nescessary to authenticate fragment owner
> accounts and such
>
> I fixed the issue by changing the name of the datasource jpa uses to
> casDataSource and changing the name of the bean being injected into
> the entityManagerFactory...this seems to have fixed the problem.
>
> On Thu, Oct 15, 2009 at 8:49 AM, Curtis Garman <[hidden email]> wrote:
>> Ok...I'm actually testing 3.1.1 on both a windows machine (laptop) and
>> a linux server...I was trying to get it to work on my laptop...I tried
>> the setup on the linux box and it worked fine...except (even though I
>> pointed it to a different database) it still created the tables in my
>> portal database. Any reason why this would happen? I couldn't see
>> anything and as far as I know cas shouldn't even know my portal
>> database exists
>>
>> On Mon, Oct 12, 2009 at 10:38 AM, Marvin Addison
>> <[hidden email]> wrote:
>>>> it actually looks like the cause of everything is the
>>>> java.io.FileNotFoundException
>>>>
>>>> Caused by: java.io.FileNotFoundException:
>>>> C:\Program%20Files\Apache%20Software%20Foundation\tomcat\6.0.18\jvm1\webapps\cas\WEB-INF\lib\cas-server-core-3.3.4.jar
>>>> (The system cannot find the path specified)
>>>>        at java.util.zip.ZipFile.open(Native Method)
>>>>        at java.util.zip.ZipFile.<init>(ZipFile.java:114)
>>>>        at java.util.jar.JarFile.<init>(JarFile.java:133)
>>>>        at java.util.jar.JarFile.<init>(JarFile.java:97)
>>>>        at org.jboss.util.file.JarArchiveBrowser.<init>(JarArchiveBrowser.java:69)
>>>>        ... 64 more
>>>
>>> http://opensource.atlassian.com/projects/hibernate/browse/EJB-337
>>> looks like a potential cause.  Can you move your Tomcat such that the
>>> path above would not contain spaces and try again?
>>>
>>> M
>>>
>>> --
>>> You are currently subscribed to [hidden email] as: [hidden email]
>>> To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
>>>
>>
>>
>>
>> --
>> Curtis Garman
>> Web Programmer
>> Heartland Community College
>>
>
>
>
> --
> Curtis Garman
> Web Programmer
> Heartland Community College
>



--
Curtis Garman
Web Programmer
Heartland Community College

--
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user