java-forum.org - Java programmieren aus Leidenschaft

Zurück   java-forum.org - Java programmieren aus Leidenschaft > Java - Programmierung > Java Basics - Anfänger-Themen

Java Basics - Anfänger-Themen Fragen ausschließlich zu Java-Grundlagen von Ein- und Umsteigern

Antwort    
Themen-Optionen Thema durchsuchen Ansicht
Alt 22.03.2010, 13:07   #1 (permalink)
Neuer Benutzer
byte
 
Registriert seit: 22.03.2010
Fachbeiträge: 10
Abgegebene Danke: 1
Erhielt 0 Danke für 0 Beiträge
Standard AWS Event Notification Service Sample ausführen...

Hallo,

ich versuche mich gerade an dem ENS von Amazon. Allerdings kann ich das Sample nicht ausführen, da mir Eclipse immer eine Fehlermeldung ausgibt.

Java Code: Quelltext in neuem Fenster öffnen
1
2
3
4
5
6
7
8
9
10
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/ws/security/components/crypto/Crypto
    at com.amazon.notifications.test.NotificationServiceClientTest.main(NotificationServiceClientTest.java:30)
Caused by: java.lang.ClassNotFoundException: org.apache.ws.security.components.crypto.Crypto
    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)
    ... 1 more

Hat evtl. bereits einer damit gearbeitet und kann mir helfen? Ich hoffe ich poste es im richtigen Forum, da ich wirklich Anfänger bin.

Vielen Dank schonmal.....
iSun84 ist offline  
Bei Google nach dem markiertem Wort suchen Bei Wikipedia nach dem markiertem Wort suchen Im Forum nach dem markiertem Wort suchen
Mit Zitat antworten
Alt 22.03.2010, 15:09   #2 (permalink)
Projektleiter Plugin-System
Team Plugin-System
 
Benutzerbild von Tomate_Salat
 
Registriert seit: 29.01.2009
Fachbeiträge: 3.442
Blog-Einträge: 9
Abgegebene Danke: 133
Erhielt 483 Danke für 434 Beiträge
Zitat:
Mein Auto springt nicht mehr an. Sagt mir mal bitte was daran Kaputt ist
ohne QuellCode können wir deine Fehler nur erraten (benzin ist leer, geh tanken). Könnte sein dass du die notwendigen Pakete nicht hast. In Netbeans bin ich heute zufällig auf eine (standartmäßige) vorhandene Amazon-Api unter "Services->Web Services" gestoßen (der Reiter befindet sich 2 positionen weiter rechts vom Reiter "Projects" wo logischerweise: die projekte aufgelistet werden (müsste bei mir standartansicht sein also kann man sich daran orientieren)

Also vllt mal mit Netbeans testen oder die Amazon api richtig runterladen + in das Projekt einbinden

MFG

Tomate_Salat
Tomate_Salat ist gerade online  
Bei Google nach dem markiertem Wort suchen Bei Wikipedia nach dem markiertem Wort suchen Im Forum nach dem markiertem Wort suchen
Mit Zitat antworten
Alt 22.03.2010, 18:03   #3 (permalink)
Neuer Benutzer
byte
Themenstarter
 
Registriert seit: 22.03.2010
Fachbeiträge: 10
Abgegebene Danke: 1
Erhielt 0 Danke für 0 Beiträge
Hallo,

Du hast natürlich vollkommen Recht, dass ich mich etwas waage ausgedrückt habe

Evtl. liegt der Fehler bei der Art und Weise wie ich versuche das SDK einzubinden. Habe folgendes zip-File:

Amazon.com Help: SDK

Dieses habe ich schlicht bei Eclipse importiert und das wars. Somit bekomme ich die besagte Fehlermeldung, wenn ich das Sample ausführen möchte. Habt Ihr/Du nen Tipp wie ich das genau einbinde?

BTW, nutze von der Uni eher den JDeveloper, als Eclipse. Hier habe ich gar keine Ahnung wie ich das Zip-File einbinden kann. Habt Ihr da nen Tipp?

MfG...
iSun84 ist offline  
Bei Google nach dem markiertem Wort suchen Bei Wikipedia nach dem markiertem Wort suchen Im Forum nach dem markiertem Wort suchen
Mit Zitat antworten
Alt 23.03.2010, 06:59   #4 (permalink)
Neuer Benutzer
byte
Themenstarter
 
Registriert seit: 22.03.2010
Fachbeiträge: 10
Abgegebene Danke: 1
Erhielt 0 Danke für 0 Beiträge
<hier mal ein Screenshot der Fehlermeldungen:

iSun84 ist offline  
Bei Google nach dem markiertem Wort suchen Bei Wikipedia nach dem markiertem Wort suchen Im Forum nach dem markiertem Wort suchen
Mit Zitat antworten
Alt 24.03.2010, 05:28   #5 (permalink)
Neuer Benutzer
byte
Themenstarter
 
Registriert seit: 22.03.2010
Fachbeiträge: 10
Abgegebene Danke: 1
Erhielt 0 Danke für 0 Beiträge
So, das mit der obigen Fehlermeldung habe ich nun hinbekommen. Habe die gesamten besagten jar's per Google rausgesucht und importiert. Anschließend habe ich wie in der Readme beschrieben einen Keystore erstellt. Wenn ich das Sample aber nun starten will bekomme ich folgende Fehlermeldungen:

Java Code: Quelltext in neuem Fenster öffnen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
An error has occurred while trying to use the NotificationService client
com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 46 counts of IllegalAnnotationExceptions
There are two properties named "eventType" 
    this problem is related to the following location:
        at public java.lang.String com.amazon.notifications.doc._2007_01_16.IsEventTypeSupported.getEventType()
        at com.amazon.notifications.doc._2007_01_16.IsEventTypeSupported
        at public com.amazon.notifications.doc._2007_01_16.IsEventTypeSupported com.amazon.notifications.doc._2007_01_16.ObjectFactory.createIsEventTypeSupported()
        at com.amazon.notifications.doc._2007_01_16.ObjectFactory
    this problem is related to the following location:
        at protected java.lang.String com.amazon.notifications.doc._2007_01_16.IsEventTypeSupported.eventType
        at com.amazon.notifications.doc._2007_01_16.IsEventTypeSupported
        at public com.amazon.notifications.doc._2007_01_16.IsEventTypeSupported com.amazon.notifications.doc._2007_01_16.ObjectFactory.createIsEventTypeSupported()
        at com.amazon.notifications.doc._2007_01_16.ObjectFactory
There are two properties named "matchString" 
    this problem is related to the following location:
        at public java.lang.String com.amazon.notifications.doc._2007_01_16.GetSupportedEventTypes.getMatchString()
        at com.amazon.notifications.doc._2007_01_16.GetSupportedEventTypes
        at public com.amazon.notifications.doc._2007_01_16.GetSupportedEventTypes com.amazon.notifications.doc._2007_01_16.ObjectFactory.createGetSupportedEventTypes()
        at com.amazon.notifications.doc._2007_01_16.ObjectFactory
    this problem is related to the following location:
        at protected java.lang.String com.amazon.notifications.doc._2007_01_16.GetSupportedEventTypes.matchString
        at com.amazon.notifications.doc._2007_01_16.GetSupportedEventTypes
        at public com.amazon.notifications.doc._2007_01_16.GetSupportedEventTypes com.amazon.notifications.doc._2007_01_16.ObjectFactory.createGetSupportedEventTypes()
        at com.amazon.notifications.doc._2007_01_16.ObjectFactory
There are two properties named "eventType" 
    this problem is related to the following location:
        at public java.lang.String com.amazon.notifications.doc._2007_01_16.GetEvents.getEventType()
        at com.amazon.notifications.doc._2007_01_16.GetEvents
        at public com.amazon.notifications.doc._2007_01_16.GetEvents com.amazon.notifications.doc._2007_01_16.ObjectFactory.createGetEvents()
        at com.amazon.notifications.doc._2007_01_16.ObjectFactory
    this problem is related to the following location:
        at protected java.lang.String com.amazon.notifications.doc._2007_01_16.GetEvents.eventType
        at com.amazon.notifications.doc._2007_01_16.GetEvents
        at public com.amazon.notifications.doc._2007_01_16.GetEvents com.amazon.notifications.doc._2007_01_16.ObjectFactory.createGetEvents()
        at com.amazon.notifications.doc._2007_01_16.ObjectFactory
There are two properties named "eventsPerPage" 
    this problem is related to the following location:
        at public java.lang.Long com.amazon.notifications.doc._2007_01_16.GetEvents.getEventsPerPage()
        at com.amazon.notifications.doc._2007_01_16.GetEvents
        at public com.amazon.notifications.doc._2007_01_16.GetEvents com.amazon.notifications.doc._2007_01_16.ObjectFactory.createGetEvents()
        at com.amazon.notifications.doc._2007_01_16.ObjectFactory
    this problem is related to the following location:
        at protected java.lang.Long com.amazon.notifications.doc._2007_01_16.GetEvents.eventsPerPage
        at com.amazon.notifications.doc._2007_01_16.GetEvents
        at public com.amazon.notifications.doc._2007_01_16.GetEvents com.amazon.notifications.doc._2007_01_16.ObjectFactory.createGetEvents()
        at com.amazon.notifications.doc._2007_01_16.ObjectFactory
There are two properties named "limit" 
    this problem is related to the following location:
        at public java.lang.Long com.amazon.notifications.doc._2007_01_16.GetEvents.getLimit()
        at com.amazon.notifications.doc._2007_01_16.GetEvents
        at public com.amazon.notifications.doc._2007_01_16.GetEvents com.amazon.notifications.doc._2007_01_16.ObjectFactory.createGetEvents()
        at com.amazon.notifications.doc._2007_01_16.ObjectFactory
    this problem is related to the following location:
        at protected java.lang.Long com.amazon.notifications.doc._2007_01_16.GetEvents.limit
        at com.amazon.notifications.doc._2007_01_16.GetEvents
        at public com.amazon.notifications.doc._2007_01_16.GetEvents com.amazon.notifications.doc._2007_01_16.ObjectFactory.createGetEvents()
        at com.amazon.notifications.doc._2007_01_16.ObjectFactory
There are two properties named "startDate" 
    this problem is related to the following location:
        at public javax.xml.datatype.XMLGregorianCalendar com.amazon.notifications.doc._2007_01_16.GetEvents.getStartDate()
        at com.amazon.notifications.doc._2007_01_16.GetEvents
        at public com.amazon.notifications.doc._2007_01_16.GetEvents com.amazon.notifications.doc._2007_01_16.ObjectFactory.createGetEvents()
        at com.amazon.notifications.doc._2007_01_16.ObjectFactory
    this problem is related to the following location:
        at protected javax.xml.datatype.XMLGregorianCalendar com.amazon.notifications.doc._2007_01_16.GetEvents.startDate
        at com.amazon.notifications.doc._2007_01_16.GetEvents
        at public com.amazon.notifications.doc._2007_01_16.GetEvents com.amazon.notifications.doc._2007_01_16.ObjectFactory.createGetEvents()
        at com.amazon.notifications.doc._2007_01_16.ObjectFactory
There are two properties named "eventsPerPage" 
    this problem is related to the following location:
        at public java.lang.Long com.amazon.notifications.doc._2007_01_16.GetMore.getEventsPerPage()
        at com.amazon.notifications.doc._2007_01_16.GetMore
        at public com.amazon.notifications.doc._2007_01_16.GetMore com.amazon.notifications.doc._2007_01_16.ObjectFactory.createGetMore()
        at com.amazon.notifications.doc._2007_01_16.ObjectFactory
    this problem is related to the following location:
        at protected java.lang.Long com.amazon.notifications.doc._2007_01_16.GetMore.eventsPerPage
        at com.amazon.notifications.doc._2007_01_16.GetMore
        at public com.amazon.notifications.doc._2007_01_16.GetMore com.amazon.notifications.doc._2007_01_16.ObjectFactory.createGetMore()
        at com.amazon.notifications.doc._2007_01_16.ObjectFactory
There are two properties named "pagingCookie" 
    this problem is related to the following location:
        at public com.amazon.notifications.doc._2007_01_16.PagingCookie com.amazon.notifications.doc._2007_01_16.GetMore.getPagingCookie()
        at com.amazon.notifications.doc._2007_01_16.GetMore
        at public com.amazon.notifications.doc._2007_01_16.GetMore com.amazon.notifications.doc._2007_01_16.ObjectFactory.createGetMore()
        at com.amazon.notifications.doc._2007_01_16.ObjectFactory
    this problem is related to the following location:
        at protected com.amazon.notifications.doc._2007_01_16.PagingCookie com.amazon.notifications.doc._2007_01_16.GetMore.pagingCookie
        at com.amazon.notifications.doc._2007_01_16.GetMore
        at public com.amazon.notifications.doc._2007_01_16.GetMore com.amazon.notifications.doc._2007_01_16.ObjectFactory.createGetMore()
        at com.amazon.notifications.doc._2007_01_16.ObjectFactory
There are two properties named "backOffTime" 
    this problem is related to the following location:
        at public javax.xml.datatype.Duration com.amazon.notifications.doc._2007_01_16.PagingCookie.getBackOffTime()
        at com.amazon.notifications.doc._2007_01_16.PagingCookie
        at protected com.amazon.notifications.doc._2007_01_16.PagingCookie com.amazon.notifications.doc._2007_01_16.GetMore.pagingCookie
        at com.amazon.notifications.doc._2007_01_16.GetMore
        at public com.amazon.notifications.doc._2007_01_16.GetMore com.amazon.notifications.doc._2007_01_16.ObjectFactory.createGetMore()
        at com.amazon.notifications.doc._2007_01_16.ObjectFactory
    this problem is related to the following location:
        at protected javax.xml.datatype.Duration com.amazon.notifications.doc._2007_01_16.PagingCookie.backOffTime
        at com.amazon.notifications.doc._2007_01_16.PagingCookie
        at protected com.amazon.notifications.doc._2007_01_16.PagingCookie com.amazon.notifications.doc._2007_01_16.GetMore.pagingCookie
        at com.amazon.notifications.doc._2007_01_16.GetMore
        at public com.amazon.notifications.doc._2007_01_16.GetMore com.amazon.notifications.doc._2007_01_16.ObjectFactory.createGetMore()
        at com.amazon.notifications.doc._2007_01_16.ObjectFactory
There are two properties named "cookie" 
    this problem is related to the following location:
        at public java.lang.String com.amazon.notifications.doc._2007_01_16.PagingCookie.getCookie()
        at com.amazon.notifications.doc._2007_01_16.PagingCookie
        at protected com.amazon.notifications.doc._2007_01_16.PagingCookie com.amazon.notifications.doc._2007_01_16.GetMore.pagingCookie
        at com.amazon.notifications.doc._2007_01_16.GetMore
        at public com.amazon.notifications.doc._2007_01_16.GetMore com.amazon.notifications.doc._2007_01_16.ObjectFactory.createGetMore()
        at com.amazon.notifications.doc._2007_01_16.ObjectFactory
    this problem is related to the following location:
        at protected java.lang.String com.amazon.notifications.doc._2007_01_16.PagingCookie.cookie
        at com.amazon.notifications.doc._2007_01_16.PagingCookie
        at protected com.amazon.notifications.doc._2007_01_16.PagingCookie com.amazon.notifications.doc._2007_01_16.GetMore.pagingCookie
        at com.amazon.notifications.doc._2007_01_16.GetMore
        at public com.amazon.notifications.doc._2007_01_16.GetMore com.amazon.notifications.doc._2007_01_16.ObjectFactory.createGetMore()
        at com.amazon.notifications.doc._2007_01_16.ObjectFactory
There are two properties named "timeToLive" 
    this problem is related to the following location:
        at public javax.xml.datatype.Duration com.amazon.notifications.doc._2007_01_16.PagingCookie.getTimeToLive()
        at com.amazon.notifications.doc._2007_01_16.PagingCookie
        at protected com.amazon.notifications.doc._2007_01_16.PagingCookie com.amazon.notifications.doc._2007_01_16.GetMore.pagingCookie
        at com.amazon.notifications.doc._2007_01_16.GetMore
        at public com.amazon.notifications.doc._2007_01_16.GetMore com.amazon.notifications.doc._2007_01_16.ObjectFactory.createGetMore()
        at com.amazon.notifications.doc._2007_01_16.ObjectFactory
    this problem is related to the following location:
        at protected javax.xml.datatype.Duration com.amazon.notifications.doc._2007_01_16.PagingCookie.timeToLive
        at com.amazon.notifications.doc._2007_01_16.PagingCookie
        at protected com.amazon.notifications.doc._2007_01_16.PagingCookie com.amazon.notifications.doc._2007_01_16.GetMore.pagingCookie
        at com.amazon.notifications.doc._2007_01_16.GetMore
        at public com.amazon.notifications.doc._2007_01_16.GetMore com.amazon.notifications.doc._2007_01_16.ObjectFactory.createGetMore()
        at com.amazon.notifications.doc._2007_01_16.ObjectFactory
 
......

Allerdings habe ich ja diesen Code überhaupt nicht selbst geschrieben, sondern der sollte doch so funktionieren(da Sample zum ausprobieren). Wie gehe ich denn nun mit damit um?

PS.: Habe das oben verlinkte SDK-Zip in Eclipse importiert.
iSun84 ist offline  
Bei Google nach dem markiertem Wort suchen Bei Wikipedia nach dem markiertem Wort suchen Im Forum nach dem markiertem Wort suchen
Mit Zitat antworten
Alt 24.03.2010, 08:28   #6 (permalink)
Projektleiter Plugin-System
Team Plugin-System
 
Benutzerbild von Tomate_Salat
 
Registriert seit: 29.01.2009
Fachbeiträge: 3.442
Blog-Einträge: 9
Abgegebene Danke: 133
Erhielt 483 Danke für 434 Beiträge
Zitat: iSun84
Beitrag anzeigen
Allerdings habe ich ja diesen Code überhaupt nicht selbst geschrieben, sondern der sollte doch so funktionieren(da Sample zum ausprobieren).
Ich habe mir mal zum testen das ganze auch runtergeladen, Projekt importiert und das gleiche Problem gehabt wie du zum Anfang. Bin in dem Falle auch echt enttäuscht von Amazon, dass die hier eine unvollständige API zum download anbieten. Auch habe ich nirgends einen wirklichen link zu den benötigten libs gefunden und als ich in der ReadMe noch etwas von keystore gelesen hatte, habe ich iwe keine Lust mehr auf das ganze gehabt :-/. Kundenfreundlich ist definietiv anderster

Zitat:
Wie gehe ich denn nun mit damit um?
Nun ja, der compile mault rum, das Einträge doppelt vorhanden sind. Vllt eine Datei doppelt eingebunden oder so? Oder Programmierfehler in den Samples
Ich sehe gerade, das auch anscheinend iwelche Cookies evtl. doppelt gesetzt wurden :-/. Naja, das ganze wirkt auf mich, wie eine riesig große Baustelle. Spätestens ab diesem Punkt würde sich mir die Frage stellen:
Brauche ich das unbedingt? Gehts nicht anderster oder kann ich das nicht weglassen?!
Tomate_Salat ist gerade online  
Bei Google nach dem markiertem Wort suchen Bei Wikipedia nach dem markiertem Wort suchen Im Forum nach dem markiertem Wort suchen
Mit Zitat antworten
Alt 24.03.2010, 08:53   #7 (permalink)
Neuer Benutzer
byte
Themenstarter
 
Registriert seit: 22.03.2010
Fachbeiträge: 10
Abgegebene Danke: 1
Erhielt 0 Danke für 0 Beiträge
Hallo Tomate,

vielen vielen Dank, dass Du das mal ebenfalls probiert hast!!!! Ich habe ja schon sowas von an mir gezweifelt.
Ob ich das brauche? Naja, ist meine erste Aufgabe in meinem Nebenjob vom Studium. Allerdings verstehe ich mittlerweile warum mir diese Aufgabe mit einem fetten Grinsen übertragen wurde. Von daher probiere ich mal weiter.

Vielen Dank nochmal!!!!

MfG,

Daniel
iSun84 ist offline  
Bei Google nach dem markiertem Wort suchen Bei Wikipedia nach dem markiertem Wort suchen Im Forum nach dem markiertem Wort suchen
Mit Zitat antworten
Alt 24.03.2010, 09:50   #8 (permalink)
Projektleiter Plugin-System
Team Plugin-System
 
Benutzerbild von Tomate_Salat
 
Registriert seit: 29.01.2009
Fachbeiträge: 3.442
Blog-Einträge: 9
Abgegebene Danke: 133
Erhielt 483 Danke für 434 Beiträge
Zitat: iSun84
Beitrag anzeigen
Ob ich das brauche? Naja, ist meine erste Aufgabe in meinem Nebenjob vom Studium.
Hoppla, nun ja, dann wirst du es wohl brauchen

Zitat: iSun85
Beitrag anzeigen
Allerdings verstehe ich mittlerweile warum mir diese Aufgabe mit einem fetten Grinsen übertragen wurde.
hehe, wie assozial Scheinen sich wohl schon andere mit die Zähne ausgebissen zu haben.

Developing an Amazon Web Services Client

Habs mir jetzt nicht durchgelesen (Zeitgründe und so) aber scheint u.U. das zu sein was du gebrauchen kannst, hoffe stehen genug infos drin, die du verwerten kannst.

MFG

Tomate_Salat
Tomate_Salat ist gerade online  
Bei Google nach dem markiertem Wort suchen Bei Wikipedia nach dem markiertem Wort suchen Im Forum nach dem markiertem Wort suchen
Mit Zitat antworten
Danke sagt:
iSun84 (24.03.2010)
Antwort    

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
treetable zeichnet nur die wurzel auf amandina AWT, Swing, JavaFX & SWT 1 16.01.2009 11:10
Objektcasting Aphex Java Basics - Anfänger-Themen 8 03.07.2008 20:32
Editor tortelinski Chat - NoPaste 2 26.04.2007 20:15
Fehler beim starten von Glassfish siassei84 Allgemeines EE 0 26.02.2007 16:43
Tomcat5.5 mathon Server einrichten und konfigurieren 8 17.08.2005 08:26


Lesezeichen

Forumregeln
Es ist Ihnen erlaubt, neue Themen zu verfassen.
Es ist Ihnen erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:12 Uhr.


Powered by vBulletin® Version 3.8.6 (Deutsch)
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Thanks for Smilies by smilies.4-user.de