You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by Alex Renger <ar...@gmail.com> on 2014/07/09 16:36:42 UTC
App Server Deployment Help
Hello,
I have encountered a problem while trying to follow the instructions
provided here:
https://cwiki.apache.org/confluence/display/SLING/App+Server+Deployment
I posted my question on stackoverflow, here:
http://stackoverflow.com/questions/24656210/osgi-logservice-error-when-deploying-apache-sling-in-an-app-container
But I also wanted to submit this question to you all. Thank you for
any help you can provide!
Alex
Re: App Server Deployment Help
Posted by Oliver Lietz <ap...@oliverlietz.de>.
On Monday 14 July 2014 23:03:03 Alex Renger wrote:
> Whew -- good catch Oliver! I'm not using said war file because
> somewhere in my wanderings through sling directories I came to confuse
> "base" with "builder". They both contain target directories, each
> with similar wars and jars that are refreshed during maven clean
> install... and this whole deal is new to me.
>
> Anyway, when I deploy the war file from the BUILDER directory, it
> works fine. Thank you!
See my first reply from Friday.
O.
> Alex
>
> PS. It deploys fine with glassfish, not jboss -- but whatever, that's
> a totally different question. The above question is resolved, and I
> marked it as such on stackoverflow, too. Thanks guys.
[...]
Re: App Server Deployment Help
Posted by Alex Renger <ar...@gmail.com>.
Whew -- good catch Oliver! I'm not using said war file because
somewhere in my wanderings through sling directories I came to confuse
"base" with "builder". They both contain target directories, each
with similar wars and jars that are refreshed during maven clean
install... and this whole deal is new to me.
Anyway, when I deploy the war file from the BUILDER directory, it
works fine. Thank you!
Alex
PS. It deploys fine with glassfish, not jboss -- but whatever, that's
a totally different question. The above question is resolved, and I
marked it as such on stackoverflow, too. Thanks guys.
On 7/14/14, Oliver Lietz <ap...@oliverlietz.de> wrote:
> On Monday 14 July 2014 13:30:36 Alex Renger wrote:
>> Good Morning Oliver,
>
> hi Alex,
>
>> I gave it another try this morning, just for good measure.
>>
>> $ rm -fr sling
>> $ svn co http://svn.apache.org/repos/asf/sling/trunk sling
>> $ mvn -DskipTests clean install
>> # this fails, so I had to revert to r1609744
>> $ svn update -r r1609744
>> $ mvn -DskipTests clean install
>> # BUILD SUCCESS
>> $ cp
>> launchpad/base/target/org.apache.sling.launchpad.base-4.4.0-2.5.1-SNAPSHOT
>> -webapp.war /tmp/sling.war
>> $ asadmin deploy /tmp/sling.war
>> Application deployed with name sling.
>> Command deploy executed successfully.
>> # However, server.log reports:
>> [#|2014-07-14T07:07:55.758-0400|SEVERE|oracle-glassfish3.1.2|javax.enterpri
>> se.system.container.web.com.sun.enterprise.web|_ThreadID=17;_ThreadName=Thr
>> ead-2;|WebModule[/sling]sling: Cannot load Launcher Servlet
>> org.apache.sling.launchpad.base.webapp.SlingServletDelegate
>> java.lang.IllegalArgumentException: Sling Launcher JAR
>> /media/homespace/glassfish3/glassfish/domains/domain1/config/sling/_sling/o
>> rg.apache.sling.launchpad.base.jar is not accessible
>> at
>> org.apache.sling.launchpad.base.shared.Loader.loadLauncher(Loader.java:104
>> ) at
>> org.apache.sling.launchpad.webapp.SlingServlet.startSling(SlingServlet.jav
>> a:363) at
>> org.apache.sling.launchpad.webapp.SlingServlet.startSling(SlingServlet.jav
>> a:325) ...
>>
>> For what it's worth, note that I am using debian linux
>> (3.2.60-1+deb7u1 x86_64), openJdk 6, maven 3, and glassfish 3.
>
> why are you not using org.apache.sling.launchpad-7-SNAPSHOT.war?
>
> Regards,
> O.
>
>> Alex
> [...]
>
Re: App Server Deployment Help
Posted by Oliver Lietz <ap...@oliverlietz.de>.
On Monday 14 July 2014 13:30:36 Alex Renger wrote:
> Good Morning Oliver,
hi Alex,
> I gave it another try this morning, just for good measure.
>
> $ rm -fr sling
> $ svn co http://svn.apache.org/repos/asf/sling/trunk sling
> $ mvn -DskipTests clean install
> # this fails, so I had to revert to r1609744
> $ svn update -r r1609744
> $ mvn -DskipTests clean install
> # BUILD SUCCESS
> $ cp
> launchpad/base/target/org.apache.sling.launchpad.base-4.4.0-2.5.1-SNAPSHOT
> -webapp.war /tmp/sling.war
> $ asadmin deploy /tmp/sling.war
> Application deployed with name sling.
> Command deploy executed successfully.
> # However, server.log reports:
> [#|2014-07-14T07:07:55.758-0400|SEVERE|oracle-glassfish3.1.2|javax.enterpri
> se.system.container.web.com.sun.enterprise.web|_ThreadID=17;_ThreadName=Thr
> ead-2;|WebModule[/sling]sling: Cannot load Launcher Servlet
> org.apache.sling.launchpad.base.webapp.SlingServletDelegate
> java.lang.IllegalArgumentException: Sling Launcher JAR
> /media/homespace/glassfish3/glassfish/domains/domain1/config/sling/_sling/o
> rg.apache.sling.launchpad.base.jar is not accessible
> at
> org.apache.sling.launchpad.base.shared.Loader.loadLauncher(Loader.java:104
> ) at
> org.apache.sling.launchpad.webapp.SlingServlet.startSling(SlingServlet.jav
> a:363) at
> org.apache.sling.launchpad.webapp.SlingServlet.startSling(SlingServlet.jav
> a:325) ...
>
> For what it's worth, note that I am using debian linux
> (3.2.60-1+deb7u1 x86_64), openJdk 6, maven 3, and glassfish 3.
why are you not using org.apache.sling.launchpad-7-SNAPSHOT.war?
Regards,
O.
> Alex
[...]
Re: App Server Deployment Help
Posted by Robert Munteanu <ro...@apache.org>.
On Mon, Jul 14, 2014 at 2:30 PM, Alex Renger <ar...@gmail.com> wrote:
> $ rm -fr sling
> $ svn co http://svn.apache.org/repos/asf/sling/trunk sling
> $ mvn -DskipTests clean install
> # this fails, so I had to revert to r1609744
If the failure that you got was related to the list.xml syntax error,
it is now fixed.
Robert
Re: App Server Deployment Help
Posted by Alex Renger <ar...@gmail.com>.
Good Morning Oliver,
I gave it another try this morning, just for good measure.
$ rm -fr sling
$ svn co http://svn.apache.org/repos/asf/sling/trunk sling
$ mvn -DskipTests clean install
# this fails, so I had to revert to r1609744
$ svn update -r r1609744
$ mvn -DskipTests clean install
# BUILD SUCCESS
$ cp launchpad/base/target/org.apache.sling.launchpad.base-4.4.0-2.5.1-SNAPSHOT-webapp.war
/tmp/sling.war
$ asadmin deploy /tmp/sling.war
Application deployed with name sling.
Command deploy executed successfully.
# However, server.log reports:
[#|2014-07-14T07:07:55.758-0400|SEVERE|oracle-glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=17;_ThreadName=Thread-2;|WebModule[/sling]sling:
Cannot load Launcher Servlet
org.apache.sling.launchpad.base.webapp.SlingServletDelegate
java.lang.IllegalArgumentException: Sling Launcher JAR
/media/homespace/glassfish3/glassfish/domains/domain1/config/sling/_sling/org.apache.sling.launchpad.base.jar
is not accessible
at org.apache.sling.launchpad.base.shared.Loader.loadLauncher(Loader.java:104)
at org.apache.sling.launchpad.webapp.SlingServlet.startSling(SlingServlet.java:363)
at org.apache.sling.launchpad.webapp.SlingServlet.startSling(SlingServlet.java:325)
...
For what it's worth, note that I am using debian linux
(3.2.60-1+deb7u1 x86_64), openJdk 6, maven 3, and glassfish 3.
Alex
On 7/13/14, Oliver Lietz <ap...@oliverlietz.de> wrote:
> On Friday 11 July 2014 14:17:29 Alex Renger wrote:
>> Hello Oliver,
>
> hello Alex,
>
>> Thank you for your attempt to help and for the suggestion. However,
>> you'll note from earlier in this thread that I referenced those same
>> instructions. Unless there were recent changes to the sling baseline
>> (i.e., within the past 24 hours) related to webapp deployment, then I
>> would expect to run into the same problems I've had when following
>> those steps.
>>
>> That is to say, I have indeed started from scratch multiple times and
>> followed those instructions -- but upon deployment it reports an error
>> that "org.apache.sling.launchpad.base.jar" cannot be found. When I
>> get past that problem (by setting sling.home in the web.xml file to a
>> directory where said file is located), it deploys without error but
>> returns 404.
>
> it works with GlassFish 4 on OS X 10.9.4 with JDK 7u60 OOTB:
>
> $ ./asadmin start-domain
> Waiting for domain1 to start ....
> Successfully started the domain : domain1
> domain Location: /[...]/glassfish4/glassfish/domains/domain1
> Log File: /[...]/glassfish4/glassfish/domains/domain1/logs/server.log
> Admin Port: 4848
> Command start-domain executed successfully.
> $ ./asadmin deploy /[...]/sling.war
> Application deployed with name sling.
> Command deploy executed successfully.
> $ curl -u admin:admin -F"sling:resourceType=foo/bar" -F"title=some title"
> http://localhost:8080/sling/content/mynode
> <html>
> <head>
> <title>Content created /content/mynode</title>
> </head>
> <body>
> <h1>Content created /content/mynode</h1>
> <table>
> <tbody>
> <tr>
> <td>Status</td>
> <td><div id="Status">201</div></td>
> </tr>
> <tr>
> <td>Message</td>
> <td><div id="Message">Created</div></td>
> </tr>
> <tr>
> <td>Location</td>
> <td><a href="/sling/mynode"
> id="Location">/sling/mynode</a></td>
> </tr>
> <tr>
> <td>Parent Location</td>
> <td><a href="/sling/content"
> id="ParentLocation">/sling/content</a></td>
> </tr>
> <tr>
> <td>Path</td>
> <td><div id="Path">/content/mynode</div></td>
> </tr>
> <tr>
> <td>Referer</td>
> <td><a href="" id="Referer"></a></td>
> </tr>
> <tr>
> <td>ChangeLog</td>
> <td><div
> id="ChangeLog"><pre>created("/content");<br/>created("/content/mynode");<br/>modified("/content/mynode/sling:resourceType");<br/>modified("/content/mynode/title");<br/></pre></div></td>
> </tr>
> </tbody>
> </table>
> <p><a href="">Go Back</a></p>
> <p><a href="/sling/mynode">Modified Resource</a></p>
> <p><a href="/sling/content">Parent of Modified Resource</a></p>
> </body>
> </html>
>
>
> Regards,
> O.
>
>> Alex
> [...]
>
Re: App Server Deployment Help
Posted by Oliver Lietz <ap...@oliverlietz.de>.
On Friday 11 July 2014 14:17:29 Alex Renger wrote:
> Hello Oliver,
hello Alex,
> Thank you for your attempt to help and for the suggestion. However,
> you'll note from earlier in this thread that I referenced those same
> instructions. Unless there were recent changes to the sling baseline
> (i.e., within the past 24 hours) related to webapp deployment, then I
> would expect to run into the same problems I've had when following
> those steps.
>
> That is to say, I have indeed started from scratch multiple times and
> followed those instructions -- but upon deployment it reports an error
> that "org.apache.sling.launchpad.base.jar" cannot be found. When I
> get past that problem (by setting sling.home in the web.xml file to a
> directory where said file is located), it deploys without error but
> returns 404.
it works with GlassFish 4 on OS X 10.9.4 with JDK 7u60 OOTB:
$ ./asadmin start-domain
Waiting for domain1 to start ....
Successfully started the domain : domain1
domain Location: /[...]/glassfish4/glassfish/domains/domain1
Log File: /[...]/glassfish4/glassfish/domains/domain1/logs/server.log
Admin Port: 4848
Command start-domain executed successfully.
$ ./asadmin deploy /[...]/sling.war
Application deployed with name sling.
Command deploy executed successfully.
$ curl -u admin:admin -F"sling:resourceType=foo/bar" -F"title=some title"
http://localhost:8080/sling/content/mynode
<html>
<head>
<title>Content created /content/mynode</title>
</head>
<body>
<h1>Content created /content/mynode</h1>
<table>
<tbody>
<tr>
<td>Status</td>
<td><div id="Status">201</div></td>
</tr>
<tr>
<td>Message</td>
<td><div id="Message">Created</div></td>
</tr>
<tr>
<td>Location</td>
<td><a href="/sling/mynode"
id="Location">/sling/mynode</a></td>
</tr>
<tr>
<td>Parent Location</td>
<td><a href="/sling/content"
id="ParentLocation">/sling/content</a></td>
</tr>
<tr>
<td>Path</td>
<td><div id="Path">/content/mynode</div></td>
</tr>
<tr>
<td>Referer</td>
<td><a href="" id="Referer"></a></td>
</tr>
<tr>
<td>ChangeLog</td>
<td><div
id="ChangeLog"><pre>created("/content");<br/>created("/content/mynode");<br/>modified("/content/mynode/sling:resourceType");<br/>modified("/content/mynode/title");<br/></pre></div></td>
</tr>
</tbody>
</table>
<p><a href="">Go Back</a></p>
<p><a href="/sling/mynode">Modified Resource</a></p>
<p><a href="/sling/content">Parent of Modified Resource</a></p>
</body>
</html>
Regards,
O.
> Alex
[...]
Re: App Server Deployment Help
Posted by Alex Renger <ar...@gmail.com>.
Hello Oliver,
Thank you for your attempt to help and for the suggestion. However,
you'll note from earlier in this thread that I referenced those same
instructions. Unless there were recent changes to the sling baseline
(i.e., within the past 24 hours) related to webapp deployment, then I
would expect to run into the same problems I've had when following
those steps.
That is to say, I have indeed started from scratch multiple times and
followed those instructions -- but upon deployment it reports an error
that "org.apache.sling.launchpad.base.jar" cannot be found. When I
get past that problem (by setting sling.home in the web.xml file to a
directory where said file is located), it deploys without error but
returns 404.
Alex
On 7/11/14, Oliver Lietz <ap...@oliverlietz.de> wrote:
> On Friday 11 July 2014 12:54:49 Alex Renger wrote:
>> Hello Carsten,
>
> hello Alex,
>
>> I get the same 404 error when I try to access the base URL
>> (http://localhost:8080/sling). For clarification/confirmation, here's
>> how to reproduce what I'm seeing:
>>
>> 1. Get the latest source from subversion
>> 2. rm -fr ~/.m2/repository #just to be sure i'm working with the latest
>> stuff) 3. set sling.home in the
>> launchpad/base/src/main/webapp/WEB-INF/web.xml file such that it
>> points to my sling/launchpad/base directory
>> 4. mvn clean install (from the main sling directory; that of the
>> sling-builder project)
>> 5. move org.apache.sling.launchpad.base-4.4.0-2.5.1-SNAPSHOT-webapp.war
>> from launchpad/base/target to launchpad/base and call it "sling.war"
>> 6. also move org.apache.sling.launchpad.base-4.4.0-2.5.1-SNAPSHOT.jar
>> up one directory and call it "org.apache.sling.launchpad.base.jar".
>> 7. deploy sling.war in a web container
>>
>> There are more steps here than are mentioned in the wiki for apache
>> sling web app deployment, but this is the only way I could get it to
>> deploy. The webapp war apparently needs to be able to find the
>> "org.apache.sling.launchpad.base.jar" file, which is why I set
>> sling.home to the directory in which it can be found.
>>
>> After your latest change, the above procedure deploys the app without
>> any errors in the server.log file, but returns 404 status from all
>> http requests.
>
> please start from scratch as described at
> https://cwiki.apache.org/confluence/display/SLING/App+Server+Deployment and
>
> use the *org.apache.sling.launchpad-7-SNAPSHOT.war* from
> launchpad/builder/target.
>
> Regards,
> O.
>
>> Alex
> [...]
>
Re: App Server Deployment Help
Posted by Oliver Lietz <ap...@oliverlietz.de>.
On Friday 11 July 2014 12:54:49 Alex Renger wrote:
> Hello Carsten,
hello Alex,
> I get the same 404 error when I try to access the base URL
> (http://localhost:8080/sling). For clarification/confirmation, here's
> how to reproduce what I'm seeing:
>
> 1. Get the latest source from subversion
> 2. rm -fr ~/.m2/repository #just to be sure i'm working with the latest
> stuff) 3. set sling.home in the
> launchpad/base/src/main/webapp/WEB-INF/web.xml file such that it
> points to my sling/launchpad/base directory
> 4. mvn clean install (from the main sling directory; that of the
> sling-builder project)
> 5. move org.apache.sling.launchpad.base-4.4.0-2.5.1-SNAPSHOT-webapp.war
> from launchpad/base/target to launchpad/base and call it "sling.war"
> 6. also move org.apache.sling.launchpad.base-4.4.0-2.5.1-SNAPSHOT.jar
> up one directory and call it "org.apache.sling.launchpad.base.jar".
> 7. deploy sling.war in a web container
>
> There are more steps here than are mentioned in the wiki for apache
> sling web app deployment, but this is the only way I could get it to
> deploy. The webapp war apparently needs to be able to find the
> "org.apache.sling.launchpad.base.jar" file, which is why I set
> sling.home to the directory in which it can be found.
>
> After your latest change, the above procedure deploys the app without
> any errors in the server.log file, but returns 404 status from all
> http requests.
please start from scratch as described at
https://cwiki.apache.org/confluence/display/SLING/App+Server+Deployment and
use the *org.apache.sling.launchpad-7-SNAPSHOT.war* from
launchpad/builder/target.
Regards,
O.
> Alex
[...]
Re: App Server Deployment Help
Posted by Alex Renger <ar...@gmail.com>.
Hello Carsten,
I get the same 404 error when I try to access the base URL
(http://localhost:8080/sling). For clarification/confirmation, here's
how to reproduce what I'm seeing:
1. Get the latest source from subversion
2. rm -fr ~/.m2/repository #just to be sure i'm working with the latest stuff)
3. set sling.home in the
launchpad/base/src/main/webapp/WEB-INF/web.xml file such that it
points to my sling/launchpad/base directory
4. mvn clean install (from the main sling directory; that of the
sling-builder project)
5. move org.apache.sling.launchpad.base-4.4.0-2.5.1-SNAPSHOT-webapp.war
from launchpad/base/target to launchpad/base and call it "sling.war"
6. also move org.apache.sling.launchpad.base-4.4.0-2.5.1-SNAPSHOT.jar
up one directory and call it "org.apache.sling.launchpad.base.jar".
7. deploy sling.war in a web container
There are more steps here than are mentioned in the wiki for apache
sling web app deployment, but this is the only way I could get it to
deploy. The webapp war apparently needs to be able to find the
"org.apache.sling.launchpad.base.jar" file, which is why I set
sling.home to the directory in which it can be found.
After your latest change, the above procedure deploys the app without
any errors in the server.log file, but returns 404 status from all
http requests.
Alex
On 7/10/14, Carsten Ziegeler <cz...@apache.org> wrote:
> Do you get any response if you got to http://localhost:8080/sling ?
>
> Regards
> Carsten
>
>
> 2014-07-10 14:19 GMT+02:00 Alex Renger <ar...@gmail.com>:
>
>> Hello Carsten,
>>
>> Thank you for your quick response! I tested your change and it does
>> indeed resolve the ClassNotFoundException. The server.log file is now
>> free of any errors upon deployment. However, I receive a 404 error
>> when attempting to add content using the example curl command provided
>> on the sling website. Included below is the command I used and the
>> response I receive. I've also attached the brief server.log file, for
>> whatever it might be worth.
>>
>> Thanks again for your help.
>>
>> Alex
>>
>>
>> rengera@din:~$ curl -u admin:admin -F"sling:resourceType=foo/bar"
>> -F"title=some title" http://localhost:8080/sling/content/mynode
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html
>> xmlns="http://www.w3.org/1999/xhtml"><head><title>Oracle GlassFish
>> Server 3.1.2 - Error report</title><style type="text/css"><!--H1
>>
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
>> H2
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
>> H3
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
>> BODY
>> {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
>> B
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
>> P
>> {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
>> {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP
>> Status 404 - </h1><hr/><p><b>type</b> Status
>> report</p><p><b>message</b></p><p><b>description</b>The requested
>> resource () is not available.</p><hr/><h3>Oracle GlassFish Server
>> 3.1.2</h3></body></html>
>>
>> On 7/10/14, Carsten Ziegeler <cz...@apache.org> wrote:
>> > Hi,
>> >
>> > thanks for reporting! This looks like a bug to me, I've just committed
>> > a
>> > potential fix.
>> > Could you please checkout the latest from svn and test with that
>> > version?
>> >
>> > Regards
>> > Carsten
>> >
>> >
>> > 2014-07-09 16:36 GMT+02:00 Alex Renger <ar...@gmail.com>:
>> >
>> >> Hello,
>> >>
>> >> I have encountered a problem while trying to follow the instructions
>> >> provided here:
>> >>
>> >> https://cwiki.apache.org/confluence/display/SLING/App+Server+Deployment
>> >>
>> >> I posted my question on stackoverflow, here:
>> >>
>> >>
>> >>
>> http://stackoverflow.com/questions/24656210/osgi-logservice-error-when-deploying-apache-sling-in-an-app-container
>> >>
>> >> But I also wanted to submit this question to you all. Thank you for
>> >> any help you can provide!
>> >>
>> >> Alex
>> >>
>> >
>> >
>> >
>> > --
>> > Carsten Ziegeler
>> > Adobe Research Switzerland
>> > cziegeler@apache.org
>> >
>>
>
>
>
> --
> Carsten Ziegeler
> Adobe Research Switzerland
> cziegeler@apache.org
>
Re: App Server Deployment Help
Posted by Carsten Ziegeler <cz...@apache.org>.
Do you get any response if you got to http://localhost:8080/sling ?
Regards
Carsten
2014-07-10 14:19 GMT+02:00 Alex Renger <ar...@gmail.com>:
> Hello Carsten,
>
> Thank you for your quick response! I tested your change and it does
> indeed resolve the ClassNotFoundException. The server.log file is now
> free of any errors upon deployment. However, I receive a 404 error
> when attempting to add content using the example curl command provided
> on the sling website. Included below is the command I used and the
> response I receive. I've also attached the brief server.log file, for
> whatever it might be worth.
>
> Thanks again for your help.
>
> Alex
>
>
> rengera@din:~$ curl -u admin:admin -F"sling:resourceType=foo/bar"
> -F"title=some title" http://localhost:8080/sling/content/mynode
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html
> xmlns="http://www.w3.org/1999/xhtml"><head><title>Oracle GlassFish
> Server 3.1.2 - Error report</title><style type="text/css"><!--H1
>
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
> H2
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
> H3
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
> BODY
> {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
> B
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
> P
> {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
> {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP
> Status 404 - </h1><hr/><p><b>type</b> Status
> report</p><p><b>message</b></p><p><b>description</b>The requested
> resource () is not available.</p><hr/><h3>Oracle GlassFish Server
> 3.1.2</h3></body></html>
>
> On 7/10/14, Carsten Ziegeler <cz...@apache.org> wrote:
> > Hi,
> >
> > thanks for reporting! This looks like a bug to me, I've just committed a
> > potential fix.
> > Could you please checkout the latest from svn and test with that version?
> >
> > Regards
> > Carsten
> >
> >
> > 2014-07-09 16:36 GMT+02:00 Alex Renger <ar...@gmail.com>:
> >
> >> Hello,
> >>
> >> I have encountered a problem while trying to follow the instructions
> >> provided here:
> >>
> >> https://cwiki.apache.org/confluence/display/SLING/App+Server+Deployment
> >>
> >> I posted my question on stackoverflow, here:
> >>
> >>
> >>
> http://stackoverflow.com/questions/24656210/osgi-logservice-error-when-deploying-apache-sling-in-an-app-container
> >>
> >> But I also wanted to submit this question to you all. Thank you for
> >> any help you can provide!
> >>
> >> Alex
> >>
> >
> >
> >
> > --
> > Carsten Ziegeler
> > Adobe Research Switzerland
> > cziegeler@apache.org
> >
>
--
Carsten Ziegeler
Adobe Research Switzerland
cziegeler@apache.org
Re: App Server Deployment Help
Posted by Alex Renger <ar...@gmail.com>.
Hello Carsten,
Thank you for your quick response! I tested your change and it does
indeed resolve the ClassNotFoundException. The server.log file is now
free of any errors upon deployment. However, I receive a 404 error
when attempting to add content using the example curl command provided
on the sling website. Included below is the command I used and the
response I receive. I've also attached the brief server.log file, for
whatever it might be worth.
Thanks again for your help.
Alex
rengera@din:~$ curl -u admin:admin -F"sling:resourceType=foo/bar"
-F"title=some title" http://localhost:8080/sling/content/mynode
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html
xmlns="http://www.w3.org/1999/xhtml"><head><title>Oracle GlassFish
Server 3.1.2 - Error report</title><style type="text/css"><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP
Status 404 - </h1><hr/><p><b>type</b> Status
report</p><p><b>message</b></p><p><b>description</b>The requested
resource () is not available.</p><hr/><h3>Oracle GlassFish Server
3.1.2</h3></body></html>
On 7/10/14, Carsten Ziegeler <cz...@apache.org> wrote:
> Hi,
>
> thanks for reporting! This looks like a bug to me, I've just committed a
> potential fix.
> Could you please checkout the latest from svn and test with that version?
>
> Regards
> Carsten
>
>
> 2014-07-09 16:36 GMT+02:00 Alex Renger <ar...@gmail.com>:
>
>> Hello,
>>
>> I have encountered a problem while trying to follow the instructions
>> provided here:
>>
>> https://cwiki.apache.org/confluence/display/SLING/App+Server+Deployment
>>
>> I posted my question on stackoverflow, here:
>>
>>
>> http://stackoverflow.com/questions/24656210/osgi-logservice-error-when-deploying-apache-sling-in-an-app-container
>>
>> But I also wanted to submit this question to you all. Thank you for
>> any help you can provide!
>>
>> Alex
>>
>
>
>
> --
> Carsten Ziegeler
> Adobe Research Switzerland
> cziegeler@apache.org
>
Re: App Server Deployment Help
Posted by Carsten Ziegeler <cz...@apache.org>.
Hi,
thanks for reporting! This looks like a bug to me, I've just committed a
potential fix.
Could you please checkout the latest from svn and test with that version?
Regards
Carsten
2014-07-09 16:36 GMT+02:00 Alex Renger <ar...@gmail.com>:
> Hello,
>
> I have encountered a problem while trying to follow the instructions
> provided here:
>
> https://cwiki.apache.org/confluence/display/SLING/App+Server+Deployment
>
> I posted my question on stackoverflow, here:
>
>
> http://stackoverflow.com/questions/24656210/osgi-logservice-error-when-deploying-apache-sling-in-an-app-container
>
> But I also wanted to submit this question to you all. Thank you for
> any help you can provide!
>
> Alex
>
--
Carsten Ziegeler
Adobe Research Switzerland
cziegeler@apache.org