Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Riina Antikainen
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b708c329
authored
Dec 18, 2011
by
Antti Tonkyra
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of dev.intra.insomnia.fi:/data/bortal
2 parents
ace489ca
58fe9833
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
54 additions
and
52 deletions
code/LanBortal/.settings/org.eclipse.wst.common.project.facet.core.xml
code/LanBortalAuthModule/.classpath
code/LanBortalAuthModule/.settings/org.eclipse.wst.common.project.facet.core.xml
code/LanBortalAuthModuleClient/.classpath
code/LanBortalAuthModuleClient/.settings/org.eclipse.wst.common.project.facet.core.xml
code/LanBortalBeans/.classpath
code/LanBortalBeans/.settings/org.eclipse.wst.common.project.facet.core.xml
code/LanBortalBeansClient/.classpath
code/LanBortalBeansClient/.settings/org.eclipse.wst.common.project.facet.core.xml
code/LanBortalDatabase/.classpath
code/LanBortalDatabase/.settings/org.eclipse.wst.common.project.facet.core.xml
code/LanBortalDatabase/src/META-INF/persistence.xml
code/LanBortalFlash/.settings/org.eclipse.wst.common.project.facet.core.xml
code/LanBortalUtilities/.classpath
code/LanBortalUtilities/.settings/org.eclipse.wst.common.project.facet.core.xml
code/LanBortalWeb/.classpath
code/LanBortalWeb/.settings/org.eclipse.wst.common.project.facet.core.xml
code/LanBortalWeb/WebContent/WEB-INF/web.xml
glassfishin_asennus.txt
code/LanBortal/.settings/org.eclipse.wst.common.project.facet.core.xml
View file @
b708c32
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<faceted-project>
<runtime
name=
"GlassFish 3.1"
/>
<runtime
name=
"GlassFish 3.1
.1
"
/>
<fixed
facet=
"jst.ear"
/>
<fixed
facet=
"jst.ear"
/>
<installed
facet=
"jst.ear"
version=
"6.0"
/>
<installed
facet=
"jst.ear"
version=
"6.0"
/>
<installed
facet=
"sun.facet"
version=
"9"
/>
<installed
facet=
"sun.facet"
version=
"9"
/>
...
...
code/LanBortalAuthModule/.classpath
View file @
b708c32
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
<classpath>
<classpath>
<classpathentry
kind=
"src"
path=
"src"
/>
<classpathentry
kind=
"src"
path=
"src"
/>
<classpathentry
combineaccessrules=
"false"
exported=
"true"
kind=
"src"
path=
"/LanBortalAuthModuleClient"
/>
<classpathentry
combineaccessrules=
"false"
exported=
"true"
kind=
"src"
path=
"/LanBortalAuthModuleClient"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.launching.macosx.MacOSXType/JVM 1.6"
>
<classpathentry
combineaccessrules=
"false"
kind=
"src"
path=
"/lib-AuthModule-depends"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.server.core.container/com.sun.enterprise.jst.server.runtimeTarget/GlassFish 3.1.1"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"
>
<attributes>
<attributes>
<attribute
name=
"owner.project.facets"
value=
"java"
/>
<attribute
name=
"owner.project.facets"
value=
"java"
/>
</attributes>
</attributes>
</classpathentry>
</classpathentry>
<classpathentry
combineaccessrules=
"false"
kind=
"src"
path=
"/lib-AuthModule-depends"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.server.core.container/com.sun.enterprise.jst.server.runtimeTarget/GlassFish 3.1"
/>
<classpathentry
kind=
"output"
path=
"bin"
/>
<classpathentry
kind=
"output"
path=
"bin"
/>
</classpath>
</classpath>
code/LanBortalAuthModule/.settings/org.eclipse.wst.common.project.facet.core.xml
View file @
b708c32
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<faceted-project>
<runtime
name=
"GlassFish 3.1.1"
/>
<installed
facet=
"java"
version=
"1.6"
/>
<installed
facet=
"java"
version=
"1.6"
/>
</faceted-project>
</faceted-project>
code/LanBortalAuthModuleClient/.classpath
View file @
b708c32
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
<classpath>
<classpath>
<classpathentry
kind=
"src"
path=
"src"
/>
<classpathentry
kind=
"src"
path=
"src"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.j2ee.internal.module.container"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.j2ee.internal.module.container"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.server.core.container/com.sun.enterprise.jst.server.runtimeTarget/GlassFish 3.1"
>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.server.core.container/com.sun.enterprise.jst.server.runtimeTarget/GlassFish 3.1
.1
"
>
<attributes>
<attributes>
<attribute
name=
"owner.project.facets"
value=
"jst.utility"
/>
<attribute
name=
"owner.project.facets"
value=
"jst.utility"
/>
</attributes>
</attributes>
</classpathentry>
</classpathentry>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.
launching.macosx.MacOSXType/JVM
1.6"
>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.
debug.ui.launcher.StandardVMType/JavaSE-
1.6"
>
<attributes>
<attributes>
<attribute
name=
"owner.project.facets"
value=
"java"
/>
<attribute
name=
"owner.project.facets"
value=
"java"
/>
</attributes>
</attributes>
...
...
code/LanBortalAuthModuleClient/.settings/org.eclipse.wst.common.project.facet.core.xml
View file @
b708c32
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<faceted-project>
<runtime
name=
"GlassFish 3.1"
/>
<runtime
name=
"GlassFish 3.1
.1
"
/>
<fixed
facet=
"java"
/>
<fixed
facet=
"java"
/>
<fixed
facet=
"jst.utility"
/>
<fixed
facet=
"jst.utility"
/>
<installed
facet=
"jst.utility"
version=
"1.0"
/>
<installed
facet=
"jst.utility"
version=
"1.0"
/>
...
...
code/LanBortalBeans/.classpath
View file @
b708c32
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpath>
<classpathentry
kind=
"src"
path=
"ejbModule"
/>
<classpathentry
kind=
"src"
path=
"ejbModule"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.launching.macosx.MacOSXType/JVM 1.6"
>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.j2ee.internal.module.container"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.server.core.container/com.sun.enterprise.jst.server.runtimeTarget/GlassFish 3.1.1"
>
<attributes>
<attributes>
<attribute
name=
"owner.project.facets"
value=
"j
ava
"
/>
<attribute
name=
"owner.project.facets"
value=
"j
st.ejb
"
/>
</attributes>
</attributes>
</classpathentry>
</classpathentry>
<classpathentry
kind=
"con"
path=
"org.eclipse.j
st.server.core.container/com.sun.enterprise.jst.server.runtimeTarget/GlassFish 3.1
"
>
<classpathentry
kind=
"con"
path=
"org.eclipse.j
dt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6
"
>
<attributes>
<attributes>
<attribute
name=
"owner.project.facets"
value=
"j
st.ejb
"
/>
<attribute
name=
"owner.project.facets"
value=
"j
ava
"
/>
</attributes>
</attributes>
</classpathentry>
</classpathentry>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.j2ee.internal.module.container"
/>
<classpathentry
kind=
"output"
path=
"build/classes"
/>
<classpathentry
kind=
"output"
path=
"build/classes"
/>
</classpath>
</classpath>
code/LanBortalBeans/.settings/org.eclipse.wst.common.project.facet.core.xml
View file @
b708c32
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<faceted-project>
<runtime
name=
"GlassFish 3.1"
/>
<runtime
name=
"GlassFish 3.1
.1
"
/>
<fixed
facet=
"java"
/>
<fixed
facet=
"java"
/>
<fixed
facet=
"jst.ejb"
/>
<fixed
facet=
"jst.ejb"
/>
<installed
facet=
"java"
version=
"1.6"
/>
<installed
facet=
"java"
version=
"1.6"
/>
...
...
code/LanBortalBeansClient/.classpath
View file @
b708c32
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpath>
<classpathentry
kind=
"src"
path=
"ejbModule"
/>
<classpathentry
kind=
"src"
path=
"ejbModule"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.server.core.container/com.sun.enterprise.jst.server.runtimeTarget/GlassFish 3.1"
>
<attributes>
<attribute
name=
"owner.project.facets"
value=
"jst.utility"
/>
</attributes>
</classpathentry>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.j2ee.internal.module.container"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.j2ee.internal.module.container"
/>
<classpathentry
kind=
"src"
path=
"/LanBortalDatabase"
/>
<classpathentry
kind=
"src"
path=
"/LanBortalDatabase"
/>
<classpathentry
kind=
"src"
path=
"/LanBortalUtilities"
/>
<classpathentry
kind=
"src"
path=
"/LanBortalUtilities"
/>
<classpathentry
kind=
"src"
path=
"/LanBortalAuthModuleClient"
/>
<classpathentry
kind=
"src"
path=
"/LanBortalAuthModuleClient"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.launching.macosx.MacOSXType/JVM 1.6"
>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.server.core.container/com.sun.enterprise.jst.server.runtimeTarget/GlassFish 3.1.1"
>
<attributes>
<attribute
name=
"owner.project.facets"
value=
"jst.utility"
/>
</attributes>
</classpathentry>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"
>
<attributes>
<attributes>
<attribute
name=
"owner.project.facets"
value=
"java"
/>
<attribute
name=
"owner.project.facets"
value=
"java"
/>
</attributes>
</attributes>
...
...
code/LanBortalBeansClient/.settings/org.eclipse.wst.common.project.facet.core.xml
View file @
b708c32
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<faceted-project>
<runtime
name=
"GlassFish 3.1"
/>
<runtime
name=
"GlassFish 3.1
.1
"
/>
<fixed
facet=
"java"
/>
<fixed
facet=
"java"
/>
<fixed
facet=
"jst.utility"
/>
<fixed
facet=
"jst.utility"
/>
<installed
facet=
"jst.utility"
version=
"1.0"
/>
<installed
facet=
"jst.utility"
version=
"1.0"
/>
...
...
code/LanBortalDatabase/.classpath
View file @
b708c32
...
@@ -2,16 +2,16 @@
...
@@ -2,16 +2,16 @@
<classpath>
<classpath>
<classpathentry
kind=
"src"
path=
"src"
/>
<classpathentry
kind=
"src"
path=
"src"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.j2ee.internal.module.container"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.j2ee.internal.module.container"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.server.core.container/com.sun.enterprise.jst.server.runtimeTarget/GlassFish 3.1"
>
<classpathentry
kind=
"src"
path=
"/LanBortalUtilities"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.server.core.container/com.sun.enterprise.jst.server.runtimeTarget/GlassFish 3.1.1"
>
<attributes>
<attributes>
<attribute
name=
"owner.project.facets"
value=
"jst.utility"
/>
<attribute
name=
"owner.project.facets"
value=
"jst.utility"
/>
</attributes>
</attributes>
</classpathentry>
</classpathentry>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.
launching.macosx.MacOSXType/JVM
1.6"
>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.
debug.ui.launcher.StandardVMType/JavaSE-
1.6"
>
<attributes>
<attributes>
<attribute
name=
"owner.project.facets"
value=
"java"
/>
<attribute
name=
"owner.project.facets"
value=
"java"
/>
</attributes>
</attributes>
</classpathentry>
</classpathentry>
<classpathentry
kind=
"src"
path=
"/LanBortalUtilities"
/>
<classpathentry
kind=
"output"
path=
"build/classes"
/>
<classpathentry
kind=
"output"
path=
"build/classes"
/>
</classpath>
</classpath>
code/LanBortalDatabase/.settings/org.eclipse.wst.common.project.facet.core.xml
View file @
b708c32
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<faceted-project>
<runtime
name=
"GlassFish 3.1"
/>
<runtime
name=
"GlassFish 3.1
.1
"
/>
<fixed
facet=
"jst.utility"
/>
<fixed
facet=
"jst.utility"
/>
<fixed
facet=
"jst.java"
/>
<fixed
facet=
"jst.java"
/>
<fixed
facet=
"jpt.jpa"
/>
<fixed
facet=
"jpt.jpa"
/>
...
...
code/LanBortalDatabase/src/META-INF/persistence.xml
View file @
b708c32
...
@@ -5,8 +5,9 @@
...
@@ -5,8 +5,9 @@
<persistence-unit
name=
"BortalDb"
transaction-type=
"JTA"
>
<persistence-unit
name=
"BortalDb"
transaction-type=
"JTA"
>
<jta-data-source>
jdbc/bortal
</jta-data-source>
<jta-data-source>
jdbc/bortal
</jta-data-source>
<properties>
<properties>
<property
name=
"eclipselink.ddl-generation
.output-mode"
value=
"both
"
/>
<property
name=
"eclipselink.ddl-generation
"
value=
"create-tables
"
/>
<property
name=
"eclipselink.cache.size.default"
value=
"16384"
/>
<property
name=
"eclipselink.cache.size.default"
value=
"16384"
/>
<property
name=
"eclipselink.ddl-generation.output-mode"
value=
"database"
/>
</properties>
</properties>
</persistence-unit>
</persistence-unit>
</persistence>
</persistence>
code/LanBortalFlash/.settings/org.eclipse.wst.common.project.facet.core.xml
View file @
b708c32
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<faceted-project>
<runtime
name=
"GlassFish
Server Open Source Edition 3 (Java EE 6)
"
/>
<runtime
name=
"GlassFish
3.1.1
"
/>
</faceted-project>
</faceted-project>
code/LanBortalUtilities/.classpath
View file @
b708c32
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<classpath>
<classpath>
<classpathentry
kind=
"src"
path=
"src"
/>
<classpathentry
kind=
"src"
path=
"src"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.j2ee.internal.module.container"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.j2ee.internal.module.container"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.server.core.container/com.sun.enterprise.jst.server.runtimeTarget/GlassFish 3.1"
>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.server.core.container/com.sun.enterprise.jst.server.runtimeTarget/GlassFish 3.1
.1
"
>
<attributes>
<attributes>
<attribute
name=
"owner.project.facets"
value=
"jst.utility"
/>
<attribute
name=
"owner.project.facets"
value=
"jst.utility"
/>
</attributes>
</attributes>
...
...
code/LanBortalUtilities/.settings/org.eclipse.wst.common.project.facet.core.xml
View file @
b708c32
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<faceted-project>
<runtime
name=
"GlassFish 3.1"
/>
<runtime
name=
"GlassFish 3.1
.1
"
/>
<fixed
facet=
"jst.java"
/>
<fixed
facet=
"jst.java"
/>
<fixed
facet=
"jst.utility"
/>
<fixed
facet=
"jst.utility"
/>
<installed
facet=
"jst.java"
version=
"6.0"
/>
<installed
facet=
"jst.java"
version=
"6.0"
/>
...
...
code/LanBortalWeb/.classpath
View file @
b708c32
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpath>
<classpathentry
kind=
"src"
path=
"src"
/>
<classpathentry
kind=
"src"
path=
"src"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"
>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.j2ee.internal.web.container"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.j2ee.internal.module.container"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.server.core.container/com.sun.enterprise.jst.server.runtimeTarget/GlassFish 3.1.1"
>
<attributes>
<attributes>
<attribute
name=
"owner.project.facets"
value=
"j
ava
"
/>
<attribute
name=
"owner.project.facets"
value=
"j
st.web
"
/>
</attributes>
</attributes>
</classpathentry>
</classpathentry>
<classpathentry
kind=
"con"
path=
"org.eclipse.j
st.server.core.container/com.sun.enterprise.jst.server.runtimeTarget/GlassFish 3.1
"
>
<classpathentry
kind=
"con"
path=
"org.eclipse.j
dt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6
"
>
<attributes>
<attributes>
<attribute
name=
"owner.project.facets"
value=
"j
st.web
"
/>
<attribute
name=
"owner.project.facets"
value=
"j
ava
"
/>
</attributes>
</attributes>
</classpathentry>
</classpathentry>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.j2ee.internal.web.container"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jst.j2ee.internal.module.container"
/>
<classpathentry
kind=
"output"
path=
"build/classes"
/>
<classpathentry
kind=
"output"
path=
"build/classes"
/>
</classpath>
</classpath>
code/LanBortalWeb/.settings/org.eclipse.wst.common.project.facet.core.xml
View file @
b708c32
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<faceted-project>
<runtime
name=
"GlassFish 3.1"
/>
<runtime
name=
"GlassFish 3.1
.1
"
/>
<fixed
facet=
"java"
/>
<fixed
facet=
"java"
/>
<fixed
facet=
"wst.jsdt.web"
/>
<fixed
facet=
"wst.jsdt.web"
/>
<fixed
facet=
"jst.web"
/>
<fixed
facet=
"jst.web"
/>
...
...
code/LanBortalWeb/WebContent/WEB-INF/web.xml
View file @
b708c32
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
<welcome-file>
index.html
</welcome-file>
<welcome-file>
index.html
</welcome-file>
<welcome-file>
index.jsf
</welcome-file>
<welcome-file>
index.jsf
</welcome-file>
<welcome-file>
index.jsp
</welcome-file>
<welcome-file>
index.jsp
</welcome-file>
<welcome-file>
index.wtf
</welcome-file>
</welcome-file-list>
</welcome-file-list>
<servlet>
<servlet>
<servlet-name>
Faces Servlet
</servlet-name>
<servlet-name>
Faces Servlet
</servlet-name>
...
@@ -71,7 +72,7 @@
...
@@ -71,7 +72,7 @@
</servlet>
</servlet>
<servlet-mapping>
<servlet-mapping>
<servlet-name>
Faces Servlet
</servlet-name>
<servlet-name>
Faces Servlet
</servlet-name>
<url-pattern>
*.
LOL
</url-pattern>
<url-pattern>
*.
wtf
</url-pattern>
<url-pattern>
/faces/*
</url-pattern>
<url-pattern>
/faces/*
</url-pattern>
</servlet-mapping>
</servlet-mapping>
...
...
glassfishin_asennus.txt
View file @
b708c32
bortal realmin lisminen glassfishiin.
bortal realmin lis
ää
minen glassfishiin.
1. Lis code/LanBortalAuthModule.jar tiedosto hakemistoon glassfish/glassfish/domains/domain1/lib/
1. Lis
ää
code/LanBortalAuthModule.jar tiedosto hakemistoon glassfish/glassfish/domains/domain1/lib/
2. Lis postgres JDBC library glassfish/glassfish/lib/ hakemistoon
2. Lis
ää
postgres JDBC library glassfish/glassfish/lib/ hakemistoon
3. lis tiedostoon glassfish/glassfish/domains/domain1/config/login.conf tiedostoon:
3. lis
ää
tiedostoon glassfish/glassfish/domains/domain1/config/login.conf tiedostoon:
bortalRealm {
bortalRealm {
fi.insomnia.bortal.BortalLoginModule required;
fi.insomnia.bortal.BortalLoginModule required;
};
};
############
############
Huom! Lue komennot lpi ja muokkaa muuttujat sopiviksi!
Huom! Lue komennot l
ä
pi ja muokkaa muuttujat sopiviksi!
############
############
4. suorita seuraavat komennot hakemistossa glassfish/glassfish/bin/
4. suorita seuraavat komennot hakemistossa glassfish/glassfish/bin/
# ./asadmin create-auth-realm --classname fi.insomnia.bortal.BortalRealm --property jaas-context=bortalRealm omniarealm
# ./asadmin create-auth-realm --classname fi.insomnia.bortal.BortalRealm --property jaas-context=bortalRealm omniarealm
#
#
# ./asadmin create-jdbc-connection-pool --datasourceclassname org.postgresql.ds.PGConnectionPoolDataSource --restype javax.sql.ConnectionPoolDataSource --ping true --property URL=jdbc\\:postgresql\\:omnia:DatabaseName=omnia:Password=abcdef123:User=omnia OmniaPool
# ./asadmin create-jdbc-connection-pool --datasourceclassname org.postgresql.ds.PGConnectionPoolDataSource --restype javax.sql.ConnectionPoolDataSource --ping true --property serverName=localhost:DatabaseName=bortal:Password=abcdef123456:User=bortal Omniapossu
5. Lisää JDBC resource jdbc/bortal connection poolille Omniapossu wepikälistä.
./asadmin create-jdbc-resource --connectionpoolid OmniaPool jdbc/bortal
5. Lis JDBC resource jdbc/bortal connection poolille Omniapossu wepiklist.
6. Debug-tulosteet fi namespacesta saa näkyviin seuraavasti:
./asadmin create-jdbc-resource --connectionpoolid Omniapossu jdbc/bortal
6. Debug-tulosteet fi namespacesta saa nkyviin seuraavasti:
# echo fi.level=FINEST >> glassfish/domains/domain1/config/logging.properties
# echo fi.level=FINEST >> glassfish/domains/domain1/config/logging.properties
7. Lis mailipalvelin.
7. Lis
ää
mailipalvelin.
./asadmin --interactive=false create-javamail-resource --mailhost=localhost --mailuser=bortal --fromaddress=info@insomnia.fi --enabled=true --description="Bortal" --storeprotocol=imap --storeprotocolclass=com.sun.mail.imap.IMAPStore --transprotocol smtp --transprotocolclass com.sun.mail.smtp.SMTPTransport --property mail.smtp.port=25 mail/lanbortal
./asadmin --interactive=false create-javamail-resource --mailhost=localhost --mailuser=bortal --fromaddress=info@insomnia.fi --enabled=true --description="Bortal" --storeprotocol=imap --storeprotocolclass=com.sun.mail.imap.IMAPStore --transprotocol smtp --transprotocolclass com.sun.mail.smtp.SMTPTransport --property mail.smtp.port=25 mail/lanbortal
8. Ainakin linuxissa pit
javalle antaa lis
komentona:
8. Ainakin linuxissa pit
ää javalle antaa lisä
komentona:
# ./asadmin create-jvm-options -Djava.awt.headless=true
# ./asadmin create-jvm-options -Djava.awt.headless=true
9. Lis JMS connection factory ( Resources -> JMS Resources -> Connection Factory )
9. Lis
ää
JMS connection factory ( Resources -> JMS Resources -> Connection Factory )
Pool name: jms/mailconnectionfactory
Pool name: jms/mailconnectionfactory
Resource type: javax.jms.QueueConnectionFactory
Resource type: javax.jms.QueueConnectionFactory
./asadmin create-jms-resource --restype javax.jms.QueueConnectionFactory jms/mailconnectionfactory
./asadmin create-jms-resource --restype javax.jms.QueueConnectionFactory jms/mailconnectionfactory
10. Lis JMS Destination Resource ( Resources -> JMS Resources -> Destination Resources )
10. Lis
ää
JMS Destination Resource ( Resources -> JMS Resources -> Destination Resources )
### JOKO ###
### JOKO ###
JNDI Name: jms/mailque
JNDI Name: jms/mailque
Physical destinatino name: mailque
Physical destinatino name: mailque
...
@@ -48,12 +47,12 @@ Huom! Lue komennot lpi ja muokkaa muuttujat sopiviksi!
...
@@ -48,12 +47,12 @@ Huom! Lue komennot lpi ja muokkaa muuttujat sopiviksi!
### TAI ###
### TAI ###
./asadmin create-jms-resource --restype javax.jms.Queue --property Name=mailque jms/mailque
./asadmin create-jms-resource --restype javax.jms.Queue --property Name=mailque jms/mailque
11. (OPTIONAL) Jos haluat JK-connectorin k
ytt
n apachen kanssa:
11. (OPTIONAL) Jos haluat JK-connectorin k
äyttöö
n apachen kanssa:
Configurations -> Server-config -> Network Config -> http-listner1 -> JK Listener ON
Configurations -> Server-config -> Network Config -> http-listner1 -> JK Listener ON
12. Glassfish Default Principal to Role Mapping
12. Glassfish Default Principal to Role Mapping
403 asioista, ellei t
t
ole ruksittu:
403 asioista, ellei t
ätä
ole ruksittu:
Configurations -> server-config -> Security -> Default Principal To Role Mapping -> Enabled
Configurations -> server-config -> Security -> Default Principal To Role Mapping -> Enabled
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment